Use __glibc_reserved convention in mcontext, sigcontext (bug 21457).
[platform/upstream/glibc.git] / ChangeLog
1 2017-05-04  Joseph Myers  <joseph@codesourcery.com>
2
3         [BZ #21457]
4         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
5         [_MIPS_SIM != _ABIO32] (mcontext_t): Rename field reserved to
6         __glibc_reserved1.
7         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
8         (struct _fpx_sw_bytes): Rename field padding to __glibc_reserved1.
9         (struct _fpxreg): Likewise.
10         [!__x86_64__] (struct _fpstate): Rename field reserved to
11         __glibc_reserved1.  Rename field padding to __glibc_reserved2.
12         [__x86_64__] (struct _fpstate): Rename field padding to
13         __glibc_reserved1.
14         (struct _xsave_hdr): Rename field reserved1 to __glibc_reserved1.
15         Rename field reserved2 to __glibc_reserved2.
16         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h
17         [__x86_64__] (struct _libc_fpxreg): Rename field padding to
18         __glibc_reserved1.
19         [__x86_64__] (struct _libc_fpstate): Rename field padding to
20         __glibc_reserved1.
21
22 2017-05-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
23
24         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Correct hwcap
25         variable name.
26
27 2017-05-03  H.J. Lu  <hongjiu.lu@intel.com>
28
29         [BZ #21391]
30         * sysdeps/i386/dl-machine.h (dl_platform_init) [IS_IN (rtld)]:
31         Only call init_cpu_features.
32         [!IS_IN (rtld)]: Only set GLRO(dl_platform) to NULL if needed.
33         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
34         * sysdeps/i386/dl-procinfo.h: Removed.
35         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Don't include
36         <sysdeps/i386/dl-procinfo.h> nor <ldsodefs.h>.  Include
37         <sysdeps/x86/dl-procinfo.h>.
38         (_dl_procinfo): Replace _DL_HWCAP_COUNT with 32.
39         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h [!IS_IN (ldconfig)]:
40         Include <sysdeps/x86/dl-procinfo.h> instead of
41          <sysdeps/generic/dl-procinfo.h>.
42         * sysdeps/x86/cpu-features.c: Include <dl-hwcap.h>.
43         (init_cpu_features): Set dl_platform, dl_hwcap and dl_hwcap_mask.
44         * sysdeps/x86/cpu-features.h (bit_cpu_LZCNT): New.
45         (bit_cpu_MOVBE): Likewise.
46         (bit_cpu_BMI1): Likewise.
47         (bit_cpu_BMI2): Likewise.
48         (index_cpu_BMI1): Likewise.
49         (index_cpu_BMI2): Likewise.
50         (index_cpu_LZCNT): Likewise.
51         (index_cpu_MOVBE): Likewise.
52         (index_cpu_POPCNT): Likewise.
53         (reg_BMI1): Likewise.
54         (reg_BMI2): Likewise.
55         (reg_LZCNT): Likewise.
56         (reg_MOVBE): Likewise.
57         (reg_POPCNT): Likewise.
58         * sysdeps/x86/dl-hwcap.h: New file.
59         * sysdeps/x86/dl-procinfo.h: Likewise.
60         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): New.
61         (_dl_x86_platforms): Likewise.
62
63 2017-05-03  DJ Delorie  <dj@redhat.com>
64
65         [BZ #21411]
66         * malloc/malloc.c: Tweak realloc/MREMAP comment to be more accurate.
67
68 2017-05-03  Phil Blundell  <pb@pbcl.net>
69
70         * inet/netinet/in.h (struct ip_mreq_source): Correct misplaced
71         comments.
72
73 2017-05-03  Carlos O'Donell  <carlos@redhat.com>
74
75         [BZ #20116]
76         * nptl/pthread_create.c: Expand comments to describe
77         semaphore-like and mutex-like uses of PD->lock.
78
79 2017-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
80
81         * sysdeps/unix/sysv/linux/epoll_wait.c: New file.
82         * sysdeps/unix/sysv/linux/generic/epoll_wait.c: Remove file.
83         * sysdeps/unix/sysv/linux/syscalls.list: Remove epoll_wait from
84         auto-generation list.
85         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
86         epoll_wait.
87         * sysdeps/unix/sysv/linux/generic/Makefile (sysdep_routines):
88         Remove epoll_wait.
89
90         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Add
91         osf_select.
92         * sysdeps/unix/sysv/linux/alpha/select.c: New file.
93         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove select and
94         osf_select from auto-generation list.
95         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
96         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
97         * sysdeps/unix/sysv/linux/generic/select.c: Remove file.
98         * sysdeps/unix/sysv/linux/select.c: New file.
99
100         * sysdeps/unix/sysv/linux/generic/poll.c: Remove file.
101         * sysdeps/unix/sysv/linux/poll.c: New file.
102         * sysdeps/unix/sysv/linux/syscalls.list: Remove poll from
103         auto-generation list.
104
105 2017-05-03  Joseph Myers  <joseph@codesourcery.com>
106
107         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDRDM):
108         New macro.
109
110 2017-05-02  Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
111
112         [BZ #21179]
113         * sysdeps/sparc/sparc64/dl-machine.h: Handle R_SPARC_DISP64 and
114         R_SPARC_REGISTER relocations.
115
116 2017-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
117
118         * include/unistd.h (__pread): Add libc_hidden_proto.
119         (__pread64): Likewise.
120         (__pwrite): Likewise.
121         * sysdeps/unix/sysv/linux/microblaze/localplt.data [libc.so]
122         (__pread64): Remove.
123         * sysdeps/unix/sysv/linux/pread.c (__pread64): Add libc_hidden_weak.
124         * sysdeps/unix/sysv/linux/pread64.c (__pread64): Likewise.
125         * sysdeps/unix/sysv/linux/pwrite.c (__pwrite): Likewise.
126
127 2017-05-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
128
129         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
130
131 2017-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
132
133         * nptl/tst-cancel4-common.c: Use libsupport.
134         * nptl/tst-cancel4-common.h: Likewise.
135         * nptl/tst-cancel4.c (tf_read): Likewise.
136         (tf_readv): Likewise.
137         (tf_write): Likewise.
138         (tf_writev): Likewise.
139         (tf_sleep): Likewise.
140         (tf_usleep): Likewise.
141         (tf_nanosleep): Likewise.
142         (tf_select): Likewise.
143         (tf_pselect): Likewise.
144         (tf_poll): Likewise.
145         (tf_ppoll): Likewise.
146         (tf_wait): Likewise.
147         (tf_waitpid): Likewise.
148         (tf_waitid): Likewise.
149         (tf_sigpause): Likewise.
150         (tf_sigsuspend): Likewise.
151         (tf_sigwait): Likewise.
152         (tf_sigwaitinfo): Likewise.
153         (tf_sigtimedwait): Likewise.
154         (tf_pause): Likewise.
155         (tf_accept): Likewise.
156         (tf_send): Likewise.
157         (tf_recv): Likewise.
158         (tf_recvfrom): Likewise.
159         (tf_recvmsg): Likewise.
160         (tf_open): Likewise.
161         (tf_close): Likewise.
162         (tf_pread): Likewise.
163         (tf_pwrite): Likewise.
164         (tf_preadv): Likewise.
165         (tf_pwritev): Likewise.
166         (tf_fsync): Likewise.
167         (tf_fdatasync): Likewise.
168         (tf_msync): Likewise.
169         (tf_sendto): Likewise.
170         (tf_sendmsg): Likewise.
171         (tf_creat): Likewise.
172         (tf_connect): Likewise.
173         (tf_tcdrain): Likewise.
174         (tf_msgrcv): Likewise.
175         (tf_msgsnd): Likewise.
176         * nptl/tst-cancel4_1.c (tf_sendmmsg): Likewise.
177         * nptl/tst-cancel4_2.c (tf_recvmmsg): Likewise.
178
179         * misc/tst-preadvwritev-common.c (do_prepare): Use libsupport
180         expected arguments.
181         (do_test): Adapt to use libsupport.
182
183 2017-05-01  Joseph Myers  <joseph@codesourcery.com>
184
185         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_CONNECT): New macro.
186
187         * sysdeps/unix/sysv/linux/bits/socket.h (PF_SMC): New macro.
188         (PF_MAX): Set to 44.
189         (AF_SMC): New macro.
190
191         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
192         kernel version to 4.11.
193
194 2017-04-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
195
196         [BZ #21280]
197         * sysdeps/powerpc/power7/fpu/s_logbl.c (__logbl): Ignore the
198         signal of subnormals and adjust the exponent of power of 2 down
199         when low part has opposite sign.
200
201 2017-04-28  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
202
203         * sysdeps/powerpc/powerpc64le/Implies: New file.
204         * sysdeps/powerpc/powerpc64le/fpu/Implies: New file.
205         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: New file.
206         * sysdeps/powerpc/powerpc64le/multiarch/Implies: New file.
207         * sysdeps/powerpc/powerpc64le/power7/Implies: New file.
208         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: New file.
209         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: New file.
210         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: New file.
211         * sysdeps/powerpc/powerpc64le/power8/Implies: New file.
212         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: New file.
213         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: New file.
214         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: New file.
215         * sysdeps/powerpc/powerpc64le/power9/Implies: New file.
216         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: New file.
217         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: New file.
218         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: New file.
219         * sysdeps/powerpc/preconfigure: New file.
220         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: New file.
221         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: New file.
222
223 2017-04-28  Joseph Myers  <joseph@codesourcery.com>
224
225         * conform/data/semaphore.h-data [XOPEN2K] (time.h): Allow header
226         inclusion.
227         * conform/Makefile (test-xfail-XOPEN2K/semaphore.h/conform):
228         Remove.
229
230 2017-04-27  Joseph Myers  <joseph@codesourcery.com>
231
232         * conform/GlibcConform.pm (XPG4): Rename standard to XPG42.
233         (XPG3): Rename standard to XPG4.
234         * conform/Makefile: Likewise.
235         * conform/list-header-symbols.pl: Likewise.
236         * conform/data/aio.h-data: Likewise.
237         * conform/data/arpa/inet.h-data: Likewise.
238         * conform/data/complex.h-data: Likewise.
239         * conform/data/ctype.h-data: Likewise.
240         * conform/data/dlfcn.h-data: Likewise.
241         * conform/data/fcntl.h-data: Likewise.
242         * conform/data/fenv.h-data: Likewise.
243         * conform/data/float.h-data: Likewise.
244         * conform/data/fmtmsg.h-data: Likewise.
245         * conform/data/ftw.h-data: Likewise.
246         * conform/data/grp.h-data: Likewise.
247         * conform/data/inttypes.h-data: Likewise.
248         * conform/data/iso646.h-data: Likewise.
249         * conform/data/langinfo.h-data: Likewise.
250         * conform/data/libgen.h-data: Likewise.
251         * conform/data/limits.h-data: Likewise.
252         * conform/data/locale.h-data: Likewise.
253         * conform/data/math.h-data: Likewise.
254         * conform/data/mqueue.h-data: Likewise.
255         * conform/data/ndbm.h-data: Likewise.
256         * conform/data/net/if.h-data: Likewise.
257         * conform/data/netdb.h-data: Likewise.
258         * conform/data/netinet/in.h-data: Likewise.
259         * conform/data/poll.h-data: Likewise.
260         * conform/data/pthread.h-data: Likewise.
261         * conform/data/pwd.h-data: Likewise.
262         * conform/data/sched.h-data: Likewise.
263         * conform/data/search.h-data: Likewise.
264         * conform/data/semaphore.h-data: Likewise.
265         * conform/data/signal.h-data: Likewise.
266         * conform/data/spawn.h-data: Likewise.
267         * conform/data/stdbool.h-data: Likewise.
268         * conform/data/stdint.h-data: Likewise.
269         * conform/data/stdio.h-data: Likewise.
270         * conform/data/stdlib.h-data: Likewise.
271         * conform/data/string.h-data: Likewise.
272         * conform/data/strings.h-data: Likewise.
273         * conform/data/stropts.h-data: Likewise.
274         * conform/data/sys/mman.h-data: Likewise.
275         * conform/data/sys/resource.h-data: Likewise.
276         * conform/data/sys/select.h-data: Likewise.
277         * conform/data/sys/socket.h-data: Likewise.
278         * conform/data/sys/stat.h-data: Likewise.
279         * conform/data/sys/statvfs.h-data: Likewise.
280         * conform/data/sys/time.h-data: Likewise.
281         * conform/data/sys/timeb.h-data: Likewise.
282         * conform/data/sys/types.h-data: Likewise.
283         * conform/data/sys/uio.h-data: Likewise.
284         * conform/data/sys/un.h-data: Likewise.
285         * conform/data/sys/wait.h-data: Likewise.
286         * conform/data/syslog.h-data: Likewise.
287         * conform/data/termios.h-data: Likewise.
288         * conform/data/tgmath.h-data: Likewise.
289         * conform/data/time.h-data: Likewise.
290         * conform/data/ucontext.h-data: Likewise.
291         * conform/data/unistd.h-data: Likewise.
292         * conform/data/utmpx.h-data: Likewise.
293         * conform/data/varargs.h-data: Likewise.
294         * conform/data/wchar.h-data: Likewise.
295         * conform/data/wctype.h-data: Likewise.
296
297 2017-04-26  Joseph Myers  <joseph@codesourcery.com>
298
299         * scripts/build-many-glibcs.py (Context.checkout): Default gcc
300         version to 7 branch.
301
302 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
303
304         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Add
305         earlyclobber to output operand of sqrt insn.
306         (__ieee754_sqrtf): Ditto.
307
308 2017-04-25  Joseph Myers  <joseph@codesourcery.com>
309
310         [BZ #21426]
311         * misc/bits/types/struct_iovec.h: New file.
312         * misc/Makefile (headers): Add bits/types/struct_iovec.h.
313         * include/bits/types/struct_iovec.h: New file.
314         * bits/uio.h (struct iovec): Replace by inclusion of
315         <bits/types/struct_iovec.h>.
316         * sysdeps/unix/sysv/linux/bits/uio.h (struct iovec): Likewise.
317         * socket/sys/socket.h: Include <bits/types/struct_iovec.h> instead
318         of <sys/uio.h>.
319         * nptl/tst-cancel4.c: Include <sys/uio.h>
320         * posix/test-errno.c: Likewise.
321         * support/resolv_test.c: Likewise.
322         * conform/Makefile (test-xfail-POSIX2008/arpa/inet.h/conform):
323         Remove.
324         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
325         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
326         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
327
328         * conform/data/sys/socket.h-data (*_t): Allow.
329
330 2017-04-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
331
332         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Remove ununsed
333         assignment.
334
335 2017-04-24  Daurnimator  <quae@daurnimator.com>
336             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
337
338         [BZ #21340]
339         * posix/Makefile (tests): Add tst-posix_spawn-setsid to list of tests.
340         * posix/spawn.h: define POSIX_SPAWN_SETSID flag.
341         * posix/spawnattr_setflags.c (ALL_FLAGS): Add POSIX_SPAWN_SETSID to
342         valid flags.
343         * posix/tst-posix_spawn-setsid.c: Add test for POSIX_SPAWN_SETSID.
344         * sysdeps/mach/hurd/spawni.c (__spawni): Implementation of
345         POSIX_SPAWN_SETSID.
346         * sysdeps/posix/spawni.c (__spawni): Likewise.
347         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
348         * NEWS: Add note about POSIX_SPAWN_SETSID support.
349
350 2017-04-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
351
352         * sysdeps/generic/math_private.h: Move the declaration of many
353         functions to sysdeps/generic/math_private_calls.h.
354         * sysdeps/generic/math_private_calls.h: New file with the
355         declarations of the functions removed from math_private.h
356         macroized by floating-point type.
357
358 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
359
360         * sysdeps/s390/multiarch/utf8-utf32-z9.c: New File.
361         * sysdeps/s390/utf8-utf32-z9.c: Move ifunc resolvers to multiarch
362         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|CU|VX].
363         (HAVE_FROM_C, HAVE_FROM_CU, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX,
364         FROM_LOOP_DEFAULT, FROM_LOOP_C, FROM_LOOP_CU, FROM_LOOP_VX,
365         TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX): New Define.
366
367 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
368
369         * sysdeps/s390/multiarch/utf16-utf32-z9.c: New File.
370         * sysdeps/s390/utf16-utf32-z9.c: Move ifunc resolvers to multiarch
371         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|VX].
372         (HAVE_FROM_C, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX, FROM_LOOP_DEFAULT,
373         FROM_LOOP_C, FROM_LOOP_VX, TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX):
374         New Define.
375
376 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
377
378         * sysdeps/s390/multiarch/utf8-utf16-z9.c: New File.
379         * sysdeps/s390/utf8-utf16-z9.c: Move ifunc resolvers to multiarch
380         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|CU|VX].
381         (HAVE_FROM_C, HAVE_FROM_CU, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX,
382         FROM_LOOP_DEFAULT, FROM_LOOP_C, FROM_LOOP_CU, FROM_LOOP_VX,
383         TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX): New Define.
384
385 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
386
387         * sysdeps/s390/multiarch/ifunc-resolve.h
388         (s390_libc_ifunc_expr_init, s390_libc_ifunc_expr): New Define.
389         * sysdeps/s390/multiarch/8bit-generic.c
390         (__to_generic, __from_generic): Use s390_libc_ifunc_expr to
391         define ifunc resolvers.
392
393 2017-04-21  Florian Weimer  <fweimer@redhat.com>
394
395         [BZ #20424]
396         * manual/memory.texi (Replacing malloc): New section.
397         (Allocating Storage For Program Data): Reference it.
398         (The GNU Allocator): Likewise.
399
400 2017-04-20  Joseph Myers  <joseph@codesourcery.com>
401
402         * stdlib/Versions (__strtod_internal): List explicitly, not as
403         wildcard.
404         (__strtof_internal): Likewise.
405         (__strtold_internal): Likewise.
406         (__strtol_internal): Likewise.
407         (__strtoll_internal): Likewise.
408         (__strtoul_internal): Likewise.
409         (__strtoull_internal): Likewise.
410         (__strtoq_internal): Likewise.
411         (__strtouq_internal): Likewise.
412         * wcsmbs/Versions (__wcstod_internal): Likewise.
413         (__wcstof_internal): Likewise.
414         (__wcstold_internal): Likewise.
415         (__wcstol_internal): Likewise.
416         (__wcstoll_internal): Likewise.
417         (__wcstoul_internal): Likewise.
418         (__wcstoull_internal): Likewise.
419
420 2017-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
421
422         * io/sys/stat.h: Use __USE_XOPEN2K8 insteaf of __USE_ATFILE for
423         struct timespec definition.
424
425 2017-04-19  Florian Weimer  <fweimer@redhat.com>
426
427         * resolv/nss_dns/dns-host.c (getanswer_r): Fix parentheses.
428
429 2017-04-19  Florian Weimer  <fweimer@redhat.com>
430
431         * inet/rcmd.c (rresvport_af): Fix typo in comment.
432         * inet/rexec.c (rexec_af): Likewise.
433
434 2017-04-19  Zack Weinberg  <zackw@panix.com>
435
436         * posix/tst-mmap-offset.c: Include stdint.h.
437         * resolv/tst-ns_name_compress.c: Include string.h.
438         * resolv/tst-resolv-edns.c: Include resolv.h.
439
440 2017-04-19  Florian Weimer  <fweimer@redhat.com>
441
442         * resolv/gai_suspend.c (gai_suspend): Replace __builtin_expect
443         with __glibc_likely.
444         * resolv/nss_dns/dns-host.c (getanswer_r, gaih_getanswer_slice):
445         Replace __builtin_expect with __glibc_unlikely.
446         * resolv/res_init.c (__res_vinit): Likewise.
447         * resolv/res_query.c (__libc_res_nquery): Likewise.
448         * resolv/res_send.c (__libc_res_nsend): Likewise.
449
450 2017-04-19  Florian Weimer  <fweimer@redhat.com>
451
452         [BZ #15722]
453         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Create socket
454         with SOCK_CLOEXEC.
455         * resolv/res_send.c (send_vc, reopen): Likewise.
456         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
457         * sysdeps/unix/sysv/linux/check_native.c (__check_native):
458         Likewise.
459         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_open): Likewise.
460         * inet/rexec.c (rexec_af): Add comment.
461         * inet/rcmd.c (rresvport_af): Likewise.
462
463 2017-04-19  Florian Weimer  <fweimer@redhat.com>
464
465         * nscd/connections.c (have_accept4): Removed definition.
466         (nscd_run_worker, main_loop_poll, main_loop_epolll): Assume that
467         accept4 works.
468         * manual/install.texi (Linux): Require at least kernel 3.2.18 for
469         ia64 because that was the first version with accept4 support.
470         * support/Makefile (libsupport-routines): Add xaccept4.
471         * support/xsocket.h (xaccept4): Declare.
472         * support/xaccept4.c: New file.
473         * socket/tst-accept4.c: New file.
474         * socket/Makefile (tests): Add tst-accept4.
475         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Remove
476         definition.
477         * sysdeps/nacl/kernel-features.h (__ASSUME_ACCEPT4): Remove
478         comment.
479         * sysdeps/unix/sysv/linux/accept4.c: Assume that an accept4
480         implementation is available.
481         (accept4): Use the system call if available, otherwise use the
482         socket call.
483         * sysdeps/unix/sysv/linux/ia64/configure.ac (arch_minimum_kernel):
484         Set to 3.2.18.
485         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
486         (__ASSUME_ACCEPT4_SYSCALL, __ASSUME_ACCEPT4): Do not undefine.
487         accept4 is unconditionally available in later 3.2 stable kernels.
488         (__ASSUME_ACCEPT4_SYSCALL): Define.
489         * sysdeps/unix/sysv/linux/kernel-features.h
490         (__ASSUME_ACCEPT4_SOCKETCALL, __ASSUME_ACCEPT4): Remove
491         definitions.
492         * sysdeps/unix/sysv/linux/i386/kernel-features.h
493         (__ASSUME_ACCEPT4_SYSCALL): Define for Linux 4.3 or later.
494
495 2017-04-18  Joseph Myers  <joseph@codesourcery.com>
496
497         * conform/Makefile (tests-special): Do not make addition of
498         $(conformtest-header-tests) conditional on [$(cross-compiling) = no].
499         (generated): Do not make addition of $(conformtest-header-base)
500         conditional on [$(cross-compiling) = no].
501
502         [BZ #21267]
503         * sysdeps/unix/sysv/linux/bits/socket.h (IOCSIZE_MASK): Undefine
504         if defined by <asm/socket.h> and not previously defined.
505         (IOCSIZE_SHIFT): Likewise.
506         (IOC_IN): Likewise.
507         (IOC_INOUT): Likewise.
508         (IOC_OUT): Likewise.
509
510 2017-04-18  H.J. Lu  <hongjiu.lu@intel.com>
511
512         [BZ #21396]
513         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
514         Prefer_No_AVX512 if AVX512ER isn't available.
515         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_No_AVX512): New.
516         (index_arch_Prefer_No_AVX512): Likewise.
517         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Don't use
518         AVX512 version if Prefer_No_AVX512 is set.
519         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk):
520         Likewise.
521         * sysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Likewise.
522         * sysdeps/x86_64/multiarch/memmove_chk.S (__memmove_chk):
523         Likewise.
524         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
525         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk):
526         Likewise.
527         * sysdeps/x86_64/multiarch/memset.S (memset): Likewise.
528         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk):
529         Likewise.
530
531 2017-04-18  H.J. Lu  <hongjiu.lu@intel.com>
532
533         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
534         Prefer_No_VZEROUPPER if AVX512ER is available.
535         * sysdeps/x86/cpu-features.h
536         (bit_cpu_AVX512PF): New.
537         (bit_cpu_AVX512ER): Likewise.
538         (bit_cpu_AVX512CD): Likewise.
539         (bit_cpu_AVX512BW): Likewise.
540         (bit_cpu_AVX512VL): Likewise.
541         (index_cpu_AVX512PF): Likewise.
542         (index_cpu_AVX512ER): Likewise.
543         (index_cpu_AVX512CD): Likewise.
544         (index_cpu_AVX512BW): Likewise.
545         (index_cpu_AVX512VL): Likewise.
546         (reg_AVX512PF): Likewise.
547         (reg_AVX512ER): Likewise.
548         (reg_AVX512CD): Likewise.
549         (reg_AVX512BW): Likewise.
550         (reg_AVX512VL): Likewise.
551
552 2017-04-18  Florian Weimer  <fweimer@redhat.com>
553
554         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Assume that
555         O_CLOEXEC is defined.
556         * include/fcntl.h (__have_o_cloexec): Remove declaration.
557         * io/Makefile (aux): Remove.
558         * io/have_o_cloexec.c: Remove file.
559         * libio/fileops.c (_IO_new_file_fopen): Assume that O_CLOEXEC is
560         defined and works.
561         * libio/iopopen.c (_IO_new_proc_open): Assume that O_CLOEXEC is
562         defined.
563         * login/utmp_file.c (O_flags): Remove definition.
564         (setutent_file): Use O_CLOEXEC instead of O_flags.  Assume that
565         O_CLOEXEC works.
566         (pututline_file): Likewise.
567         * malloc/mtrace.c: Assume that O_CLOEXEC works.
568         * nis/nss_compat/compat-grp.c (__compat_have_cloexec): Remove
569         definition.
570         (internal_setgrent): Assume that O_CLOEXEC works.
571         * nis/nss_compat/compat-initgroups.c (__compat_have_cloexec):
572         Remove definition.
573         (internal_setgrent): Assume that O_CLOEXEC works.
574         * nis/nss_compat/compat-pwd.c (__compat_have_cloexec): Remove
575         definition.
576         (internal_setpwent): Assume that O_CLOEXEC works.
577         * nis/nss_compat/compat-spwd.c (__compat_have_cloexec): Remove
578         definition.
579         (internal_setspent): Assume that O_CLOEXEC works.
580         * nscd/connections.c (EXTRA_O_FLAGS): Remove definition.
581         (nscd_init): Use O_CLOEXEC instead of EXTRA_O_FLAGS.  Assume that
582         O_CLOEXEC is defined and works.
583         * nss/Makefile (libnss_files-routines): Remove
584         files-have_o_cloexec.
585         * nss/nss_db/db-open.c (internal_setent): Assume that O_CLOEXEC is
586         defined.
587         * nss/nss_files/files-XXX.c (internal_setent): Assume that
588         O_CLOEXEC is defined and works.
589         * nss/nss_files/files-alias.c (internal_setent): Likewise.
590         * nss/nss_files/files-have_o_cloexec.c: Remove.
591         * posix/wordexp.c (exec_comm_child): Assume that O_CLOEXEC is
592         defined.
593         * shadow/lckpwdf.c (__lckpwdf): Assume that O_CLOEXEC is defined
594         and works.
595         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_O_CLOEXEC): Remove
596         definition.
597         * sysdeps/nacl/kernel-features.h (__ASSUME_O_CLOEXEC): Likewise.
598         * sysdeps/posix/getcwd.c (__getcwd): Assume that O_CLOEXEC works.
599         * sysdeps/posix/opendir.c (opendir_oflags): Turn into enum constant.
600         (__opendirat, __opendir): Adjust opendir_oflags call.
601         (check_have_o_cloexec): Remove.
602         (__alloc_dir): Assume that O_CLOEXEC is defined and works.
603         * sysdeps/posix/shm_open.c (shm_open): Assume that O_CLOEXEC is
604         defined.
605         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_O_CLOEXEC):
606         Remove definition.
607
608 2017-04-18  Florian Weimer  <fweimer@redhat.com>
609
610         * include/unistd.h (__have_dup3): Remove declaration.
611         * libio/freopen.c (freopen): Assume that O_CLOEXEC is defined and
612         dup3 is available.
613         * libio/freopen64.c (freopen64): Likewise.
614         * socket/Makefile (aux): Remove have_sock_cloexec.
615         * socket/have_sock_cloexec.c: Remove file.
616         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Remove
617         definition.
618         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_DUP3):
619         Likewise.
620         * sysdeps/nacl/kernel-features.h: Update comment.
621
622 2017-04-18  Florian Weimer  <fweimer@redhat.com>
623
624         * include/unistd.h (__have_pipe2): Remove declaration.
625         * socket/have_sock_cloexec.c (__have_pipe2): Remove definition.
626         * libio/iopopen.c (_IO_new_proc_open): Assume that pipe2 is
627         available.
628         * posix/wordexp.c (exec_comm_child, exec_comm): Likewise.
629         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PIPE2):
630         Remove definition.
631
632 2017-04-18  Florian Weimer  <fweimer@redhat.com>
633
634         * malloc/malloc.c (cfree): Turn into compat symbol.
635         (__cfree): Remove alias.
636         * stdlib/stdlib.h (cfree): Remove declaration.
637         * malloc/malloc.h (cfree): Likewise.
638         * manual/memory.texi (Freeing after Malloc): Remove cfree.
639         * malloc/Versions (GLIBC_2.26): Add.
640
641 2017-04-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
642
643         * sysdeps/powerpc/powerpc64/multiarch/Makefile
644         (sysdep_routines): Add strrchr-power8.
645         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
646         (strrchr): Add __strrchr_power8 to list of strrchr functions.
647         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: New file.
648         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c
649         (strrchr): Add __strrchr_power8 to ifunc list.
650         * sysdeps/powerpc/powerpc64/power8/strrchr.S: New file.
651
652 2017-04-17  Rabin Vincent  <rabinv@axis.com>
653
654         [BZ #21357]
655         * sysdeps/generic/unwind-dw2-fde.c (__deregister_frame_info_bases):
656         Call free() outside of mutex.
657
658 2017-04-13  Florian Weimer  <fweimer@redhat.com>
659
660         * csu/check_fds.c (__libc_check_standard_fds): Assume O_NOFOLLOW
661         is defined.
662         * elf/rtld.c (process_envvars): Likewise.
663         * sysdeps/posix/shm_open.c (shm_open): Likewise.
664         * elf/dl-profile.c (EXTRA_FLAGS): Remove definition.  Use
665         O_NOFOLLOW directly.
666         * gmon/gmon.c (O_NOFOLLOW): Remove definition.
667
668 2017-04-13  Florian Weimer  <fweimer@redhat.com>
669
670         [BZ #21369]
671         Remove EDNS fallback.
672         * resolv/res_query.c (__libc_res_nquery): Remove RES_F_EDNS0ERR
673         handling.
674         * resolv/res_send.c (send_dg): Likewise.
675         * resolv/tst-resolv-edns.c (response): Handle "formerr." and
676         "tcp." prefixes.
677         (do_test): Send a "formerr."-prefixed query in an attempt to
678         trigger EDNS fallback.
679
680 2017-04-13  Florian Weimer  <fweimer@redhat.com>
681
682         [BZ #21361]
683         Limit EDNS buffer size to 1200 bytes.
684         * include/resolv.h (__res_nopt): Remove declaration.
685         * resolv/Makefile (tests): tst-resolv-edns.
686         (tst-resolv-edns): Link with -lresolv, -lpthread.
687         * resolv/res_mkquery.c (__res_ntop): Limit EDNS buffer size to the
688         interval [512, 1200].
689         * resolv/res_query.c (__libc_res_nquery): Use 1200 buffer size if
690         we can resize the buffer.
691         * resolv/resolv-internal.h (RESOLV_EDNS_BUFFER_SIZE): Define.
692         (__res_nopt): Declare.
693         * resolv/tst-resolv-edns.c: New file.
694         * resolv/resolv_test.h (struct resolv_edns_info): Define.
695         (struct resolv_response_context): Add edns member.
696         * resolv/resolv_test.c (struct query_info): Add edns member.
697         (parse_query): Extract EDNS information from the query.
698         (server_thread_udp_process_one): Propagate EDNS data.
699         (server_thread_tcp_client): Likewise.
700
701 2017-04-13  Florian Weimer  <fweimer@redhat.com>
702
703         [BZ #21359]
704         * resolv/ns_name.c (ns_name_pack): Do not require an additional
705         byte in the destination buffer.  Avoid out-of-bounds pointer
706         arithmetic.
707         * resolv/Makefile (tests): Add tst-ns_name_compress.
708         (tst-ns_name_compress): Link with -lresolv.
709         * resolv/tst-ns_name_compress.c: New file.
710         * resolv/tst-resolv-basic.c (LONG_NAME): Define.
711         (response): Recognize LONG_NAME.
712         (do_test): Add LONG_NAME tests.
713         * resolv/tst-ns_name.c (run_test_case): Fix expected data check
714         for ns_name_unpack.  Add tests for ns_name_pton and
715         ns_name_compress.
716
717 2017-04-13  Florian Weimer  <fweimer@redhat.com>
718
719         * resolv/resolv.h (RES_EXHAUSTIVE, p_section, res_npquery)
720         (res_nisourserver): Remove definition.
721         (p_section, res_npquery, res_nisourserver): Remove declaration.
722         (RES_F_VC, RES_F_CONN, RES_F_EDNS0ERR): Move ...
723         * resolv/resolv-internal.h (RES_F_VC, RES_F_CONN, RES_F_EDNS0ERR):
724         ... here.
725         * resolv/res_send.c: Include <resolv/resolv-internal.h> instead of
726         <resolv.h>.
727         * resolv/res_query.c: Likewise.
728         * resolv/res_debug.c (p_section): Define as static.
729
730 2017-04-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
731
732         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines): Add
733         strncat-power8.
734         * sysdeps/powerpc/powerpc64/multiarch/strncat.c (strncat): Add
735         __strncat_power8 to ifunc list.
736         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
737         (strncat): Add __strncat_power8 to list of strncat functions.
738         * sysdeps/powerpc/powerpc64/multiarch/strncat-power8.c: New file.
739
740 2017-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
741
742         [BZ #21270]
743         * posix/tst-mmap-offset.c (do_prepare): New function.
744         (do_test): Rename to do_test_bz18877 and use FAIL_RET.
745         (do_test_bz21270): New function.
746         * sysdeps/unix/sysv/linux/aarch64/mmap.c: Remove file.
747         * sysdeps/unix/sysv/linux/arm/mmap.c: Remove file.
748         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c: Likewise.
749         * sysdeps/unix/sysv/linux/hppa/mmap.c: Likewise.
750         * sysdeps/unix/sysv/linux/i386/mmap.c: Likewise.
751         * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
752         * sysdeps/unix/sysv/linux/m68k/mmap64.c: Likewise.
753         * sysdeps/unix/sysv/linux/microblaze/mmap.S: Likewise.
754         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: Likewise.
755         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: Likewise.
756         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: Likewise.
757         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
758         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
759         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
760         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: Likewise.
761         * sysdeps/unix/sysv/linux/wordsize-64/mmap64.c: Likewise.
762         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
763         * sysdeps/unix/sysv/linux/mmap_internal.h: New file.
764         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h: Likewise.
765         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap_internal.h: Likewise.
766         * sysdeps/unix/sysv/linux/s390/mmap_internal.h: Likewise.
767         * sysdeps/unix/sysv/linux/x86_64/64/mmap_internal.h: Likewise.
768         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Remove mmap
769         from auto-generation list.
770         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list: Likewise.
771         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
772         * sysdeps/unix/sysv/linux/mmap.c: New file.
773         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Add check for invalid
774         offsets and support for mmap2 syscall.
775
776         * posix/globtest.sh: Add cleanup routine on trap 0.
777
778 2017-04-11  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
779
780         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Define the
781         implementation-specific function name and remove unneeded
782         macros definition.
783         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
784         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
785         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Set a default function
786         name if not defined and pass as parameter to macros accordingly.
787         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
788         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
789
790         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Define the
791         implementation-specific function name and remove unneeded
792         macros definition.
793         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
794         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
795         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
796         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
797         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
798         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
799         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Set a default function
800         name if not defined and pass as parameter to macros accordingly.
801         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
802         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
803         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
804         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
805         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
806         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.
807
808         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Define the
809         implementation-specific function name and remove unneeded macros
810         definition.
811         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
812         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
813         * sysdeps/powerpc/powerpc64/power7/memchr.S: Set a default
814         function name if not defined and pass as parameter to macros
815         accordingly.
816         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
817         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Likewise.
818
819         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Define the
820         implementation-specific function name and remove unneeded macros
821         definition.
822         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
823         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
824         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
825         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
826         * sysdeps/powerpc/powerpc64/memset.S: Set a default function name if
827         not defined and pass as parameter to macros accordingly.
828         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
829         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
830         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
831         * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
832
833         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Define the
834         strcasestr implementation name and remove unneeded macros definition.
835         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Define
836         strstr implementation name and remove unneeded macros definition.
837         * sysdeps/powerpc/powerpc64/power7/strstr.S: Set a default function
838         name if not defined and pass as parameter to macros accordingly.
839         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Likewise.
840
841         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Define the
842         implementation-specific function name and remove unneeded macros
843         definition.
844         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
845         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
846         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
847         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
848         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
849         * sysdeps/powerpc/powerpc64/power7/strchr.S: Set a default
850         function name if not defined and pass as parameter to macros
851         accordingly.
852         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Likewise.
853         * sysdeps/powerpc/powerpc64/power7/strrchr.S: Likewise.
854         * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
855         * sysdeps/powerpc/powerpc64/strchr.S: Likewise.
856
857         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Define
858         the strlen implementation name and remove unneeded macros definition.
859         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
860         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
861         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Define
862         the strnlen implementation name and remove unneeded macros definition.
863         * sysdeps/powerpc/powerpc64/power7/strlen.S: Set a default function
864         name if not defined and pass as parameter to macros accordingly.
865         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Likewise.
866         * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
867         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
868
869         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Define
870         the implementation-specific function name and remove unneeded
871         macros definition.
872         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
873         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S Likewise.
874         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
875         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
876         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
877         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
878         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
879         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
880         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
881         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Set a default function
882         name if not defined and pass as parameter to macros accordingly.
883         * sysdeps/powerpc/powerpc64/power7/strcmp.S: Likewise.
884         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
885         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
886         * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
887         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Likewise.
888         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
889         * sysdeps/powerpc/powerpc64/strcmp.S: Likewise.
890         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
891
892         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Define the
893         implementation-specific function name and remove unneeded macros
894         definition.
895         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
896         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
897         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
898         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
899         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
900         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Set a default
901         function name if not defined.
902         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Likewise.
903         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
904
905 2017-04-11  Paul Clarke  <pc@us.ibm.com>
906
907         * elf/elf.h (AT_L1I_CACHESIZE, AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE,
908         AT_L1D_CACHEGEOMETRY, AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY,
909         AT_L3_CACHESIZE, AT_L3_CACHEGEOMETRY): New.  Add auxvec
910         identifiers from kernel arch/powerpc/include/uapi/asm/auxvec.h.
911
912 2017-04-11  Florian Weimer  <fweimer@redhat.com>
913             Zack Weinberg  <zackw@panix.com>
914
915         * manual/filesys.texi (Reading/Closing Directory): Mark readdir,
916         readdir64 as thread-safe.  Update warning about readdir_r.
917
918 2017-04-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
919
920         * sysdeps/unix/sysv/linux/x86/Implies: New file.
921         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Move to ...
922         * sysdeps/alpha/nptl/bits/pthreadtypes.h: ... here.
923         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Move to ...
924         * sysdeps/powerpc/nptl/bits/pthreadtypes.h: ... here.
925         * sysdeps/x86/bits/pthreadtypes.h: Move to ...
926         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
927
928 2017-04-10  H.J. Lu  <hongjiu.lu@intel.com>
929
930         * sysdeps/i386/dl-procinfo.c: Include
931         <sysdeps/x86/dl-procinfo.c>.
932         * sysdeps/x86_64/dl-procinfo.c: Likewise.
933         * sysdeps/x86/dl-procinfo.c: New file.
934
935 2017-04-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
936
937         * sysdeps/generic/math_private.h: Remove declarations of
938         many functions that are already declared in math.h.
939         * sysdeps/ieee754/ldbl-128/e_logl.c: Include math.h to get the
940         declaration for __frexpl.
941         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Include math.h to get
942         the declarations for __scalbnl and fabsl.
943
944 2017-04-09  Dmitry V. Levin  <ldv@altlinux.org>
945
946         [BZ #20831]
947         * elf/dl-map-segments.h (_dl_map_segments): Check for failure
948         of __mprotect to change protection on the excess portion
949         to disallow all access.
950
951 2017-04-07  H.J. Lu  <hongjiu.lu@intel.com>
952
953         * sysdeps/i386/fpu/fclrexcpt.c (__feclearexcept): Use
954         HAS_CPU_FEATURE to check for SSE.
955         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
956         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
957         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Likewise.
958         * sysdeps/i386/fpu/fegetmode.c (fegetmode): Likewise.
959         * sysdeps/i386/fpu/feholdexcpt.c (__feholdexcept): Likewise.
960         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Likewise.
961         * sysdeps/i386/fpu/fesetmode.c (fesetmode): Likewise.
962         * sysdeps/i386/fpu/fesetround.c (__fesetround): Likewise.
963         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
964         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
965         * sysdeps/i386/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
966         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
967         * sysdeps/i386/setfpucw.c (__setfpucw): Likewise.
968         * sysdeps/x86/cpu-features.h (bit_cpu_SSE): New.
969         (index_cpu_SSE): Likewise.
970         (reg_SSE): Likewise.
971
972 2017-04-07  Paul Eggert  <eggert@cs.ucla.edu>
973
974         * posix/getopt1.c: Include <config.h>, not "config.h".
975
976 2017-04-07  Zack Weinberg  <zackw@panix.com>
977
978         * posix/bits/getopt_core.h, posix/bits/getopt_ext.h
979         * posix/getopt.c, posix/getopt1.c, posix/getopt_int.h:
980         Mention in top-of-file boilerplate that these files are shared
981         with gnulib.
982         * posix/getopt.h, posix/bits/getopt_posix.h:
983         Mention in top-of-file boilerplate that these files are NOT shared
984         with gnulib, unlike the rest of the getopt implementation.
985
986         * posix/bits/getopt_core.h, posix/bits/getopt_ext.h:
987         New files, intended to be shared with gnulib.
988         * posix/bits/getopt_posix.h:
989         New file, not intended to be shared with gnulib.
990         * posix/getopt.h: Now just includes features.h,
991         bits/getopt_core.h, and bits/getopt_ext.h.  Will
992         no longer be shared with gnulib.
993         * include/bits/getopt_core.h, include/bits/getopt_ext.h
994         * include/bits/getopt_posix.h: New wrappers.
995         * posix/Makefile: Install new headers.
996         * posix/unistd.h, libio/stdio.h:
997         Include bits/getopt_posix.h instead of getopt.h.
998
999         * include/libc-symbols.h: For gnulib compatibility, define
1000         _GL_UNUSED, _GL_UNUSED_LABEL, _GL_ATTRIBUTE_PURE, and
1001         _GL_ATTRIBUTE_CONST.
1002         * posix/getopt.c (_getopt_initialize): Mark argc and argv
1003         parameters with _GL_UNUSED.
1004
1005         * posix/getopt.c: When used standalone, define __libc_use_alloca
1006         as always false and alloca to abort if called.
1007         (process_long_option): Rewrite handling of ambiguous long options
1008         to use a single boolean vector, not a linked list; use
1009         __libc_use_alloca to decide whether to allocate this using alloca.
1010         * posix/tst-getopt_long1.c: Adjust text of expected error message.
1011
1012         * posix/getopt.c (process_long_option): New function split out
1013         from _getopt_internal_r.
1014         (_getopt_internal_r): Replace both copies of the long-option
1015         processing code with calls to process_long_option.
1016         * posix/bug-getopt4.c (one_test): Print argv[0] in error messages.
1017         (do_test): Differentiate argv[0] in the two subtests.
1018
1019         * posix/getopt_int.h (_getopt_data): Remove __posixly_correct field.
1020         * posix/getopt.c (_getopt_internal_r): Move some initialization code...
1021         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
1022
1023         * posix/getopt.h: Add backup definition of __nonnull for
1024         consistency with gnulib.  Define __getopt_argv_const to const
1025         if not already defined.
1026         (getopt): Update doc comment from gnulib.  Prototype
1027         unconditionally.  Add __nonnull annotation.
1028         (__posix_getopt): Add __nonnull annotation.
1029         (getopt_long, getopt_long_only): Use __getopt_argv_const in
1030         prototypes for consistency with gnulib.  Add __nonnull
1031         annotations.
1032         * posix/getopt.c (_getopt_initialize, _getopt_internal_r)
1033         (getopt_internal): Change 'argv' argument to type 'char **'.
1034         Remove now-unnecessary casts.
1035         (getopt, __posix_getopt): Eliminate repetition with a macro.
1036         Cast 'argv' to 'char **' when calling _getopt_internal.
1037         * posix/getopt1.c (getopt_long, getopt_long_only):
1038         Use __getopt_argv_const for consistency with gnulib.
1039         Cast 'argv' to 'char **' when calling _getopt_internal.
1040         (_getopt_long_r, _getopt_long_only_r):
1041         Change 'argv' argument to type 'char **'.
1042         (main): Constify 'long_options'.
1043         * posix/getopt_int.h (getopt_internal, _getopt_internal_r)
1044         (_getopt_long_r, _getopt_long_only_r):
1045         Change 'argv' argument to type 'char **'.
1046
1047         * stdio-common/fxprintf.c (__fxprintf_nocancel): New function.
1048         (locked_vfxprintf): New helper function. Handle arbitrary
1049         multibyte strings, not just ASCII.
1050         * include/stdio.h: Declare __fxprintf_nocancel.
1051         * posix/getopt.c: When _LIBC is defined, define fprintf to
1052         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
1053         to _IO_funlockfile.  When neither _LIBC nor
1054         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
1055         funlockfile as no-ops.
1056         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks;
1057         the standalone error-printing code can now be used for libc as
1058         well.  Add an flockfile/funlockfile pair around one case where
1059         the error message is printed in several chunks.  Don't use fputc.
1060         * posix/tst-getopt-cancel.c: New test.
1061         * posix/Makefile: Run it.
1062
1063         * posix/getopt.c (_getopt_internal_r): Don't increment
1064         d->optind a second time when reporting ambiguous -W options.
1065
1066         * posix/getopt_int.h: Include getopt.h.
1067         Use impl-namespace names for all arguments to _getopt_internal and
1068         _getopt_internal_r.
1069         Declare __ordering enum outside the struct.
1070         Harmonize comments with gnulib.
1071         * posix/getopt1.c: Simplify #ifdeffage at top of file. Remove
1072         ELIDE_CODE logic entirely.  Move inclusion of stdlib.h to
1073         #ifdef TEST block and make unconditional.  Do not define NULL.
1074         * posix/getopt.c: Partial merge from gnulib, covering the
1075         initial includes and global declarations, commentary, and
1076         a couple of semantically-neutral code changes.
1077
1078         * posix/getopt.c, posix/getopt.h, posix/getopt1.c, posix/getopt_int.h:
1079         Use '...' instead of `...' for quotation marks inside
1080         comments and strings.
1081
1082         * config.h.in (USE_NONOPTION_FLAGS): Remove.
1083         * csu/init-first.c: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
1084         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1085         * posix/getopt_int.h: Likewise.
1086         * posix/getopt.c: Likewise. Also remove SWAP_FLAGS and the
1087         __libc_argc and __libc_argv externs, which were only used by
1088         #ifdef USE_NONOPTION_FLAGS blocks.
1089         * posix/getopt_init.c: Remove file.
1090         * posix/Makefile (routines): Remove getopt_init.
1091         * include/getopt.h: Don't declare __getopt_initialize_environment.
1092         * manual/getopt.texi: Remove mention of USE_NONOPTION_FLAGS in
1093         a comment.
1094
1095 2017-04-07  Florian Weimer  <fweimer@redhat.com>
1096
1097         * resolv/res_mkquery.c (res_nmkquery): Remove IQUERY support.
1098
1099 2017-04-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1100
1101         * sysdeps/sparc/sparc32/Makefile (libc.so-gnulib): New rule.
1102         * sysdeps/sparc/sparc32/sparcv8/udiv.S (.udiv): Make a strong_alias
1103         to __wrap_.udiv.
1104         * sysdeps/sparc/sparc32/sparcv9/udiv.S (.udiv): Likewise.
1105         * sysdeps/sparc/sparc32/udiv.S (.udiv): Likewise.
1106
1107         * sysdeps/i386/symbol-hacks.h: New file.
1108         * sysdeps/m68k/symbol-hacks.h: New file.
1109         * sysdeps/powerpc/powerpc32/symbol-hacks.h: New file.
1110         * sysdeps/s390/s390-32/symbol-hacks.h: New file.
1111         * sysdeps/unix/sysv/linux/i386/Makefile
1112         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
1113         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1114         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1115         * sysdeps/unix/sysv/linux/m68k/Makefile
1116         [$(subdir) = csu] (sysdep_routines): Likewise.
1117         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1118         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
1120         [$(subdir) = csu] (sysdep_routines): Likewise.
1121         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1122         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1123         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
1124         [$(subdir) = csu] (sysdep_routines): Likewise.
1125         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1126         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1127         * sysdeps/wordsize-32/Makefile: Remove file.
1128         * sysdeps/wordsize-32/symbol-hacks.h: Definitions move to ...
1129         * sysdeps/wordsize-32/divdi3-symbol-hacks.h: ... here.
1130
1131 2017-04-05  H.J. Lu  <hongjiu.lu@intel.com>
1132
1133         * elf/tst-dlopen-aout.c (TEST_FUNCTION): Removed.
1134         (TEST_FUNCTION_ARGV): New.
1135
1136 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1137
1138         * elf/next.c: Import support/test-driver.c instead of
1139         test-skeleton.c and delete TEST_FUNCTION macro definition.
1140         * elf/nodelete.c: Likewise.
1141         * elf/order2.c: Likewise.
1142         * elf/tst-_dl_addr_inside_object.c: Likewise.
1143         * elf/tst-addr1.c: Likewise.
1144         * elf/tst-align.c: Likewise.
1145         * elf/tst-align2.c: Likewise.
1146         * elf/tst-audit11.c: Likewise.
1147         * elf/tst-audit12.c: Likewise.
1148         * elf/tst-audit2.c: Likewise.
1149         * elf/tst-audit9.c: Likewise.
1150         * elf/tst-auxv.c: Likewise and define TEST_FUNCTION_ARGV macro.
1151         * elf/tst-deep1.c: Likewise.
1152         * elf/tst-dl-iter-static.c: Likewise.
1153         * elf/tst-dlmodcount.c: Likewise.
1154         * elf/tst-dlmopen1.c: Likewise.
1155         * elf/tst-dlmopen2.c: Likewise.
1156         * elf/tst-dlmopen3.c: Likewise.
1157         * elf/tst-dlopen-aout.c: Likewise.
1158         * elf/tst-dlopenrpath.c: Likewise.
1159         * elf/tst-dlsym-error.c: Likewise.
1160         * elf/tst-execstack-needed.c: Likewise.
1161         * elf/tst-execstack-prog.c: Likewise.
1162         * elf/tst-execstack.c: Likewise.
1163         * elf/tst-global1.c: Likewise.
1164         * elf/tst-gnu2-tls1.c: Likewise.
1165         * elf/tst-latepthread.c: Likewise.
1166         * elf/tst-leaks1.c: Likewise.
1167         * elf/tst-linkall-static.c: Likewise.
1168         (do_test): New function.
1169         * elf/tst-nodelete-opened.c: Likewise.
1170         * elf/tst-nodelete.cc: Likewise.
1171         * elf/tst-nodelete2.c: Likewise.
1172         * elf/tst-noload.c: Likewise.
1173         * elf/tst-null-argv.c: Likewise and define TEST_FUNCTION_ARGV marcro.
1174         * elf/tst-order-main.c: Likewise.
1175         * elf/tst-pathopt.c: Likewise.
1176         * elf/tst-pie2.c: Likewise.
1177         * elf/tst-piemod1.c: Likewise.
1178         * elf/tst-prelink.c: Likewise.
1179         * elf/tst-protected1a.c: Likewise.
1180         * elf/tst-protected1b.c: Likewise.
1181         * elf/tst-ptrguard1.c: Likewise, import getopt.h,
1182         and define _GNU_SOURCE macro.
1183         (cmdline_process_function): New function.
1184         * elf/tst-relsort1.c: Likewise.
1185         * elf/tst-stackguard1.c: Likewise, import getopt.h,
1186         and define _GNU_SOURCE macro.
1187         (cmdline_process_function): New function.
1188         * elf/tst-thrlock.c: Likewise.
1189         * elf/tst-tls-dlinfo.c: Likewise.
1190         * elf/tst-tls-manydynamic.c: Likewise and import support/xthread.h.
1191         * elf/tst-tls1.c: Likewise.
1192         * elf/tst-tls10.c: Likewise.
1193         * elf/tst-tls11.c: Likewise.
1194         * elf/tst-tls12.c: Likewise.
1195         * elf/tst-tls13.c: Likewise.
1196         * elf/tst-tls14.c: Likewise.
1197         * elf/tst-tls15.c: Likewise.
1198         * elf/tst-tls16.c: Likewise.
1199         * elf/tst-tls17.c: Likewise.
1200         * elf/tst-tls18.c: Likewise.
1201         * elf/tst-tls19.c: Likewise.
1202         * elf/tst-tls2.c: Likewise.
1203         * elf/tst-tls3.c: Likewise.
1204         * elf/tst-tls4.c: Likewise.
1205         * elf/tst-tls5.c: Likewise.
1206         * elf/tst-tls6.c: Likewise.
1207         * elf/tst-tls7.c: Likewise.
1208         * elf/tst-tls8.c: Likewise.
1209         * elf/tst-tls9.c: Likewise.
1210         * elf/tst-tlsalign-extern.c: Likewise.
1211         * elf/tst-tlsalign.c: Likewise.
1212         * elf/tst-unique1.c: Likewise.
1213         * elf/tst-unique2.c: Likewise.
1214         * elf/vismain.c: Likewise.
1215
1216 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1217
1218         * string/test-strnlen.c (do_page_tests): New function
1219         to check length of strings ending at the page boundary.
1220         (test_main): Added call to the do_page_tests function.
1221
1222 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1223             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1224
1225         * sysdeps/powerpc/powerpc64/multiarch/Makefile
1226         (sysdep_routines): Add strnlen-power8.
1227         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1228         (strnlen): Add __strnlen_power8 to list of strnlen functions.
1229         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: New file.
1230         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c
1231         (__strnlen): Add __strnlen_power8 to ifunc list.
1232         * sysdeps/powerpc/powerpc64/power8/strnlen.S: New file.
1233
1234 2017-04-04  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1235
1236         * wcsmbs/tst-btowc.c: Import support/test-driver.c and remove
1237         the TEST_FUNCTION macro definition.
1238         * wcsmbs/tst-mbrtowc2.c: Likewise.
1239         * wcsmbs/tst-mbsrtowcs.c: Likewise.
1240         * wcsmbs/tst-wchar-h.c: Likewise.
1241         * wcsmbs/tst-wcpncpy.c: Likewise.
1242         * wcsmbs/tst-wcrtomb.c: Likewise.
1243         * wcsmbs/tst-wcsnlen.c: Likewise.
1244         * wcsmbs/tst-wcstof.c: Likewise.
1245
1246 2017-04-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1247
1248         * nptl/pthread_create.c (START_THREAD_DEFN): Remove
1249         CALL_THREAD_FCT macro usage.
1250         * sysdeps/i386/nptl/tls.h (CALL_THREAD_FCT): Remove definition.
1251         * sysdeps/x86_64/nptl/tls.h (CALL_THREAD_FCT): Likewise.
1252         * sysdeps/x86_64/32/nptl/tls.h: Remove file.
1253
1254         * nptl/pthreadP.h (USE_REQUEUE_PI): Remove ununsed macro.
1255         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1256         (__ASSUME_REQUEUE_PI): Likewise.
1257         * sysdeps/unix/sysv/linux/kernel-features.h
1258         (__ASSUME_REQUEUE_PI): Likewise.
1259         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1260         (__ASSUME_REQUEUE_PI): Likewise.
1261         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1262         (__ASSUME_REQUEUE_PI): Likewise.
1263         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1264         (__ASSUME_REQUEUE_PI): Likewise.
1265
1266 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1267
1268         * resolv/tst-resolv-canonname.c: New file.
1269         * resolv/Makefile (tests): Add tst-resolv-canonname.
1270         (tst-resolv-canonname): Link with -ldl, -lresolv, -lpthread.
1271
1272 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1273
1274         * include/arpa/nameser.h (__ns_name_ntop, __ns_name_unpack):
1275         Declare.
1276         * resolv/nss_dns/dns-network.c: Include <arpa/nameser.h>.
1277         (NS_MAXCDNAME): Remove definition.
1278         (__ns_name_ntop, __ns_name_unpack): Remove declaration.
1279         * resolv/nss_dns/dns-host.c: Include <arpa/nameser.h>.
1280         (NS_MAXCDNAME): Remove definition.
1281         (__ns_name_ntop, __ns_name_unpack): Remove declaration.
1282
1283 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1284
1285         * resolv/nss_dns/dns-network.c (getanswer_r): Remove __dn_expand
1286         call whose result is not used.
1287
1288 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1289
1290         * resolv/tst-ns_name.c, resolv/tst-ns_name.data: New file.
1291         * resolv/Makefile (tests): Add tst-ns_name.
1292         (tst-ns_name): Link with -lresolv.
1293         (tst-ns_name.out): Depend on the input data file.
1294
1295 2017-04-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
1296
1297         * sysdeps/s390/s390-32/tls-macros.h (TLS_LD, TLS_GD):
1298         Clobber also r14.
1299
1300 2017-04-03  Mike Frysinger  <vapier@gentoo.org>
1301
1302         [BZ #21253]
1303         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Increase argv_size
1304         slack space by 32KiB.
1305
1306 2017-04-01  Wladimir van der Laan  <laanwj@gmail.com>
1307
1308         [BZ #21338]
1309         * malloc/malloc.c: Call do_set_arena_max for M_ARENA_MAX
1310         instead of incorrect do_set_arena_test
1311
1312 2017-03-31  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1313
1314         * math/math.h: Fix check for __MATH_DECLARE_LDOUBLE.
1315         * math/bits/math-finite.h: Likewise.
1316
1317 2017-03-31  Slava Barinov  <v.barinov@samsung.com>
1318
1319         [BZ #21289]
1320         * io/fts.h (fts_set): Replace __REDIRECT with __REDIRECT_NTH.
1321
1322 2017-03-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1323
1324         * sysdeps/unix/sysv/linux/test-errno-linux.c (do_test): Handle
1325         non expected inotify_add_watch and quotactl return.
1326
1327 2017-03-30  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1328
1329         * math/e_rem_pio2l.c (__ieee754_rem_pio2l): Change return type
1330         to int32_t.
1331         * sysdeps/generic/math_private.h: Declare __ieee754_rem_pio2l
1332         as returning int32_t.
1333
1334 2017-03-30  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1335
1336         * math/math.h: Include bits/math-finite.h once per
1337         floating-point type.
1338         * math/bits/math-finite.h: Macroize all declarations by
1339         floating-point type.
1340
1341 2017-03-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1342
1343         [BZ #21182]
1344         * string/test-memchr.c (do_test): Add BZ#21182 checks for address
1345         near end of a page.
1346         * sysdeps/i386/i686/multiarch/memchr-sse2.S (__memchr): Fix
1347         overflow calculation.
1348
1349 2017-03-28  Steve Ellcey  <sellcey@caviumnetworks.com>
1350
1351         * benchtests/bench-memcpy-random.c (TEST_NAME): Change to memcpy.
1352         (IMPL) Call with 1 instead of 0 as argument.
1353
1354 2017-03-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1355
1356         * sysdeps/unix/sysv/linux/arm/setegid.c: Remove file.
1357         * sysdeps/unix/sysv/linux/arm/seteuid.c: Likewise.
1358         * sysdeps/unix/sysv/linux/arm/setgid.c: Likewise.
1359         * sysdeps/unix/sysv/linux/arm/setgroups.c: Likewise.
1360         * sysdeps/unix/sysv/linux/arm/setregid.c: Likewise.
1361         * sysdeps/unix/sysv/linux/arm/setresgid.c: Likewise.
1362         * sysdeps/unix/sysv/linux/arm/setresuid.c: Likewise.
1363         * sysdeps/unix/sysv/linux/arm/setreuid.c: Likewise.
1364         * sysdeps/unix/sysv/linux/arm/setuid.c: Likewise.
1365         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
1366         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
1367         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1368         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1369         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
1370         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
1371         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1372         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1373         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
1374         * sysdeps/unix/sysv/linux/m68k/setegid.c: Likewise.
1375         * sysdeps/unix/sysv/linux/m68k/seteuid.c: Likewise.
1376         * sysdeps/unix/sysv/linux/m68k/setgid.c: Likewise.
1377         * sysdeps/unix/sysv/linux/m68k/setgroups.c: Likewise.
1378         * sysdeps/unix/sysv/linux/m68k/setregid.c: Likewise.
1379         * sysdeps/unix/sysv/linux/m68k/setresgid.c: Likewise.
1380         * sysdeps/unix/sysv/linux/m68k/setresuid.c: Likewise.
1381         * sysdeps/unix/sysv/linux/m68k/setreuid.c: Likewise.
1382         * sysdeps/unix/sysv/linux/m68k/setuid.c: Likewise.
1383         * sysdeps/unix/sysv/linux/microblaze/setgroups.c: Likewise.
1384         * sysdeps/unix/sysv/linux/s390/s390-32/setegid.c: Likewise.
1385         * sysdeps/unix/sysv/linux/s390/s390-32/seteuid.c: Likewise.
1386         * sysdeps/unix/sysv/linux/s390/s390-32/setgid.c: Likewise.
1387         * sysdeps/unix/sysv/linux/s390/s390-32/setgroups.c: Likewise.
1388         * sysdeps/unix/sysv/linux/s390/s390-32/setregid.c: Likewise.
1389         * sysdeps/unix/sysv/linux/s390/s390-32/setresgid.c: Likewise.
1390         * sysdeps/unix/sysv/linux/s390/s390-32/setresuid.c: Likewise.
1391         * sysdeps/unix/sysv/linux/s390/s390-32/setreuid.c: Likewise.
1392         * sysdeps/unix/sysv/linux/s390/s390-32/setuid.c: Likewise.
1393         * sysdeps/unix/sysv/linux/sh/setegid.c: Likewise.
1394         * sysdeps/unix/sysv/linux/sh/seteuid.c: Likewise.
1395         * sysdeps/unix/sysv/linux/sh/setgid.c: Likewise.
1396         * sysdeps/unix/sysv/linux/sh/setgroups.c: Likewise.
1397         * sysdeps/unix/sysv/linux/sh/setregid.c: Likewise.
1398         * sysdeps/unix/sysv/linux/sh/setresgid.c: Likewise.
1399         * sysdeps/unix/sysv/linux/sh/setresuid.c: Likewise.
1400         * sysdeps/unix/sysv/linux/sh/setreuid.c: Likewise.
1401         * sysdeps/unix/sysv/linux/sh/setuid.c: Likewise.
1402         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Likewise.
1403         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
1404         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: Likewise.
1405         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: Likewise.
1406         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: Likewise.
1407         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: Likewise.
1408         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: Likewise.
1409         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: Likewise.
1410         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: Likewise.
1411         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use
1412         INLINE_SYSCALL_ERROR_RETURN_VALUE.
1413         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
1414         * sysdeps/unix/sysv/linux/setgid.c (setgid): Use __NR_setgid32 if
1415         defined.
1416         * sysdeps/unix/sysv/linux/setgroups.c (setgroups): Use
1417         __NR_setgroups32 if defined.
1418         * sysdeps/unix/sysv/linux/setregid.c (__setregid): Use __NR_setregid32
1419         if defined.
1420         * sysdeps/unix/sysv/linux/setresgid.c (__setresgid): Use
1421         __NR_setresgid32 is defined.
1422         * sysdeps/unix/sysv/linux/setresuid.c (__setresuid): Use
1423         __NR_setresuid32 if defined.
1424         * sysdeps/unix/sysv/linux/setreuid.c (__setreuid): Use
1425         __NR_setreuid32 if defined.
1426         * sysdeps/unix/sysv/linux/setuid.c (__setuid): Use __NR_setuid32 if
1427         defined.
1428         * sysdeps/unix/sysv/linux/arm/setegid.c: Remove file.
1429         * sysdeps/unix/sysv/linux/arm/seteuid.c: Likewise.
1430         * sysdeps/unix/sysv/linux/arm/setgid.c: Likewise.
1431         * sysdeps/unix/sysv/linux/arm/setgroups.c: Likewise.
1432         * sysdeps/unix/sysv/linux/arm/setregid.c: Likewise.
1433         * sysdeps/unix/sysv/linux/arm/setresgid.c: Likewise.
1434         * sysdeps/unix/sysv/linux/arm/setresuid.c: Likewise.
1435         * sysdeps/unix/sysv/linux/arm/setreuid.c: Likewise.
1436         * sysdeps/unix/sysv/linux/arm/setuid.c: Likewise.
1437         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
1438         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
1439         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1440         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1441         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
1442         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
1443         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1444         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1445         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
1446         * sysdeps/unix/sysv/linux/m68k/setegid.c: Likewise.
1447         * sysdeps/unix/sysv/linux/m68k/seteuid.c: Likewise.
1448         * sysdeps/unix/sysv/linux/m68k/setgid.c: Likewise.
1449         * sysdeps/unix/sysv/linux/m68k/setgroups.c: Likewise.
1450         * sysdeps/unix/sysv/linux/m68k/setregid.c: Likewise.
1451         * sysdeps/unix/sysv/linux/m68k/setresgid.c: Likewise.
1452         * sysdeps/unix/sysv/linux/m68k/setresuid.c: Likewise.
1453         * sysdeps/unix/sysv/linux/m68k/setreuid.c: Likewise.
1454         * sysdeps/unix/sysv/linux/m68k/setuid.c: Likewise.
1455         * sysdeps/unix/sysv/linux/microblaze/setgroups.c: Likewise.
1456         * sysdeps/unix/sysv/linux/s390/s390-32/setegid.c: Likewise.
1457         * sysdeps/unix/sysv/linux/s390/s390-32/seteuid.c: Likewise.
1458         * sysdeps/unix/sysv/linux/s390/s390-32/setgid.c: Likewise.
1459         * sysdeps/unix/sysv/linux/s390/s390-32/setgroups.c: Likewise.
1460         * sysdeps/unix/sysv/linux/s390/s390-32/setregid.c: Likewise.
1461         * sysdeps/unix/sysv/linux/s390/s390-32/setresgid.c: Likewise.
1462         * sysdeps/unix/sysv/linux/s390/s390-32/setresuid.c: Likewise.
1463         * sysdeps/unix/sysv/linux/s390/s390-32/setreuid.c: Likewise.
1464         * sysdeps/unix/sysv/linux/s390/s390-32/setuid.c: Likewise.
1465         * sysdeps/unix/sysv/linux/sh/setegid.c: Likewise.
1466         * sysdeps/unix/sysv/linux/sh/seteuid.c: Likewise.
1467         * sysdeps/unix/sysv/linux/sh/setgid.c: Likewise.
1468         * sysdeps/unix/sysv/linux/sh/setgroups.c: Likewise.
1469         * sysdeps/unix/sysv/linux/sh/setregid.c: Likewise.
1470         * sysdeps/unix/sysv/linux/sh/setresgid.c: Likewise.
1471         * sysdeps/unix/sysv/linux/sh/setresuid.c: Likewise.
1472         * sysdeps/unix/sysv/linux/sh/setreuid.c: Likewise.
1473         * sysdeps/unix/sysv/linux/sh/setuid.c: Likewise.
1474         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Likewise.
1475         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
1476         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: Likewise.
1477         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: Likewise.
1478         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: Likewise.
1479         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: Likewise.
1480         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: Likewise.
1481         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: Likewise.
1482         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: Likewise.
1483         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use
1484         INLINE_SYSCALL_ERROR_RETURN_VALUE.
1485         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
1486         * sysdeps/unix/sysv/linux/setgid.c (setgid): Use __NR_setgid32 if
1487         defined.
1488         * sysdeps/unix/sysv/linux/setgroups.c (setgroups): Use
1489         __NR_setgroups32 if defined.
1490         * sysdeps/unix/sysv/linux/setregid.c (__setregid): Use __NR_setregid32
1491         if defined.
1492         * sysdeps/unix/sysv/linux/setresgid.c (__setresgid): Use
1493         __NR_setresgid32 is defined.
1494         * sysdeps/unix/sysv/linux/setresuid.c (__setresuid): Use
1495         __NR_setresuid32 if defined.
1496         * sysdeps/unix/sysv/linux/setreuid.c (__setreuid): Use
1497         __NR_setreuid32 if defined.
1498         * sysdeps/unix/sysv/linux/setuid.c (__setuid): Use __NR_setuid32 if
1499         defined.
1500
1501 2017-03-27  Joseph Myers  <joseph@codesourcery.com>
1502
1503         [BZ #21277]
1504         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (IUCLC): Define
1505         unconditionally.
1506         (IMAXBEL): Likewise.
1507         (IUTF8): Likewise.
1508
1509 2017-03-27  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1510
1511         * sysdeps/aarch64/libm-test-ulps: Update.
1512
1513 2017-03-24  Sunyeop Lee  <sunyeop97@gmail.com>
1514
1515         * README.tunables: Updated descriptions.
1516         * elf/dl-tunables.list: Fixed typo: SXID_NONE -> NONE.
1517         * scripts/gen-tunables.awk: Updated the code related to the
1518         commit.
1519
1520 2017-03-23  Wilco Dijkstra  <wdijkstr@arm.com>
1521
1522         * benchtests/Makefile (string-benchset): Add memcpy-random.
1523         * benchtests/bench-memcpy-random.c: New file.
1524
1525 2017-03-23  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1526
1527         * stdio-common/printf.h (register_printf_modifier): Change the
1528         order of __wur and __THROW.
1529         (register_printf_type): Likewise.
1530
1531 2017-03-23  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1532
1533         * string/test-string.h (TEST_FUNCTION): Use test_main instead of
1534         test_main ().
1535         (CMDLINE_PROCESS): Use function instead of defined macro.
1536         * debug/test-strcpy_chk.c: Import support/test-driver.c and also
1537         <suppport/support.h> to use set_fortify_handler().
1538         * string/bug-envz1.c: Import support/test-driver.c instead of
1539         test-skeleton.c.
1540         * string/bug-strcoll2.c: Likewise.
1541         * string/bug-strtok1.c: Likewise.
1542         * string/stratcliff.c: Likewise.
1543         * string/test-ffs.c: Likewise.
1544         * string/test-memccpy.c: Likewise.
1545         * string/test-memchr.c: Likewise.
1546         * string/test-memcmp.c: Likewise.
1547         * string/test-memcpy.c: Likewise.
1548         * string/test-memmem.c: Likewise.
1549         * string/test-memmove.c: Likewise.
1550         * string/test-memrchr.c: Likewise.
1551         * string/test-memset.c: Likewise.
1552         * string/test-rawmemchr.c: Likewise.
1553         * string/test-strcasecmp.c: Likewise.
1554         * string/test-strcasestr.c: Likewise.
1555         * string/test-strcat.c: Likewise.
1556         * string/test-strchr.c: Likewise.
1557         * string/test-strcmp.c: Likewise.
1558         * string/test-strcpy.c: Likewise.
1559         * string/test-string.h: Likewise.
1560         * string/test-strlen.c: Likewise.
1561         * string/test-strncasecmp.c: Likewise.
1562         * string/test-strncat.c: Likewise.
1563         * string/test-strncmp.c: Likewise.
1564         * string/test-strncpy.c: Likewise.
1565         * string/test-strnlen.c: Likewise.
1566         * string/test-strpbrk.c: Likewise.
1567         * string/test-strrchr.c: Likewise.
1568         * string/test-strspn.c: Likewise.
1569         * string/test-strstr.c: Likewise.
1570         * string/tst-bswap.c: Likewise.
1571         * string/tst-cmp.c: Likewise.
1572         * string/tst-endian.c: Likewise.
1573         * string/tst-inlcall.c: Likewise.
1574         * string/tst-strcoll-overflow.c: Likewise.
1575         * string/tst-strfry.c: Likewise.
1576         * string/tst-strlen.c: Likewise.
1577         * string/tst-strtok.c: Likewise.
1578         * string/tst-strtok_r.c: Likewise.
1579         * string/tst-strxfrm.c: Likewise.
1580         * string/tst-strxfrm2.c: Likewise.
1581         * string/tst-svc.c: Likewise.
1582         * string/tst-svc2.c: Likewise.
1583
1584 2017-03-22  Zack Weinberg  <zackw@panix.com>
1585
1586         * stdio-common/bug25.c: Include stdlib.h.
1587         * support/tst-support_format_dns_packet.c: Include stdio.h,
1588         stdlib.h, and string.h.
1589         * support/tst-support_record_failure.c: Include string.h.
1590         * support/tst-support_record_failure-2.sh: Adjust line number
1591         expectations and correct a typo in an error message.
1592
1593 2017-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1594
1595         [BZ #21258]
1596         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve_opt):
1597         Define only if _dl_runtime_resolve is defined to
1598         _dl_runtime_resolve_sse_vex.
1599         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_opt):
1600         Fallthrough to _dl_runtime_resolve_sse_vex.
1601
1602 2017-03-21  Joseph Myers  <joseph@codesourcery.com>
1603
1604         * INSTALL: Regenerated.
1605
1606 2017-03-21  Thorsten Kukuk  <kukuk@suse.com>
1607
1608         * config.h.in: Add LINK_OBSOLETE_NSL.
1609         * config.make.in: Add build-obsolete-nsl.
1610         * configure.ac: Add obsolete-nsl option.
1611         * include/libc-symbols.h: Define libnsl_hidden_nolink_def.
1612         * include/rpcsvc/yp.h: Add missing functions as libnsl_hidden_proto.
1613         * include/rpcsvc/nislib.h: Likewise.
1614         * include/rpcsvc/ypclnt.h: Likewise.
1615         * manual/install.texi: Document --enable-obsolete-nsl.
1616         * nis/Makefile: Build only libnsl by default (add build-obsolete-nsl).
1617         * nis/nis_add.c: Replace libnsl_hidden_def with
1618         libnsl_hidden_nolink_def.
1619         * nis/nis_addmember.c: Likewise.
1620         * nis/nis_call.c: Likewise.
1621         * nis/nis_clone_obj.c: Likewise.
1622         * nis/nis_defaults.c: Likeise.
1623         * nis/nis_domain_of_r.c: Likewise.
1624         * nis/nis_error.c: Likewise.
1625         * nis/nis_file.c: Likewise.
1626         * nis/nis_free.c: Likewise.
1627         * nis_local_names.c: Likewise.
1628         * nis/nis_lookup.c: Likewise.
1629         * nis/nis_modify.c: Likewise.
1630         * nis/nis_print.c: Likewise.
1631         * nis/nis_remove.c: Likewise.
1632         * nis/nis_table.c: Likewise.
1633         * nis/nis_util.c: Likewise.
1634         * nis/nis_xdr.c: Likewise.
1635         * nis/yp_xdr.c: Likewise.
1636         * nis/ypclnt.c: Likewise.
1637         * nis/ypupdate_xdr.c: Likewise.
1638         * nis/nis_checkpoint.c: Add libnsl_hidden_nolink_def to all functions.
1639         * nis/nis_clone_dir.c: Likewise.
1640         * nis/nis_clone_res.c: Likewise.
1641         * nis/nis_creategroup.c: Likewise.
1642         * nis/nis_destroygroup.c: Likewise.
1643         * nis/nis_domain_of.c: Likewise.
1644         * nis/nis_getservlist.c: Likewise.
1645         * nis/nis_ismember.c: Likewise.
1646         * nis/nis_mkdir.c: Likewise.
1647         * nis/nis_ping.c: Likewise.
1648         * nis/nis_print_group_entry.c: Likewise.
1649         * nis/nis_removemember.c: Likewise.
1650         * nis/nis_rmdir.c: Likewise.
1651         * nis/nis_server.c: Likewise.
1652         * nis/nis_subr.c: Likewise.
1653         * nis/nis_verifygroup.c: Likewise.
1654
1655 2017-03-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
1656
1657         * malloc/tst-interpose-aux.c (check_for_allocations):
1658         Move compiler barrier before free.
1659
1660 2017-03-20  Joseph Myers  <joseph@codesourcery.com>
1661
1662         [BZ #21279]
1663         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile
1664         [$(subdir) = conform] (conformtest-xfail-conds): Update comment.
1665         * conform/data/mqueue.h-data (mq_attr.mq_flags): XFAIL for
1666         x86_64-x32-linux.
1667         (mq_attr.mq_maxmsg): Likewise.
1668         (mq_attr.mq_msgsize): Likewise.
1669         (mq_attr.mq_curmsgs): Likewise.
1670
1671         [BZ #21278]
1672         * sysdeps/unix/sysv/linux/mips/mips32/Makefile
1673         [$(subdir) = conform] (conformtest-xfail-conds): Update comment.
1674         * conform/data/sys/stat.h-data (stat.st_rdev): XFAIL for
1675         mips-o32-linux.
1676
1677         [BZ #21268]
1678         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (NL2): Define only
1679         if [__USE_MISC]
1680         (NL3): Likewise.
1681
1682 2017-03-20  Mike Frysinger  <vapier@gentoo.org>
1683
1684         [BZ #21275]
1685         * sysdeps/unix/sysv/linux/spawni.c [__ia64__] (CLONE): Rename
1686         __stack to __stackbase.
1687         (STACK): Invert _STACK_GROWS_DOWN and _STACK_GROWS_UP order of
1688         checks so we can include defined(__ia64__) first.
1689
1690 2017-03-19  Christian Brauner  <christian.brauner@ubuntu.com>
1691
1692         * sysdeps/unix/sysv/linux/ttyname.h: New file.
1693         * sysdeps/unix/sysv/linux/ttyname.c: Include "ttyname.h".
1694         (ttyname) [!_STATBUF_ST_RDEV]: Make code unconditional.
1695         Call is_pty when the link does not exist or does not match, fail
1696         with ENODEV when it returns true.
1697         * sysdeps/unix/sysv/linux/ttyname_r.c: Include "ttyname.h".
1698         (__ttyname_r) [!_STATBUF_ST_RDEV]: Make code unconditional.
1699         Call is_pty when the link does not exist or does not match, fail
1700         with ENODEV when it returns true.
1701
1702 2017-03-18  Joseph Myers  <joseph@codesourcery.com>
1703
1704         [BZ #16437]
1705         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile
1706         [$(subdir) = conform] (conformtest-xfail-conds): New variable.
1707         * conform/data/signal.h-data (timespec.tv_nsec): XFAIL for
1708         x86_64-x32-linux.
1709         * conform/data/sys/select.h-data (timespec.tv_nsec): Likewise.
1710         * conform/data/sys/stat.h-data (timespec.tv_nsec): Likewise.
1711         * conform/data/time.h-data (timespec.tv_nsec): Likewise.
1712
1713         [BZ #21261]
1714         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h
1715         [__WORDSIZE == 64 && !_ASM] (__sparc64_jmp_buf): Use reserved
1716         names for all fields.
1717         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Update
1718         for jmp_buf field renaming.
1719         (_JMPBUF_UNWINDS_ADJ): Likewise.
1720
1721         * conform/conformtest.pl: Handle xfail[cond]- in header mentioned
1722         with allow-header.
1723
1724 2017-03-17  Chris Evans  <scarybeasts@gmail.com>
1725
1726         * malloc/malloc.c (unlink): Add consistency check between size and
1727         next->prev->size, to further harden against 1-byte overflows.
1728
1729 2017-03-17  H.J. Lu  <hongjiu.lu@intel.com>
1730
1731         * sysdeps/x86/cpu-features.c (init_cpu_features): Check AVX with
1732         CPU_FEATURES_CPU_P.
1733
1734 2017-03-17  Joseph Myers  <joseph@codesourcery.com>
1735
1736         [BZ #21259]
1737         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (IXANY): Define
1738         unconditionally, not just for [__USE_MISC].
1739
1740         [BZ #17786]
1741         * sysdeps/unix/sysv/linux/mips/mips32/Makefile: New file.
1742         * conform/data/sys/stat.h-data (stat.st_dev): XFAIL for
1743         mips-o32-linux.
1744
1745         [BZ #21260]
1746         * sysdeps/unix/sysv/linux/alpha/Makefile
1747         [$(subdir) = conform] (conformtest-xfail-conds): New variable.
1748         * conform/data/netdb.h-data (netent.n_net): XFAIL for alpha-linux.
1749
1750         * conform/conformtest.pl ($cross): New variable.
1751         (--cross): New command-line option.
1752         (runtest): Skip test execution when cross-compiling.
1753         * conform/Makefile (conformtest-cross): New variable.
1754         ($(conformtest-header-tests)): Pass $(conformtest-cross) to
1755         conformtest.pl.
1756
1757         * conform/conformtest.pl ($xfail_str): New variable.
1758         (--xfail=): New command-line option.
1759         (top level): Handle expectations starting xfail[cond]-.
1760         * conform/Makefile (conformtest-xfail): New variable.
1761         ($(conformtest-header-tests)): Pass $(conformtest-xfail) to
1762         conformtest.pl.
1763
1764 2017-03-16  Joseph Myers  <joseph@codesourcery.com>
1765
1766         * conform/conformtest.pl: Use compilation instead of execution
1767         tests for testing values of constants and usability in #if.
1768
1769 2017-03-16  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1770
1771         * math/auto-libm-test-in: Mark some catan and catanh as
1772         xfail-rounding:ibm128-libgcc.
1773         * math/auto-libm-test-out-catan: Regenerate.
1774         * math/auto-libm-test-out-catanh: Likewise.
1775
1776 2017-03-16  Joseph Myers  <joseph@codesourcery.com>
1777
1778         * misc/sys/cdefs.h (__BEGIN_NAMESPACE_STD): Remove macro.
1779         (__END_NAMESPACE_STD): Likewise.
1780         (__USING_NAMESPACE_STD): Likewise.
1781         (__BEGIN_NAMESPACE_C99): Likewise.
1782         (__END_NAMESPACE_C99): Likewise.
1783         (__USING_NAMESPACE_C99): Likewise.
1784         * math/math.h (_Mdouble_BEGIN_NAMESPACE): Do not define and
1785         undefine macro.
1786         (_Mdouble_END_NAMESPACE): Likewise.
1787         * ctype/ctype.h: Do not handle C++ namespaces.
1788         * libio/bits/stdio-ldbl.h: Likewise.
1789         * libio/stdio.h: Likewise.
1790         * locale/locale.h: Likewise.
1791         * math/bits/mathcalls.h: Likewise.
1792         * setjmp/setjmp.h: Likewise.
1793         * signal/signal.h: Likewise.
1794         * stdlib/bits/stdlib-float.h: Likewise.
1795         * stdlib/bits/stdlib-ldbl.h: Likewise.
1796         * stdlib/stdlib.h: Likewise.
1797         * string/string.h: Likewise.
1798         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
1799         * time/bits/types/clock_t.h: Likewise.
1800         * time/bits/types/struct_tm.h: Likewise.
1801         * time/bits/types/time_t.h: Likewise.
1802         * time/time.h: Likewise.
1803         * wcsmbs/bits/wchar-ldbl.h: Likewise.
1804         * wcsmbs/uchar.h: Likewise.
1805         * wcsmbs/wchar.h: Likewise.
1806         [_GLIBCPP_USE_NAMESPACES] (wint_t): Remove conditional definition.
1807         * wctype/wctype.h: Do not handle C++ namespaces.
1808         * scripts/begin-end-check.pl: Remove.
1809         * Makefile (installed-headers): Likewise.
1810         (tests-special): Do not add $(objpfx)begin-end-check.out.
1811         ($(objpfx)begin-end-check.out): Remove.
1812
1813 2017-03-15  Steve Ellcey  <sellcey@caviumnetworks.com>
1814             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1815
1816         * sysdeps/aarch64/dl-machine.h: Include cpu-features.c.
1817         (DL_PLATFORM_INIT): New define.
1818         (dl_platform_init): New function.
1819         * sysdeps/aarch64/ldsodefs.h: Include cpu-features.h.
1820         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: New file.
1821         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h: Likewise.
1822         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c: Likewise.
1823         * sysdeps/unix/sysv/linux/aarch64/libc-start.c: Likewise.
1824
1825 2017-03-15  Mike Frysinger  <vapier@gentoo.org>
1826
1827         * sysdeps/x86_64/mempcpy_chk.S (__mempcpy_chk): Check for SHARED
1828         instead of PIC.
1829
1830 2017-03-15  Joseph Myers  <joseph@codesourcery.com>
1831
1832         [BZ #21094]
1833         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
1834         24+24+24-bit pi for wider range of values around pi/2.
1835         * math/auto-libm-test-in: Add more tests of cos and tan.
1836         * math/auto-libm-test-out-cos: Regenerated.
1837         * math/auto-libm-test-out-tan: Likewise.
1838
1839 2017-03-15  John David Anglin  <danglin@gcc.gnu.org>
1840
1841         * sysdeps/hppa/dl-machine.h (DL_STACK_END): Define.
1842         (RTLD_START): Don't record stack end address in _dl_start_user.
1843
1844 2017-03-15  Alexey Neyman  <stilor@att.net>
1845
1846         [BZ #21088]
1847         * nss/nsswitch.c (nscd_init_cb, is_nscd): Make the #if check
1848         around definitions match those around use.
1849
1850 2017-03-15  Alexey Neyman  <stilor@att.net>
1851
1852         * configure.ac: Avoid empty subexpression in grep.
1853         * configure: Regenerate.
1854
1855 2017-03-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1856
1857         * posix/test-errno.c (do_test): Initialize setsockopt optlen.
1858         * sysdeps/unix/sysv/linux/test-errno.c: Move to ...
1859         * sysdeps/unix/sysv/linux/test-errno-linux.c: ... here.
1860         (test_wrp_rv): Fix format.
1861         (test_wrp_rv2): New macro.
1862         (do_test): Handle mlock return on 64 bits kernels with 32 bits
1863         binaries.
1864
1865 2017-03-15  Joseph Myers  <joseph@codesourcery.com>
1866
1867         * sysdeps/x86/fpu/test-math-vector-sincos.h (INIT_VEC_PTRS_LOOP):
1868         Use a union when storing pointers.
1869         (VECTOR_WRAPPER_fFF_2): Do not take address of integer vector and
1870         cast result when passing to INIT_VEC_PTRS_LOOP.
1871         (VECTOR_WRAPPER_fFF_3): Likewise.
1872         (VECTOR_WRAPPER_fFF_4): Likewise.
1873
1874 2017-03-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1875
1876         * include/bits/mathcalls-helper-functions.h: New file.
1877         * math/Makefile (headers): Add bits/mathcalls-helper-functions.h.
1878         * math/bits/mathcalls.h (__finite, __fpclassify, __iseqsig)
1879         (__isinf, __isnan, __issignaling, __signbit): Move declarations to
1880         math/bits/mathcalls-helper-functions.h.
1881         * math/bits/mathcalls-helper-functions.h: New file.
1882         * math/math.h: Include bits/mathcalls-helper-functions.h for
1883         float, double, and long double.
1884
1885 2017-03-15  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1886
1887         * math/s_iseqsig_template.c (__iseqsig): Use __feraiseexcept
1888         instead of feraiseexcept.
1889
1890 2017-03-15  Florian Weimer  <fweimer@redhat.com>
1891
1892         [BZ #21243]
1893         * support/temp_file.c (support_delete_temp_files): Add comment
1894         about ignored errors.
1895
1896 2017-03-15  Florian Weimer  <fweimer@redhat.com>
1897
1898         [BZ #21244]
1899         * support/xclose.c: New file.
1900         * support/Makefile (libsupport-routines): Add xclose.
1901         * support/xunistd.h (xclose): Declare.
1902         * support/resolv_test.c (server_thread_tcp_client)
1903         (server_thread_tcp, make_server_sockets, resolv_test_start)
1904         (resolv_test_end): Call xclose instead of close.
1905         * support/support_enter_network_namespace.c
1906         (support_enter_network_namespace): Likewise.
1907         * support/support_run_diff.c (write_to_temp_file): Likewise.
1908
1909 2017-03-15  Florian Weimer  <fweimer@redhat.com>
1910
1911         * support/support_format_dns_packet.c (support_format_dns_packet):
1912         Handle CNAME records in the response.  Extract RDATA names from
1913         rdata, not the whole packet.  Check AAAA record length.
1914         * support/tst-support_format_dns_packet.c: New file.
1915         * support/Makefile (tests): Add tst-support_format_dns_packet.
1916         (tst-support_format_dns_packet): Link against libresolv.
1917
1918 2017-03-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1919
1920         [BZ #21232]
1921         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c: Add
1922         posix_fadvise64 weak_alias for static build.
1923
1924 2017-03-14  Andreas Schwab  <schwab@suse.de>
1925
1926         * sysdeps/generic/dl-procinfo.h (_dl_platform_string): Remove.
1927         * sysdeps/alpha/dl-procinfo.h (_dl_platform_string): Remove.
1928         (_dl_string_platform): Use GLRO(dl_alpha_platforms) directly.
1929         * sysdeps/i386/dl-procinfo.h (_dl_platform_string): Remove.
1930         * sysdeps/mips/dl-procinfo.h (_dl_platform_string): Remove.
1931         (_dl_string_platform): Use GLRO(dl_mips_platforms) directly.
1932         * sysdeps/s390/dl-procinfo.h (_dl_platform_string): Remove.
1933         * sysdeps/sparc/dl-procinfo.h (_dl_platform_string): Remove.
1934
1935 2017-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1936
1937         * sysdeps/mach/hurd/send.c (__send): Convert hurdish error code into
1938         posix error code.
1939         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
1940
1941 2017-03-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1942
1943         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
1944         no_isolate usage for SH.
1945
1946 2017-03-13  Wilco Dijkstra  <wdijkstr@arm.com>
1947
1948         [BZ #15105]
1949         [BZ #19463]
1950         * elf/dl-cache.c (_dl_load_cache_lookup): Use __strdup.
1951         * inet/rcmd.c (rcmd_af): Likewise.
1952         * inet/rexec.c   (rexec_af): Likewise.
1953         * intl/dcigettext.c (_LIBC): Likewise.
1954         * intl/finddomain.c (_nl_find_domain): Use strdup expansion.
1955         * locale/loadarchive.c (_nl_load_locale_from_archive): Use __strdup.
1956         * locale/setlocale.c (setlocale): Likewise.
1957         * posix/spawn_faction_addopen.c
1958         (posix_spawn_file_actions_addopen): Likewise.
1959         * stdlib/putenv.c (putenv): Use __strndup.
1960         * sunrpc/svc_simple.c (__registerrpc): Use __strdup.
1961         * sysdeps/posix/getaddrinfo.c (gaih_inet): Use __strdup/__strndup.
1962         * include/stdlib.h (__need_malloc_and_calloc): Remove uses.
1963         (__Need_M_And_C) Remove define/undef.
1964         * stdlib/stdlib.h (__need_malloc_and_calloc): Remove uses.
1965         (__malloc_and_calloc_defined): Remove define.
1966         * string/bits/string2.h (__strdup): Remove define.
1967         (strdup): Likewise.
1968         (__strndup): Likewise.
1969         (strndup): Likewise.
1970
1971 2017-03-13  Joseph Myers  <joseph@codesourcery.com>
1972
1973         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_AUTOFLOWLABEL): New
1974         macro.
1975         (IPV6_ADDR_PREFERENCES): Likewise.
1976         (IPV6_MINHOPCOUNT): Likewise.
1977         (IPV6_ORIGDSTADDR): Likewise.
1978         (IPV6_RECVORIGDSTADDR): Likewise.
1979         (IPV6_TRANSPARENT): Likewise.
1980         (IPV6_UNICAST_IF): Likewise.
1981         (IPV6_RECVFRAGSIZE): Likewise.
1982
1983 2017-03-13  Thorsten Kukuk  <kukuk@suse.com>
1984
1985         * sunrpc/Makefile: only run rpcgen tests if we build rpcgen.
1986
1987 2017-03-12  Alexey Neyman <stilor@att.net>
1988
1989         * sysdeps/sh/dl-machine.h (elf_machine_rela): The condition
1990         in R_SH_DIR32 case is always false when inlined from
1991         dl-conflict.c. Ifdef out to prevent GCC from insertin an
1992
1993 2016-03-12  Marko Myllynen  <myllynen@redhat.com>
1994
1995         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1996         (__ASSUME_RECV_SYSCALL): Replace duplicate by
1997         __ASSUME_SEND_SYSCALL.
1998
1999 2017-03-11  Thorsten Kukuk  <kukuk@suse.com>
2000
2001         * sunrpc/Makefile: don't build and install rpcsvc header
2002         files, rpcgen and librpcsvc.a by default.
2003
2004 2017-03-10  Stefan Liebler  <stli@linux.vnet.ibm.com>
2005
2006         * math/auto-libm-test-out-catan: Regenerated.
2007         * math/auto-libm-test-out-catanh: Likewise.
2008         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2009
2010 2017-03-09  Joseph Myers  <joseph@codesourcery.com>
2011
2012         * sysdeps/mips/mips64/libm-test-ulps: Update catan and catanh ulps
2013         for long double with corrected test expectations.
2014
2015 2016-03-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2016
2017         * sysdeps/unix/sysv/linux/sysdep.h (HAVE_INTERNAL_SEND_SYMBOL):
2018         Define.
2019         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
2020         (HAVE_INTERNAL_SEND_SYMBOL): Undefine.
2021         * sysdeps/unix/sysv/linux/nios2/sysdep.h
2022         (HAVE_INTERNAL_SEND_SYMBOL): Likewise.
2023         * sysdeps/unix/sysv/linux/tile/sysdep.h
2024         (HAVE_INTERNAL_SEND_SYMBOL): Likewise.
2025         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2026         (__ASSUME_RECV_SYSCALL): Define.
2027         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2028         (__ASSUME_RECV_SYSCALL): Likewise.
2029         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
2030         (__ASSUME_RECV_SYSCALL): Likewise.
2031         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
2032         (__ASSUME_RECV_SYSCALL): Likewise.
2033         * sysdeps/unix/sysv/linux/mips/kernel-features.h
2034         (__ASSUME_RECV_SYSCALL): Likewise.
2035         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2036         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Remove define.
2037         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2038         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
2039         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2040         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
2041         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove send from
2042         auto-generation list.
2043         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2044         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2045         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewike.
2046         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2047         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2048         * sysdeps/unix/sysv/linux/send.c: Simplify includes.
2049         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Replace by
2050         __ASSUME_SENDTO_SYSCALL.
2051         * sysdeps/unix/sysv/linux/x86_64/send.c: Remove file.
2052         * sysdeps/unix/sysv/linux/mips/mips64/send.c: Likewise.
2053         * sysdeps/unix/sysv/linux/generic/send.c: Likewise.
2054
2055         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sendto from
2056         auto-generation list.
2057         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2058         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
2059         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2060         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2061         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2062         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2063         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2064         * sysdeps/unix/sysv/linux/kernel-features.h
2065         (__ASSUME_SENDTO_SYSCALL): Define by default.
2066         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2067         (__ASSUME_SENDTO_SYSCALL): Undef it is kernel does not support
2068         __NR_sendto.
2069         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2070         (__ASSUME_SENDTO_SYSCALL): Likewise.
2071         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2072         (__ASSUME_SENDTO_SYSCALL): Likewise.
2073         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2074         (__ASSUME_SENDTO_SYSCALL): Remove definition.
2075         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2076         (__ASSUME_SENDTO_SYSCALL): Likewise.
2077         * sysdeps/unix/sysv/linux/sh/kernel-features.h:
2078         (__ASSUME_SENDTO_SYSCALL): Likewise.
2079         * sysdeps/unix/sysv/linux/sendto.c: Simplify includes.
2080
2081         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove recv from
2082         auto-generation list.
2083         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2084         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2085         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2086         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2087         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2088         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2089         (__ASSUME_RECV_SYSCALL): New define.
2090         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2091         (__ASSUME_RECV_SYSCALL): Likewise.
2092         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
2093         (__ASSUME_RECV_SYSCALL): Likewise.
2094         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
2095         (__ASSUME_RECV_SYSCALL): Likewise.
2096         * sysdeps/unix/sysv/linux/mips/kernel-features.h
2097         (__ASSUME_RECV_SYSCALL): Likewise.
2098         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2099         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
2100         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2101         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
2102         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2103         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
2104         * sysdeps/unix/sysv/linux/generic/recv.c: Remove file.
2105         * sysdeps/unix/sysv/linux/mips/mips64/recv.c: Likewise.
2106         * sysdeps/unix/sysv/linux/x86_64/recv.c: Likewise.
2107         * sysdeps/unix/sysv/linux/recv.c: Simplify includes.
2108         (__libc_recv): Use __ASSUME_RECVFROM_SYSCALL instead of
2109         __ASSUME_RECVFROM_FOR_RECV_SYSCALL to issue recvfrom syscall.
2110
2111         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove recvfrom from
2112         auto-generation list.
2113         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2114         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
2115         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2116         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2117         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2118         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2119         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2120         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2121         (__ASSUME_RECVFROM_SYSCALL): Define by default.
2122         * sysdeps/unix/sysv/linux/kernel-features.h
2123         (__ASSUME_RECVFROM_SYSCALL): Undef it if kernel does not support
2124         __NR_recvfrom.
2125         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2126         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2127         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2128         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2129         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2130         (__ASSUME_RECVFROM_SYSCALL): Remove definition.
2131         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2132         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2133         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2134         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2135         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
2136         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2137         * sysdeps/unix/sysv/linux/recvfrom.c: Simplify includes.
2138
2139         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove connect from
2140         auto-generation list.
2141         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2142         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
2143         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2144         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2145         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2146         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2147         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2148         * sysdeps/unix/sysv/linux/connect.c: Simplify include list.
2149         * sysdeps/unix/sysv/linux/kernel-features.h
2150         (__ASSUME_CONNECT_SYSCALL): Define.
2151         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2152         (__ASSUME_CONNECT_SYSCALL): Undef if kernel does not support it.
2153         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2154         (__ASSUME_CONNECT_SYSCALL): Likewise.
2155         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2156         (__ASSUME_CONNECT_SYSCALL): Likewise.
2157         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
2158         (__ASSUME_CONNECT_SYSCALL): Likewise.
2159
2160         * sysdeps/unix/sysv/linux/accept.c (__libc_accept): Replace
2161         __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL by __ASSUME_ACCEPT4_SYSCALL.
2162         * sysdeps/unix/sysv/linux/alpha/syscalls.list?: Remove accept from
2163         auto-generation list.
2164         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2165         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
2166         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2167         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2168         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2169         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2170         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2171         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2172         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
2173         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2174         * sysdeps/unix/sysv/linux/kernel-features.h
2175         (__ASSUME_ACCEPT_SYSCALL): New define.
2176         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2177         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
2178         (__ASSUME_ACCEPT_SYSCALL): Define wheter kernel version supports.
2179         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2180         (__ASSUME_ACCEPT_SYSCALL): Define.
2181         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2182         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2183         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2184         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
2185         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2186         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2187         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2188         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
2189         (__ASSUME_ACCEPT_SYSCALL): Undefine for 32 bits.
2190
2191 2017-03-08  Yury Norov <ynorov@caviumnetworks.com>
2192             Zack Weinberg  <zackw@panix.com>
2193
2194         * posix/test-errno.c: New file.
2195         * posix/Makefile (tests): Add test-errno.
2196         * sysdeps/unix/sysv/linux/test-errno.c: New file.
2197         * sysdeps/unix/sysv/linux/Makefile (tests): Add test-errno.
2198
2199 2017-03-08  Stefan Liebler  <stli@linux.vnet.ibm.com>
2200
2201         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2202
2203 2017-03-07  Florian Weimer  <fweimer@redhat.com>
2204
2205         * time/tzset.c (compute_offset): Open-code min macro.
2206         (min, max, sign): Remove.
2207
2208 2017-03-07  Florian Weimer  <fweimer@redhat.com>
2209
2210         [BZ #15576]
2211         Remove TZNAME_MAX limit from sysconf.
2212         * include/time.h (__tzname_cur_max, __tzname_max): Remove
2213         declaration.
2214         * time/tzfile.c (__tzfile_read, __tzfile_default): Do not call
2215         compute_tzname_max.
2216         (compute_tzname_max): Remove.
2217         * time/tzset.c (__tzname_cur_max, __tzname_max): Remove.
2218         (update_vars): Do not update __tzname_cur_max.
2219         (tzset_internal): Remove argument.
2220         (__tzset): Adjust call to tzset_internal.
2221         (__tz_convert): Likewise.
2222
2223         * posix/sysconf.c (__sysconf): Return -1 for _SC_TZNAME_MAX.
2224         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
2225         * manual/conf.texi (Sysconf Definition): Update comment.
2226
2227 2017-03-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2228
2229         [BZ #21209]
2230         * elf/rtld.c (process_envvars): Ignore LD_HWCAP_MASK for
2231         AT_SECURE processes.
2232         * sysdeps/generic/unsecvars.h: Add LD_HWCAP_MASK.
2233         * elf/tst-env-setuid.c (test_parent): Test LD_HWCAP_MASK.
2234         (test_child): Likewise.
2235         * elf/Makefile (tst-env-setuid-ENV): Add LD_HWCAP_MASK.
2236
2237 2017-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2238
2239         * sysdeps/unix/sysv/linux/hppa/ipc_priv.h: New file.
2240
2241 2017-03-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
2242
2243         * sysdeps/s390/atomic-machine.h
2244         (USE_ATOMIC_COMPILER_BUILTINS): Define to 1.
2245         (__arch_compare_and_exchange_val_8_acq,
2246         __arch_compare_and_exchange_val_16_acq,
2247         __arch_compare_and_exchange_val_32_acq,
2248         __arch_compare_and_exchange_val_64_acq):
2249         Delete macro.
2250         (atomic_compare_and_exchange_val_acq,
2251         atomic_compare_and_exchange_val_rel,
2252         atomic_compare_and_exchange_bool_acq,
2253         catomic_compare_and_exchange_bool_acq,
2254         atomic_exchange_acq, atomic_exchange_rel,
2255         atomic_exchange_and_add_acq,
2256         atomic_exchange_and_add_rel,
2257         catomic_exchange_and_add, atomic_or_val,
2258         atomic_or, catomic_or, atomic_bit_test_set,
2259         atomic_and_val, atomic_and, catomic_and):
2260         Define macros with help of C11 atomic builtins.
2261
2262 2017-03-03  Justus Winter <justus@gnupg.org>
2263
2264         * sysdeps/mach/hurd/ftruncate64.c: New file.
2265         * sysdeps/mach/hurd/truncate64.c: Likewise.
2266
2267 2017-03-03  Florian Weimer  <fweimer@redhat.com>
2268
2269         * time/tzfile.c (NOID): Do not define.
2270         * time/tzset.c (NOID): Likewise.
2271
2272 2017-03-03  Florian Weimer  <fweimer@redhat.com>
2273
2274         * time/tzset.c (compute_offset): Remove __attribute_noinline__.
2275
2276 2017-03-02  Florian Weimer  <fweimer@redhat.com>
2277
2278         * elf/get-dynamic-info.h: Remove header file inclusion guard.
2279
2280 2017-03-02  Florian Weimer  <fweimer@redhat.com>
2281
2282         [BZ #21015]
2283         * manual/install.texi (Configuring and compiling): Document
2284         --enable-bind-now.
2285         * Makeconfig [bind-now] (LDFLAGS-lib.so): Set.
2286         (build-shlib-helper): Use $(LDFLAGS-lib.so).
2287         (format.lds): Likewise.
2288         [bind-now] (LDFLAGS-c.so): Remove.
2289         * sysdeps/x86_64/localplt.data (libm.so): matherr relocation can
2290         be R_X86_64_GLOB_DAT.
2291         * sysdeps/unix/sysv/linux/i386/localplt.data (libm.so): matherr
2292         relocation can be R_386_GLOB_DAT.
2293         * sysdeps/unix/sysv/linux/alpha/localplt.data (libm.so): matherr
2294         relocaiton can be R_ALPHA_GLOB_DAT.
2295         * iconvdata/Makefile [bind-now] (LDFLAGS.so): Add -Wl,-z,now.
2296
2297 2017-03-01  Zack Weinberg  <zackw@panix.com>
2298
2299         * include/libc-pointer-arith.h: New file.  Define
2300         cast_to_integer, ALIGN_UP, ALIGN_DOWN, PTR_ALIGN_UP, and
2301         PTR_ALIGN_DOWN here.
2302         * include/libc-internal.h: Definitions of above macros
2303         moved from here.  Don't include libc-diag.h anymore either.
2304         * posix/wordexp-test.c: Include stdint.h and libc-pointer-arith.h.
2305         Don't include libc-internal.h.
2306
2307         * debug/pcprofile.c, elf/dl-tunables.c, elf/soinit.c, io/openat.c
2308         * io/openat64.c, misc/ptrace.c, nptl/pthread_clock_gettime.c
2309         * nptl/pthread_clock_settime.c, nptl/pthread_cond_common.c
2310         * string/strcoll_l.c, sysdeps/nacl/brk.c
2311         * sysdeps/unix/clock_settime.c
2312         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c
2313         * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c
2314         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
2315         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c:
2316         Don't include libc-internal.h.
2317
2318         * elf/get-dynamic-info.h, iconv/loop.c
2319         * iconvdata/iso-2022-cn-ext.c, locale/weight.h, locale/weightwc.h
2320         * misc/reboot.c, nis/nis_table.c, nptl_db/thread_dbP.h
2321         * nscd/connections.c, resolv/res_send.c, soft-fp/fmadf4.c
2322         * soft-fp/fmasf4.c, soft-fp/fmatf4.c, stdio-common/vfscanf.c
2323         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
2324         * sysdeps/ieee754/dbl-64/k_rem_pio2.c
2325         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
2326         * sysdeps/ieee754/flt-32/k_rem_pio2f.c
2327         * sysdeps/ieee754/ldbl-128/k_tanl.c
2328         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
2329         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
2330         * sysdeps/ieee754/ldbl-96/k_tanl.c, sysdeps/nptl/futex-internal.h:
2331         Include libc-diag.h instead of libc-internal.h.
2332
2333         * elf/dl-load.c, elf/dl-reloc.c, locale/programs/locarchive.c
2334         * nptl/nptl-init.c, string/strcspn.c, string/strspn.c
2335         * malloc/malloc.c, sysdeps/i386/nptl/tls.h
2336         * sysdeps/nacl/dl-map-segments.h, sysdeps/x86_64/atomic-machine.h
2337         * sysdeps/unix/sysv/linux/spawni.c
2338         * sysdeps/x86_64/nptl/tls.h:
2339         Include libc-pointer-arith.h instead of libc-internal.h.
2340
2341         * elf/get-dynamic-info.h, sysdeps/nacl/dl-map-segments.h
2342         * sysdeps/x86_64/atomic-machine.h:
2343         Add multiple include guard.
2344
2345         * nss/tst-cancel-getpwuid_r.c: Include nss.h.
2346         * string/strcasestr.c: No need to include config.h.
2347         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
2348         sys/auxv.h. Don't include sysdep.h.
2349         * sysdeps/powerpc/tst-set_ppr.c: Don't include dl-procinfo.h.
2350
2351         * dlfcn/tst-dladdr.c: Don't include ldsodefs.h.  Don't use
2352         DL_LOOKUP_ADDRESS.
2353         * math/test-misc.c: Instead of testing NO_LONG_DOUBLE, test whether
2354         LDBL_MANT_DIG is greater than DBL_MANT_DIG.
2355         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Use
2356         sysconf (_SC_PAGESIZE) instead of __getpagesize in definition
2357         of ARTIFICIAL_LIMIT.
2358         * sysdeps/unix/sysv/linux/tst-clone.c [__ia64__]: Add extern
2359         declaration of __clone2.
2360
2361 2017-02-28  Florian Weimer  <fweimer@redhat.com>
2362
2363         * scripts/backport-support.sh (latest_commit): New file.
2364
2365 2017-02-28  Florian Weimer  <fweimer@redhat.com>
2366
2367         [BZ #20257]
2368         * inet/Makefile (routines): Add deadline.
2369         (tests-static): Add tst-deadline.
2370         * inet/net-internal.h (struct deadline_current_time)
2371         (__deadline_current_time, struct deadline, __deadline_is_infinite)
2372         (__deadline_elapsed, __deadline_first, __deadline_from_timeval)
2373         (__deadline_to_ms, __is_timeval_valid_timeout): Declare.
2374         * inet/deadline.c: New file.
2375         * inet/tst-deadline.c: Likewise.
2376         * sunrpc/Makefile (tests): Add tst-udp-nonblocking,
2377         tst-udp-timeout, tst-udp-garbage.
2378         (tst-udp-nonblocking, tst-udp-timeout): Link against libc.so
2379         explicitly.
2380         (tst-udp-garbage): Likewise.  Also link against thread library.
2381         * sunrpc/clnt_udp.c (struct cu_data): Mention in comment that the
2382         struct layout is part of the ABI.
2383         (clntudp_call): Rework timeout handling.
2384         * sunrpc/tst-udp-garbage.c: New file.
2385         * sunrpc/tst-udp-nonblocking.c: Likewise.
2386         * sunrpc/tst-udp-timeout.c: Likewise.
2387
2388 2017-02-28  Florian Weimer  <fweimer@redhat.com>
2389
2390         [BZ #5010]
2391         * sunrpc/svc.c (svc_is_mapped): Remove.
2392         (svc_unregister): Obtain mapped status while the service is still
2393         registered.
2394         * sunrpc/Makefile [have-thread-library] (tests): Add
2395         tst-svc_register.
2396         (tst-svc_register): Link against libc.so explicitly and the thread
2397         library.
2398         * sunrpc/tst-svc_register.c: New file.
2399
2400 2017-02-28  Andreas Schwab  <schwab@linux-m68k.org>
2401
2402         * bits/sigthread.h: Refer to <signal.h>, not <pthread.h>.
2403         * sysdeps/pthread/bits/sigthread.h: Likewise.
2404
2405 2017-02-27  Florian Weimer  <fweimer@redhat.com>
2406
2407         [BZ #21115]
2408         * sunrpc/clnt_udp.c (clntudp_call): Free ancillary data later.
2409         * sunrpc/Makefile (tests): Add tst-udp-error.
2410         (tst-udp-error): Link against libc.so explicitly.
2411         * sunrpc/tst-udp-error: New file.
2412
2413 2017-02-25  Zack Weinberg  <zackw@panix.com>
2414
2415         * sysdeps/generic/math_private.h: Use __BIG_ENDIAN and
2416         __LITTLE_ENDIAN, not BIG_ENDIAN and LITTLE_ENDIAN.
2417
2418         * sysdeps/generic/math_ldbl.h
2419         * sysdeps/ia64/fpu/math_ldbl.h
2420         * sysdeps/ieee754/ldbl-128/math_ldbl.h
2421         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
2422         * sysdeps/ieee754/ldbl-96/math_ldbl.h
2423         * sysdeps/powerpc/fpu/math_ldbl.h
2424         * sysdeps/x86_64/fpu/math_ldbl.h:
2425         Allow direct inclusion.  Use uintNN_t instead of u_intNN_t.
2426         Use __BIG_ENDIAN and __LITTLE_ENDIAN, not BIG_ENDIAN and
2427         LITTLE_ENDIAN.  Include endian.h and/or stdint.h if necessary.
2428         Add copyright notices.
2429
2430         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
2431         Don't use EXTRACT_WORDS64.
2432
2433         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c
2434         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c
2435         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c
2436         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c:
2437         Include math_ldbl.h, not math_private.h.
2438
2439 2017-02-25  Zack Weinberg  <zackw@panix.com>
2440
2441         * include/libc-diag.h: New file.  Define ignore_value,
2442         DIAG_PUSH_NEEDS_COMMENT, DIAG_POP_NEEDS_COMMENT,
2443         DIAG_IGNORE_NEEDS_COMMENT, and DIAG_IGNORE_Os_NEEDS_COMMENT here.
2444
2445         * include/libc-internal.h: Definitions of above macros moved from
2446         here.  Include libc-diag.h.  Add copyright notice.
2447
2448         * malloc/tst-malloc.c, malloc/tst-memcheck.c, malloc/tst-realloc.c
2449         * misc/tst-error1.c, posix/tst-dir.c, stdio-common/bug21.c
2450         * stdio-common/scanf14.c, stdio-common/scanf4.c, stdio-common/scanf7.c
2451         * stdio-common/test-vfprintf.c, stdio-common/tst-printf.c
2452         * stdio-common/tst-printfsz.c, stdio-common/tst-sprintf.c
2453         * stdio-common/tst-unlockedio.c, stdio-common/tstdiomisc.c
2454         * stdlib/bug-getcontext.c, string/tester.c, string/tst-endian.c
2455         * time/tst-strptime2.c, wcsmbs/tst-wcstof.c:
2456         Include libc-diag.h instead of libc-internal.h.
2457
2458         * stdlib/tst-environ.c: Include libc-diag.h.  Suppress -Wnonnull for
2459         call to unsetenv (NULL).
2460         * nptl/tst-mutex1.c: Include libc-diag.h.  Suppress -Wnonnull for
2461         call to pthread_mutexattr_destroy (NULL).
2462
2463 2017-02-25  Zack Weinberg  <zackw@panix.com>
2464
2465         * include/features.h (__GLIBC_USE_DEPRECATED_GETS): New macro.
2466         * libio/stdio.h, libio/bits/stdio2.h: Condition gets on
2467         __GLIBC_USE (DEPRECATED_GETS).  Update comments to indicate
2468         gets was removed from C++ in C++14.
2469         * include/stdio.h: Remove redundant declaration of gets.
2470         * debug/tst-chk1.c, stdio-common/tst-gets.c: Force gets to
2471         be declared, since we are testing it.
2472         * stdio-common/Makefile (tst-gets.c): Compile with
2473         -Wno-deprecated-declarations.
2474         * debug/Makefile (tst-chk1.c, tst-chk2.c, tst-chk3.c, tst-chk4.cc)
2475         (tst-chk5.cc, tst-chk6.cc, tst-lfschk1.c, tst-lfschk2.c)
2476         (tst-lfschk3.c, tst-lfschk4.cc, tst-lfschk5.cc, tst-lfschk6.cc):
2477         Compile with -Wno-deprecated-declarations.
2478
2479 2017-02-24  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2480
2481         * math/libm-test-support.c (check_ulp): Use LIT() around literal
2482         numbers.
2483
2484 2017-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2485
2486         * resolv/tst-resolv-qtypes.c (domain):
2487         Change type to const pointer to const char.
2488
2489 2017-02-24  Joseph Myers  <joseph@codesourcery.com>
2490
2491         * math/Makefile (libm-tests-generated): Remove variable.
2492         (libm-tests-base-normal): New variable.
2493         (libm-tests-base-finite): Likewise.
2494         (libm-tests-base-inline): Likewise.
2495         (libm-tests-base): Likewise.
2496         (libm-tests-normal): Likewise.
2497         (libm-tests-finite): Likewise.
2498         (libm-tests-inline): Likewise.
2499         (libm-tests-vector): Likewise.
2500         (libm-tests): Define in terms of these new variables.
2501         (libm-tests-for-type): New variable.
2502         (libm-tests.o): Move definition.
2503         (tests): Move addition of $(libm-tests).
2504         (generated): Update for new and removed libm test files.
2505         ($(objpfx)libm-test.c): Remove target.
2506         ($(objpfx)libm-have-vector-test.h): Likewise.
2507         (CFLAGS-test-double-vlen2.c): Remove variable.
2508         (CFLAGS-test-double-vlen4.c): Likewise.
2509         (CFLAGS-test-double-vlen8.c): Likewise.
2510         (CFLAGS-test-float-vlen4.c): Likewise.
2511         (CFLAGS-test-float-vlen8.c): Likewise.
2512         (CFLAGS-test-float-vlen16.c): Likewise.
2513         (CFLAGS-test-float.c): Likewise.
2514         (CFLAGS-test-float-finite.c): Likewise.
2515         (CFLAGS-libm-test-support-float.c): Likewise.
2516         (CFLAGS-test-double.c): Likewise.
2517         (CFLAGS-test-double-finite.c): Likewise.
2518         (CFLAGS-libm-test-support-double.c): Likewise.
2519         (CFLAGS-test-ldouble.c): Likewise.
2520         (CFLAGS-test-ldouble-finite.c): Likewise.
2521         (CFLAGS-libm-test-support-ldouble.c): Likewise.
2522         (libm-test-inline-cflags): New variable.
2523         (CFLAGS-test-ifloat.c): Remove variable.
2524         (CFLAGS-test-idouble.c): Likewise.
2525         (CFLAGS-test-ildouble.c): Likewise.
2526         ($(addprefix $(objpfx), $(libm-tests.o))): Move target and update
2527         dependencies.
2528         ($(foreach t,$(libm-tests-normal),$(objpfx)$(t).c)): New rule.
2529         ($(foreach t,$(libm-tests-finite),$(objpfx)$(t).c)): Likewise.
2530         ($(foreach t,$(libm-tests-inline),$(objpfx)$(t).c)): Likewise.
2531         ($(foreach t,$(libm-tests-vector),$(objpfx)$(t).c)): Likewise.
2532         ($(foreach t,$(types),$(objpfx)libm-test-support-$(t).c)):
2533         Likewise.
2534         (dependencies on libm-test-support-*.o): Remove.
2535         ($(foreach f,$(libm-test-funcs-all),$(objpfx)$(o)-$(f).o)): New
2536         rules using iterators.
2537         ($(addprefix $(objpfx),$(call libm-tests-for-type,$(o)))):
2538         Likewise.
2539         ($(objpfx)libm-test-support-$(o).o): Likewise.
2540         ($(addprefix $(objpfx),$(filter-out $(tests-static)
2541         $(libm-vec-tests),$(tests)))): Filter out $(libm-tests-vector)
2542         instead.
2543         ($(addprefix $(objpfx), $(libm-vec-tests))): Use iterator to
2544         define rule instead.
2545         * math/README.libm-test: Update.
2546         * math/libm-test-acos.inc: Include libm-test-driver.c.
2547         (do_test): New function.
2548         * math/libm-test-acosh.inc: Include libm-test-driver.c.
2549         (do_test): New function.
2550         * math/libm-test-asin.inc: Include libm-test-driver.c.
2551         (do_test): New function.
2552         * math/libm-test-asinh.inc: Include libm-test-driver.c.
2553         (do_test): New function.
2554         * math/libm-test-atan.inc: Include libm-test-driver.c.
2555         (do_test): New function.
2556         * math/libm-test-atan2.inc: Include libm-test-driver.c.
2557         (do_test): New function.
2558         * math/libm-test-atanh.inc: Include libm-test-driver.c.
2559         (do_test): New function.
2560         * math/libm-test-cabs.inc: Include libm-test-driver.c.
2561         (do_test): New function.
2562         * math/libm-test-cacos.inc: Include libm-test-driver.c.
2563         (do_test): New function.
2564         * math/libm-test-cacosh.inc: Include libm-test-driver.c.
2565         (do_test): New function.
2566         * math/libm-test-canonicalize.inc: Include libm-test-driver.c.
2567         (do_test): New function.
2568         * math/libm-test-carg.inc: Include libm-test-driver.c.
2569         (do_test): New function.
2570         * math/libm-test-casin.inc: Include libm-test-driver.c.
2571         (do_test): New function.
2572         * math/libm-test-casinh.inc: Include libm-test-driver.c.
2573         (do_test): New function.
2574         * math/libm-test-catan.inc: Include libm-test-driver.c.
2575         (do_test): New function.
2576         * math/libm-test-catanh.inc: Include libm-test-driver.c.
2577         (do_test): New function.
2578         * math/libm-test-cbrt.inc: Include libm-test-driver.c.
2579         (do_test): New function.
2580         * math/libm-test-ccos.inc: Include libm-test-driver.c.
2581         (do_test): New function.
2582         * math/libm-test-ccosh.inc: Include libm-test-driver.c.
2583         (do_test): New function.
2584         * math/libm-test-ceil.inc: Include libm-test-driver.c.
2585         (do_test): New function.
2586         * math/libm-test-cexp.inc: Include libm-test-driver.c.
2587         (do_test): New function.
2588         * math/libm-test-cimag.inc: Include libm-test-driver.c.
2589         (do_test): New function.
2590         * math/libm-test-clog.inc: Include libm-test-driver.c.
2591         (do_test): New function.
2592         * math/libm-test-clog10.inc: Include libm-test-driver.c.
2593         (do_test): New function.
2594         * math/libm-test-conj.inc: Include libm-test-driver.c.
2595         (do_test): New function.
2596         * math/libm-test-copysign.inc: Include libm-test-driver.c.
2597         (do_test): New function.
2598         * math/libm-test-cos.inc: Include libm-test-driver.c.
2599         (do_test): New function.
2600         * math/libm-test-cosh.inc: Include libm-test-driver.c.
2601         (do_test): New function.
2602         * math/libm-test-cpow.inc: Include libm-test-driver.c.
2603         (do_test): New function.
2604         * math/libm-test-cproj.inc: Include libm-test-driver.c.
2605         (do_test): New function.
2606         * math/libm-test-creal.inc: Include libm-test-driver.c.
2607         (do_test): New function.
2608         * math/libm-test-csin.inc: Include libm-test-driver.c.
2609         (do_test): New function.
2610         * math/libm-test-csinh.inc: Include libm-test-driver.c.
2611         (do_test): New function.
2612         * math/libm-test-csqrt.inc: Include libm-test-driver.c.
2613         (do_test): New function.
2614         * math/libm-test-ctan.inc: Include libm-test-driver.c.
2615         (do_test): New function.
2616         * math/libm-test-ctanh.inc: Include libm-test-driver.c.
2617         (do_test): New function.
2618         * math/libm-test-erf.inc: Include libm-test-driver.c.
2619         (do_test): New function.
2620         * math/libm-test-erfc.inc: Include libm-test-driver.c.
2621         (do_test): New function.
2622         * math/libm-test-exp.inc: Include libm-test-driver.c.
2623         (do_test): New function.
2624         * math/libm-test-exp10.inc: Include libm-test-driver.c.
2625         (do_test): New function.
2626         * math/libm-test-exp2.inc: Include libm-test-driver.c.
2627         (do_test): New function.
2628         * math/libm-test-expm1.inc: Include libm-test-driver.c.
2629         (do_test): New function.
2630         * math/libm-test-fabs.inc: Include libm-test-driver.c.
2631         (do_test): New function.
2632         * math/libm-test-fdim.inc: Include libm-test-driver.c.
2633         (do_test): New function.
2634         * math/libm-test-floor.inc: Include libm-test-driver.c.
2635         (do_test): New function.
2636         * math/libm-test-fma.inc: Include libm-test-driver.c.
2637         (do_test): New function.
2638         * math/libm-test-fmax.inc: Include libm-test-driver.c.
2639         (do_test): New function.
2640         * math/libm-test-fmaxmag.inc: Include libm-test-driver.c.
2641         (do_test): New function.
2642         * math/libm-test-fmin.inc: Include libm-test-driver.c.
2643         (do_test): New function.
2644         * math/libm-test-fminmag.inc: Include libm-test-driver.c.
2645         (do_test): New function.
2646         * math/libm-test-fmod.inc: Include libm-test-driver.c.
2647         (do_test): New function.
2648         * math/libm-test-fpclassify.inc: Include libm-test-driver.c.
2649         (do_test): New function.
2650         * math/libm-test-frexp.inc: Include libm-test-driver.c.
2651         (do_test): New function.
2652         * math/libm-test-fromfp.inc: Include libm-test-driver.c.
2653         (do_test): New function.
2654         * math/libm-test-fromfpx.inc: Include libm-test-driver.c.
2655         (do_test): New function.
2656         * math/libm-test-getpayload.inc: Include libm-test-driver.c.
2657         (do_test): New function.
2658         * math/libm-test-hypot.inc: Include libm-test-driver.c.
2659         (do_test): New function.
2660         * math/libm-test-ilogb.inc: Include libm-test-driver.c.
2661         (do_test): New function.
2662         * math/libm-test-iscanonical.inc: Include libm-test-driver.c.
2663         (do_test): New function.
2664         * math/libm-test-iseqsig.inc: Include libm-test-driver.c.
2665         (do_test): New function.
2666         * math/libm-test-isfinite.inc: Include libm-test-driver.c.
2667         (do_test): New function.
2668         * math/libm-test-isgreater.inc: Include libm-test-driver.c.
2669         (do_test): New function.
2670         * math/libm-test-isgreaterequal.inc: Include libm-test-driver.c.
2671         (do_test): New function.
2672         * math/libm-test-isinf.inc: Include libm-test-driver.c.
2673         (do_test): New function.
2674         * math/libm-test-isless.inc: Include libm-test-driver.c.
2675         (do_test): New function.
2676         * math/libm-test-islessequal.inc: Include libm-test-driver.c.
2677         (do_test): New function.
2678         * math/libm-test-islessgreater.inc: Include libm-test-driver.c.
2679         (do_test): New function.
2680         * math/libm-test-isnan.inc: Include libm-test-driver.c.
2681         (do_test): New function.
2682         * math/libm-test-isnormal.inc: Include libm-test-driver.c.
2683         (do_test): New function.
2684         * math/libm-test-issignaling.inc: Include libm-test-driver.c.
2685         (do_test): New function.
2686         * math/libm-test-issubnormal.inc: Include libm-test-driver.c.
2687         (do_test): New function.
2688         * math/libm-test-isunordered.inc: Include libm-test-driver.c.
2689         (do_test): New function.
2690         * math/libm-test-iszero.inc: Include libm-test-driver.c.
2691         (do_test): New function.
2692         * math/libm-test-j0.inc: Include libm-test-driver.c.
2693         (do_test): New function.
2694         * math/libm-test-j1.inc: Include libm-test-driver.c.
2695         (do_test): New function.
2696         * math/libm-test-jn.inc: Include libm-test-driver.c.
2697         (do_test): New function.
2698         * math/libm-test-lgamma.inc: Include libm-test-driver.c.
2699         (do_test): New function.
2700         * math/libm-test-llogb.inc: Include libm-test-driver.c.
2701         (do_test): New function.
2702         * math/libm-test-llrint.inc: Include libm-test-driver.c.
2703         (do_test): New function.
2704         * math/libm-test-llround.inc: Include libm-test-driver.c.
2705         (do_test): New function.
2706         * math/libm-test-log.inc: Include libm-test-driver.c.
2707         (do_test): New function.
2708         * math/libm-test-log10.inc: Include libm-test-driver.c.
2709         (do_test): New function.
2710         * math/libm-test-log1p.inc: Include libm-test-driver.c.
2711         (do_test): New function.
2712         * math/libm-test-log2.inc: Include libm-test-driver.c.
2713         (do_test): New function.
2714         * math/libm-test-logb.inc: Include libm-test-driver.c.
2715         (do_test): New function.
2716         * math/libm-test-lrint.inc: Include libm-test-driver.c.
2717         (do_test): New function.
2718         * math/libm-test-lround.inc: Include libm-test-driver.c.
2719         (do_test): New function.
2720         * math/libm-test-modf.inc: Include libm-test-driver.c.
2721         (do_test): New function.
2722         * math/libm-test-nearbyint.inc: Include libm-test-driver.c.
2723         (do_test): New function.
2724         * math/libm-test-nextafter.inc: Include libm-test-driver.c.
2725         (do_test): New function.
2726         * math/libm-test-nextdown.inc: Include libm-test-driver.c.
2727         (do_test): New function.
2728         * math/libm-test-nexttoward.inc: Include libm-test-driver.c.
2729         (do_test): New function.
2730         * math/libm-test-nextup.inc: Include libm-test-driver.c.
2731         (do_test): New function.
2732         * math/libm-test-pow.inc: Include libm-test-driver.c.
2733         (do_test): New function.
2734         * math/libm-test-remainder.inc: Include libm-test-driver.c.
2735         (do_test): New function.
2736         * math/libm-test-remquo.inc: Include libm-test-driver.c.
2737         (do_test): New function.
2738         * math/libm-test-rint.inc: Include libm-test-driver.c.
2739         (do_test): New function.
2740         * math/libm-test-round.inc: Include libm-test-driver.c.
2741         (do_test): New function.
2742         * math/libm-test-roundeven.inc: Include libm-test-driver.c.
2743         (do_test): New function.
2744         * math/libm-test-scalb.inc: Include libm-test-driver.c.
2745         (do_test): New function.
2746         * math/libm-test-scalbln.inc: Include libm-test-driver.c.
2747         (do_test): New function.
2748         * math/libm-test-scalbn.inc: Include libm-test-driver.c.
2749         (do_test): New function.
2750         * math/libm-test-setpayload.inc: Include libm-test-driver.c.
2751         (do_test): New function.
2752         * math/libm-test-setpayloadsig.inc: Include libm-test-driver.c.
2753         (do_test): New function.
2754         * math/libm-test-signbit.inc: Include libm-test-driver.c.
2755         (do_test): New function.
2756         * math/libm-test-significand.inc: Include libm-test-driver.c.
2757         (do_test): New function.
2758         * math/libm-test-sin.inc: Include libm-test-driver.c.
2759         (do_test): New function.
2760         * math/libm-test-sincos.inc: Include libm-test-driver.c.
2761         (do_test): New function.
2762         * math/libm-test-sinh.inc: Include libm-test-driver.c.
2763         (do_test): New function.
2764         * math/libm-test-sqrt.inc: Include libm-test-driver.c.
2765         (do_test): New function.
2766         * math/libm-test-tan.inc: Include libm-test-driver.c.
2767         (do_test): New function.
2768         * math/libm-test-tanh.inc: Include libm-test-driver.c.
2769         (do_test): New function.
2770         * math/libm-test-tgamma.inc: Include libm-test-driver.c.
2771         (do_test): New function.
2772         * math/libm-test-totalorder.inc: Include libm-test-driver.c.
2773         (do_test): New function.
2774         * math/libm-test-totalordermag.inc: Include libm-test-driver.c.
2775         (do_test): New function.
2776         * math/libm-test-trunc.inc: Include libm-test-driver.c.
2777         (do_test): New function.
2778         * math/libm-test-ufromfp.inc: Include libm-test-driver.c.
2779         (do_test): New function.
2780         * math/libm-test-ufromfpx.inc: Include libm-test-driver.c.
2781         (do_test): New function.
2782         * math/libm-test-y0.inc: Include libm-test-driver.c.
2783         (do_test): New function.
2784         * math/libm-test-y1.inc: Include libm-test-driver.c.
2785         (do_test): New function.
2786         * math/libm-test-yn.inc: Include libm-test-driver.c.
2787         (do_test): New function.
2788         * math/libm-test-driver.c: Do not include libm-have-vector-test.h.
2789         (HAVE_VECTOR): Remove macro.
2790         (START): Do not call HAVE_VECTOR.
2791         * math/test-double-vlen2.h (FUNC_TEST): Remove macro.
2792         * math/test-double-vlen4.h (FUNC_TEST): Remove macro.
2793         * math/test-double-vlen8.h (FUNC_TEST): Remove macro.
2794         * math/test-float-vlen16.h (FUNC_TEST): Remove macro.
2795         * math/test-float-vlen4.h (FUNC_TEST): Remove macro.
2796         * math/test-float-vlen8.h (FUNC_TEST): Remove macro.
2797         * math/test-math-vector.h (FUNC_TEST): New macro.
2798         (WRAPPER_DECL): Rename to WRAPPER_DECL_f.
2799         * sysdeps/x86_64/fpu/Makefile (double-vlen2-funcs): New variable.
2800         (double-vlen4-funcs): Likewise.
2801         (double-vlen4-avx2-funcs): Likewise.
2802         (double-vlen8-funcs): Likewise.
2803         (float-vlen4-funcs): Likewise.
2804         (float-vlen8-funcs): Likewise.
2805         (float-vlen8-avx2-funcs): Likewise.
2806         (float-vlen16-funcs): Likewise.
2807         (CFLAGS-test-double-vlen4-avx2.c): Remove variable.
2808         (CFLAGS-test-float-vlen8-avx2.c): Likewise.
2809         * sysdeps/x86_64/fpu/test-double-vlen4.h (TEST_VECTOR_cos): Remove
2810         macro.
2811         (TEST_VECTOR_sin): Likewise.
2812         (TEST_VECTOR_sincos): Likewise.
2813         (TEST_VECTOR_log): Likewise.
2814         (TEST_VECTOR_exp): Likewise.
2815         (TEST_VECTOR_pow): Likewise.
2816         * sysdeps/x86_64/fpu/test-double-vlen8.h (TEST_VECTOR_cos):
2817         Likewise.
2818         (TEST_VECTOR_sin): Likewise.
2819         (TEST_VECTOR_sincos): Likewise.
2820         (TEST_VECTOR_log): Likewise.
2821         (TEST_VECTOR_exp): Likewise.
2822         (TEST_VECTOR_pow): Likewise.
2823         * sysdeps/x86_64/fpu/test-float-vlen16.h (TEST_VECTOR_cosf):
2824         Likewise.
2825         (TEST_VECTOR_sinf): Likewise.
2826         (TEST_VECTOR_sincosf): Likewise.
2827         (TEST_VECTOR_logf): Likewise.
2828         (TEST_VECTOR_expf): Likewise.
2829         (TEST_VECTOR_powf): Likewise.
2830         * sysdeps/x86_64/fpu/test-float-vlen8.h (TEST_VECTOR_cosf):
2831         Likewise.
2832         (TEST_VECTOR_sinf): Likewise.
2833         (TEST_VECTOR_sincosf): Likewise.
2834         (TEST_VECTOR_logf): Likewise.
2835         (TEST_VECTOR_expf): Likewise.
2836         (TEST_VECTOR_powf): Likewise.
2837         * math/gen-libm-have-vector-test.sh: Remove file.
2838         * math/libm-test.inc: Likewise.
2839         * math/libm-test-support-double.c: Likewise.
2840         * math/libm-test-support-float.c: Likewise.
2841         * math/libm-test-support-ldouble.c: Likewise.
2842         * math/test-double-finite.c: Likewise.: Likewise.
2843         * math/test-double.c: Likewise.
2844         * math/test-float-finite.c: Likewise.
2845         * math/test-float.c: Likewise.
2846         * math/test-idouble.c: Likewise.
2847         * math/test-ifloat.c: Likewise.
2848         * math/test-ildouble.c: Likewise.
2849         * math/test-ldouble-finite.c: Likewise.
2850         * math/test-ldouble.c: Likewise.
2851         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
2852         * sysdeps/x86_64/fpu/test-double-vlen2.h: Likewise.
2853         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
2854         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
2855         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
2856         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
2857         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
2858         * sysdeps/x86_64/fpu/test-float-vlen4.h: Likewise.
2859         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
2860         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
2861
2862 2017-02-23 Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2863            Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2864
2865         * math/Makefile: Add wrappers to gen-libm-calls.
2866         * math/w_acos_template.c: New file.
2867         * math/w_acosh_template.c: Likewise.
2868         * math/w_asin_template.c: Likewise.
2869         * math/w_atan2_template.c: Likewise.
2870         * math/w_atanh_template.c: Likewise.
2871         * math/w_cosh_template.c: Likewise.
2872         * math/w_exp10_template.c: Likewise.
2873         * math/w_exp2_template.c: Likewise.
2874         * math/w_exp_template.c: Likewise.
2875         * math/w_fmod_template.c: Likewise.
2876         * math/w_hypot_template.c: Likewise.
2877         * math/w_j0_template.c: Likewise.
2878         * math/w_j1_template.c: Likewise.
2879         * math/w_jn_template.c: Likewise.
2880         * math/w_lgamma_r_template.c: Likewise.
2881         * math/w_lgamma_template.c: Likewise.
2882         * math/w_log10_template.c: Likewise.
2883         * math/w_log2_template.c: Likewise.
2884         * math/w_log_template.c: Likewise.
2885         * math/w_pow_template.c: Likewise.
2886         * math/w_remainder_template.c: Likewise.
2887         * math/w_sinh_template.c: Likewise.
2888         * math/w_sqrt_template.c: Likewise.
2889         * math/w_tgamma_template.c: Likewise.: Likewise.
2890         * sysdeps/generic/math-type-macros-double.h
2891         (__USE_WRAPPER_TEMPLATE): New macro to control inclusion of
2892         the new wrappers.
2893         * sysdeps/generic/math-type-macros-float.h: Likewise.
2894         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
2895
2896 2017-02-22  Joseph Myers  <joseph@codesourcery.com>
2897
2898         * sysdeps/unix/sysv/linux/sys/timerfd.h (TFD_TIMER_CANCEL_ON_SET):
2899         New enum constant and macro.
2900
2901         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2902         kernel version to 4.10.
2903
2904 2017-02-21  Joseph Myers  <joseph@codesourcery.com>
2905
2906         * sysdeps/unix/sysv/linux/bits/in.h (IP_RECVFRAGSIZE): New macro.
2907
2908 2017-02-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2909
2910         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2911
2912 2017-02-21  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
2913
2914         * sysdeps/powerpc/tst-set_ppr.c: New file.
2915         Implement test cases for __ppc_set_ppr_* functions.
2916         * sysdeps/powerpc/Makefile ($(subdir),misc): Add tst-set_ppr
2917         in the list of tests.
2918
2919 2017-02-21  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
2920
2921         * sysdeps/powerpc/test-get_hwcap.c: Use <support/test-driver.c>
2922         instead of test-skeleton.c.
2923         (do_test): Replaced pthread_create and pthread_join with
2924         xpthread_create and xpthread_join.  Use TEST_VERIFY_EXIT macro.
2925         Removed unneeded status variable.
2926         * sysdeps/powerpc/test-gettimebase.c: Use <support/test-driver.c>
2927         instead of test-skeleton.c.
2928         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Likewise.
2929
2930 2017-02-20  Mike FABIAN  <mfabian@redhat.com>
2931
2932         [BZ #20313]
2933         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
2934         201605L, for Unicode 9.
2935
2936 2017-02-20  Joseph Myers  <joseph@codesourcery.com>
2937
2938         * math/libm-test-support.h (EXCEPTIONS_OK): Remove macro.
2939         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
2940         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
2941         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
2942         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
2943         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
2944
2945 2017-02-19  Zack Weinberg  <zackw@panix.com>
2946
2947         * rt/tst-mqueue4.c: Include stdint.h.
2948
2949 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
2950
2951         * sysdeps/arm/libm-test-ulps: Update.
2952         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
2953         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2954         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
2955
2956 2017-01-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2957
2958         [BZ #21029]
2959         * config.h.in [CAN_USE_REGISTER_ASM_EBP]: New define.
2960         * sysdeps/unix/sysv/linux/i386/Makefile
2961         [$(subdir) = elf] (sysdep-dl-routines): Add libc-do-syscall.
2962         (uses-6-syscall-arguments): Remove.
2963         [$(subdir) = misc] (CFLAGS-epoll_pwait.o): Likewise.
2964         [$(subdir) = misc] (CFLAGS-epoll_pwait.os): Likewise.
2965         [$(subdir) = misc] (CFLAGS-mmap.o): Likewise.
2966         [$(subdir) = misc] (CFLAGS-mmap.os): Likewise.
2967         [$(subdir) = misc] (CFLAGS-mmap64.o): Likewise.
2968         [$(subdir) = misc] (CFLAGS-mmap64.os): Likewise.
2969         [$(subdir) = misc] (CFLAGS-pselect.o): Likewise.
2970         [$(subdir) = misc] (cflags-pselect.o): Likewise.
2971         [$(subdir) = misc] (cflags-pselect.os): Likewise.
2972         [$(subdir) = misc] (cflags-rtld-mmap.os): Likewise.
2973         [$(subdir) = sysvipc] (cflags-semtimedop.o): Likewise.
2974         [$(subdir) = sysvipc] (cflags-semtimedop.os): Likewise.
2975         [$(subdir) = io] (CFLAGS-posix_fadvise64.o): Likewise.
2976         [$(subdir) = io] (CFLAGS-posix_fadvise64.os): Likewise.
2977         [$(subdir) = io] (CFLAGS-posix_fallocate.o): Likewise.
2978         [$(subdir) = io] (CFLAGS-posix_fallocate.os): Likewise.
2979         [$(subdir) = io] (CFLAGS-posix_fallocate64.o): Likewise.
2980         [$(subdir) = io] (CFLAGS-posix_fallocate64.os): Likewise.
2981         [$(subdir) = io] (CFLAGS-sync_file_range.o): Likewise.
2982         [$(subdir) = io] (CFLAGS-sync_file_range.os): Likewise.
2983         [$(subdir) = io] (CFLAGS-fallocate.o): Likewise.
2984         [$(subdir) = io] (CFLAGS-fallocate.os): Likewise.
2985         [$(subdir) = io] (CFLAGS-fallocate64.o): Likewise.
2986         [$(subdir) = io] (CFLAGS-fallocate64.os): Likewise.
2987         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o):
2988         Likewise.
2989         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrdlock.os):
2990         Likewise.
2991         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrwlock.o):
2992         Likewise.
2993         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrwlock.os):
2994         Likewise.
2995         [$(subdir) = nptl] (CFLAGS-sem_wait.o): Likewise.
2996         [$(subdir) = nptl] (CFLAGS-sem_wait.os): Likewise.
2997         [$(subdir) = nptl] (CFLAGS-sem_timedwait.o): Likewise.
2998         [$(subdir) = nptl] (CFLAGS-sem_timedwait.os): Likewise.
2999         * sysdeps/unix/sysv/linux/i386/configure.ac: Add check if compiler allows
3000         ebp on inline assembly.
3001         * sysdeps/unix/sysv/linux/i386/configure: Regenerate.
3002         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
3003         Set if CAN_USE_REGISTER_ASM_EBP is set.
3004
3005 2017-02-17  H.J. Lu  <hongjiu.lu@intel.com>
3006
3007         * sysdeps/x86/cpu-features.c (init_cpu_features): Use
3008         index_cpu_RTM and reg_RTM to clear the bit_cpu_RTM bit.
3009
3010 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
3011
3012         * math/auto-libm-test-in: Add tests of catan and catanh.
3013         * math/auto-libm-test-out-catan: New generated file.
3014         * math/auto-libm-test-out-catanh: Likewise.
3015         * math/libm-test-catan.inc (catan_test_data): Use AUTO_TESTS_c_c.
3016         Move tests with finite inputs, except divide-by-zero cases, to
3017         auto-libm-test-in.
3018         * math/libm-test-catanh.inc (catanh_test_data): Likewise.
3019         * math/Makefile (libm-test-funcs-auto): Add catan and catanh.
3020         (libm-test-funcs-noauto): Remove catan and catanh.
3021         * sysdeps/i386/fpu/libm-test-ulps: Update.
3022         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3023         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3024
3025         * math/auto-libm-test-in: Add tests of casin and casinh.
3026         * math/auto-libm-test-out-casin: New generated file.
3027         * math/auto-libm-test-out-casinh: Likewise.
3028         * math/libm-test-casin.inc (casin_test_data): Use AUTO_TESTS_c_c.
3029         Move tests with finite inputs to auto-libm-test-in.
3030         * math/libm-test-casinh.inc (casinh_test_data): Likewise.
3031         * math/Makefile (libm-test-funcs-auto): Add casin and casinh.
3032         (libm-test-funcs-noauto): Remove casin and casinh.
3033         * sysdeps/i386/fpu/libm-test-ulps: Update.
3034         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3035         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3036
3037         * math/auto-libm-test-in: Add tests of cacos and cacosh.
3038         * math/auto-libm-test-out-cacos: New generated file.
3039         * math/auto-libm-test-out-cacosh: Likewise.
3040         * math/libm-test-cacos.inc (cacos_test_data): Use AUTO_TESTS_c_c.
3041         Move tests with finite inputs to auto-libm-test-in.
3042         * math/libm-test-cacosh.inc (cacosh_test_data): Likewise.
3043         * math/Makefile (libm-test-funcs-auto): Add cacos and cacosh.
3044         (libm-test-funcs-noauto): Remove cacos and cacosh.
3045         * sysdeps/i386/fpu/libm-test-ulps: Update.
3046         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3047         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3048
3049         Revert:
3050         2017-02-16  Zack Weinberg  <zackw@panix.com>
3051
3052         * sysdeps/x86_64/fpu/math-tests-arch.h: Include cpu-features.h.
3053         Don't include init-arch.h.
3054         * sysdeps/x86_64/multiarch/test-multiarch.h: Include cpu-features.h.
3055         Don't include init-arch.h.
3056
3057 2017-02-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3058
3059         [BZ #21171]
3060         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Return
3061         +Inf and raise divide-by-zero when x is negative.
3062         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Likewise.
3063         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Likewise.
3064         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10):  Return
3065         -Inf and raise divide-by-zero when x = +-0.
3066         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
3067         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
3068         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
3069         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
3070         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
3071         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
3072         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
3073
3074 2017-02-16  Zack Weinberg  <zackw@panix.com>
3075
3076         * scripts/build-many-glibcs.py (bot_build_mail): If the
3077         bot_config does not contain all of the necessary email-
3078         related settings, just print a warning and continue.
3079
3080 2017-02-16  Zack Weinberg  <zackw@panix.com>
3081
3082         * crypt/md5.h: Test _LIBC with #if defined, not #if.
3083         * dirent/opendir-tst1.c: Include sys/stat.h.
3084         * dirent/tst-fdopendir.c: Include sys/stat.h.
3085         * dirent/tst-fdopendir2.c: Include stdlib.h.
3086         * dirent/tst-scandir.c: Include stdbool.h.
3087         * elf/tst-auditmod1.c: Include link.h and stddef.h.
3088         * elf/tst-tls15.c: Include stdlib.h.
3089         * elf/tst-tls16.c: Include stdlib.h.
3090         * elf/tst-tls17.c: Include stdlib.h.
3091         * elf/tst-tls18.c: Include stdlib.h.
3092         * iconv/tst-iconv6.c: Include endian.h.
3093         * iconvdata/bug-iconv11.c: Include limits.h.
3094         * io/test-utime.c: Include stdint.h.
3095         * io/tst-faccessat.c: Include sys/stat.h.
3096         * io/tst-fchmodat.c: Include sys/stat.h.
3097         * io/tst-fchownat.c: Include sys/stat.h.
3098         * io/tst-fstatat.c: Include sys/stat.h.
3099         * io/tst-futimesat.c: Include sys/stat.h.
3100         * io/tst-linkat.c: Include sys/stat.h.
3101         * io/tst-mkdirat.c: Include sys/stat.h and stdbool.h.
3102         * io/tst-mkfifoat.c: Include sys/stat.h and stdbool.h.
3103         * io/tst-mknodat.c: Include sys/stat.h and stdbool.h.
3104         * io/tst-openat.c: Include stdbool.h.
3105         * io/tst-readlinkat.c: Include sys/stat.h.
3106         * io/tst-renameat.c: Include sys/stat.h.
3107         * io/tst-symlinkat.c: Include sys/stat.h.
3108         * io/tst-unlinkat.c: Include stdbool.h.
3109         * libio/bug-memstream1.c: Include stdlib.h.
3110         * libio/bug-wmemstream1.c: Include stdlib.h.
3111         * libio/tst-fwrite-error.c: Include stdlib.h.
3112         * libio/tst-memstream1.c: Include stdlib.h.
3113         * libio/tst-memstream2.c: Include stdlib.h.
3114         * libio/tst-memstream3.c: Include stdlib.h.
3115         * malloc/tst-interpose-aux.c: Include stdint.h.
3116         * misc/tst-preadvwritev-common.c: Include sys/stat.h.
3117         * nptl/tst-basic7.c: Include limits.h.
3118         * nptl/tst-cancel25.c: Include pthread.h, not pthreadP.h.
3119         * nptl/tst-cancel4.c: Include stddef.h, limits.h, and sys/stat.h.
3120         * nptl/tst-cancel4_1.c: Include stddef.h.
3121         * nptl/tst-cancel4_2.c: Include stddef.h.
3122         * nptl/tst-cond16.c: Include limits.h.
3123         Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
3124         * nptl/tst-cond18.c: Include limits.h.
3125         Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
3126         * nptl/tst-cond4.c: Include stdint.h.
3127         * nptl/tst-cond6.c: Include stdint.h.
3128         * nptl/tst-stack2.c: Include limits.h.
3129         * nptl/tst-stackguard1.c: Include stddef.h.
3130         * nptl/tst-tls4.c: Include stdint.h. Don't include tls.h.
3131         * nptl/tst-tls4moda.c: Include stddef.h.
3132         Don't include stdio.h, unistd.h, or tls.h.
3133         * nptl/tst-tls4modb.c: Include stddef.h.
3134         Don't include stdio.h, unistd.h, or tls.h.
3135         * nptl/tst-tls5.h: Include stddef.h. Don't include stdlib.h or tls.h.
3136         * posix/tst-getaddrinfo2.c: Include stdio.h.
3137         * posix/tst-getaddrinfo5.c: Include stdio.h.
3138         * posix/tst-pathconf.c: Include sys/stat.h.
3139         * posix/tst-posix_fadvise-common.c: Include stdint.h.
3140         * posix/tst-preadwrite-common.c: Include sys/stat.h.
3141         * posix/tst-regex.c: Include stdint.h.
3142         Don't include spawn.h or spawn_int.h.
3143         * posix/tst-regexloc.c: Don't include spawn.h or spawn_int.h.
3144         * posix/tst-vfork3.c: Include sys/stat.h.
3145         * resolv/tst-bug18665-tcp.c: Include stdlib.h.
3146         * resolv/tst-res_hconf_reorder.c: Include stdlib.h.
3147         * resolv/tst-resolv-search.c: Include stdlib.h.
3148         * stdio-common/tst-fmemopen2.c: Include stdint.h.
3149         * stdio-common/tst-vfprintf-width-prec.c: Include stdlib.h.
3150         * stdlib/test-canon.c: Include sys/stat.h.
3151         * stdlib/tst-tls-atexit.c: Include stdbool.h.
3152         * string/test-memchr.c: Include stdint.h.
3153         * string/tst-cmp.c: Include stdint.h.
3154         * sysdeps/pthread/tst-timer.c: Include stdint.h.
3155         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Include stdint.h.
3156         * sysdeps/wordsize-64/tst-writev.c: Include limits.h and stdint.h.
3157         * sysdeps/x86_64/fpu/math-tests-arch.h: Include cpu-features.h.
3158         Don't include init-arch.h.
3159         * sysdeps/x86_64/multiarch/test-multiarch.h: Include cpu-features.h.
3160         Don't include init-arch.h.
3161         * sysdeps/x86_64/tst-auditmod10b.c: Include link.h and stddef.h.
3162         * sysdeps/x86_64/tst-auditmod3b.c: Include link.h and stddef.h.
3163         * sysdeps/x86_64/tst-auditmod4b.c: Include link.h and stddef.h.
3164         * sysdeps/x86_64/tst-auditmod5b.c: Include link.h and stddef.h.
3165         * sysdeps/x86_64/tst-auditmod6b.c: Include link.h and stddef.h.
3166         * sysdeps/x86_64/tst-auditmod6c.c: Include link.h and stddef.h.
3167         * sysdeps/x86_64/tst-auditmod7b.c: Include link.h and stddef.h.
3168         * time/clocktest.c: Include stdint.h.
3169         * time/tst-posixtz.c: Include stdint.h.
3170         * timezone/tst-timezone.c: Include stdint.h.
3171
3172 2017-02-16  Zack Weinberg  <zackw@panix.com>
3173
3174         * string/string.h [__USE_MISC]: Include strings.h.
3175         (__bzero, bcmp, bcopy, bzero, index, rindex)
3176         (strcasecmp, strncasecmp, strcasecmp_l, strncasecmp_l)
3177         (ffs, ffsl, ffsll): Don't declare.
3178         * string/strings.h: Do not suppress the file if string.h has
3179         already been included.
3180         (bcmp, bcopy, bzero, strcasecmp, strncasecmp): Add __nonnull
3181         annotations.
3182         (index, rindex): Define inline forwarders even if
3183         __CORRECT_ISO_CPP_STRING_H_PROTO is defined.
3184         (ffs): Use __attribute_const__.
3185         (ffsl, ffsll): Declare here.
3186         (strcasecmp_l, strncasecmp_l): Correct comments; these functions
3187         have now been standardized.
3188         * include/string.h (__bzero): Declare here.
3189
3190         * bits/types.h: Move to posix/bits.
3191         * include/bits/types.h: New wrapper.
3192
3193 2017-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
3194
3195         * string/bits/string2.h (strcmp): Remove define.
3196         (__strcmp_cg): Likewise.
3197         (strncmp): Likewise.
3198
3199 2017-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
3200
3201         * include/string.h: Add __cplusplus check.
3202
3203 2017-02-15  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3204
3205         [BZ #21134]
3206         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise the
3207         "divide by zero" exception when the input is zero.
3208         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y1): Likewise.
3209         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
3210         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
3211         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Likewise.
3212         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
3213
3214 2017-02-15  Joseph Myers  <joseph@codesourcery.com>
3215
3216         * sysdeps/x86_64/fpu/test-double-vlen2.c: Move most contents to,
3217         and include ...
3218         * sysdeps/x86_64/fpu/test-double-vlen2.h: ... here.  New file.
3219         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Move most contents
3220         to, and include ...
3221         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.h: ... here.  New
3222         file.
3223         * sysdeps/x86_64/fpu/test-double-vlen4.c: Move most contents to,
3224         and include ...
3225         * sysdeps/x86_64/fpu/test-double-vlen4.h: ... here.  New file.
3226         * sysdeps/x86_64/fpu/test-double-vlen8.c: Move most contents to,
3227         and include ...
3228         * sysdeps/x86_64/fpu/test-double-vlen8.h: ... here.  New file.
3229         * sysdeps/x86_64/fpu/test-float-vlen16.c: Move most contents to,
3230         and include ...
3231         * sysdeps/x86_64/fpu/test-float-vlen16.h: ... here.  New file.
3232         * sysdeps/x86_64/fpu/test-float-vlen4.c: Move most contents to,
3233         and include ...
3234         * sysdeps/x86_64/fpu/test-float-vlen4.h: ... here.  New file.
3235         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Move most contents
3236         to, and include ...
3237         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.h: ... here.  New file.
3238         * sysdeps/x86_64/fpu/test-float-vlen8.c: Move most contents to,
3239         and include ...
3240         * sysdeps/x86_64/fpu/test-float-vlen8.h: ... here.  New file.
3241
3242 2017-02-14  Joseph Myers  <joseph@codesourcery.com>
3243
3244         * math/libm-test-support.h: Do not include <math-tests-arch.h>
3245         here.
3246         * math/libm-test-support.c (libm_test_init): Do not call
3247         INIT_ARCH_EXT here.
3248         * math/libm-test-driver.c: Include <math-tests-arch.h>.
3249         (main): Call INIT_ARCH_EXT.
3250
3251 2017-02-12  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3252
3253         [BZ #21130]
3254         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Return NAN
3255         with the "invalid" exception raised when x is -Inf.
3256         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
3257
3258 2017-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
3259
3260         * string/bits/string2.h (strchr): Remove define.
3261
3262 2017-02-09  H.J. Lu  <hongjiu.lu@intel.com>
3263
3264         * sysdeps/x86_64/Makefile (tests): Add tst-sse, tst-avx and
3265         tst-avx512.
3266         (test-extras): Add tst-avx-aux and tst-avx512-aux.
3267         (extra-test-objs): Add tst-avx-aux.o and tst-avx512-aux.o.
3268         (modules-names): Add tst-ssemod, tst-avxmod and tst-avx512mod.
3269         ($(objpfx)tst-sse): New rule.
3270         ($(objpfx)tst-avx): Likewise.
3271         ($(objpfx)tst-avx512): Likewise.
3272         (CFLAGS-tst-avx-aux.c): New.
3273         (CFLAGS-tst-avxmod.c): Likewise.
3274         (CFLAGS-tst-avx512-aux.c): Likewise.
3275         (CFLAGS-tst-avx512mod.c): Likewise.
3276         * sysdeps/x86_64/tst-avx-aux.c: New file.
3277         * sysdeps/x86_64/tst-avx.c: Likewise.
3278         * sysdeps/x86_64/tst-avx512-aux.c: Likewise.
3279         * sysdeps/x86_64/tst-avx512.c: Likewise.
3280         * sysdeps/x86_64/tst-avx512mod.c: Likewise.
3281         * sysdeps/x86_64/tst-avxmod.c: Likewise.
3282         * sysdeps/x86_64/tst-sse.c: Likewise.
3283         * sysdeps/x86_64/tst-ssemod.c: Likewise.
3284
3285 2017-02-09  Joseph Myers  <joseph@codesourcery.com>
3286
3287         * math/auto-libm-test-in: Add more tests of csin and csinh.
3288         * math/auto-libm-test-out-csin: Regenerated.
3289         * math/auto-libm-test-out-csinh: Likewise.
3290         * math/libm-test-csin.inc (csin_test_data): Remove tests moved to
3291         auto-libm-test-in.
3292         * math/libm-test-csinh.inc (csinh_test_data): Likewise.
3293
3294 2017-02-09  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3295
3296         * math/Makefile (libm-compat-calls-ldouble-yes): Merge into
3297         libm-compat-calls-auto.
3298         (libm-compat-calls): Likewise.
3299         (libm-compat-calls-auto): Rename to libm-compat-calls and add
3300         w_lgamma_compatF and k_standardF (merged from the items above).
3301         (libm-routines): Use libm-compat-calls, instead of
3302         libm-compat-calls-auto, with type-foreach.
3303
3304 2017-02-09  Joseph Myers  <joseph@codesourcery.com>
3305
3306         * math/test-math-inline.h (__LIBC_INTERNAL_MATH_INLINES): Undefine
3307         macro.
3308         * math/Makefile (CPPFLAGS-test-ifloat.c): Rename to ...
3309         (CFLAGS-test-ifloat.c): ... this.  Remove
3310         -U__LIBC_INTERNAL_MATH_INLINES.
3311         * math/Makefile (CPPFLAGS-test-idouble.c): Rename to ...
3312         (CFLAGS-test-idouble.c): ... this.  Remove
3313         -U__LIBC_INTERNAL_MATH_INLINES.
3314         * math/Makefile (CPPFLAGS-test-ildouble.c): Rename to ...
3315         (CFLAGS-test-ildouble.c): ... this.  Remove
3316         -U__LIBC_INTERNAL_MATH_INLINES.
3317
3318 2017-02-08  Joseph Myers  <joseph@codesourcery.com>
3319
3320         * math/libm-test-support.c: New file.  Content from
3321         math/libm-test-driver.c.
3322         * math/libm-test-support.h: Likewise.
3323         * math/libm-test-support-double.c: New file.
3324         * math/libm-test-support-float.c: Likewise.
3325         * math/libm-test-support-ldouble.c: Likewise.
3326         * math/libm-test-driver.c: Remove main comment and header
3327         includes.  Include libm-test-support.h.
3328         [!_GNU_SOURCE] (_GNU_SOURCE): Do not define.
3329         (flag_test_errno): Remove static.
3330         (flag_test_exceptions): Likewise.
3331         (flag_test_finite): Likewise.
3332         (flag_test_inline): Likewise.
3333         (flag_test_mathvec): Likewise.
3334         (test_msg): Likewise.
3335         (NO_EXCEPTION): Remove.
3336         (INVALID_EXCEPTION): Likewise.
3337         (DIVIDE_BY_ZERO_EXCEPTION): Likewise.
3338         (OVERFLOW_EXCEPTION): Likewise.
3339         (UNDERFLOW_EXCEPTION): Likewise.
3340         (INEXACT_EXCEPTION): Likewise.
3341         (INVALID_EXCEPTION_OK): Likewise.
3342         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3343         (OVERFLOW_EXCEPTION_OK): Likewise.
3344         (UNDERFLOW_EXCEPTION_OK): Likewise.
3345         (NO_INEXACT_EXCEPTION): Likewise.
3346         (EXCEPTIONS_OK): Likewise.
3347         (IGNORE_ZERO_INF_SIGN): Likewise.
3348         (TEST_NAN_SIGN): Likewise.
3349         (TEST_NAN_PAYLOAD): Likewise.
3350         (NO_TEST_INLINE): Likewise.
3351         (XFAIL_TEST): Likewise.
3352         (ERRNO_UNCHANGED): Likewise.
3353         (ERRNO_EDOM): Likewise.
3354         (ERRNO_ERANGE): Likewise.
3355         (IGNORE_RESULT): Likewise.
3356         (NON_FINITE): Likewise.
3357         (TEST_SNAN): Likewise.
3358         (NO_TEST_MATHVEC): Likewise.
3359         (__CONCATX): Likewise.
3360         (TYPE_MIN): Likewise.
3361         (TYPE_TRUE_MIN): Likewise.
3362         (TYPE_MAX): Likewise.
3363         (MIN_EXP): Likewise.
3364         (MAX_EXP): Likewise.
3365         (MANT_DIG): Likewise.
3366         (FSTR_MAX): Likewise.
3367         (ulp_idx): Likewise.
3368         (qtype_str): Remove static.
3369         (TEST_COND_binary32): Remove.
3370         (TEST_COND_binary64): Likewise.
3371         (TEST_COND_binary128): Likewise.
3372         (TEST_COND_ibm128): Likewise.
3373         (TEST_COND_intel96): Likewise.
3374         (TEST_COND_m68k96): Likewise.
3375         (TEST_COND_ibm128_libgcc): Likewise.
3376         (XFAIL_IBM128_LIBGCC): Likewise.
3377         (PAYLOAD_DIG): Likewise.
3378         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3379         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3380         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
3381         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
3382         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
3383         (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): Likewise.
3384         (TEST_COND_long32): Likewise.
3385         (TEST_COND_long64): Likewise.
3386         (TEST_COND_before_rounding): Likewise.
3387         (TEST_COND_after_rounding): Likewise.
3388         (ulps_file_name): Likewise.
3389         (ulps_file): Likewise.
3390         (output_ulps): Likewise.
3391         (output_dir): Likewise.
3392         (noErrors): Likewise.
3393         (noTests): Likewise.
3394         (noExcTests): Likewise.
3395         (noErrnoTests): Likewise.
3396         (verbose): Likewise.
3397         (output_max_error): Likewise.
3398         (output_points): Likewise.
3399         (ignore_max_ulp): Likewise.
3400         (max_error): Likewise.
3401         (real_max_error): Likewise.
3402         (imag_max_error): Likewise.
3403         (prev_max_error): Likewise.
3404         (prev_real_max_error): Likewise.
3405         (prev_imag_max_error): Likewise.
3406         (max_valid_error): Likewise.
3407         (TYPE_DECIMAL_DIG): Likewise.
3408         (TYPE_HEX_DIG): Likewise.
3409         (fmt_ftostr): Likewise.
3410         (compare_ulp_data): Likewise.
3411         (find_ulps): Likewise.
3412         (init_max_error): Likewise.
3413         (set_max_error): Likewise.
3414         (print_float): Likewise.
3415         (print_screen): Likewise.
3416         (print_screen_max_error): Likewise.
3417         (update_stats): Likewise.
3418         (print_function_ulps): Likewise.
3419         (print_complex_function_ulps): Likewise.
3420         (fpstack_test): Likewise.
3421         (print_max_error): Likewise.
3422         (print_complex_max_error): Likewise.
3423         (test_single_exception): Likewise.
3424         (test_exceptions): Likewise.
3425         (test_single_errno): Likewise.
3426         (test_errno): Likewise.
3427         (ULPDIFF): Likewise.
3428         (ulp): Likewise.
3429         (check_float_internal): Likewise.
3430         (check_float): Likewise.
3431         (check_complex): Likewise.
3432         (check_int): Likewise.
3433         (check_long): Likewise.
3434         (check_bool): Likewise.
3435         (check_longlong): Likewise.
3436         (check_intmax_t): Likewise.
3437         (check_uintmax_t): Likewise.
3438         (enable_test): Likewise.
3439         (matherr): Likewise.
3440         (initialize): Likewise.
3441         (options): Likewise.
3442         (doc): Remove static.
3443         (argp): Likewise.
3444         (parse_opt): Remove.
3445         (check_ulp): Likewise.
3446         (libm_test_init): Likewise.
3447         (libm_test_finish): Likewise.
3448         * math/Makefile (libm-test-support): New variable.
3449         (test-extras): Add libm-test-support files.
3450         (extra-test-objs): Likewise.
3451         (CFLAGS-libm-test-support-float.c): New variable.
3452         (CFLAGS-libm-test-support-double.c): Likewise.
3453         (CFLAGS-libm-test-support-ldouble.c): Likewise.
3454         ($(addprefix $(objpfx),$(libm-tests)): Depend on appropriate
3455         libm-test-support objects.
3456
3457 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3458
3459         * math/Makefile (libm-calls): Move w_exp...
3460         (libm-compat-calls-auto): Here.
3461
3462         * math/w_expl.c: Add suffix "_compat" to filename.
3463         * sysdeps/ia64/fpu/w_expl.c: Likewise.
3464         * sysdeps/ia64/fpu/w_expf.c: Likewise.
3465         * sysdeps/ia64/fpu/w_exp.c: Likewise.
3466         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
3467         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
3468         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
3469         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
3470         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
3471
3472         * math/w_expl_compat.c: New file, copied from above.
3473         * sysdeps/ia64/fpu/w_exp_compat.c: Likewise.
3474         * sysdeps/ia64/fpu/w_expf_compat.c: Likewise.
3475         * sysdeps/ia64/fpu/w_expl_compat.c: Likewise.
3476         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
3477         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
3478         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
3479         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
3480         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
3481
3482         * sysdeps/ieee754/ldbl-64-128/w_expl.c: Add suffix "_compat"
3483         to filename.
3484         * sysdeps/ieee754/ldbl-opt/w_exp.c: Likewise.
3485
3486         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: New file,
3487         copied from above and adjusted for the new filenames.
3488         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
3489
3490 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3491
3492         * math/Makefile (libm-calls): Move w_lgammaF...
3493         (libm-compat-calls-auto): Here.
3494
3495         * math/w_lgamma.c: Add suffix "_compat2" to filename.
3496         * math/w_lgammaf.c: Likewise.
3497         * math/w_lgammal.c: Likewise.
3498
3499         * math/w_lgamma_compat2.c: New file, copied from above.
3500         * math/w_lgammaf_compat2.c: Likewise.
3501         * math/w_lgammal_compat2.c: Likewise.
3502
3503 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3504
3505         * math/Makefile (libm-calls): Move w_lgammaF_r...
3506         (libm-compat-calls-auto): Here.
3507
3508         * math/w_lgamma_r.c: Add suffix "_compat" to filename.
3509         * math/w_lgammaf_r.c: Likewise.
3510         * math/w_lgammal_r.c: Likewise.
3511         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
3512         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
3513         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
3514
3515         * math/w_lgamma_r_compat.c: New file, copied from above.
3516         * math/w_lgammaf_r_compat.c: Likewise.
3517         * math/w_lgammal_r_compat.c: Likewise.
3518         * sysdeps/ia64/fpu/w_lgamma_r_compat.c: Likewise.
3519         * sysdeps/ia64/fpu/w_lgammaf_r_compat.c: Likewise.
3520         * sysdeps/ia64/fpu/w_lgammal_r_compat.c: Likewise.
3521
3522         * sysdeps/ieee754/ldbl-opt/w_lgamma_r.c: Add suffix "_compat"
3523         to filename.
3524         * sysdeps/ieee754/ldbl-opt/w_lgammal_r.c: Likewise.
3525
3526         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: New file
3527         copied from above and adjusted for the new filenames.
3528         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
3529
3530 2017-02-08  Yury Norov  <ynorov@caviumnetworks.com>
3531
3532         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: use PTR_REG() for offset
3533         calculation in SYSCALL_ERROR_HANDLER().
3534
3535 2017-02-08  Rical Jasan  <ricaljasan@pacific.net>
3536
3537         * manual/contrib.texi: Fix typo.
3538
3539 2017-02-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3540
3541         [BZ #21109]
3542         * elf/dl-tunable-types.h (tunable_callback_t): Accept
3543         tunable_val_t as argument.
3544         * elf/dl-tunables.c (__tunable_set_val): Add comment.
3545         * malloc/arena.c (set_mallopt_check): Take tunable_val_t as
3546         argument.
3547         (DL_TUNABLE_CALLBACK_FNDECL): Likewise.
3548
3549 2017-02-08  Kir Kolyshkin  <kir@openvz.org>
3550
3551         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_eventcodes):
3552         Add PTRACE_EVENT_STOP.
3553         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
3554         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
3555         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
3556         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
3557         * sysdeps/unix/sysv/linux/sys/ptrace.h: Likewise.
3558         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
3559
3560 2017-02-07  Joseph Myers  <joseph@codesourcery.com>
3561
3562         * math/test-math-finite.h (TEST_EXCEPTIONS): New macro.
3563         * math/test-math-no-finite.h (TEST_EXCEPTIONS): Likewise.
3564         * math/test-math-vector.h (TEST_EXCEPTIONS): Likewise.
3565         * math/test-math-no-inline.h (TEST_EXCEPTIONS): Remove macro.
3566         * math/test-double-vlen2.h (EXCEPTION_TESTS_double): Likewise.
3567         * math/test-double-vlen4.h (EXCEPTION_TESTS_double): Likewise.
3568         * math/test-double-vlen8.h (EXCEPTION_TESTS_double): Likewise.
3569         * math/test-float-vlen4.h (EXCEPTION_TESTS_float): Likewise.
3570         * math/test-float-vlen8.h (EXCEPTION_TESTS_float): Likewise.
3571         * math/test-float-vlen16.h (EXCEPTION_TESTS_float): Likewise.
3572
3573         [BZ #21112]
3574         * sysdeps/ieee754/flt-32/e_powf.c (cp_h): Use value with trailing
3575         12 bits zero.
3576         (cp_l): Update for new value of cp_h.
3577         * math/auto-libm-test-in: Add another test of pow.
3578         * math/auto-libm-test-out-pow: Regenerated.
3579
3580 2017-02-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3581
3582         * manual/contrib.texi: Fix typo.
3583
3584 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3585
3586         [BZ #15998]
3587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
3588         (arch_minimum_kernel): Set as 3.10.0 for ppc64le.
3589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
3590
3591 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3592
3593         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Redefine
3594         STRCHR as __strchr_power8.
3595         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: Redefine
3596         strlen as __strlen_power8.
3597
3598 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3599
3600         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Adjust address for
3601         unaligned load for shorter strings.
3602         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Likewise.
3603
3604 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
3605
3606         * math/libm-test-driver.c (flag_test_errno): New variable.
3607         (flag_test_exceptions): Likewise.
3608         (flag_test_finite): Likewise.
3609         (flag_test_inline): Likewise.
3610         (flag_test_mathvec): Likewise.
3611         (test_msg): Likewise.
3612         (ulp_idx): Likewise.
3613         (qtype_str): Likewise.
3614         (ULP_IDX): Remove macro.
3615         (QTYPE_STR): Likewise.
3616         (find_ulps): Use ulp_idx not ULP_IDX.
3617         (print_function_ulps): Use qtype_str, printed with %s, not
3618         QTYPE_STR, printed with concatentation to format string.
3619         (print_complex_function_ulps): Likewise.
3620         (test_exceptions): Use flag_test_exceptions not TEST_EXCEPTIONS.
3621         (test_errno): Use flag_test_errno not TEST_ERRNO.
3622         (enable_test): Use flag_test_inline, flag_test_finite and
3623         flag_test_mathvec instead of TEST_INLINE, TEST_FINITE and
3624         TEST_MATHVEC.
3625         (libm_test_init): New function.  Factored out of main.
3626         (libm_test_finish): Likewise.
3627         (main): Call libm_test_init and libm_test_finish and move most
3628         code to those functions.
3629
3630         * math/libm-test-driver.c (STRX): New macro.
3631         (STR): Likewise.
3632         (STR_FLOAT): Likewise.
3633         (STR_VEC_LEN): Likewise.
3634         (TEST_MSG): Likewise.  Define here instead of expecting to be
3635         defined by including file.
3636         * math/test-double-finite.c (TEST_MSG): Remove macro.
3637         * math/test-double-vlen2.h (TEST_MSG): Likewise.
3638         * math/test-double-vlen4.h (TEST_MSG): Likewise.
3639         * math/test-double-vlen8.h (TEST_MSG): Likewise.
3640         * math/test-double.c (TEST_MSG): Likewise.
3641         * math/test-float-finite.c (TEST_MSG): Likewise.
3642         * math/test-float-vlen16.h (TEST_MSG): Likewise.
3643         * math/test-float-vlen4.h (TEST_MSG): Likewise.
3644         * math/test-float-vlen8.h (TEST_MSG): Likewise.
3645         * math/test-float.c (TEST_MSG): Likewise.
3646         * math/test-idouble.c (TEST_MSG): Likewise.
3647         * math/test-ifloat.c (TEST_MSG): Likewise.
3648         * math/test-ildouble.c (TEST_MSG): Likewise.
3649         * math/test-ldouble-finite.c (TEST_MSG): Likewise.
3650         * math/test-ldouble.c (TEST_MSG): Likewise.
3651
3652         * math/libm-test.inc: Move all tests of individual functions to
3653         libm-test-*.inc and #include libm-test-*.c files.
3654         (acos_test_data): Remove.
3655         (acos_test): Likewise.
3656         (acosh_test_data): Likewise.
3657         (acosh_test): Likewise.
3658         (asin_test_data): Likewise.
3659         (asin_test): Likewise.
3660         (asinh_test_data): Likewise.
3661         (asinh_test): Likewise.
3662         (atan_test_data): Likewise.
3663         (atan_test): Likewise.
3664         (atanh_test_data): Likewise.
3665         (atanh_test): Likewise.
3666         (atan2_test_data): Likewise.
3667         (atan2_test): Likewise.
3668         (cabs_test_data): Likewise.
3669         (cabs_test): Likewise.
3670         (cacos_test_data): Likewise.
3671         (cacos_test): Likewise.
3672         (cacosh_test_data): Likewise.
3673         (cacosh_test): Likewise.
3674         (canonicalize_test_data): Likewise.
3675         (canonicalize_test): Likewise.
3676         (carg_test_data): Likewise.
3677         (carg_test): Likewise.
3678         (casin_test_data): Likewise.
3679         (casin_test): Likewise.
3680         (casinh_test_data): Likewise.
3681         (casinh_test): Likewise.
3682         (catan_test_data): Likewise.
3683         (catan_test): Likewise.
3684         (catanh_test_data): Likewise.
3685         (catanh_test): Likewise.
3686         (cbrt_test_data): Likewise.
3687         (cbrt_test): Likewise.
3688         (ccos_test_data): Likewise.
3689         (ccos_test): Likewise.
3690         (ccosh_test_data): Likewise.
3691         (ccosh_test): Likewise.
3692         (ceil_test_data): Likewise.
3693         (ceil_test): Likewise.
3694         (cexp_test_data): Likewise.
3695         (cexp_test): Likewise.
3696         (cimag_test_data): Likewise.
3697         (cimag_test): Likewise.
3698         (clog_test_data): Likewise.
3699         (clog_test): Likewise.
3700         (clog10_test_data): Likewise.
3701         (clog10_test): Likewise.
3702         (conj_test_data): Likewise.
3703         (conj_test): Likewise.
3704         (copysign_test_data): Likewise.
3705         (copysign_test): Likewise.
3706         (cos_test_data): Likewise.
3707         (cos_test): Likewise.
3708         (cosh_test_data): Likewise.
3709         (cosh_test): Likewise.
3710         (cpow_test_data): Likewise.
3711         (cpow_test): Likewise.
3712         (cproj_test_data): Likewise.
3713         (cproj_test): Likewise.
3714         (creal_test_data): Likewise.
3715         (creal_test): Likewise.
3716         (csin_test_data): Likewise.
3717         (csin_test): Likewise.
3718         (csinh_test_data): Likewise.
3719         (csinh_test): Likewise.
3720         (csqrt_test_data): Likewise.
3721         (csqrt_test): Likewise.
3722         (ctan_test_data): Likewise.
3723         (ctan_test): Likewise.
3724         (ctanh_test_data): Likewise.
3725         (ctanh_test): Likewise.
3726         (erf_test_data): Likewise.
3727         (erf_test): Likewise.
3728         (erfc_test_data): Likewise.
3729         (erfc_test): Likewise.
3730         (exp_test_data): Likewise.
3731         (exp_test): Likewise.
3732         (exp10_test_data): Likewise.
3733         (exp10_test): Likewise.
3734         (pow10_test): Likewise.
3735         (exp2_test_data): Likewise.
3736         (exp2_test): Likewise.
3737         (expm1_test_data): Likewise.
3738         (expm1_test): Likewise.
3739         (fabs_test_data): Likewise.
3740         (fabs_test): Likewise.
3741         (fdim_test_data): Likewise.
3742         (fdim_test): Likewise.
3743         (floor_test_data): Likewise.
3744         (floor_test): Likewise.
3745         (fma_test_data): Likewise.
3746         (fma_test): Likewise.
3747         (fmax_test_data): Likewise.
3748         (fmax_test): Likewise.
3749         (fmaxmag_test_data): Likewise.
3750         (fmaxmag_test): Likewise.
3751         (fmin_test_data): Likewise.
3752         (fmin_test): Likewise.
3753         (fminmag_test_data): Likewise.
3754         (fminmag_test): Likewise.
3755         (fmod_test_data): Likewise.
3756         (fmod_test): Likewise.
3757         (fpclassify_test_data): Likewise.
3758         (fpclassify_test): Likewise.
3759         (frexp_test_data): Likewise.
3760         (frexp_test): Likewise.
3761         (fromfp_test_data): Likewise.
3762         (fromfp_test): Likewise.
3763         (fromfpx_test_data): Likewise.
3764         (fromfpx_test): Likewise.
3765         (getpayload_test_data): Likewise.
3766         (getpayload_test): Likewise.
3767         (hypot_test_data): Likewise.
3768         (hypot_test): Likewise.
3769         (ilogb_test_data): Likewise.
3770         (ilogb_test): Likewise.
3771         (iscanonical_test_data): Likewise.
3772         (iscanonical_test): Likewise.
3773         (iseqsig_test_data): Likewise.
3774         (iseqsig_test): Likewise.
3775         (isfinite_test_data): Likewise.
3776         (isfinite_test): Likewise.
3777         (finite_test): Likewise.
3778         (isgreater_test_data): Likewise.
3779         (isgreater_test): Likewise.
3780         (isgreaterequal_test_data): Likewise.
3781         (isgreaterequal_test): Likewise.
3782         (isinf_test_data): Likewise.
3783         (isinf_test): Likewise.
3784         (isless_test_data): Likewise.
3785         (isless_test): Likewise.
3786         (islessequal_test_data): Likewise.
3787         (islessequal_test): Likewise.
3788         (islessgreater_test_data): Likewise.
3789         (islessgreater_test): Likewise.
3790         (isnan_test_data): Likewise.
3791         (isnan_test): Likewise.
3792         (isnormal_test_data): Likewise.
3793         (isnormal_test): Likewise.
3794         (issignaling_test_data): Likewise.
3795         (issignaling_test): Likewise.
3796         (issubnormal_test_data): Likewise.
3797         (issubnormal_test): Likewise.
3798         (isunordered_test_data): Likewise.
3799         (isunordered_test): Likewise.
3800         (iszero_test_data): Likewise.
3801         (iszero_test): Likewise.
3802         (j0_test_data): Likewise.
3803         (j0_test): Likewise.
3804         (j1_test_data): Likewise.
3805         (j1_test): Likewise.
3806         (jn_test_data): Likewise.
3807         (jn_test): Likewise.
3808         (lgamma_test_data): Likewise.
3809         (lgamma_test): Likewise.
3810         (gamma_test): Likewise.
3811         (llogb_test_data): Likewise.
3812         (llogb_test): Likewise.
3813         (lrint_test_data): Likewise.
3814         (lrint_test): Likewise.
3815         (llrint_test_data): Likewise.
3816         (llrint_test): Likewise.
3817         (log_test_data): Likewise.
3818         (log_test): Likewise.
3819         (log10_test_data): Likewise.
3820         (log10_test): Likewise.
3821         (log1p_test_data): Likewise.
3822         (log1p_test): Likewise.
3823         (log2_test_data): Likewise.
3824         (log2_test): Likewise.
3825         (logb_test_data): Likewise.
3826         (logb_test): Likewise.
3827         (lround_test_data): Likewise.
3828         (lround_test): Likewise.
3829         (llround_test_data): Likewise.
3830         (llround_test): Likewise.
3831         (modf_test_data): Likewise.
3832         (modf_test): Likewise.
3833         (nearbyint_test_data): Likewise.
3834         (nearbyint_test): Likewise.
3835         (nextafter_test_data): Likewise.
3836         (nextafter_test): Likewise.
3837         (nextup_test_data): Likewise.
3838         (nextup_test): Likewise.
3839         (nextdown_test_data): Likewise.
3840         (nextdown_test): Likewise.
3841         (nexttoward_test_data): Likewise.
3842         (nexttoward_test): Likewise.
3843         (pow_test_data): Likewise.
3844         (pow_test): Likewise.
3845         (remainder_test_data): Likewise.
3846         (remainder_test): Likewise.
3847         (drem_test): Likewise.
3848         (remquo_test_data): Likewise.
3849         (remquo_test): Likewise.
3850         (rint_test_data): Likewise.
3851         (rint_test): Likewise.
3852         (round_test_data): Likewise.
3853         (round_test): Likewise.
3854         (roundeven_test_data): Likewise.
3855         (roundeven_test): Likewise.
3856         (scalb_test_data): Likewise.
3857         (scalb_test): Likewise.
3858         (scalbn_test_data): Likewise.
3859         (scalbn_test): Likewise.
3860         (ldexp_test): Likewise.
3861         (scalbln_test_data): Likewise.
3862         (scalbln_test): Likewise.
3863         (setpayload_test_data): Likewise.
3864         (setpayload_test): Likewise.
3865         (setpayloadsig_test_data): Likewise.
3866         (setpayloadsig_test): Likewise.
3867         (signbit_test_data): Likewise.
3868         (signbit_test): Likewise.
3869         (sin_test_data): Likewise.
3870         (sin_test): Likewise.
3871         (sincos_test_data): Likewise.
3872         (sincos_test): Likewise.
3873         (sinh_test_data): Likewise.
3874         (sinh_test): Likewise.
3875         (sqrt_test_data): Likewise.
3876         (sqrt_test): Likewise.
3877         (tan_test_data): Likewise.
3878         (tan_test): Likewise.
3879         (tanh_test_data): Likewise.
3880         (tanh_test): Likewise.
3881         (tgamma_test_data): Likewise.
3882         (tgamma_test): Likewise.
3883         (totalorder_test_data): Likewise.
3884         (totalorder_test): Likewise.
3885         (totalordermag_test_data): Likewise.
3886         (totalordermag_test): Likewise.
3887         (trunc_test_data): Likewise.
3888         (trunc_test): Likewise.
3889         (ufromfp_test_data): Likewise.
3890         (ufromfp_test): Likewise.
3891         (ufromfpx_test_data): Likewise.
3892         (ufromfpx_test): Likewise.
3893         (y0_test_data): Likewise.
3894         (y0_test): Likewise.
3895         (y1_test_data): Likewise.
3896         (y1_test): Likewise.
3897         (yn_test_data): Likewise.
3898         (yn_test): Likewise.
3899         (significand_test_data): Likewise.
3900         (significand_test): Likewise.
3901         * math/Makefile (auto-libm-test-out-files): Remove variable.
3902         (libm-test-funcs-noauto): New variable.
3903         (libm-test-funcs-all): Likewise.
3904         (libm-test-c-auto): Likewise.
3905         (libm-test-c-noauto): Likewise.
3906         (libm-tests-generated): Add $(libm-test-c-auto) and
3907         $(libm-test-c-noauto).
3908         (generated): Do not add auto-libm-test-out.
3909         (libm-test-c-auto-obj): New variable.
3910         (libm-test-c-noauto-obj): Likewise.
3911         ($(objpfx)libm-test.c): Do not generate or use auto-libm-test-out.
3912         ($(libm-test-c-noauto-obj)): New static pattern rule.
3913         ($(libm-test-c-auto-obj)): Likewise.
3914         (libm-test-incs): New variable.
3915         ($(objpfx)libm-have-vector-test.h): Depend on $(libm-test-incs)
3916         and pass it to gen-libm-have-vector-test.sh.
3917         * math/gen-libm-have-vector-test.sh: Expect list of .inc files to
3918         be passed on command line.
3919         * math/libm-test-acos.inc: New file.  Content from
3920         math/libm-test.inc.
3921         * math/libm-test-acosh.inc: Likewise.
3922         * math/libm-test-asin.inc: Likewise.
3923         * math/libm-test-asinh.inc: Likewise.
3924         * math/libm-test-atan.inc: Likewise.
3925         * math/libm-test-atan2.inc: Likewise.
3926         * math/libm-test-atanh.inc: Likewise.
3927         * math/libm-test-cabs.inc: Likewise.
3928         * math/libm-test-cacos.inc: Likewise.
3929         * math/libm-test-cacosh.inc: Likewise.
3930         * math/libm-test-canonicalize.inc: Likewise.
3931         * math/libm-test-carg.inc: Likewise.
3932         * math/libm-test-casin.inc: Likewise.
3933         * math/libm-test-casinh.inc: Likewise.
3934         * math/libm-test-catan.inc: Likewise.
3935         * math/libm-test-catanh.inc: Likewise.
3936         * math/libm-test-cbrt.inc: Likewise.
3937         * math/libm-test-ccos.inc: Likewise.
3938         * math/libm-test-ccosh.inc: Likewise.
3939         * math/libm-test-ceil.inc: Likewise.
3940         * math/libm-test-cexp.inc: Likewise.
3941         * math/libm-test-cimag.inc: Likewise.
3942         * math/libm-test-clog.inc: Likewise.
3943         * math/libm-test-clog10.inc: Likewise.
3944         * math/libm-test-conj.inc: Likewise.
3945         * math/libm-test-copysign.inc: Likewise.
3946         * math/libm-test-cos.inc: Likewise.
3947         * math/libm-test-cosh.inc: Likewise.
3948         * math/libm-test-cpow.inc: Likewise.
3949         * math/libm-test-cproj.inc: Likewise.
3950         * math/libm-test-creal.inc: Likewise.
3951         * math/libm-test-csin.inc: Likewise.
3952         * math/libm-test-csinh.inc: Likewise.
3953         * math/libm-test-csqrt.inc: Likewise.
3954         * math/libm-test-ctan.inc: Likewise.
3955         * math/libm-test-ctanh.inc: Likewise.
3956         * math/libm-test-erf.inc: Likewise.
3957         * math/libm-test-erfc.inc: Likewise.
3958         * math/libm-test-exp.inc: Likewise.
3959         * math/libm-test-exp10.inc: Likewise.
3960         * math/libm-test-exp2.inc: Likewise.
3961         * math/libm-test-expm1.inc: Likewise.
3962         * math/libm-test-fabs.inc: Likewise.
3963         * math/libm-test-fdim.inc: Likewise.
3964         * math/libm-test-floor.inc: Likewise.
3965         * math/libm-test-fma.inc: Likewise.
3966         * math/libm-test-fmax.inc: Likewise.
3967         * math/libm-test-fmaxmag.inc: Likewise.
3968         * math/libm-test-fmin.inc: Likewise.
3969         * math/libm-test-fminmag.inc: Likewise.
3970         * math/libm-test-fmod.inc: Likewise.
3971         * math/libm-test-fpclassify.inc: Likewise.
3972         * math/libm-test-frexp.inc: Likewise.
3973         * math/libm-test-fromfp.inc: Likewise.
3974         * math/libm-test-fromfpx.inc: Likewise.
3975         * math/libm-test-getpayload.inc: Likewise.
3976         * math/libm-test-hypot.inc: Likewise.
3977         * math/libm-test-ilogb.inc: Likewise.
3978         * math/libm-test-iscanonical.inc: Likewise.
3979         * math/libm-test-iseqsig.inc: Likewise.
3980         * math/libm-test-isfinite.inc: Likewise.
3981         * math/libm-test-isgreater.inc: Likewise.
3982         * math/libm-test-isgreaterequal.inc: Likewise.
3983         * math/libm-test-isinf.inc: Likewise.
3984         * math/libm-test-isless.inc: Likewise.
3985         * math/libm-test-islessequal.inc: Likewise.
3986         * math/libm-test-islessgreater.inc: Likewise.
3987         * math/libm-test-isnan.inc: Likewise.
3988         * math/libm-test-isnormal.inc: Likewise.
3989         * math/libm-test-issignaling.inc: Likewise.
3990         * math/libm-test-issubnormal.inc: Likewise.
3991         * math/libm-test-isunordered.inc: Likewise.
3992         * math/libm-test-iszero.inc: Likewise.
3993         * math/libm-test-j0.inc: Likewise.
3994         * math/libm-test-j1.inc: Likewise.
3995         * math/libm-test-jn.inc: Likewise.
3996         * math/libm-test-lgamma.inc: Likewise.
3997         * math/libm-test-llogb.inc: Likewise.
3998         * math/libm-test-llrint.inc: Likewise.
3999         * math/libm-test-llround.inc: Likewise.
4000         * math/libm-test-log.inc: Likewise.
4001         * math/libm-test-log10.inc: Likewise.
4002         * math/libm-test-log1p.inc: Likewise.
4003         * math/libm-test-log2.inc: Likewise.
4004         * math/libm-test-logb.inc: Likewise.
4005         * math/libm-test-lrint.inc: Likewise.
4006         * math/libm-test-lround.inc: Likewise.
4007         * math/libm-test-modf.inc: Likewise.
4008         * math/libm-test-nearbyint.inc: Likewise.
4009         * math/libm-test-nextafter.inc: Likewise.
4010         * math/libm-test-nextdown.inc: Likewise.
4011         * math/libm-test-nexttoward.inc: Likewise.
4012         * math/libm-test-nextup.inc: Likewise.
4013         * math/libm-test-pow.inc: Likewise.
4014         * math/libm-test-remainder.inc: Likewise.
4015         * math/libm-test-remquo.inc: Likewise.
4016         * math/libm-test-rint.inc: Likewise.
4017         * math/libm-test-round.inc: Likewise.
4018         * math/libm-test-roundeven.inc: Likewise.
4019         * math/libm-test-scalb.inc: Likewise.
4020         * math/libm-test-scalbln.inc: Likewise.
4021         * math/libm-test-scalbn.inc: Likewise.
4022         * math/libm-test-setpayload.inc: Likewise.
4023         * math/libm-test-setpayloadsig.inc: Likewise.
4024         * math/libm-test-signbit.inc: Likewise.
4025         * math/libm-test-significand.inc: Likewise.
4026         * math/libm-test-sin.inc: Likewise.
4027         * math/libm-test-sincos.inc: Likewise.
4028         * math/libm-test-sinh.inc: Likewise.
4029         * math/libm-test-sqrt.inc: Likewise.
4030         * math/libm-test-tan.inc: Likewise.
4031         * math/libm-test-tanh.inc: Likewise.
4032         * math/libm-test-tgamma.inc: Likewise.
4033         * math/libm-test-totalorder.inc: Likewise.
4034         * math/libm-test-totalordermag.inc: Likewise.
4035         * math/libm-test-trunc.inc: Likewise.
4036         * math/libm-test-ufromfp.inc: Likewise.
4037         * math/libm-test-ufromfpx.inc: Likewise.
4038         * math/libm-test-y0.inc: Likewise.
4039         * math/libm-test-y1.inc: Likewise.
4040         * math/libm-test-yn.inc: Likewise.
4041         * math/README.libm-test: Update.
4042
4043         * math/gen-auto-libm-tests.c: Update comment about use of program.
4044         (generate_output): Add argument FUNCTION.
4045         (main): Require extra argument.  Pass function name to
4046         generate_output.
4047         * math/Makefile (generated): Add auto-libm-test-out.
4048         (libm-test-funcs-auto): New variable.
4049         (auto-libm-test-out-files): New variable.
4050         ($(objpfx)libm-test.c): Depend on $(auto-libm-test-out-files).
4051         Concatenate those files to form $(objpfx)auto-libm-test-out and
4052         use it as input to gen-libm-test.pl.
4053         * math/README.libm-test: Update.
4054         * math/auto-libm-test-out: Remove.
4055         * math/auto-libm-test-out-acos: New generated file.
4056         * math/auto-libm-test-out-acosh: Likewise.
4057         * math/auto-libm-test-out-asin: Likewise.
4058         * math/auto-libm-test-out-asinh: Likewise.
4059         * math/auto-libm-test-out-atan: Likewise.
4060         * math/auto-libm-test-out-atan2: Likewise.
4061         * math/auto-libm-test-out-atanh: Likewise.
4062         * math/auto-libm-test-out-cabs: Likewise.
4063         * math/auto-libm-test-out-carg: Likewise.
4064         * math/auto-libm-test-out-cbrt: Likewise.
4065         * math/auto-libm-test-out-ccos: Likewise.
4066         * math/auto-libm-test-out-ccosh: Likewise.
4067         * math/auto-libm-test-out-cexp: Likewise.
4068         * math/auto-libm-test-out-clog: Likewise.
4069         * math/auto-libm-test-out-clog10: Likewise.
4070         * math/auto-libm-test-out-cos: Likewise.
4071         * math/auto-libm-test-out-cosh: Likewise.
4072         * math/auto-libm-test-out-cpow: Likewise.
4073         * math/auto-libm-test-out-csin: Likewise.
4074         * math/auto-libm-test-out-csinh: Likewise.
4075         * math/auto-libm-test-out-csqrt: Likewise.
4076         * math/auto-libm-test-out-ctan: Likewise.
4077         * math/auto-libm-test-out-ctanh: Likewise.
4078         * math/auto-libm-test-out-erf: Likewise.
4079         * math/auto-libm-test-out-erfc: Likewise.
4080         * math/auto-libm-test-out-exp: Likewise.
4081         * math/auto-libm-test-out-exp10: Likewise.
4082         * math/auto-libm-test-out-exp2: Likewise.
4083         * math/auto-libm-test-out-expm1: Likewise.
4084         * math/auto-libm-test-out-fma: Likewise.
4085         * math/auto-libm-test-out-hypot: Likewise.
4086         * math/auto-libm-test-out-j0: Likewise.
4087         * math/auto-libm-test-out-j1: Likewise.
4088         * math/auto-libm-test-out-jn: Likewise.
4089         * math/auto-libm-test-out-lgamma: Likewise.
4090         * math/auto-libm-test-out-log: Likewise.
4091         * math/auto-libm-test-out-log10: Likewise.
4092         * math/auto-libm-test-out-log1p: Likewise.
4093         * math/auto-libm-test-out-log2: Likewise.
4094         * math/auto-libm-test-out-pow: Likewise.
4095         * math/auto-libm-test-out-sin: Likewise.
4096         * math/auto-libm-test-out-sincos: Likewise.
4097         * math/auto-libm-test-out-sinh: Likewise.
4098         * math/auto-libm-test-out-sqrt: Likewise.
4099         * math/auto-libm-test-out-tan: Likewise.
4100         * math/auto-libm-test-out-tanh: Likewise.
4101         * math/auto-libm-test-out-tgamma: Likewise.
4102         * math/auto-libm-test-out-y0: Likewise.
4103         * math/auto-libm-test-out-y1: Likewise.
4104         * math/auto-libm-test-out-yn: Likewise.
4105
4106         * math/Makefile (generated): Do not include libm-test.stmp.
4107         ($(addprefix $(objpfx), $(libm-tests-generated))): Do not depend
4108         on $(objpfx)libm-test.stmp.
4109         ($(objpfx)libm-test.stmp): Remove rule.
4110         ($(objpfx)libm-test-ulps.h): New rule.
4111         ($(objpfx)libm-test.c): Likewise.
4112         ($(objpfx)libm-have-vector-test.h): Likewise.
4113         ($(addprefix $(objpfx), $(libm-tests.o)): Depend directly on
4114         individual generated files, not libm-test.stmp.
4115
4116         * math/gen-libm-test.pl ($output_dir): Remove variable.
4117         ($srcdir): Likewise.
4118         ($opt_a): New variable.
4119         ($opt_c): Likewise.
4120         ($opt_C): Likewise.
4121         ($opt_H): Likewise.
4122         (-n): Make option take argument and use it as NewUlps output.
4123         (-a): New option.  Use its argument for auto-libm-test-out input.
4124         (-c): New option.  Use its argument for libm-test.inc input.
4125         (-C): New option.  Use its argument for libm-test.c output.
4126         (-H): New option.  Use its argument for libm-test-ulps.h output.
4127         (top level): Only process inputs needed to generate outputs
4128         specified by command-line options.  Only generate outputs
4129         specified by command-line options.
4130         * math/README.libm-test: Update example gen-libm-test.pl command.
4131         * math/Makefile ($(objpfx)libm-test.stmp): Update gen-libm-test.pl
4132         commands.
4133         (regen-ulps): Likewise.
4134
4135 2017-02-06  Wilco Dijkstra  <wdijkstr@arm.com>
4136
4137         * hurd/path-lookup.c (file_name_path_scan): Rename index to strchr.
4138         * include/string.h (index): Remove define.
4139         (rindex): Likewise.
4140         * misc/getttyent.c (__getttyent): Rename index to strchr.
4141         * misc/ttyslot.c (ttyslot): Rename rindex to strrchr.
4142         * sunrpc/rpc_main.c (mkfile_output): Likewise.
4143
4144 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
4145
4146         * math/libm-test-driver.c: New file.  Based on math/libm-test.inc.
4147         * math/libm-test.inc: Move all contents, other than tests of
4148         individual functions, to libm-test-driver.c.
4149         [!FE_TONEAREST] (FE_TONEAREST): Move to libm-test-driver.c.
4150         [!FE_TOWARDZERO] (FE_TOWARDZERO): Likewise.
4151         [!FE_UPWARD] (FE_UPWARD): Likewise.
4152         [!FE_DOWNWARD] (FE_DOWNWARD): Likewise.
4153         (NO_EXCEPTION): Likewise.
4154         (INVALID_EXCEPTION): Likewise.
4155         (DIVIDE_BY_ZERO_EXCEPTION): Likewise.
4156         (OVERFLOW_EXCEPTION): Likewise.
4157         (UNDERFLOW_EXCEPTION): Likewise.
4158         (INEXACT_EXCEPTION): Likewise.
4159         (INVALID_EXCEPTION_OK): Likewise.
4160         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4161         (OVERFLOW_EXCEPTION_OK): Likewise.
4162         (UNDERFLOW_EXCEPTION_OK): Likewise.
4163         (NO_INEXACT_EXCEPTION): Likewise.
4164         (EXCEPTIONS_OK): Likewise.
4165         (IGNORE_ZERO_INF_SIGN): Likewise.
4166         (TEST_NAN_SIGN): Likewise.
4167         (TEST_NAN_PAYLOAD): Likewise.
4168         (NO_TEST_INLINE): Likewise.
4169         (XFAIL_TEST): Likewise.
4170         (ERRNO_UNCHANGED): Likewise.
4171         (ERRNO_EDOM): Likewise.
4172         (ERRNO_ERANGE): Likewise.
4173         (IGNORE_RESULT): Likewise.
4174         (NON_FINITE): Likewise.
4175         (TEST_SNAN): Likewise.
4176         (NO_TEST_MATHVEC): Likewise.
4177         (TEST_NAN_PAYLOAD_CANONICALIZE): Likewise.
4178         (__CONCATX): Likewise.
4179         (TYPE_MIN): Likewise.
4180         (TYPE_TRUE_MIN): Likewise.
4181         (TYPE_MAX): Likewise.
4182         (MIN_EXP): Likewise.
4183         (MAX_EXP): Likewise.
4184         (MANT_DIG): Likewise.
4185         (FSTR_MAX): Likewise.
4186         (ULP_IDX): Likewise.
4187         (QTYPE_STR): Likewise.
4188         (TEST_COND_binary32): Likewise.
4189         (TEST_COND_binary64): Likewise.
4190         (TEST_COND_binary128): Likewise.
4191         (TEST_COND_ibm128): Likewise.
4192         (TEST_COND_intel96): Likewise.
4193         (TEST_COND_m68k96): Likewise.
4194         (TEST_COND_ibm128_libgcc): Likewise.
4195         (XFAIL_IBM128_LIBGCC): Likewise.
4196         (PAYLOAD_DIG): Likewise.
4197         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4198         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4199         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4200         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
4201         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4202         (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): Likewise.
4203         (TEST_COND_long32): Likewise.
4204         (TEST_COND_long64): Likewise.
4205         (TEST_COND_before_rounding): Likewise.
4206         (TEST_COND_after_rounding): Likewise.
4207         (lit_pi_3_m_4_d): Likewise.
4208         (lit_pi_3_m_4_ln10_m_d): Likewise.
4209         (lit_pi_2_ln10_m_d): Likewise.
4210         (lit_pi_4_ln10_m_d): Likewise.
4211         (lit_pi_ln10_d): Likewise.
4212         (lit_pi_2_d): Likewise.
4213         (lit_pi_4_d): Likewise.
4214         (lit_pi): Likewise.
4215         (lit_e): Likewise.
4216         (ulps_file_name): Likewise.
4217         (ulps_file): Likewise.
4218         (output_ulps): Likewise.
4219         (output_dir): Likewise.
4220         (noErrors): Likewise.
4221         (noTests): Likewise.
4222         (noExcTests): Likewise.
4223         (noErrnoTests): Likewise.
4224         (verbose): Likewise.
4225         (output_max_error): Likewise.
4226         (output_points): Likewise.
4227         (ignore_max_ulp): Likewise.
4228         (plus_zero): Likewise.
4229         (minus_zero): Likewise.
4230         (plus_infty): Likewise.
4231         (minus_infty): Likewise.
4232         (qnan_value_pl): Likewise.
4233         (qnan_value): Likewise.
4234         (snan_value_pl): Likewise.
4235         (snan_value): Likewise.
4236         (max_value): Likewise.
4237         (min_value): Likewise.
4238         (min_subnorm_value): Likewise.
4239         (snan_value_ld): Likewise.
4240         (max_error): Likewise.
4241         (real_max_error): Likewise.
4242         (imag_max_error): Likewise.
4243         (prev_max_error): Likewise.
4244         (prev_real_max_error): Likewise.
4245         (prev_imag_max_error): Likewise.
4246         (max_valid_error): Likewise.
4247         (TYPE_DECIMAL_DIG): Likewise.
4248         (TYPE_HEX_DIG): Likewise.
4249         (fmt_ftostr): Likewise.
4250         (compare_ulp_data): Likewise.
4251         (find_ulps): Likewise.
4252         (init_max_error): Likewise.
4253         (set_max_error): Likewise.
4254         (print_float): Likewise.
4255         (print_screen): Likewise.
4256         (print_screen_max_error): Likewise.
4257         (update_stats): Likewise.
4258         (print_function_ulps): Likewise.
4259         (print_complex_function_ulps): Likewise.
4260         (fpstack_test): Likewise.
4261         (print_max_error): Likewise.
4262         (print_complex_max_error): Likewise.
4263         (test_single_exception): Likewise.
4264         (test_exceptions): Likewise.
4265         (test_single_errno): Likewise.
4266         (test_errno): Likewise.
4267         (ULPDIFF): Likewise.
4268         (ulp): Likewise.
4269         (check_float_internal): Likewise.
4270         (check_float): Likewise.
4271         (check_complex): Likewise.
4272         (check_int): Likewise.
4273         (check_long): Likewise.
4274         (check_bool): Likewise.
4275         (check_longlong): Likewise.
4276         (check_intmax_t): Likewise.
4277         (check_uintmax_t): Likewise.
4278         (enable_test): Likewise.
4279         (struct test_f_f_data): Likewise.
4280         (struct test_ff_f_data): Likewise.
4281         (struct test_fj_f_data): Likewise.
4282         (struct test_fi_f_data): Likewise.
4283         (struct test_fl_f_data): Likewise.
4284         (struct test_if_f_data): Likewise.
4285         (struct test_fff_f_data): Likewise.
4286         (struct test_fiu_M_data): Likewise.
4287         (struct test_fiu_U_data): Likewise.
4288         (struct test_c_f_data): Likewise.
4289         (struct test_f_f1_data): Likewise.
4290         (struct test_fF_f1_data): Likewise.
4291         (struct test_ffI_f1_data): Likewise.
4292         (struct test_c_c_data): Likewise.
4293         (struct test_cc_c_data): Likewise.
4294         (struct test_f_i_data): Likewise.
4295         (struct test_ff_i_data): Likewise.
4296         (struct test_f_l_data): Likewise.
4297         (struct test_f_L_data): Likewise.
4298         (struct test_fFF_11_data): Likewise.
4299         (struct test_Ff_b1_data): Likewise.
4300         (IF_ROUND_INIT_): Likewise.
4301         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
4302         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
4303         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
4304         (IF_ROUND_INIT_FE_UPWARD): Likewise.
4305         (ROUND_RESTORE_): Likewise.
4306         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
4307         (ROUND_RESTORE_FE_TONEAREST): Likewise.
4308         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
4309         (ROUND_RESTORE_FE_UPWARD): Likewise.
4310         (RM_): Likewise.
4311         (RM_FE_DOWNWARD): Likewise.
4312         (RM_FE_TONEAREST): Likewise.
4313         (RM_FE_TOWARDZERO): Likewise.
4314         (RM_FE_UPWARD): Likewise.
4315         (COMMON_TEST_SETUP): Likewise.
4316         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
4317         (COMMON_TEST_CLEANUP): Likewise.
4318         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
4319         (RUN_TEST_f_f): Likewise.
4320         (RUN_TEST_LOOP_f_f): Likewise.
4321         (RUN_TEST_fp_f): Likewise.
4322         (RUN_TEST_LOOP_fp_f): Likewise.
4323         (RUN_TEST_2_f): Likewise.
4324         (RUN_TEST_LOOP_2_f): Likewise.
4325         (RUN_TEST_ff_f): Likewise.
4326         (RUN_TEST_LOOP_ff_f): Likewise.
4327         (RUN_TEST_LOOP_fj_f): Likewise.
4328         (RUN_TEST_fi_f): Likewise.
4329         (RUN_TEST_LOOP_fi_f): Likewise.
4330         (RUN_TEST_fl_f): Likewise.
4331         (RUN_TEST_LOOP_fl_f): Likewise.
4332         (RUN_TEST_if_f): Likewise.
4333         (RUN_TEST_LOOP_if_f): Likewise.
4334         (RUN_TEST_fff_f): Likewise.
4335         (RUN_TEST_LOOP_fff_f): Likewise.
4336         (RUN_TEST_fiu_M): Likewise.
4337         (RUN_TEST_LOOP_fiu_M): Likewise.
4338         (RUN_TEST_fiu_U): Likewise.
4339         (RUN_TEST_LOOP_fiu_U): Likewise.
4340         (RUN_TEST_c_f): Likewise.
4341         (RUN_TEST_LOOP_c_f): Likewise.
4342         (RUN_TEST_f_f1): Likewise.
4343         (RUN_TEST_LOOP_f_f1): Likewise.
4344         (RUN_TEST_fF_f1): Likewise.
4345         (RUN_TEST_LOOP_fF_f1): Likewise.
4346         (RUN_TEST_fI_f1): Likewise.
4347         (RUN_TEST_LOOP_fI_f1): Likewise.
4348         (RUN_TEST_ffI_f1_mod8): Likewise.
4349         (RUN_TEST_LOOP_ffI_f1_mod8): Likewise.
4350         (RUN_TEST_Ff_b1): Likewise.
4351         (RUN_TEST_LOOP_Ff_b1): Likewise.
4352         (RUN_TEST_Ffp_b1): Likewise.
4353         (RUN_TEST_LOOP_Ffp_b1): Likewise.
4354         (RUN_TEST_c_c): Likewise.
4355         (RUN_TEST_LOOP_c_c): Likewise.
4356         (RUN_TEST_cc_c): Likewise.
4357         (RUN_TEST_LOOP_cc_c): Likewise.
4358         (RUN_TEST_f_i): Likewise.
4359         (RUN_TEST_LOOP_f_i): Likewise.
4360         (RUN_TEST_f_i_tg): Likewise.
4361         (RUN_TEST_LOOP_f_i_tg): Likewise.
4362         (RUN_TEST_ff_b): Likewise.
4363         (RUN_TEST_LOOP_ff_b): Likewise.
4364         (RUN_TEST_ff_i_tg): Likewise.
4365         (RUN_TEST_LOOP_ff_i_tg): Likewise.
4366         (RUN_TEST_f_b): Likewise.
4367         (RUN_TEST_LOOP_f_b): Likewise.
4368         (RUN_TEST_f_b_tg): Likewise.
4369         (RUN_TEST_LOOP_f_b_tg): Likewise.
4370         (RUN_TEST_f_l): Likewise.
4371         (RUN_TEST_LOOP_f_l): Likewise.
4372         (RUN_TEST_f_L): Likewise.
4373         (RUN_TEST_LOOP_f_L): Likewise.
4374         (RUN_TEST_fFF_11): Likewise.
4375         (RUN_TEST_LOOP_fFF_11): Likewise.
4376         (VEC_SUFF): Likewise.
4377         (STR_CONCAT): Likewise.
4378         (STR_CON3): Likewise.
4379         (HAVE_VECTOR): Likewise.
4380         (START): Likewise.
4381         (END): Likewise.
4382         (END_COMPLEX): Likewise.
4383         (ALL_RM_TEST): Likewise.
4384         (matherr): Likewise.
4385         (initialize): Likewise.
4386         (options): Likewise.
4387         (doc): Likewise.
4388         (parse_opt): Likewise.
4389         (argp): Likewise.
4390         (check_ulp): Likewise.
4391         (main): Likewise.
4392         (do_test): New function.  Call tests of individual functions
4393         previously called from main.
4394
4395         * math/libm-test.inc: Remove comment listing functions tested and
4396         not tested.
4397
4398 2016-02-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4399
4400         * nptl/allocatestack.c [COLORING_INCREMENT] (nptl_ncreated): Remove.
4401         (allocate_stack): Remove COLORING_INCREMENT usage.
4402         * nptl/stack-aliasing.h (COLORING_INCREMENT). Likewise.
4403         * sysdeps/i386/i686/stack-aliasing.h (COLORING_INCREMENT): Likewise.
4404
4405 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
4406
4407         * manual/libm-err-tab.pl (@all_functions): Change to
4408         %all_functions.  Initialize as empty.
4409         (parse_ulps): Add to %all_functions based on functions found in
4410         ulps files.  Ignore results for non-default rounding modes and
4411         vector functions.
4412         (print_platforms): Use %all_platforms.
4413         * manual/math.texi (Errors in Math Functions): Document omissions
4414         from the table.
4415
4416         * math/Makefile (before-compile): Remove.
4417
4418 2017-02-06  Ivo Raisr <ivo.raisr@oracle.com>
4419
4420         [BZ #21075]
4421         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Remove
4422         unused assignment.
4423         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4424
4425 2017-02-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
4426
4427         * sysdeps/nptl/lowlevellock.h (lll_trylock, lll_cond_trylock):
4428         Add __glibc_unlikely hint.
4429
4430 2017-02-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4431
4432         [BZ #16640]
4433         * sysdeps/i386/i686/strtok.S: Remove file.
4434         * sysdeps/i386/i686/strtok_r.S: Likewise.
4435         * sysdeps/i386/strtok.S: Likewise.
4436         * sysdeps/i386/strtok_r.S: Likewise.
4437         * sysdeps/powerpc/powerpc64/strtok.S: Likewise.
4438         * sysdeps/powerpc/powerpc64/strtok_r.S: Likewise.
4439         * sysdeps/x86_64/strtok.S: Likewise.
4440         * sysdeps/x86_64/strtok_r.S: Likewise.
4441
4442         * sysdeps/unix/sysv/linux/arm/posix_fadvise.c: Remove file.
4443         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
4444         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4445         (__ASSUME_FADVISE64_AS_64_64): Define.
4446         * sysdeps/unix/sysv/linux/posix_fadvise.c [__NR_fadvise64]: Add
4447         !defined __ASSUME_FADVISE64_AS_64_64 to use syscall issue.
4448         [!__NR_fadvise64 && __ASSUME_FADVISE64_64_6ARG]: Remove
4449         __ALIGNMENT_ARG usage.
4450         [!__NR_fadvise64 && !__ASSUME_FADVISE64_64_6ARG]: Define
4451         __NR_fadvise64_64 if it is not defined.
4452
4453 2017-02-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4454
4455         * version.h (RELEASE): Set to "development"
4456         (VERSION): Set to 2.25.90.
4457         * NEWS: Add 2.26 section.
4458
4459         * version.h (RELEASE): Set to "stable"
4460         (VERSION): Set to 2.25.
4461         * include/features.h (__GLIBC_MINOR__): Set to 25.
4462
4463         * manual/contrib.texi: Add more contributors from this release
4464         and past releases.
4465
4466         * NEWS (2.25): Add list of bugs fixed.
4467
4468         * NEWS: Add missing news items.
4469
4470 2017-02-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4471
4472         * elf/tst-env-setuid.c (do_execve): Return EXIT_UNSUPPORTED in
4473         parent if child exited in that manner.  Print WEXITSTATUS
4474         instead of the raw status.
4475         (do_test_prep): Rename to do_test.
4476         (do_test): Return the result of run_executable_sgid.
4477         (TEST_FUNCTION_ARGV): Adjust.
4478
4479 2017-02-03  Alexandre Oliva  <aoliva@redhat.com>
4480             Florian Weimer  <fweimer@redhat.com>
4481             Carlos O'Donell  <carlos@redhat.com>
4482
4483         [BZ #20915]
4484         * elf/dl-reloc.c (_dl_nothread_init_static_tls):
4485         Do not initialize DTV.
4486         * nptl/allocatestack.c (init_one_static_tls): Likewise.
4487
4488 2017-02-03  David S. Miller  <davem@davemloft.net>
4489
4490         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax-vis3.S: Remove file.
4491         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
4492         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: Likewise.
4493         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
4494         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: Likewise.
4495         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
4496         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: Likewise.
4497         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
4498         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
4499         (libm-sysdep_routines): Update.
4500         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Remove file.
4501         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: Likewise.
4502         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
4503         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: Likewise.
4504         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
4505         * sysdeps/sparc/sparc64/fpu/s_fmax.S: Likewise.
4506         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: Likewise.
4507         * sysdeps/sparc/sparc64/fpu/s_fmin.S: Likewise.
4508         * sysdeps/sparc/sparc64/fpu/s_fminf.S: Likewise.
4509         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S:
4510         Likewise.
4511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
4512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S:
4513         Likewise.
4514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
4515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S:
4516         Likewise.
4517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
4518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S:
4519         Likewise.
4520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
4521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
4522         (libm-sysdep_routines): Update.
4523
4524 2017-02-02  H.J. Lu  <hongjiu.lu@intel.com>
4525
4526         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
4527         _dl_fatal_printf with _dl_error_printf for IFUNC relocation
4528         against unrelocated shared library.
4529         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
4530
4531 2017-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4532
4533         * sysdeps/generic/unsecvars.h: Add GLIBC_TUNABLES.
4534         * elf/tst-env-setuid-tunables.c
4535         (test_child_tunables)[!HAVE_TUNABLES]: Verify that
4536         GLIBC_TUNABLES is removed in a setgid process.
4537
4538         [BZ #21073]
4539         * elf/dl-tunable-types.h (tunable_seclevel_t): New enum.
4540         * elf/dl-tunables.c (tunables_strdup): Remove.
4541         (get_next_env): Also return the previous envp.
4542         (parse_tunables): Erase tunables of category
4543         TUNABLES_SECLEVEL_SXID_ERASE.
4544         (maybe_enable_malloc_check): Make MALLOC_CHECK_
4545         TUNABLE_SECLEVEL_NONE if /etc/setuid-debug is accessible.
4546         (__tunables_init)[TUNABLES_FRONTEND ==
4547         TUNABLES_FRONTEND_valstring]: Update GLIBC_TUNABLES envvar
4548         after parsing.
4549         [TUNABLES_FRONTEND != TUNABLES_FRONTEND_valstring]: Erase
4550         tunable envvars of category TUNABLES_SECLEVEL_SXID_ERASE.
4551         * elf/dl-tunables.h (struct _tunable): Change member is_secure
4552         to security_level.
4553         * elf/dl-tunables.list: Add security_level annotations for all
4554         tunables.
4555         * scripts/gen-tunables.awk: Recognize and generate enum values
4556         for security_level.
4557         * elf/tst-env-setuid.c: New test case.
4558         * elf/tst-env-setuid-tunables: new test case.
4559         * elf/Makefile (tests-static): Add them.
4560
4561 2017-02-01  Richard Henderson  <rth@twiddle.net>
4562
4563         * sysdeps/alpha/memchr.c (__memchr): Use saturating arithmetic
4564         adjusting the byte count.
4565
4566 2017-02-01  Andreas Schwab  <schwab@linux-m68k.org>
4567
4568         * conform/Makefile (linknamespace-libs): Define.
4569
4570         * sysdeps/m68k/m680x0/m68020/atomic-machine.h
4571         (__arch_compare_and_exchange_val_64_acq, atomic_exchange_acq)
4572         (atomic_exchange_and_add, atomic_add): Add casts to 64 bit asm
4573         operands.
4574
4575 2017-01-31  Chung-Lin Tang  <cltang@codesourcery.com>
4576
4577         * sysdeps/unix/sysv/linux/nios2/ipc_priv.h: New file.
4578
4579 2017-01-30  H.J. Lu  <hongjiu.lu@intel.com>
4580
4581         [BZ #21081]
4582         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
4583         (L(stosb)): Add VZEROUPPER before ret.
4584
4585 2016-01-28  Carlos O'Donell  <carlos@redhat.com>
4586             Alexey Makhalov <amakhalov@vmware.com>
4587             Florian Weimer <fweimer@redhat.com>
4588
4589         [BZ #20116]
4590         * nptl/pthread_create.c: Document concurrency notes.
4591         Enhance thread creation notes.
4592         (create_thread): Use bool *stopped_start.
4593         (START_THREAD_DEFN): Comment ownership of PD.
4594         (__pthread_create_2_1): Add local bool stopped_start and use
4595         that instead of pd->stopped_start where appropriate.
4596         * nptl/createthread.c (create_thread): Use bool *stopped_start.
4597         * sysdeps/nacl/createthread.c (create_thread): Use bool *stopped_start.
4598         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
4599         * nptl/tst-create-detached.c: New file.
4600         * nptl/Makefile (tests): Add tst-create-detached.
4601         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
4602         Reference the enhanced thread creation notes.
4603         * nptl/pthread_setschedparam.c (__pthread_setschedparam): Likewise.
4604         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
4605         * nptl/tpp.c (__pthread_tpp_change_priority): Likewise.
4606         (__pthread_current_priority): Likewise.
4607         * support/Makefile (libsupport-routines): Add xpthread_attr_destroy
4608         xpthread_attr_init, xpthread_attr_setdetachstate, and
4609         xpthread_attr_setstacksize.
4610         * support/xpthread_attr_destroy.c: New file.
4611         * support/xpthread_attr_init.c: New file.
4612         * support/xpthread_attr_setdetachstate.c: New file.
4613         * support/xpthread_attr_setstacksize.c: New file.
4614         * support/xthread.h: Define prototypes for xpthread_attr_destroy
4615         xpthread_attr_init, xpthread_attr_setdetachstate, and
4616         xpthread_attr_setstacksize.
4617
4618 2017-01-27  Florian Weimer  <fweimer@redhat.com>
4619
4620         * nptl/Makefile (tests): Add tst-robust-fork.
4621         * nptl/tst-robust-fork.c: New file.
4622         * support/Makefile (libsupport-routines): Add xmmap, xmunmap,
4623         xpthread_mutex_consistent, xpthread_mutex_destroy,
4624         xpthread_mutex_init, xpthread_mutexattr_destroy,
4625         xpthread_mutexattr_init, xpthread_mutexattr_setprotocol,
4626         xpthread_mutexattr_setpshared, xpthread_mutexattr_setrobust,
4627         xpthread_mutexattr_settype.
4628         * support/xmmap.c: New file.
4629         * support/xmunmap.c: Likewise.
4630         * support/xpthread_mutex_consistent.c: Likewise.
4631         * support/xpthread_mutex_destroy.c: Likewise.
4632         * support/xpthread_mutex_init.c: Likewise.
4633         * support/xpthread_mutexattr_destroy.c: Likewise.
4634         * support/xpthread_mutexattr_init.c: Likewise.
4635         * support/xpthread_mutexattr_setprotocol.c: Likewise.
4636         * support/xpthread_mutexattr_setpshared.c: Likewise.
4637         * support/xpthread_mutexattr_setrobust.c: Likewise.
4638         * support/xpthread_mutexattr_settype.c: Likewise.
4639         * support/xthread.h (xpthread_mutexattr_destroy)
4640         (xpthread_mutexattr_init, xpthread_mutexattr_setprotocol)
4641         (xpthread_mutexattr_setpshared, xpthread_mutexattr_setrobust)
4642         (xpthread_mutexattr_settype, xpthread_mutex_init)
4643         (xpthread_mutex_destroy, xpthread_mutex_consistent): Declare.
4644         * support/xunistd.h (xmmap, xmunmap): Likewise.
4645
4646 2017-01-25  Florian Weimer  <fweimer@redhat.com>
4647
4648         * string/Makefile (xtests): Add comment.
4649         (LOCALES): Add en_GB.UTF-8.
4650         (tst-strcoll-overflow.out): Depend on generated locales.
4651         * string/tst-strcoll-overflow.c: Convert to support/test-driver.c.
4652         (SIZE, TIMEOUT): Update comments.
4653         (do_test): Define as static.  Fail test if setlocale fails.
4654         Return EXIT_UNSUPPORTED if insufficient memory.  Enhance output
4655         messages.
4656         (EXPECTED_SIGNAL, EXPECTED_STATUS, TEST_FUNCTION): Remove.
4657         TIMEOUT at 300 seconds should be enough to run this test
4658         successfully.
4659
4660 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
4661
4662         * soft-fp/op-common.h (_FP_MUL, _FP_FMA, _FP_DIV): Add
4663         /* FALLTHRU */ comments.
4664
4665 2017-01-24  James Clarke  <jrtc27@jrtc27.com>
4666
4667         [BZ #21053]
4668         * sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.sym: Use new REG_R*
4669         constants instead of the old R* ones.
4670         * sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.sym: Likewise.
4671         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (NGPREG): Rename...
4672         (NGREG): ... to this, to fit in with other architectures.
4673         (gpregset_t): Use new NGREG macro.
4674         [__USE_GNU]: Remove condition; all architectures other than tile
4675         are unconditional.
4676         (R*): Rename to REG_R*.
4677
4678 2017-01-20  DJ Delorie  <dj@redhat.com>
4679
4680         * elf/dl-tunables.c (tunable_set_val_if_valid_range): Split into ...
4681         (tunable_set_val_if_valid_range_signed) ... this, and ...
4682         (tunable_set_val_if_valid_range_unsigned) ... this.
4683         (tunable_initialize): Call the correct one of the above based on type.
4684
4685 2017-01-20  Joseph Myers  <joseph@codesourcery.com>
4686
4687         * sysdeps/hppa/fpu/libm-test-ulps: Remove *_tonearest entries.
4688         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
4689         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
4690         * sysdeps/microblaze/libm-test-ulps: Likewise.
4691         * sysdeps/sh/libm-test-ulps: Likewise.
4692
4693         * math/README.libm-test: Update list of characters for input and
4694         output types.
4695
4696 2017-01-20  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4697
4698         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
4699         (__lll_unlock_elision): Fix adapt_count decrement.
4700
4701 2017-01-14  Martin Galvan  <martingalvan@sourceware.org>
4702
4703         * README.pretty-printers (Known issues): Warn about printers not
4704         always covering everything.
4705         * nptl/nptl-printers.py (MutexPrinter): Change output.
4706         * nptl/test-mutex-printers.py: Fix test and adapt to changed output.
4707
4708 2017-01-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
4709
4710         * sysdeps/unix/sysv/linux/s390/htm.h: Adjust comments.
4711         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
4712         * sysdeps/unix/sysv/linux/s390/elision-lock.c: Adjust comments.
4713         (__lll_lock_elision): Do not test futex before starting a
4714         transaction.  Use __glibc_likely instead of __builtin_expect.
4715         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Adjust comments.
4716         (__lll_trylock_elision): Do not test futex before starting a
4717         transaction.  Use __glibc_likely instead of __builtin_expect.
4718
4719 2017-01-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4720
4721         * po/Makefile (update-translations): New target.
4722
4723 2017-01-19  Joseph Myers  <joseph@codesourcery.com>
4724
4725         [BZ #21061]
4726         * sysdeps/unix/sysv/linux/microblaze/clock-compat.c: New file.
4727
4728 2017-01-19  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4729
4730         * elf/dl-tunables (get_next_env): Always advance envp.
4731         * stdlib/tst-empty-env.c: New test case.
4732         * stdlib/Makefile (tests): Use it.
4733
4734 2017-01-19  Joseph Myers  <joseph@codesourcery.com>
4735
4736         [BZ #21047]
4737         * sysdeps/arm/fpu_control.h [!__SOFTFP__] (_FPU_GETCW): Use VFP
4738         name for instruction.
4739         [!__SOFTFP__] (_FPU_SETCW): Likewise.
4740
4741 2017-01-18  Joseph Myers  <joseph@codesourcery.com>
4742
4743         * scripts/build-many-glibcs.py (Config.build_cross_tool): Use -j1
4744         for make install.
4745
4746 2017-01-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4747
4748         * po/bg.po: Merge from Translation Project.
4749         * po/fr.po: Likewise.
4750         * po/ko.po: Likewise.
4751         * po/nl.po: Likewise.
4752         * po/sv.po: Likewise.
4753
4754 2017-01-18  Joseph Myers  <joseph@codesourcery.com>
4755
4756         * manual/install.texi (Tools for Compilation): Update GCC version
4757         known to work to build glibc.
4758         * INSTALL: Regenerated.
4759
4760 2017-01-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
4761
4762         [BZ #21006]
4763         * string/Makefile (LDFLAGS-tst-xbzero-opt): New variable.
4764
4765 2017-01-16  Joseph Myers  <joseph@codesourcery.com>
4766
4767         [BZ #21045]
4768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4769         (__CONTEXT_FUNC_NAME): Pass address of signal mask to be restored
4770         to __sigprocmask.
4771
4772 2017-01-16  Chris Metcalf  <cmetcalf@mellanox.com>
4773
4774         * sysdeps/tile/tilegx/memchr.c (__memchr): Handle pointer
4775         wrap-around.
4776         * sysdeps/tile/tilepro/memchr.c (__memchr): Likewise.
4777
4778         * sysdeps/unix/sysv/linux/tile/ipc_priv.h: New file.
4779
4780 2016-01-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4781
4782         * NEWS: Fix typo.
4783
4784 2016-01-13  Torvald Riegel  <triegel@redhat.com>
4785
4786         * nptl/descr.h (ENQUEUE_MUTEX_BOTH, DEQUEUE_MUTEX): Add compiler
4787         barriers and comments.
4788         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Likewise.
4789         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
4790         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
4791
4792 2016-01-13  Torvald Riegel  <triegel@redhat.com>
4793
4794         [BZ #19402]
4795         * sysdeps/nptl/fork.c (__libc_fork): Clear list of acquired robust
4796         mutexes.
4797
4798 2016-01-13  Torvald Riegel  <triegel@redhat.com>
4799
4800         [BZ #20985]
4801         * nptl/Makefile: Adapt.
4802         * nptl/pthread_mutex_cond_lock.c (LLL_ROBUST_MUTEX_LOCK): Remove.
4803         (LLL_ROBUST_MUTEX_LOCK_MODIFIER): New.
4804         * nptl/pthread_mutex_lock.c (LLL_ROBUST_MUTEX_LOCK): Remove.
4805         (LLL_ROBUST_MUTEX_LOCK_MODIFIER): New.
4806         (__pthread_mutex_lock_full): Inline lll_robust* functions and adapt.
4807         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Inline
4808         lll_robust* functions and adapt.
4809         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
4810         * sysdeps/nptl/lowlevellock.h (__lll_robust_lock_wait,
4811         __lll_robust_lock, lll_robust_cond_lock, __lll_robust_timedlock_wait,
4812         __lll_robust_timedlock, __lll_robust_unlock): Remove.
4813         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_robust_lock,
4814         lll_robust_cond_lock, lll_robust_timedlock, lll_robust_unlock): Remove.
4815         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_robust_lock,
4816         lll_robust_cond_lock, lll_robust_timedlock, lll_robust_unlock): Remove.
4817         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (__lll_robust_lock_wait,
4818         __lll_robust_lock, lll_robust_cond_lock, __lll_robust_timedlock_wait,
4819         __lll_robust_timedlock, __lll_robust_unlock): Remove.
4820         * nptl/lowlevelrobustlock.c: Remove file.
4821         * nptl/lowlevelrobustlock.sym: Likewise.
4822         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Likewise.
4823         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
4824
4825 2017-01-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4826
4827         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
4828
4829 2017-01-12  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4830
4831         * po/cs.po: Merge translations from the Translation Project.
4832         * po/de.po: Likewise.
4833         * po/pl.po: Likewise.
4834         * po/ru.po: Likewise.
4835         * po/tr.po: Likewise.
4836         * po/uk.po: Likewise.
4837         * po/vi.po: Likewise.
4838         * po/zh_CN.po: Likewise.
4839
4840 2017-01-12  Joseph Myers  <joseph@codesourcery.com>
4841
4842         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: New file.
4843
4844         * math/fgetexcptflg.c (__fegetexceptflag): Store 0 in fexcept_t
4845         object.
4846
4847 2017-01-11  Joseph Myers  <joseph@codesourcery.com>
4848
4849         [BZ #16458]
4850         * bits/uintn-identity.h: New file.
4851         * inet/netinet/in.h: Include <bits/uintn-identity.h>.
4852         [__BYTE_ORDER == __BIG_ENDIAN] (ntohl): Use __uint32_identity.
4853         [__BYTE_ORDER == __BIG_ENDIAN] (ntohs): Use __uint16_identity.
4854         [__BYTE_ORDER == __BIG_ENDIAN] (htonl): Use __uint32_identity.
4855         [__BYTE_ORDER == __BIG_ENDIAN] (htohs): Use __uint16_identity.
4856         * string/endian.h: Include <bits/uintn-identity.h>.
4857         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole16): Use
4858         __uint16_identity.
4859         [__BYTE_ORDER == __LITTLE_ENDIAN] (le16toh): Likewise.
4860         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole32): Use
4861         __uint32_identity.
4862         [__BYTE_ORDER == __LITTLE_ENDIAN] (le32toh): Likewise.
4863         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole64): Use
4864         __uint64_identity.
4865         [__BYTE_ORDER == __LITTLE_ENDIAN] (le64toh): Likewise.
4866         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe16): Use
4867         __uint16_identity.
4868         [__BYTE_ORDER != __LITTLE_ENDIAN] (be16toh): Likewise.
4869         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe32): Use
4870         __uint32_identity.
4871         [__BYTE_ORDER != __LITTLE_ENDIAN] (be32toh): Likewise.
4872         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe64): Use
4873         __uint64_identity.
4874         [__BYTE_ORDER != __LITTLE_ENDIAN] (be64toh): Likewise.
4875         * string/Makefile (headers): Add bits/uintn-identity.h.
4876         (tests): Add test-endian-types.
4877         * string/test-endian-types.c: New file.
4878         * inet/Makefile (tests): Add test-hnto-types.
4879         * inet/test-hnto-types.c: New file.
4880
4881 2016-01-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4882
4883         * po/be.po: Update from Translation Project.
4884         * po/bg.po: Likewise.
4885         * po/ca.po: Likewise.
4886         * po/cs.po: Likewise.
4887         * po/da.po: Likewise.
4888         * po/de.po: Likewise.
4889         * po/el.po: Likewise.
4890         * po/eo.po: Likewise.
4891         * po/es.po: Likewise.
4892         * po/fi.po: Likewise.
4893         * po/fr.po: Likewise.
4894         * po/gl.po: Likewise.
4895         * po/hr.po: Likewise.
4896         * po/hu.po: Likewise.
4897         * po/ia.po: Likewise.
4898         * po/id.po: Likewise.
4899         * po/it.po: Likewise.
4900         * po/ja.po: Likewise.
4901         * po/ko.po: Likewise.
4902         * po/lt.po: Likewise.
4903         * po/nb.po: Likewise.
4904         * po/nl.po: Likewise.
4905         * po/pl.po: Likewise.
4906         * po/pt_BR.po: Likewise.
4907         * po/ru.po: Likewise.
4908         * po/rw.po: Likewise.
4909         * po/sk.po: Likewise.
4910         * po/sl.po: Likewise.
4911         * po/sv.po: Likewise.
4912         * po/tr.po: Likewise.
4913         * po/uk.po: Likewise.
4914         * po/vi.po: Likewise.
4915         * po/zh_CN.po: Likewise.
4916         * po/zh_TW.po: Likewise.
4917
4918 2017-01-11  Joseph Myers  <joseph@codesourcery.com>
4919
4920         * stdio-common/tst-printf.c [__GNUC_PREREQ (7, 0)]: Ignore
4921         -Wformat-truncation instead of -Wformat-length.
4922         * time/tst-strptime2.c (mkbuf) [__GNUC_PREREQ (7, 0)]: Likewise.
4923         * stdio-common/tstdiomisc.c (F): Ignore -Wformat-truncation for
4924         GCC 7.
4925         * wcsmbs/tst-wcstof.c: Include <libc-internal.h>.
4926         (do_test): Ignore -Wformat-truncation for GCC 7.
4927
4928         * locale/programs/ld-address.c (INT_STR_ELEM): Increase size of
4929         buffer used to print long int value.
4930
4931         * elf/sotruss-lib.c (init): Increase space allocated for pid by
4932         one byte.  Print it with %ld, cast to long int.
4933
4934 2017-01-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4935
4936         * scripts/build-many-glibcs.py (os.cpu_count): Add compatibility definition.
4937         (re.fullmatch, subprocess.run): Likewise.
4938
4939 2016-01-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4940
4941         * po/libc.pot: Regenerate.
4942
4943 2016-01-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4944
4945         * elf/dl-tunables.c (tunables_unsetenv): Remove function.
4946         (min_strlen): Likewise.
4947         (disable_tunable): Likewise.
4948         (maybe_disable_malloc_check): Rename to
4949         maybe_enable_malloc_check.
4950         (maybe_enable_malloc_check): Enable glibc.malloc.check tunable
4951         if /etc/suid-debug file exists.
4952         (__tunables_init): Update caller.
4953         * elf/dl-tunables.list (glibc.malloc.check): Don't mark as
4954         secure.
4955
4956 2016-01-10  Torvald Riegel  <triegel@redhat.com>
4957
4958         * nptl/DESIGN-rwlock.txt: Remove.
4959         * nptl/lowlevelrwlock.sym: Remove.
4960         * nptl/Makefile: Add new tests.
4961         * nptl/pthread_rwlock_common.c: New file.  Contains the new rwlock.
4962         * nptl/pthreadP.h (PTHREAD_RWLOCK_PREFER_READER_P): Remove.
4963         (PTHREAD_RWLOCK_WRPHASE, PTHREAD_RWLOCK_WRLOCKED,
4964         PTHREAD_RWLOCK_RWAITING, PTHREAD_RWLOCK_READER_SHIFT,
4965         PTHREAD_RWLOCK_READER_OVERFLOW, PTHREAD_RWLOCK_WRHANDOVER,
4966         PTHREAD_RWLOCK_FUTEX_USED): New.
4967         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Adapt to new
4968         implementation.
4969         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow): Remove.
4970         (__pthread_rwlock_rdlock): Adapt.
4971         * nptl/pthread_rwlock_timedrdlock.c
4972         (pthread_rwlock_timedrdlock): Adapt.
4973         * nptl/pthread_rwlock_timedwrlock.c
4974         (pthread_rwlock_timedwrlock): Adapt.
4975         * nptl/pthread_rwlock_trywrlock.c (pthread_rwlock_trywrlock): Adapt.
4976         * nptl/pthread_rwlock_tryrdlock.c (pthread_rwlock_tryrdlock): Adapt.
4977         * nptl/pthread_rwlock_unlock.c (pthread_rwlock_unlock): Adapt.
4978         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow): Remove.
4979         (__pthread_rwlock_wrlock): Adapt.
4980         * nptl/tst-rwlock10.c: Adapt.
4981         * nptl/tst-rwlock11.c: Adapt.
4982         * nptl/tst-rwlock17.c: New file.
4983         * nptl/tst-rwlock18.c: New file.
4984         * nptl/tst-rwlock19.c: New file.
4985         * nptl/tst-rwlock2b.c: New file.
4986         * nptl/tst-rwlock8.c: Adapt.
4987         * nptl/tst-rwlock9.c: Adapt.
4988         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4989         * sysdeps/arm/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4990         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4991         * sysdeps/ia64/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4992         * sysdeps/m68k/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4993         * sysdeps/microblaze/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4994         * sysdeps/mips/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4995         * sysdeps/nios2/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4996         * sysdeps/s390/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4997         * sysdeps/sh/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4998         * sysdeps/sparc/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4999         * sysdeps/tile/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5000         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
5001         (pthread_rwlock_t): Adapt.
5002         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
5003         (pthread_rwlock_t): Adapt.
5004         * sysdeps/x86/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5005         * nptl/nptl-printers.py (): Adapt.
5006         * nptl/nptl_lock_constants.pysym: Adapt.
5007         * nptl/test-rwlock-printers.py: Adapt.
5008         * nptl/test-rwlockattr-printers.c: Adapt.
5009         * nptl/test-rwlockattr-printers.py: Adapt.
5010
5011 2017-01-10  Joseph Myers  <joseph@codesourcery.com>
5012
5013         * math/libm-test.inc (XFAIL_IBM128_LIBGCC): New macro.
5014         (fdim_test_data): Use XFAIL_ROUNDING_IBM128_LIBGCC for some tests.
5015         (fma_test_data): Likewise.
5016         (hypot_test_data): Likewise.
5017         (log1p_test_data): Likewise.
5018         (modf_test_data): Likewise.
5019         (pow_test_data): Likewise.
5020         (remainder_test_data): Likewise.
5021         (remquo_test_data): Likewise.
5022         (scalb_test_data): Likewise.
5023         (scalbn_test_data): Likewise.
5024         (scalbln_test_data): Likewise.
5025         * math/gen-libm-test.pl (parse_args): Transform
5026         XFAIL_ROUNDING_IBM128_LIBGCC to XFAIL_IBM128_LIBGCC or 0 depending
5027         on the rounding mode.
5028
5029 2017-01-09  Joseph Myers  <joseph@codesourcery.com>
5030
5031         * math/gen-auto-libm-tests.c (output_for_one_input_case): Apply
5032         xfail-rounding:ibm128-libgcc automatically to tests overflowing
5033         and those that can underflow to zero.
5034         * math/auto-libm-test-in: Remove most XFAILs for ibm128-libgcc and
5035         add others.
5036         * math/auto-libm-test-out: Regenerated.
5037
5038         * math/test-fenv.c (fe_tests): Skip most tests when exceptions not
5039         supported.
5040         (feholdexcept_tests): Skip tests requiring exceptions or rounding
5041         modes support if not supported.
5042
5043         * sysdeps/unix/sysv/linux/microblaze/localplt.data (__pread64):
5044         Add libc.so PLT entry.
5045         (__tls_get_addr): Make ld.so PLT entry optional.
5046
5047 2017-01-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5048
5049         * string/bits/strings_fortified.h (explicit_bzero): Move back to ..
5050         * string/bits/string3.h: ... here.
5051
5052 2017-01-05  Joseph Myers  <joseph@codesourcery.com>
5053
5054         [BZ #21028]
5055         * math/fsetexcptflg.c (__fesetexceptflag): Always return 0.
5056         * math/test-fexcept.c (test_set): Allow failure of feraiseexcept
5057         if EXCEPTION_TESTS returns false.
5058
5059 2017-01-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5060
5061         [BZ #20558]
5062         * string/bits/string3.h [__USE_MISC] (bcopy): Move to
5063         strings_fortified.h.
5064         [__USE_MISC] (bzero): Likewise.
5065         [__USE_MISC] (explicit_bzero): Likewise.
5066         * string/strings.h: Include strings_fortified.h.
5067         * string/Makefile (headers): Add strings_fortified.h.
5068         * string/bits/strings_fortified.h: New file.
5069         * include/bits/strings_fortified.h: Likewise.
5070
5071 2017-01-05  Joseph Myers  <joseph@codesourcery.com>
5072
5073         * elf/tst-tls13.c (TIMEOUT): Remove.
5074         * iconvdata/tst-loading.c (TIMEOUT): Likewise.
5075         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Increase to 100.
5076         * malloc/tst-mallocfork2.c (TIMEOUT): Define to 100.
5077         * nss/tst-cancel-getpwuid_r.c (TIMEOUT): Define to 900.
5078         * nss/tst-nss-getpwent.c (TIMEOUT): Define to 300.
5079
5080         [BZ #21026]
5081         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list
5082         (readahead): New syscall entry.
5083
5084 2017-01-04  Joseph Myers  <joseph@codesourcery.com>
5085
5086         * string/tester.c (test_strncat): Disable -Wstringop-overflow=
5087         around tests of strncat with large sizes.
5088
5089         * malloc/tst-malloc.c: Include <libc-internal.h>.
5090         (do_test): Disable -Walloc-size-larger-than= around tests of
5091         malloc with negative sizes.
5092         * malloc/tst-mcheck.c: Include <libc-internal.h>.
5093         (do_test): Disable -Walloc-size-larger-than= around tests of
5094         malloc and realloc with negative sizes.
5095         * malloc/tst-realloc.c: Include <libc-internal.h>.
5096         (do_test): Disable -Walloc-size-larger-than= around tests of
5097         realloc with negative sizes.
5098
5099         * math/libm-test.inc (TEST_COND_ibm128_libgcc): New macro.
5100         (init_max_error) [TEST_COND_ibm128]: Increase maximum error
5101         allowed to 16 ulps.
5102         * math/auto-libm-test-in: Change most XFAILs for ibm128 to use
5103         ibm128-libgcc.  XFAIL more tests for ibm128-libgcc.
5104         * math/auto-libm-test-out: Regenerated.
5105
5106 2017-01-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5107
5108         * math/Makefile (libm-calls): Move wrappers...
5109         (libm-compat-call-auto): Here.
5110         (libm-routines): Add items in libm-compat-calls-auto.
5111         * sysdeps/powerpc/nofpu/Makefile: Add suffix ("_compat") to
5112         the filenames of the wrappers that have been renamed.
5113         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Likewise.
5114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
5115
5116         * math/w_acos.c: Add _compat suffix to filename.
5117         * math/w_acosf.c: Likewise.
5118         * math/w_acosh.c: Likewise.
5119         * math/w_acoshf.c: Likewise.
5120         * math/w_acoshl.c: Likewise.
5121         * math/w_acosl.c: Likewise.
5122         * math/w_asin.c: Likewise.
5123         * math/w_asinf.c: Likewise.
5124         * math/w_asinl.c: Likewise.
5125         * math/w_atan2.c: Likewise.
5126         * math/w_atan2f.c: Likewise.
5127         * math/w_atan2l.c: Likewise.
5128         * math/w_atanh.c: Likewise.
5129         * math/w_atanhf.c: Likewise.
5130         * math/w_atanhl.c: Likewise.
5131         * math/w_cosh.c: Likewise.
5132         * math/w_coshf.c: Likewise.
5133         * math/w_coshl.c: Likewise.
5134         * math/w_exp10.c: Likewise.
5135         * math/w_exp10f.c: Likewise.
5136         * math/w_exp10l.c: Likewise.
5137         * math/w_exp2.c: Likewise.
5138         * math/w_exp2f.c: Likewise.
5139         * math/w_exp2l.c: Likewise.
5140         * math/w_fmod.c: Likewise.
5141         * math/w_fmodf.c: Likewise.
5142         * math/w_fmodl.c: Likewise.
5143         * math/w_hypot.c: Likewise.
5144         * math/w_hypotf.c: Likewise.
5145         * math/w_hypotl.c: Likewise.
5146         * math/w_j0.c: Likewise.
5147         * math/w_j0f.c: Likewise.
5148         * math/w_j0l.c: Likewise.
5149         * math/w_j1.c: Likewise.
5150         * math/w_j1f.c: Likewise.
5151         * math/w_j1l.c: Likewise.
5152         * math/w_jn.c: Likewise.
5153         * math/w_jnf.c: Likewise.
5154         * math/w_jnl.c: Likewise.
5155         * math/w_log10.c: Likewise.
5156         * math/w_log10f.c: Likewise.
5157         * math/w_log10l.c: Likewise.
5158         * math/w_log2.c: Likewise.
5159         * math/w_log2f.c: Likewise.
5160         * math/w_log2l.c: Likewise.
5161         * math/w_log.c: Likewise.
5162         * math/w_logf.c: Likewise.
5163         * math/w_logl.c: Likewise.
5164         * math/w_pow.c: Likewise.
5165         * math/w_powf.c: Likewise.
5166         * math/w_powl.c: Likewise.
5167         * math/w_remainder.c: Likewise.
5168         * math/w_remainderf.c: Likewise.
5169         * math/w_remainderl.c: Likewise.
5170         * math/w_scalb.c: Likewise.
5171         * math/w_scalbf.c: Likewise.
5172         * math/w_scalbl.c: Likewise.
5173         * math/w_sinh.c: Likewise.
5174         * math/w_sinhf.c: Likewise.
5175         * math/w_sinhl.c: Likewise.
5176         * math/w_sqrt.c: Likewise.
5177         * math/w_sqrtf.c: Likewise.
5178         * math/w_sqrtl.c: Likewise.
5179         * math/w_tgamma.c: Likewise.
5180         * math/w_tgammaf.c: Likewise.
5181         * math/w_tgammal.c: Likewise.
5182
5183         * math/w_acos_compat.c: New file copied from above and
5184         adjusted for new #includes path
5185         * math/w_acosf_compat.c: Likewise.
5186         * math/w_acosh_compat.c: Likewise.
5187         * math/w_acoshf_compat.c: Likewise.
5188         * math/w_acoshl_compat.c: Likewise.
5189         * math/w_acosl_compat.c: Likewise.
5190         * math/w_asin_compat.c: Likewise.
5191         * math/w_asinf_compat.c: Likewise.
5192         * math/w_asinl_compat.c: Likewise.
5193         * math/w_atan2_compat.c: Likewise.
5194         * math/w_atan2f_compat.c: Likewise.
5195         * math/w_atan2l_compat.c: Likewise.
5196         * math/w_atanh_compat.c: Likewise.
5197         * math/w_atanhf_compat.c: Likewise.
5198         * math/w_atanhl_compat.c: Likewise.
5199         * math/w_cosh_compat.c: Likewise.
5200         * math/w_coshf_compat.c: Likewise.
5201         * math/w_coshl_compat.c: Likewise.
5202         * math/w_exp10_compat.c: Likewise.
5203         * math/w_exp10f_compat.c: Likewise.
5204         * math/w_exp10l_compat.c: Likewise.
5205         * math/w_exp2_compat.c: Likewise.
5206         * math/w_exp2f_compat.c: Likewise.
5207         * math/w_exp2l_compat.c: Likewise.
5208         * math/w_fmod_compat.c: Likewise.
5209         * math/w_fmodf_compat.c: Likewise.
5210         * math/w_fmodl_compat.c: Likewise.
5211         * math/w_hypot_compat.c: Likewise.
5212         * math/w_hypotf_compat.c: Likewise.
5213         * math/w_hypotl_compat.c: Likewise.
5214         * math/w_j0_compat.c: Likewise.
5215         * math/w_j0f_compat.c: Likewise.
5216         * math/w_j0l_compat.c: Likewise.
5217         * math/w_j1_compat.c: Likewise.
5218         * math/w_j1f_compat.c: Likewise.
5219         * math/w_j1l_compat.c: Likewise.
5220         * math/w_jn_compat.c: Likewise.
5221         * math/w_jnf_compat.c: Likewise.
5222         * math/w_jnl_compat.c: Likewise.
5223         * math/w_log10_compat.c: Likewise.
5224         * math/w_log10f_compat.c: Likewise.
5225         * math/w_log10l_compat.c: Likewise.
5226         * math/w_log2_compat.c: Likewise.
5227         * math/w_log2f_compat.c: Likewise.
5228         * math/w_log2l_compat.c: Likewise.
5229         * math/w_log_compat.c: Likewise.
5230         * math/w_logf_compat.c: Likewise.
5231         * math/w_logl_compat.c: Likewise.
5232         * math/w_pow_compat.c: Likewise.
5233         * math/w_powf_compat.c: Likewise.
5234         * math/w_powl_compat.c: Likewise.
5235         * math/w_remainder_compat.c: Likewise.
5236         * math/w_remainderf_compat.c: Likewise.
5237         * math/w_remainderl_compat.c: Likewise.
5238         * math/w_scalb_compat.c: Likewise.
5239         * math/w_scalbf_compat.c: Likewise.
5240         * math/w_scalbl_compat.c: Likewise.
5241         * math/w_sinh_compat.c: Likewise.
5242         * math/w_sinhf_compat.c: Likewise.
5243         * math/w_sinhl_compat.c: Likewise.
5244         * math/w_sqrt_compat.c: Likewise.
5245         * math/w_sqrtf_compat.c: Likewise.
5246         * math/w_sqrtl_compat.c: Likewise.
5247         * math/w_tgamma_compat.c: Likewise.
5248         * math/w_tgammaf_compat.c: Likewise.
5249         * math/w_tgammal_compat.c: Likewise.
5250
5251         * sysdeps/i386/fpu/w_sqrt.c: Add _compat suffix to filename.
5252         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
5253         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
5254         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
5255         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
5256         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
5257         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
5258         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
5259         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
5260         * sysdeps/ia64/fpu/w_scalbl.c: Likewise.
5261         * sysdeps/ia64/fpu/w_scalbf.c: Likewise.
5262         * sysdeps/ia64/fpu/w_scalb.c: Likewise.
5263         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
5264         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
5265         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
5266         * sysdeps/ia64/fpu/w_powl.c: Likewise.
5267         * sysdeps/ia64/fpu/w_powf.c: Likewise.
5268         * sysdeps/ia64/fpu/w_pow.c: Likewise.
5269         * sysdeps/ia64/fpu/w_logl.c: Likewise.
5270         * sysdeps/ia64/fpu/w_logf.c: Likewise.
5271         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
5272         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
5273         * sysdeps/ia64/fpu/w_log2.c: Likewise.
5274         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
5275         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
5276         * sysdeps/ia64/fpu/w_log10.c: Likewise.
5277         * sysdeps/ia64/fpu/w_log.c: Likewise.
5278         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
5279         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
5280         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
5281         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
5282         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
5283         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
5284         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
5285         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
5286         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
5287         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
5288         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
5289         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
5290         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
5291         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
5292         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
5293         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
5294         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
5295         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
5296         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
5297         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
5298         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
5299         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
5300         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
5301         * sysdeps/ia64/fpu/w_asin.c: Likewise.
5302         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
5303         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
5304         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
5305         * sysdeps/ia64/fpu/w_acos.c: Likewise.
5306         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
5307         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
5308         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
5309         * sysdeps/ieee754/ldbl-opt/w_acos.c: Likewise.
5310         * sysdeps/ieee754/ldbl-opt/w_acosh.c: Likewise.
5311         * sysdeps/ieee754/ldbl-opt/w_acoshl.c: Likewise.
5312         * sysdeps/ieee754/ldbl-opt/w_acosl.c: Likewise.
5313         * sysdeps/ieee754/ldbl-opt/w_asin.c: Likewise.
5314         * sysdeps/ieee754/ldbl-opt/w_asinl.c: Likewise.
5315         * sysdeps/ieee754/ldbl-opt/w_atan2.c: Likewise.
5316         * sysdeps/ieee754/ldbl-opt/w_atan2l.c: Likewise.
5317         * sysdeps/ieee754/ldbl-opt/w_atanh.c: Likewise.
5318         * sysdeps/ieee754/ldbl-opt/w_atanhl.c: Likewise.
5319         * sysdeps/ieee754/ldbl-opt/w_cosh.c: Likewise.
5320         * sysdeps/ieee754/ldbl-opt/w_coshl.c: Likewise.
5321         * sysdeps/ieee754/ldbl-opt/w_exp10.c: Likewise.
5322         * sysdeps/ieee754/ldbl-opt/w_exp10l.c: Likewise.
5323         * sysdeps/ieee754/ldbl-opt/w_fmod.c: Likewise.
5324         * sysdeps/ieee754/ldbl-opt/w_fmodl.c: Likewise.
5325         * sysdeps/ieee754/ldbl-opt/w_hypot.c: Likewise.
5326         * sysdeps/ieee754/ldbl-opt/w_hypotl.c: Likewise.
5327         * sysdeps/ieee754/ldbl-opt/w_j0.c: Likewise.
5328         * sysdeps/ieee754/ldbl-opt/w_j0l.c: Likewise.
5329         * sysdeps/ieee754/ldbl-opt/w_j1.c: Likewise.
5330         * sysdeps/ieee754/ldbl-opt/w_j1l.c: Likewise.
5331         * sysdeps/ieee754/ldbl-opt/w_jn.c: Likewise.
5332         * sysdeps/ieee754/ldbl-opt/w_jnl.c: Likewise.
5333         * sysdeps/ieee754/ldbl-opt/w_log10.c: Likewise.
5334         * sysdeps/ieee754/ldbl-opt/w_log10l.c: Likewise.
5335         * sysdeps/ieee754/ldbl-opt/w_log2.c: Likewise.
5336         * sysdeps/ieee754/ldbl-opt/w_log2l.c: Likewise.
5337         * sysdeps/ieee754/ldbl-opt/w_log.c: Likewise.
5338         * sysdeps/ieee754/ldbl-opt/w_logl.c: Likewise.
5339         * sysdeps/ieee754/ldbl-opt/w_pow.c: Likewise.
5340         * sysdeps/ieee754/ldbl-opt/w_powl.c: Likewise.
5341         * sysdeps/ieee754/ldbl-opt/w_remainder.c: Likewise.
5342         * sysdeps/ieee754/ldbl-opt/w_remainderl.c: Likewise.
5343         * sysdeps/ieee754/ldbl-opt/w_scalb.c: Likewise.
5344         * sysdeps/ieee754/ldbl-opt/w_scalbl.c: Likewise.
5345         * sysdeps/ieee754/ldbl-opt/w_sinh.c: Likewise.
5346         * sysdeps/ieee754/ldbl-opt/w_sinhl.c: Likewise.
5347         * sysdeps/ieee754/ldbl-opt/w_sqrt.c: Likewise.
5348         * sysdeps/ieee754/ldbl-opt/w_sqrtl.c: Likewise.
5349         * sysdeps/ieee754/ldbl-opt/w_tgamma.c: Likewise.
5350         * sysdeps/ieee754/ldbl-opt/w_tgammal.c: Likewise.
5351         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S:
5352         Likewise.
5353         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S:
5354         Likewise.
5355         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: Likewise.
5356         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S:
5357         Likewise.
5358         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S:
5359         Likewise.
5360         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: Likewise.
5361         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5362         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5363         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5364         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5365         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
5366         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
5367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: Likewise.
5368         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
5369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: Likewise.
5370         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
5371         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
5372         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
5373         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
5374         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
5375
5376         * sysdeps/i386/fpu/w_sqrt_compat.c: New file copied from above
5377         and adjusted for new #includes path
5378         * sysdeps/ia64/fpu/w_acos_compat.c: Likewise.
5379         * sysdeps/ia64/fpu/w_acosf_compat.c: Likewise.
5380         * sysdeps/ia64/fpu/w_acosh_compat.c: Likewise.
5381         * sysdeps/ia64/fpu/w_acoshf_compat.c: Likewise.
5382         * sysdeps/ia64/fpu/w_acoshl_compat.c: Likewise.
5383         * sysdeps/ia64/fpu/w_acosl_compat.c: Likewise.
5384         * sysdeps/ia64/fpu/w_asin_compat.c: Likewise.
5385         * sysdeps/ia64/fpu/w_asinf_compat.c: Likewise.
5386         * sysdeps/ia64/fpu/w_asinl_compat.c: Likewise.
5387         * sysdeps/ia64/fpu/w_atan2_compat.c: Likewise.
5388         * sysdeps/ia64/fpu/w_atan2f_compat.c: Likewise.
5389         * sysdeps/ia64/fpu/w_atan2l_compat.c: Likewise.
5390         * sysdeps/ia64/fpu/w_atanh_compat.c: Likewise.
5391         * sysdeps/ia64/fpu/w_atanhf_compat.c: Likewise.
5392         * sysdeps/ia64/fpu/w_atanhl_compat.c: Likewise.
5393         * sysdeps/ia64/fpu/w_cosh_compat.c: Likewise.
5394         * sysdeps/ia64/fpu/w_coshf_compat.c: Likewise.
5395         * sysdeps/ia64/fpu/w_coshl_compat.c: Likewise.
5396         * sysdeps/ia64/fpu/w_exp10_compat.c: Likewise.
5397         * sysdeps/ia64/fpu/w_exp10f_compat.c: Likewise.
5398         * sysdeps/ia64/fpu/w_exp10l_compat.c: Likewise.
5399         * sysdeps/ia64/fpu/w_exp2_compat.c: Likewise.
5400         * sysdeps/ia64/fpu/w_exp2f_compat.c: Likewise.
5401         * sysdeps/ia64/fpu/w_exp2l_compat.c: Likewise.
5402         * sysdeps/ia64/fpu/w_fmod_compat.c: Likewise.
5403         * sysdeps/ia64/fpu/w_fmodf_compat.c: Likewise.
5404         * sysdeps/ia64/fpu/w_fmodl_compat.c: Likewise.
5405         * sysdeps/ia64/fpu/w_hypot_compat.c: Likewise.
5406         * sysdeps/ia64/fpu/w_hypotf_compat.c: Likewise.
5407         * sysdeps/ia64/fpu/w_hypotl_compat.c: Likewise.
5408         * sysdeps/ia64/fpu/w_log10_compat.c: Likewise.
5409         * sysdeps/ia64/fpu/w_log10f_compat.c: Likewise.
5410         * sysdeps/ia64/fpu/w_log10l_compat.c: Likewise.
5411         * sysdeps/ia64/fpu/w_log2_compat.c: Likewise.
5412         * sysdeps/ia64/fpu/w_log2f_compat.c: Likewise.
5413         * sysdeps/ia64/fpu/w_log2l_compat.c: Likewise.
5414         * sysdeps/ia64/fpu/w_log_compat.c: Likewise.
5415         * sysdeps/ia64/fpu/w_logf_compat.c: Likewise.
5416         * sysdeps/ia64/fpu/w_logl_compat.c: Likewise.
5417         * sysdeps/ia64/fpu/w_pow_compat.c: Likewise.
5418         * sysdeps/ia64/fpu/w_powf_compat.c: Likewise.
5419         * sysdeps/ia64/fpu/w_powl_compat.c: Likewise.
5420         * sysdeps/ia64/fpu/w_remainder_compat.c: Likewise.
5421         * sysdeps/ia64/fpu/w_remainderf_compat.c: Likewise.
5422         * sysdeps/ia64/fpu/w_remainderl_compat.c: Likewise.
5423         * sysdeps/ia64/fpu/w_scalb_compat.c: Likewise.
5424         * sysdeps/ia64/fpu/w_scalbf_compat.c: Likewise.
5425         * sysdeps/ia64/fpu/w_scalbl_compat.c: Likewise.
5426         * sysdeps/ia64/fpu/w_sinh_compat.c: Likewise.
5427         * sysdeps/ia64/fpu/w_sinhf_compat.c: Likewise.
5428         * sysdeps/ia64/fpu/w_sinhl_compat.c: Likewise.
5429         * sysdeps/ia64/fpu/w_sqrt_compat.c: Likewise.
5430         * sysdeps/ia64/fpu/w_sqrtf_compat.c: Likewise.
5431         * sysdeps/ia64/fpu/w_sqrtl_compat.c: Likewise.
5432         * sysdeps/ia64/fpu/w_tgamma_compat.S: Likewise.
5433         * sysdeps/ia64/fpu/w_tgammaf_compat.S: Likewise.
5434         * sysdeps/ia64/fpu/w_tgammal_compat.S: Likewise.
5435         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Likewise.
5436         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
5437         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5438         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5439         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
5440         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5441         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
5442         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5443         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
5444         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5445         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
5446         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5447         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c: Likewise.
5448         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Likewise.
5449         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
5450         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5451         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
5452         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5453         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
5454         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5455         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
5456         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5457         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
5458         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5459         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
5460         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5461         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
5462         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5463         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
5464         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5465         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
5466         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5467         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c: Likewise.
5468         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
5469         * sysdeps/ieee754/ldbl-opt/w_scalb_compat.c: Likewise.
5470         * sysdeps/ieee754/ldbl-opt/w_scalbl_compat.c: Likewise.
5471         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
5472         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5473         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
5474         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5475         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
5476         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5477         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
5478         Likewise.
5479         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
5480         Likewise.
5481         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
5482         Likewise.
5483         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
5484         Likewise.
5485         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
5486         Likewise.
5487         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
5488         Likewise.
5489         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
5490         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
5491         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
5492         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
5493         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
5494         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
5495         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
5496         Likewise.
5497         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
5498         Likewise.
5499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
5500         Likewise.
5501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
5502         Likewise.
5503         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
5504         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
5505         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
5506         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
5507
5508 2017-01-04  Joseph Myers  <joseph@codesourcery.com>
5509
5510         * sysdeps/microblaze/bits/setjmp.h (__jmp_buf): Give struct tag
5511         __jmp_buf_internal_tag.
5512
5513         * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Always
5514         preserve NaN payload if [__mips_nan2008].
5515         * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5516
5517         [BZ #21022]
5518         * sysdeps/microblaze/backtrace.c (get_frame_size): Make static.
5519
5520 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
5521
5522         * sysdeps/i386/fpu/libm-test-ulps: Update.
5523
5524 2017-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5525
5526         * sysdeps/ia64/strcat.c: Remove file.
5527         * sysdeps/powerpc/strcat.c: Likewise.
5528         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Use default
5529         C implementation.
5530         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: Likewise.
5531         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: Likewise.
5532
5533 2017-01-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5534             Steven Munroe  <sjmunroe@us.ibm.com>
5535             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5536
5537         [BZ #20822]
5538         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
5539         (__lll_lock_elision): Access adapt_count via C11 atomics.
5540         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
5541         (__lll_trylock_elision): Likewise.
5542         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
5543         (__lll_unlock_elision):  Update adapt_count variable inside the
5544         critical section using C11 atomics.
5545
5546 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
5547
5548         * math/test-fenvinline.c (do_test): Disable tests of raised
5549         exceptions if !EXCEPTION_TESTS (FLOAT).
5550
5551 2017-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5552
5553         [BZ #19390]
5554         * string/test-strncat.c (test_main): Add tests with SIZE_MAX as
5555         maximum string size.
5556         * sysdeps/i386/i686/multiarch/strcat-sse2.S (STRCAT): Avoid overflow
5557         in pointer addition.
5558         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S (STRCPY):
5559         Likewise.
5560
5561 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
5562
5563         * elf/Makefile ($(objpfx)tst-ldconfig-X.out): Correct arguments
5564         passed to tst-ldconfig-X.sh.
5565
5566 2017-01-03  Martin Galvan  <martingalvan@sourceware.org>
5567
5568         * nptl/nptl-printers.py: Fix tabs/spaces mismatches.
5569
5570 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
5571
5572         [BZ #21019]
5573         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (lseek64):
5574         New syscall entry.
5575         * sysdeps/unix/sysv/linux/mips/mips64/n32/lseek.c: New file.
5576         * io/test-lfs.c (do_test): Test offset returned from lseek64 and
5577         lseek.
5578
5579         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
5580         power4 glibc for powerpc-linux-gnu.
5581
5582 2017-01-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5583
5584         * sysvipc/test-sysvsem.c (do_test): Define and use union semun on
5585         semctl.
5586
5587 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
5588
5589         * math/test-nearbyint-except.c: Include <stdbool.h>.
5590         (any_supported): New variable.
5591         (TEST_FUNC): Return early if !EXCEPTION_TESTS (FLOAT).  Otherwise
5592         set any_supported.
5593         (do_test): Return 77 if no floating-point type supported
5594         exceptions.
5595
5596         * sysdeps/mips/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): Do not
5597         condition on [__mips_hard_float].
5598
5599 2017-01-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5600
5601         [BZ #21014]
5602         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S (MEMCHR): Avoid overflow
5603         in pointer addition.
5604         * sysdeps/i386/i686/multiarch/memchr-sse2.S (MEMCHR): Likewise.
5605
5606 2017-01-02  Torvald Riegel  <triegel@redhat.com>
5607
5608         * sysdeps/sparc/nptl/bits/pthreadtypes.h (pthread_cond_t): Adapt to
5609         new condvar.
5610
5611 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
5612
5613         * scripts/build-many-glibcs.py (Context.checkout): Default
5614         binutils version to 2.28 branch.
5615
5616 2017-01-01  Florian Weimer  <fweimer@redhat.com>
5617
5618         * support/support_format_netent.c (support_format_netent): Work
5619         around alpha struct netent definition difference.
5620
5621 2017-01-01  Florian Weimer  <fweimer@redhat.com>
5622
5623         * support/xwrite.c (xwrite): Use %td for pointer difference.
5624
5625 2017-01-01  Florian Weimer  <fweimer@redhat.com>
5626
5627         * malloc/Makefile (tests): Add tst-malloc-usable-tunables for
5628         have-tunables only.
5629         (tests-static): Add tst-malloc-usable-static-tunables for
5630         have-tunables only.
5631
5632 2017-01-01  Joseph Myers  <joseph@codesourcery.com>
5633
5634         * scripts/config.guess: Update to version 2017-01-01.
5635         * scripts/config.sub: Update to version 2017-01-01.
5636
5637         * NEWS: Update copyright dates.
5638         * catgets/gencat.c (print_version): Likewise.
5639         * csu/version.c (banner): Likewise.
5640         * debug/catchsegv.sh: Likewise.
5641         * debug/pcprofiledump.c (print_version): Likewise.
5642         * debug/xtrace.sh (do_version): Likewise.
5643         * elf/ldconfig.c (print_version): Likewise.
5644         * elf/ldd.bash.in: Likewise.
5645         * elf/pldd.c (print_version): Likewise.
5646         * elf/sotruss.sh: Likewise.
5647         * elf/sprof.c (print_version): Likewise.
5648         * iconv/iconv_prog.c (print_version): Likewise.
5649         * iconv/iconvconfig.c (print_version): Likewise.
5650         * locale/programs/locale.c (print_version): Likewise.
5651         * locale/programs/localedef.c (print_version): Likewise.
5652         * login/programs/pt_chown.c (print_version): Likewise.
5653         * malloc/memusage.sh (do_version): Likewise.
5654         * malloc/memusagestat.c (print_version): Likewise.
5655         * malloc/mtrace.pl: Likewise.
5656         * manual/libc.texinfo: Likewise.
5657         * nptl/version.c (banner): Likewise.
5658         * nscd/nscd.c (print_version): Likewise.
5659         * nss/getent.c (print_version): Likewise.
5660         * nss/makedb.c (print_version): Likewise.
5661         * posix/getconf.c (main): Likewise.
5662         * scripts/test-installation.pl: Likewise.
5663         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5664
5665         * All files with FSF copyright notices: Update copyright dates
5666         using scripts/update-copyrights.
5667         * intl/plural.c: Regenerated.
5668         * locale/programs/charmap-kw.h: Likewise.
5669         * locale/programs/locfile-kw.h: Likewise.
5670
5671 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5672
5673         [BZ #20593]
5674         Update DNS RR type definitions.
5675         * scripts/gen-rrtypes.py: New file.
5676         * resolv/arpa/nameser.h (ns_type): Remove ns_t_zxfr, a
5677         BIND-internal RR type not used on the Internet.  Add ns_t_ds,
5678         ns_t_sshfp, ns_t_ipseckey, ns_t_rrsig, ns_t_nsec, ns_t_dnskey,
5679         ns_t_dhcid, ns_t_nsec3, ns_t_nsec3param, ns_t_tlsa, ns_t_smimea,
5680         ns_t_hip, ns_t_ninfo, ns_t_rkey, ns_t_talink, ns_t_cds,
5681         ns_t_cdnskey, ns_t_openpgpkey, ns_t_csync, ns_t_spf, ns_t_uinfo,
5682         ns_t_uid, ns_t_gid, ns_t_unspec, ns_t_nid, ns_t_l32, ns_t_l64,
5683         ns_t_lp, ns_t_eui48, ns_t_eui64, ns_t_uri, ns_t_caa, ns_t_avc,
5684         ns_t_ta, ns_t_dlv.
5685         * resolv/arpa/nameser_compat.h (T_KX, T_CERT, T_SINK, T_OPT)
5686         (T_APL, T_DS, T_SSHFP, T_IPSECKEY, T_RRSIG, T_NSEC, T_DNSKEY)
5687         (T_DHCID, T_NSEC3, T_NSEC3PARAM, T_TLSA, T_SMIMEA, T_HIP, T_NINFO)
5688         (T_RKEY, T_TALINK, T_CDS, T_CDNSKEY, T_OPENPGPKEY, T_CSYNC, T_SPF)
5689         (T_UINFO, T_UID, T_GID, T_UNSPEC, T_NID, T_L32, T_L64, T_LP)
5690         (T_EUI48, T_EUI64, T_TKEY, T_URI, T_CAA, T_AVC, T_TA, T_DLV):
5691         Define.
5692         * resolv/res_debug.c (__p_type_syms): Update comment.  Remove
5693         entry for ns_t_zxfr.
5694
5695 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5696
5697         [BZ #18784]
5698         CVE-2015-5180
5699         * include/arpa/nameser_compat.h (T_QUERY_A_AND_AAAA): Rename from
5700         T_UNSPEC.  Adjust value.
5701         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Use it.
5702         * resolv/res_query.c (__libc_res_nquery): Likewise.
5703         * resolv/res_mkquery.c (res_nmkquery): Check for out-of-range
5704         QTYPEs.
5705         * resolv/tst-resolv-qtypes.c: New file.
5706         * resolv/Makefile (xtests): Add tst-resolv-qtypes.
5707         (tst-resolv-qtypes): Link against libresolv and libpthread.
5708
5709 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5710
5711         * elf/dl-tunables.h (__tunables_init): Fix unused attribute.
5712
5713 2016-12-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5714
5715         * manual/tunables.texi: New chapter.
5716         * manual/Makefile (chapters): Add it.
5717         * manual/probes.texi (@node): Point to the Tunables chapter.
5718
5719         * Makeconfig (have-tunables): Check for non-negative instead
5720         of positive.
5721         * configure.ac: Add 'valstring' as a valid value for
5722         --enable-tunables.
5723         * configure: Regenerate.
5724         * elf/Makefile (have-tunables): Check for non-negative instead
5725         of positive.
5726         (CPPFLAGS-dl-tunables.c): Define TUNABLES_FRONTEND for
5727         dl-tunables.c.
5728         * elf/dl-tunables.c (GLIBC_TUNABLES): Define only when
5729         TUNABLES_FRONTEND == TUNABLES_FRONTEND_valstring.
5730         (tunables_strdup): Likewise.
5731         (disable_tunables): Likewise.
5732         (parse_tunables): Likewise.
5733         (__tunables_init): Process GLIBC_TUNABLES envvar only when.
5734         TUNABLES_FRONTEND == TUNABLES_FRONTEND_valstring.
5735         * elf/dl-tunables.h (TUNABLES_FRONTEND_valstring): New macro.
5736         (TUNABLES_FRONTEND_yes): New macro, define as
5737         TUNABLES_FRONTEND_valstring by default.
5738         * manual/install.texi: Document new acceptable values for
5739         --enable-tunables.
5740         * INSTALL: Regenerate.
5741
5742         * config.make.in (have-loop-to-function): Define.
5743         * elf/Makefile (CFLAGS-dl-tunables.c): Add
5744         -fno-tree-loop-distribute-patterns.
5745         * elf/dl-tunables.c: Include libc-internals.h.
5746         (GLIBC_TUNABLES): New macro.
5747         (tunables_strdup): New function.
5748         (parse_tunables): New function.
5749         (min_strlen): New function.
5750         (__tunables_init): Use the new functions and macro.
5751         (disable_tunable): Disable tunable from GLIBC_TUNABLES.
5752         * malloc/tst-malloc-usable-tunables.c: New test case.
5753         * malloc/tst-malloc-usable-static-tunables.c: New test case.
5754         * malloc/Makefile (tests, tests-static): Add tests.
5755
5756         * manual/install.texi: Add --enable-tunables option.
5757         * INSTALL: Regenerate.
5758         * README.tunables: New file.
5759         * Makeconfig (CPPFLAGS): Define TOP_NAMESPACE.
5760         (before-compile): Generate dl-tunable-list.h early.
5761         * config.h.in: Add HAVE_TUNABLES.
5762         * config.make.in: Add have-tunables.
5763         * configure.ac: Add --enable-tunables option.
5764         * configure: Regenerate.
5765         * csu/init-first.c (__libc_init_first): Move
5766         __libc_init_secure earlier...
5767         * csu/init-first.c (LIBC_START_MAIN):... to here.
5768         Include dl-tunables.h, libc-internal.h.
5769         (LIBC_START_MAIN) [!SHARED]: Initialize tunables for static
5770         binaries.
5771         * elf/Makefile (dl-routines): Add dl-tunables.
5772         * elf/Versions (ld): Add __tunable_set_val to GLIBC_PRIVATE
5773         namespace.
5774         * elf/dl-support (_dl_nondynamic_init): Unset MALLOC_CHECK_
5775         only when !HAVE_TUNABLES.
5776         * elf/rtld.c (process_envvars): Likewise.
5777         * elf/dl-sysdep.c [HAVE_TUNABLES]: Include dl-tunables.h
5778         (_dl_sysdep_start): Call __tunables_init.
5779         * elf/dl-tunable-types.h: New file.
5780         * elf/dl-tunables.c: New file.
5781         * elf/dl-tunables.h: New file.
5782         * elf/dl-tunables.list: New file.
5783         * malloc/tst-malloc-usable-static.c: New test case.
5784         * malloc/Makefile (tests-static): Add it.
5785         * malloc/arena.c [HAVE_TUNABLES]: Include dl-tunables.h.
5786         Define TUNABLE_NAMESPACE.
5787         (DL_TUNABLE_CALLBACK (set_mallopt_check)): New function.
5788         (DL_TUNABLE_CALLBACK_FNDECL): New macro.  Use it to define
5789         callback functions.
5790         (ptmalloc_init): Set tunable values.
5791         * scripts/gen-tunables.awk: New file.
5792         * sysdeps/mach/hurd/dl-sysdep.c: Include dl-tunables.h.
5793         (_dl_sysdep_start): Call __tunables_init.
5794
5795 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5796
5797         * resolv/resolv.h (RES_BLAST): Deprecate.
5798         * resolv/res_debug.c (p_option): Remove RES_BLAST.
5799         * resolv/res_send.c (__libc_res_nsend): Remove vestigial reference
5800         to RES_BLAST.
5801
5802 2016-12-27  Florian Weimer  <fweimer@redhat.com>
5803
5804         [BZ #19582]
5805         Deprecate RES_USE_INET6.
5806         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostent_r)
5807         (_nss_nis_gethostbyname2_r, _nss_nis_gethostbyname_r)
5808         (_nss_nis_gethostbyaddr_r): Use res_use_inet6 instead of
5809         RES_USE_INET6.
5810         * nis/nss_nisplus/nisplus-hosts.c (internal_nisplus_gethostent_r)
5811         (_nss_nisplus_gethostbyname2_r, _nss_nisplus_gethostbyname_r)
5812         (_nss_nisplus_gethostbyaddr_r): Likewise.
5813         * nscd/aicache.c (addhstaiX): Use DEPRECATED_RES_USE_INET6 instead
5814         of res_use_inet6.
5815         * nscd/nscd_gethst_r.c (__nscd_gethostbyname_r): Use res_use_inet6
5816         instead of RES_USE_INET6.
5817         * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
5818         * nss/nss_files/files-hosts.c (EXTRA_ARGS_VALUE)
5819         (_nss_files_gethostbyname3_r, _nss_files_gethostbyname_r):
5820         Likewise.
5821         * resolv/compat-gethnamaddr.c (getanswer, res_gethostbyname)
5822         (res_gethostbyname2, res_gethostbyaddr, _gethtent, _gethtbyname):
5823         Likewise.
5824         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r)
5825         (_nss_dns_gethostbyname_r): Likewise.
5826         (_nss_dns_gethostbyaddr2_r): Remove commented-out code for
5827         alternate RES_USE_INET6 handling.
5828         * resolv/res_debug.c (p_option): Use DEPRECATED_RES_USE_INET6
5829         instead of RES_USE_INET6.
5830         * resolv/res_init.c (res_setoptions): Likewise.
5831         * resolv/resolv.h (RES_USE_INET6): Mark as deprecated.
5832         * resolv/resolv-internal.h: New file.
5833         * resolv/Makefile (CFLAGS-tst-res_use_inet6.c): Use -Wno-error to
5834         make the deprecation warning non-fatal.
5835         * resolv/README (Using the resolver in multi-threaded code): Drop
5836         reference to RES_USE_INET6.
5837         * sysdeps/posix/getaddrinfo.c (gethosts, gaih_inet): Use
5838         DEPRECATED_RES_USE_INET6 instead of res_use_inet6.
5839
5840 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5841
5842         * resolv/Makefile (tests): Add tst-bug18665, tst-bug18665-tcp,
5843         tst-res_use_inet6, tst-resolv-basic, tst-resolv-network,
5844         tst-resolv-search.
5845         (tst-bug18665, tst-bug18665-tcp, tst-res_use_inet6)
5846         (tst-resolv-basic, tst-resolv-network, tst-resolv-search): Link
5847         with libresolv and libpthread.
5848         * resolv/tst-bug18665.c: New file.
5849         * resolv/tst-bug18665-tcp: Likewise.
5850         * resolv/tst-res_use_inet6: Likewise.
5851         * resolv/tst-resolv-basic: Likewise.
5852         * resolv/tst-resolv-network: Likewise.
5853         * resolv/tst-resolv-search: Likewise.
5854         * support/Makefile (libsupport-routines): Add check_addrinfo,
5855         check_dns_packet, check_hostent, check_netent, resolv_test,
5856         support_format_address_family, support_format_addrinfo,
5857         support_format_dns_packet, support_format_herrno,
5858         support_format_hostent, support_format_netent, support_run_diff,
5859         xaccept, xbind, xconnect, xfclose, xfopen, xgetsockname, xlisten,
5860         xmemstream, xpoll, xpthread_once, xrecvfrom, xsendto, xsetsockopt,
5861         xstrdup, xwrite.
5862         * support/check_addrinfo.c: New file.
5863         * support/check_dns_packet.c: Likewise.
5864         * support/check_hostent.c: Likewise.
5865         * support/check_netent.c: Likewise.
5866         * support/check_nss.h: Likewise.
5867         * support/format_nss.h: Likewise.
5868         * support/resolv_test.c: Likewise.
5869         * support/resolv_test.h: Likewise.
5870         * support/run_diff.h: Likewise.
5871         * support/support_format_address_family.c: Likewise.
5872         * support/support_format_addrinfo.c: Likewise.
5873         * support/support_format_dns_packet.c: Likewise.
5874         * support/support_format_herrno.c: Likewise.
5875         * support/support_format_hostent.c: Likewise.
5876         * support/support_format_netent.c: Likewise.
5877         * support/support_run_diff.c: Likewise.
5878         * support/xaccept.c: Likewise.
5879         * support/xbind.c: Likewise.
5880         * support/xconnect.c: Likewise.
5881         * support/xfclose.c: Likewise.
5882         * support/xfopen.c: Likewise.
5883         * support/xgetsockname.c: Likewise.
5884         * support/xlisten.c: Likewise.
5885         * support/xmemstream.c: Likewise.
5886         * support/xmemstream.h: Likewise.
5887         * support/xpoll.c: Likewise.
5888         * support/xpthread_once.c: Likewise.
5889         * support/xrecvfrom.c: Likewise.
5890         * support/xsendto.c: Likewise.
5891         * support/xsetsockopt.c: Likewise.
5892         * support/xstdio.h: Likewise.
5893         * support/xstrdup.c: Likewise.
5894         * support/support.h (xstrdup): Declare.
5895         * support/xsocket.h (xsetsockopt, xgetsockname, xconnect, xbind)
5896         (xlisten, xaccept, xsendto, xrecvfrom, xpoll): Likewise.
5897         * support/xthread.h (xpthread_once): Likwise.
5898         * support/xunistd.h (xwrite): Declare.
5899
5900 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5901
5902         * support/test-driver.h (TEST_DEFAULT_OPTIONS): Add --verbose.
5903         (test_verbose): Declare.
5904         * support/test-driver.c (main): Use TEST_DEFAULT_OPTIONS.
5905         * support/support_test_main.c (default_options): Likewise.
5906         (usage, support_test_main): Handle 'v'.
5907         (test_verbose): Define.
5908         * support/tst-support_record_failure.c (do_test): Use
5909         test_verbose.
5910         * support/tst-support_record_failure-2.sh (different_status): Add
5911         --verbose test.
5912
5913 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5914
5915         * support/check.h (FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Document that
5916         test failures are recorded.
5917         * support/check.c (support_print_failure_impl): Call
5918         support_record_failure.
5919         (support_exit_failure_impl): Call support_record_failure if status
5920         indicates failure.
5921         * support/delayed_exit.c (delayed_exit_thread): Use FAIL_EXIT1.
5922         * support/xasprintf.c (xasprintf): Likewise.
5923         * support/xfork.c (xfork): Likewise.
5924         * support/xpthread_check_return.c (xpthread_check_return):
5925         Likewise.
5926         * support/xsocket.c (xsocket): Likeweise.
5927         * support/xwaitpid.c (xwaitpid): Likewise.
5928         * support/support_record_failure.c (struct test_failures): Adjust
5929         to coding style.
5930         * support/support_test_verify_impl.c (support_test_verify_impl):
5931         Adjust error messages.
5932         * support/tst-support_record_failure-2.sh (different_status):
5933         Adjust error messages.
5934
5935 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5936
5937         * support/namespace.h: New file.
5938         * support/support_become_root.c: Likewise.
5939         * support/support_enter_network_namespace.c: Likewise.
5940         * support/tst-support-namespace.c: Likewise.
5941         * support/xsocket.c: Likewise.
5942         * support/xsocket.h: Likewise.
5943         * support/Makefile (libsupport-routines): Add support_become_root,
5944         support_enter_network_namespace, xsocket.
5945         (tests): Add tst-support-namespace.
5946
5947 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5948
5949         [BZ #17252]
5950         * posix/unistd.h (getentropy): Declare for __USE_MISC, not just
5951         __USE_GNU.
5952
5953 2016-12-31  Torvald Riegel  <triegel@redhat.com>
5954
5955         [BZ #13165]
5956         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast): Rewrite to
5957         use new algorithm.
5958         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
5959         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
5960         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
5961         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
5962         (__pthread_cond_timedwait): Move here from pthread_cond_timedwait.c.
5963         (__condvar_confirm_wakeup, __condvar_cancel_waiting,
5964         __condvar_cleanup_waiting, __condvar_dec_grefs,
5965         __pthread_cond_wait_common): New.
5966         (__condvar_cleanup): Remove.
5967         * npt/pthread_condattr_getclock.c (pthread_condattr_getclock): Adapt.
5968         * npt/pthread_condattr_setclock.c (pthread_condattr_setclock):
5969         Likewise.
5970         * npt/pthread_condattr_getpshared.c (pthread_condattr_getpshared):
5971         Likewise.
5972         * npt/pthread_condattr_init.c (pthread_condattr_init): Likewise.
5973         * nptl/tst-cond1.c: Add comment.
5974         * nptl/tst-cond20.c (do_test): Adapt.
5975         * nptl/tst-cond22.c (do_test): Likewise.
5976         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (pthread_cond_t): Adapt
5977         structure.
5978         * sysdeps/arm/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5979         * sysdeps/ia64/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5980         * sysdeps/m68k/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5981         * sysdeps/microblaze/nptl/bits/pthreadtypes.h (pthread_cond_t):
5982         Likewise.
5983         * sysdeps/mips/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5984         * sysdeps/nios2/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5985         * sysdeps/s390/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5986         * sysdeps/sh/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5987         * sysdeps/tile/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5988         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
5989         Likewise.
5990         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h (pthread_cond_t):
5991         Likewise.
5992         * sysdeps/x86/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5993         * sysdeps/nptl/internaltypes.h (COND_NWAITERS_SHIFT): Remove.
5994         (COND_CLOCK_BITS): Adapt.
5995         * sysdeps/nptl/pthread.h (PTHREAD_COND_INITIALIZER): Adapt.
5996         * nptl/pthreadP.h (__PTHREAD_COND_CLOCK_MONOTONIC_MASK,
5997         __PTHREAD_COND_SHARED_MASK): New.
5998         * nptl/nptl-printers.py (CLOCK_IDS): Remove.
5999         (ConditionVariablePrinter, ConditionVariableAttributesPrinter): Adapt.
6000         * nptl/nptl_lock_constants.pysym: Adapt.
6001         * nptl/test-cond-printers.py: Adapt.
6002         * sysdeps/unix/sysv/linux/hppa/internaltypes.h (cond_compat_clear,
6003         cond_compat_check_and_clear): Adapt.
6004         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: Remove file ...
6005         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
6006         (__pthread_cond_timedwait): ... and move here.
6007         * nptl/DESIGN-condvar.txt: Remove file.
6008         * nptl/lowlevelcond.sym: Likewise.
6009         * nptl/pthread_cond_timedwait.c: Likewise.
6010         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
6011         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
6012         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
6013         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
6014         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: Likewise.
6015         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: Likewise.
6016         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: Likewise.
6017         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Likewise.
6018         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: Likewise.
6019         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: Likewise.
6020         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Likewise.
6021         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Likewise.
6022         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
6023         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
6024         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
6025         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
6026
6027 2016-12-31  Joseph Myers  <joseph@codesourcery.com>
6028
6029         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
6030         (fromfp): New declaration.
6031         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfpx): Likewise.
6032         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfp): Likewise.
6033         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfpx): Likewise.
6034         * math/tgmath.h (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): New macro.
6035         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfp): Likewise.
6036         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfp): Likewise.
6037         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfpx): Likewise.
6038         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfpx): Likewise.
6039         * math/math.h: Include <bits/types.h>.
6040         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_INT_UPWARD): New enum
6041         constant and macro.
6042         (FP_INT_DOWNWARD): Likewise.
6043         (FP_INT_TOWARDZERO): Likewise.
6044         (FP_INT_TONEARESTFROMZERO): Likewise.
6045         (FP_INT_TONEAREST): Likewise.
6046         * math/Versions (fromfp): New libm symbol at version GLIBC_2.25.
6047         (fromfpf): Likewise.
6048         (fromfpl): Likewise.
6049         (ufromfp): Likewise.
6050         (ufromfpf): Likewise.
6051         (ufromfpl): Likewise.
6052         (fromfpx): Likewise.
6053         (fromfpxf): Likewise.
6054         (fromfpxl): Likewise.
6055         (ufromfpx): Likewise.
6056         (ufromfpxf): Likewise.
6057         (ufromfpxl): Likewise.
6058         * math/Makefile (libm-calls): Add s_fromfpF, s_ufromfpF,
6059         s_fromfpxF and s_ufromfpxF.
6060         * math/gen-fromfp-tests.py: New file.
6061         * math/gen-fromfp-tests-inputs: Likewise.
6062         * math/libm-test.inc: Include <stdint.h>
6063         (check_intmax_t): New function.
6064         (check_uintmax_t): Likewise.
6065         (struct test_fiu_M_data): New type.
6066         (struct test_fiu_U_data): Likewise.
6067         (RUN_TEST_fiu_M): New macro.
6068         (RUN_TEST_LOOP_fiu_M): Likewise.
6069         (RUN_TEST_fiu_U): Likewise.
6070         (RUN_TEST_LOOP_fiu_U): Likewise.
6071         (fromfp_test_data): New array.
6072         (fromfp_test): New function.
6073         (fromfpx_test_data): New array.
6074         (fromfpx_test): New function.
6075         (ufromfp_test_data): New array.
6076         (ufromfp_test): New function.
6077         (ufromfpx_test_data): New array.
6078         (ufromfpx_test): New function.
6079         (main): Call fromfp_test, fromfpx_test, ufromfp_test and
6080         ufromfpx_test.
6081         * math/gen-libm-test.pl (parse_args): Handle u, M and U descriptor
6082         characters.
6083         * math/test-tgmath-ret.c: Include <stdint.h>.
6084         (rm): New variable.
6085         (width): Likewise.
6086         (CHECK_RET_CONST_TYPE): Take extra arguments and pass them to
6087         called function.
6088         (CHECK_RET_CONST_FLOAT): Take extra arguments and pass them to
6089         CHECK_RET_CONST_TYPE.
6090         (CHECK_RET_CONST_DOUBLE): Likewise.
6091         (CHECK_RET_CONST_LDOUBLE): Likewise.
6092         (CHECK_RET_CONST): Take extra arguments and pass them to calls
6093         macros.
6094         (fromfp): New CHECK_RET_CONST call.
6095         (ufromfp): Likewise.
6096         (fromfpx): Likewise.
6097         (ufromfpx): Likewise.
6098         (do_test): Call check_return_fromfp, check_return_ufromfp,
6099         check_return_fromfpx and check_return_ufromfpx.
6100         * math/test-tgmath.c: Include <stdint.h>
6101         (NCALLS): Increase to 138.
6102         (F(compile_test)): Initialize i.  Call fromfp functions.
6103         (F(fromfp)): New function.
6104         (F(fromfpx)): Likewise.
6105         (F(ufromfp)): Likewise.
6106         (F(ufromfpx)): Likewise.
6107         * manual/arith.texi (Rounding Functions): Document FP_INT_UPWARD,
6108         FP_INT_DOWNWARD, FP_INT_TOWARDZERO, FP_INT_TONEARESTFROMZERO,
6109         FP_INT_TONEAREST, fromfp, fromfpf, fromfpl, ufromfp, ufromfpf,
6110         ufromfpl, fromfpx, fromfpxf, fromfpxl, ufromfpx, ufromfpxf and
6111         ufromfpxl.
6112         * manual/libm-err-tab.pl (@all_functions): Add fromfp, fromfpx,
6113         ufromfp and ufromfpx.
6114         * math/fromfp.h: New file.
6115         * sysdeps/ieee754/dbl-64/s_fromfp.c: Likewise.
6116         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Likewise.
6117         * sysdeps/ieee754/dbl-64/s_fromfpx.c: Likewise.
6118         * sysdeps/ieee754/dbl-64/s_ufromfp.c: Likewise.
6119         * sysdeps/ieee754/dbl-64/s_ufromfpx.c: Likewise.
6120         * sysdeps/ieee754/flt-32/s_fromfpf.c: Likewise.
6121         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Likewise.
6122         * sysdeps/ieee754/flt-32/s_fromfpxf.c: Likewise.
6123         * sysdeps/ieee754/flt-32/s_ufromfpf.c: Likewise.
6124         * sysdeps/ieee754/flt-32/s_ufromfpxf.c: Likewise.
6125         * sysdeps/ieee754/ldbl-128/s_fromfpl.c: Likewise.
6126         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Likewise.
6127         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c: Likewise.
6128         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c: Likewise.
6129         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c: Likewise.
6130         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c: Likewise.
6131         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl_main.c: Likewise.
6132         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c: Likewise.
6133         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c: Likewise.
6134         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c: Likewise.
6135         * sysdeps/ieee754/ldbl-96/s_fromfpl.c: Likewise.
6136         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Likewise.
6137         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c: Likewise.
6138         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c: Likewise.
6139         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c: Likewise.
6140         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fromfp,
6141         ufromfp, fromfpx and ufromfpx.
6142         (CFLAGS-nldbl-fromfp.c): New variable.
6143         (CFLAGS-nldbl-fromfpx.c): Likewise.
6144         (CFLAGS-nldbl-ufromfp.c): Likewise.
6145         (CFLAGS-nldbl-ufromfpx.c): Likewise.
6146         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include <stdint.h>.
6147         * sysdeps/ieee754/ldbl-opt/nldbl-fromfp.c: New file.
6148         * sysdeps/ieee754/ldbl-opt/nldbl-fromfpx.c: Likewise.
6149         * sysdeps/ieee754/ldbl-opt/nldbl-ufromfp.c: Likewise.
6150         * sysdeps/ieee754/ldbl-opt/nldbl-ufromfpx.c: Likewise.
6151         * sysdeps/nacl/libm.abilist: Update.
6152         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6153         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6154         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6155         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6156         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6157         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6158         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6159         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6160         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6161         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6162         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6163         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6165         Likewise.
6166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6167         Likewise.
6168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6169         Likewise.
6170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6171         Likewise.
6172         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6173         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6174         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6175         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6176         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6177         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6178         Likewise.
6179         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6180         Likewise.
6181         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6182         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6183         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6184
6185 2016-12-30  Florian Weimer  <fweimer@redhat.com>
6186
6187         * resolv/Makefile (libresolv-routines): Rename gethnamaddr to
6188         compat-gethnamaddr.
6189         (CPPFLAGS): Remove.
6190         * resolv/gethnamaddr.c: Rename ...
6191         * resolv/compat-gethnamaddr.c: ... to this file.
6192         (_endhtent): Make static.
6193         (res_gethostbyname): Renamed from gethostbyname.  Turn into compat
6194         symbol.
6195         (res_gethostbyname2): Renamed from gethostbyname2.  Turn into
6196         compat symbol.
6197         (res_gethostbyaddr): Renamed from gethostbyaddr.  Turn into compat
6198         symbol.
6199         (_sethtent, _gethtent, _gethtbyname, gethtbyname2, _gethtbyaddr):
6200         Turn into compat symbol.
6201         * include/resolv.h (_endhtent): Remove declaration.
6202
6203 2016-12-30  Joseph Myers  <joseph@codesourcery.com>
6204
6205         * bits/types.h (__intmax_t): New typedef.
6206         (__uintmax_t): Likewise.
6207         * sysdeps/generic/stdint.h: Include <bits/types.h>.
6208         (intmax_t): Define using __intmax_t.
6209         (uintmax_t): Define using __uintmax_t.
6210
6211         * support/Makefile (tests-special): Make definition conditional on
6212         [$(run-built-tests) = yes].
6213         ($(objpfx)tst-support_record_failure-2.out): Make rule conditional
6214         on [$(run-built-tests) = yes].
6215
6216 2016-12-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6217
6218         * Rules (tests): Add tests-printers-programs to tests to be
6219         built.
6220
6221 2016-12-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6222
6223         * sysvipc/Makefile (tests): Add test-sysvshm.
6224         * sysvipc/test-sysvshm.c: New file.
6225
6226         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmget): Remove.
6227         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmget): Likewise.
6228         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmget): Likewise.
6229         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmget): Likewise.
6230         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmget): Likewise.
6231         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmget): Likewise.
6232         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmget):
6233         Likewise.
6234         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmget):
6235         Likewise.
6236         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmget): Likewise.
6237         * sysdeps/unix/sysv/linux/shmget.c (shmget): Use shmget syscall if it
6238         is defined.
6239
6240         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmdt): Remove.
6241         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmdt): Likewise.
6242         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmdt): Likewise.
6243         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmdt): Likewise.
6244         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmdt): Likewise.
6245         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmdt): Likewise.
6246         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmdt):
6247         Likewise.
6248         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmdt):
6249         Likewise.
6250         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmdt): Likewise.
6251         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Use shmdt syscall if it is
6252         defined.
6253
6254         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
6255         oldshmctl.
6256         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmctl): Remove.
6257         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmctl): Likewise.
6258         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmctl): Likewise.
6259         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmctl): Likewise.
6260         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmctl): Likewise.
6261         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmctl): Likewise.
6262         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmctl):
6263         Likewise.
6264         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmctl):
6265         Likewise.
6266         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmctl): Likewise.
6267         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Remove file.
6268         * sysdeps/unix/sysv/linux/arm/shmctl.c: Likewise.
6269         * sysdeps/unix/sysv/linux/microblaze/shmctl.c: Likewise.
6270         * sysdeps/unix/sysv/linux/mips/mips64/shmctl.c: Use default
6271         implementation.
6272         * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Use shmctl syscall
6273         if it is defined.
6274
6275         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmat): Remove.
6276         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmat): Likewise.
6277         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmat): Likewise.
6278         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmat): Likewise.
6279         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmat): Likewise.
6280         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmat): Likewise.
6281         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmat):
6282         Likewise.
6283         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmat):
6284         Likewise.
6285         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmat): Likewise.
6286         * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
6287         Define to __NR_osf_shmat.
6288         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use shmat syscall if it is
6289         defined.
6290
6291         * sysvipc/Makefile (tests): Add test-sysvsem.
6292         * sysvipc/test-sysvsem.c: New file.
6293
6294         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): Remove.
6295         * sysdeps/unix/sysv/linux/arm/syscalls.list (semtimedop): Likewise.
6296         * sysdeps/unix/sysv/linux/generic/syscalls.list (semtimedop):
6297         Likewise.
6298         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semtimedop): Likewise.
6299         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semtimedop): Likewise.
6300         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semtimedop):
6301         Likewise.
6302         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semtimedop):
6303         Likewise.
6304         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semtimedop): Likewise.
6305         * sysdeps/unix/sysv/linux/m68k/semtimedop.S: Remove file.
6306         * sysdeps/unix/sysv/linux/s390/semtimedop.c: Reorganize headers and
6307         add a comment about s390 syscall difference from default one.
6308         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use semtimedop
6309         syscall if it is defined.
6310
6311         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semop): Remove.
6312         * sysdeps/unix/sysv/linux/arm/syscalls.list (semop): Likewise.
6313         * sysdeps/unix/sysv/linux/generic/syscalls.list (semop): Likewise.
6314         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semop): Likewise.
6315         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semop): Likewise.
6316         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semop): Likewise.
6317         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semop):
6318         Likewise.
6319         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semop):
6320         Likewise.
6321         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semop): Likewise.
6322         * sysdeps/unix/sysv/linux/semop.c (semop): Use semop syscall if it is
6323         defined.
6324
6325         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semget): Remove.
6326         * sysdeps/unix/sysv/linux/arm/syscalls.list (semget): Likewise.
6327         * sysdeps/unix/sysv/linux/generic/syscalls.list (semget): Likewise.
6328         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semget): Likewise.
6329         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semget): Likewise.
6330         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semget): Likewise.
6331         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semget):
6332         Likewise.
6333         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semget):
6334         Likewise.
6335         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semget): Likewise.
6336         * sysdeps/unix/sysv/linux/semget.c (semget): Use semget syscall
6337         if it is defined.
6338
6339         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
6340         oldsemctl.
6341         * sysdeps/unix/sysv/linux/alpha/semctl.c: Remove file.
6342         * sysdeps/unix/sysv/linux/arm/semctl.c: Likewise.
6343         * sysdeps/unix/sysv/linux/microblaze/semctl.c: Likewise.
6344         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
6345         * sysdeps/unix/sysv/linux/mips/mips64/semctl.c: Use defaulf
6346         implementation.
6347         * sysdeps/unix/sysv/linux/semctl.c (__new_semctl): Use semctl
6348         syscall if it is defined.
6349         * sysdeps/unix/sysv/linux/generic/syscalls.list (semctl): Remove.
6350         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semctl): Likewise.
6351         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semctl): Likewise.
6352         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semctl): Likewise.
6353         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semctl):
6354         Likewise.
6355         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semctl): Likewise.
6356
6357         * sysvipc/Makefile (tests): Add test-sysvmsg.
6358         * sysvipc/test-sysvmsg.c: New file.
6359         * support/check.h (FAIL_UNSUPPORTED): New define.
6360
6361         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgget): Remove.
6362         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgget): Likewise.
6363         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgget): Likewise.
6364         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgget): Likewise.
6365         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgget): Likewise.
6366         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgget): Likewise.
6367         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgget):
6368         Likewise.
6369         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgget):
6370         Likewise.
6371         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgget): Likewise.
6372         * sysdeps/unix/sysv/linux/msgget.c (msgget): Use msgget syscall if
6373         define.
6374
6375         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgsnd): Remove.
6376         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgsnd): Likewise.
6377         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgsnd): Likewise.
6378         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgsnd): Likewise.
6379         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgsnd): Likewise.
6380         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgsnd): Likewise.
6381         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgsnd):
6382         Likewise.
6383         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgsnd):
6384         Likewise.
6385         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgsnd): Likewise.
6386         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Use msgsnd syscall
6387         if defined.
6388
6389         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgctl): Remove.
6390         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgctl): Likewise.
6391         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgctl): Likewise.
6392         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgctl): Likewise.
6393         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgctl): Likewise.
6394         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgctl): Likewise.
6395         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgctl):
6396         Likewise.
6397         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgctl): Likewise,
6398         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgctl):
6399         Likewise.
6400         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Use msgrcv syscall
6401         if defined.
6402         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Remove file.
6403
6404         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
6405         oldmsgctl.
6406         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Remove file.
6407         * sysdeps/unix/sysv/linux/arm/msgctl.c: Likewise.
6408         * sysdeps/unix/sysv/linux/microblaze/msgctl.c: Likewise.
6409         * sysdeps/unix/sysv/linux/alpha/syscalls.list (oldmsgctl): Remove.
6410         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgctl): Likewise.
6411         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgctl): Likewise.
6412         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgctl): Likewise.
6413         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgctl):
6414         Likewise.
6415         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgctl): Likewise.
6416         * sysdeps/unix/sysv/linux/mips/mips64/msgctl.c: Use default
6417         implementation.
6418         * sysdeps/unix/sysv/linux/msgctl.c (__new_msgctl): Use msgctl syscall
6419         if defined.
6420
6421         * sysdeps/unix/sysv/linux/aarch64/ipc_priv.h: New file.
6422         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Avoid included other arch
6423         definition and define its own.
6424         * sysdeps/unix/sysv/linux/ipc_ops.h: New file.
6425         * sysdeps/unix/sysv/linux/x86_64/ipc_priv.h: Likewise.
6426         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: Remove file.
6427         * sysdeps/unix/sysv/linux/mips/mips64/ipc_priv.h: New file.
6428         * sysdeps/unix/sysv/linux/ipc_priv.h: Move ipc syscall operation
6429         definitions to common header.
6430         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: Use common syscall
6431         operation from ipc_ops.h.
6432
6433         * sysdeps/unix/sysv/linux/kernel-features.h
6434         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): New define.
6435         * sysdeps/unix/sysv/linux/i386/kernel-features.h
6436         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Undef.
6437         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6438         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6439         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6440         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6441         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
6442         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6443         * sysdeps/unix/sysv/linux/s390/kernel-features.h
6444         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6445         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6446         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6447         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
6448         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6449
6450 2016-12-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6451
6452         * sysdeps/powerpc/powerpc32/power7/memchr.S (__memchr): Avoid an
6453         overflow in pointer addition.
6454
6455 2016-12-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6456
6457         * sysdeps/powerpc/powerpc64/multiarch/Makefile
6458         (sysdep_routines): Add strchr-power8 and strchrnul_power8.
6459         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
6460         (strchr): Add __strchr_power8 to list of strchr functions.
6461         (strchrnul): Add __strchrnul_power8 to list of strchr functions.
6462         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: New file.
6463         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: New file.
6464         * sysdeps/powerpc/powerpc64/multiarch/strchr.c
6465         (strchr): Add __strchr_power8 to ifunc list.
6466         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c
6467         (__strchrnul): Add __strchrnul_power8 to ifunc list.
6468         * sysdeps/powerpc/powerpc64/power8/strchr.S: New file.
6469         * sysdeps/powerpc/powerpc64/power8/strchrnul.S: New file.
6470
6471 2016-12-28  Florian Weimer  <fweimer@redhat.com>
6472
6473         * support/Makefile (libsupport-routines): Add
6474         support_test_verify_impl, support_record_failure, xfork, xwaitpid.
6475         (tests): Add tst-support_record_failure.
6476         (tests-special): tst-support_record_failure-2.
6477         (tst-support_record_failure-2.out): Depend on
6478         tst-support_record_failure-2.sh and tst-support_record_failure.
6479         * support/check.h (TEST_VERIFY, TEST_VERIFY_EXIT): Define.
6480         (support_test_verify_impl, support_record_failure)
6481         (support_report_failure, support_report_failure_reset): Declare.
6482         * support/support_test_main.c (adjust_exit_status): New function.
6483         (support_test_main): Call it to incorporate record test failures.
6484         * support/support_test_verify_impl.c: New file.
6485         * support/support_record_failure.c: Likewise.
6486         * support/tst-support_record_failure.c: Likewise.
6487         * support/tst-support_record_failure-2.sh: Likewise.
6488         * support/xunistd.h: Likewise.
6489         * support/xfork.c: Likewise.
6490         * support/xwaitpid.c: Likewise.
6491
6492 2016-12-27  Steve Ellcey  <sellcey@caviumnetworks.com>
6493
6494         * scripts/check-c++-types.sh: Add comments.
6495
6496 2016-12-27  Dmitry V. Levin  <ldv@altlinux.org>
6497
6498         [BZ #19514]
6499         * resolv/res_send.c: Fix typo in comment.
6500         * sysdeps/i386/i386-mcount.S: Likewise.
6501         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
6502         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
6503         * sysdeps/sparc/sparc-mcount.S: Likewise.
6504
6505 2016-12-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6506
6507         * sysdeps/powerpc/fpu/s_fmaxf.S: Remove file.
6508         * sysdeps/powerpc/fpu/s_fminf.S: Likewise.
6509         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
6510         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
6511         * sysdeps/powerpc/powerpc32/fpu/s_fmax.S: Likewise.
6512         * sysdeps/powerpc/powerpc32/fpu/s_fmin.S: Likewise.
6513         * sysdeps/powerpc/powerpc64/fpu/s_fmax.S: Likewise.
6514         * sysdeps/powerpc/powerpc64/fpu/s_fmin.S: Likewise.
6515
6516 2016-12-27  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6517
6518         * manual/arith.texi (FP Comparison Functions): Fix typo in iseqsig.
6519
6520 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6521
6522         [BZ #17252]
6523         * posix/unistd.h (getentropy): Declare.
6524
6525 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6526
6527         * resolv/res_hconf.h (HCONF_FLAG_SPOOF, HCONF_FLAG_SPOOFALERT):
6528         Remove.
6529         * resolv/res_hconf.c (ENV_SPOOF, arg_spoof): Remove.
6530         (cmd): Remove spoof, nospoof, spoofalert.
6531         (parse_line): Ignore spoof-related lines.
6532         (do_init): Do not process RESOLV_SPOOF_CHECK.
6533
6534 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6535
6536         [BZ #20964]
6537         sunrpc: Always obtain AF_INET addresses from NSS.
6538         * include/rpc/rpc.h (__libc_rpc_gethostbyname): Declare.
6539         * sunrpc/rpc_gethostbyname.c: New file.
6540         * sunrpc/Makefile (routines): Add it.
6541         * sunrpc/clnt_gen.c (clnt_create): Use __libc_rpc_gethostbyname.
6542         * sunrpc/clnt_simp.c (callrpc): Likewise.
6543         * sunrpc/getrpcport.c (getrpcport): Likewise.
6544
6545 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6546
6547         * sunrpc/rpcinfo.c: Remove.
6548         * sunrpc/Makefile: Remove comments referring to rpcinfo.
6549
6550 2016-12-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6551
6552         [BZ #19387]
6553         * sysdeps/x86_64/memchr.S (memchr): Avoid overflow in pointer
6554         addition.
6555         * string/test-memchr.c (do_test): Remove alignment limitation.
6556         (test_main): Add test that trigger BZ #19387.
6557
6558 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6559
6560         [BZ #7065]
6561         Enable stack protectore if requested by ./configure.
6562         * Makeconfig (+stack-protector): New variable.
6563         (+cflags): Use it.
6564
6565 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6566
6567         [BZ #7065]
6568         * signal/Makefile (CFLAGS-sigreturn.c): Use $(no-stack-protector).
6569         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c:
6570         (__rt_sigreturn_stub): Use inhibit_stack_protector.
6571         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6572         (__rt_sigreturn_stub, __sigreturn_stub): Likewise.
6573
6574 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6575
6576         [BZ #7065]
6577         * login/Makefile (pt_chown-cflags): Remove.
6578         * nscd/Makefile (CFLAGS-nscd): Likewise.
6579         * resolv/Makefile (CFLAGS-libresolv): Likewise.
6580
6581 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6582
6583         [BZ #7065]
6584         * elf/Makefile (CFLAGS-filtmod1.c): Use $(no-stack-protector) for
6585         non-libc-linking testcase.
6586
6587 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6588             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6589             Florian Weimer  <fweimer@redhat.com>
6590
6591         [BZ #7065]
6592         PLT avoidance for __stack_chk_fail*.
6593         * debug/Makefile (CFLAGS-stack_chk_fail.c)
6594         (CFLAGS-stack_chk_fail_local.c): Build without stack protector.
6595         * debug/stack_chk_fail.c (__stack_chk_fail): Add
6596         __stack_chk_fail_local alias.
6597         * sysdeps/generic/symbol-hacks.h [IS_IN (libc)]
6598         (__stack_chk_fail): Turn into hidden reference to
6599         __stack_chk_fail_local.
6600
6601 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6602
6603         [BZ #7065]
6604         * configure.ac: Add check for unsupported stack-protection level.
6605         (libc_cv_predef_stack_protector): Remove.
6606         (no_ssp): New variable.
6607         (STACK_PROTECTOR_LEVEL): Set to zero when --disable-stack-protector.
6608         (stack_protector): Set to -fno-stack-protector similarly.
6609         (libc_cv_ld_gnu_indirect_function): Use no_ssp.
6610         (libc_cv_asm_set_directive): Likewise.
6611         (libc_cv_protected_data): Likewise.
6612         (libc_cv_z_combreloc): Likewise.
6613         (libc_cv_hashstyle): Likewise.
6614         (libc_cv_has_glob_dat): Likewise.
6615         (libc_cv_output_format): Likewise.
6616         (libc_cv_output_format): Likewise.
6617         (libc_cv_ehdr_start): Likewise.
6618         * aclocal.m4 (LIBC_TRY_LINK_STATIC): Likewise.
6619         (LIBC_LINKER_FEATURE): Likewise.
6620         (LIBC_COMPILER_BUILTIN_INLINED): Likewise.
6621
6622 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6623
6624         [BZ #7065]
6625         * elf/Makefile (dummy-stack-chk-fail): New.
6626         (librtld.map): Use it.
6627
6628 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6629
6630         [BZ #7065]
6631         Compile the dynamic linker without stack protection.
6632         * elf/Makefile (elide-stack-protector): New.
6633         (CFLAGS-.os): Use it, eliding $(all-rtld-routines).
6634         (CFLAGS-.o, CFLAGS-.op): Likewise, but for $(elide-routines.os).
6635         * elf/rtld-Rules (rtld-CFLAGS): Add $(no-stack-protector).
6636         * sysdeps/i386/Makefile (rtld-CFLAGS): Use +=, not =.
6637
6638 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6639
6640         [BZ #7065]
6641         * config.make.in (have-ssp, no-stack-protector): New.
6642         * csu/Makefile (CFLAGS-.o, CFLAGS-.op, CFLAGS-.os): Use it.
6643         * misc/Makefile (CFLAGS-sbrk.o): Likewise.
6644         (CFLAGS-sbrk.op): Likewise.
6645         (CFLAGS-brk.o): Likewise.
6646         (CFLAGS-brk.op): Likewise.
6647         * string/Makefile (CFLAGS-memcpy.c): Likewise.
6648         (CFLAGS-wordcopy.c): Likewise.
6649
6650 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6651
6652         [BZ #7065]
6653         * configure.ac (HAVE_CC_NO_STACK_PROTECTOR): Define.
6654         * config.h.in (HAVE_CC_NO_STACK_PROTECTOR): New macro.
6655         * include/libc-symbols.h (inhibit_stack_protector): New macro.
6656         (__ifunc_resolver): Use it.
6657         * elf/ifuncdep2.c (foo1_ifunc, foo2_ifunc, foo3_ifunc): Apply
6658         inhibit_stack_protector.
6659         * elf/ifuncmain6pie.c (foo_ifunc): Likewise.
6660         * elf/ifuncmain7.c (foo_ifunc): Likewise.
6661         * elf/ifuncmod1.c (foo_ifunc, foo_hidden_ifunc)
6662         (foo_protected_ifunc): Likewise.
6663         * elf/ifuncmod5.c (foo_ifunc, foo_hidden_ifunc)
6664         (foo_protected_ifunc): Likewise.
6665         * sysdeps/generic/ifunc-sel.h (ifunc_sel, ifunc_one): Likewise.
6666         * sysdeps/nacl/nacl_interface_query.c
6667         (nacl_interface_query_ifunc): Likewise.
6668         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel, ifunc_one): Likewise.
6669         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c (getcpu_ifunc):
6670         Likewise.
6671         * sysdeps/x86_64/ifuncmod8.c (foo_ifunc): Likewise.
6672         * sysdeps/unix/make-syscalls.sh: Apply inhibit_stack_protector to
6673         the generated vDSO syscall resolver.
6674
6675 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6676             Florian Weimer  <fweimer@redhat.com>
6677
6678         [BZ #7065]
6679         Initialize the stack guard earlier when linking statically.
6680         * sysdeps/generic/ldsodefs.h (__libc_setup_tls)
6681         (__pthread_initialize_minimal): Declare.
6682         * csu/libc-start.c (__pthread_initialize_minimal): Remove
6683         declaration.
6684         (LIBC_START_MAIN): Call __libc_setup_tls early and directly.  Move
6685         stack canary and apply_irel initialization up.  Call
6686         __pthread_initialize_minimal only if linked in.
6687         * csu/libc-tls.c (__libc_setup_tls): Replace arguments with their
6688         constant values.
6689         (__pthread_initialize_minimal): Remove.
6690         * nptl/nptl-init.c (__libc_setup_tls): Remove declaration.
6691         (__pthread_initialize_minimal_internal): Do not call
6692         __libc_setup_tls.
6693
6694 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6695
6696         [BZ #7065]
6697         * configure.ac (libc_cv_ssp): Move up.
6698         (libc_cv_ssp_strong): Likewise.
6699         (libc_cv_ssp_all): New.
6700         (stack_protector): Augment, adding -fstack-protector-all.
6701         (no_stack_protector): New.
6702         (STACK_PROTECTOR_LEVEL): New.
6703         (AC_ARG_ENABLE(stack-protector)): New configure flag.
6704         * manual/install.texi (--enable-stack-protector): Document it.
6705         * config.h.in (STACK_PROTECTOR_LEVEL): New macro.
6706
6707 2016-12-24  Carlos O'Donell  <carlos@redhat.com>
6708
6709         * README.pretty-printers: Must specify CPPFLAGS-* also.
6710         * nptl/Makefile (CPPFLAGS-test-mutexattr-printers.c): Define.
6711         (CPPFLAGS-test-mutex-printers.c): Define.
6712         (CPPFLAGS-test-condattr-printers.c): Define.
6713         (CPPFLAGS-test-cond-printers.c): Define.
6714         (CPPFLAGS-test-rwlockattr-printers.c): Define.
6715         (CPPFLAGS-test-rwlock-printers.c): Define.
6716
6717         * nss/Makefile [ifeq (yes,$(have-thread-library))]
6718         (tests): Add tst-cancel-getpwuid_r.
6719         * nss/tst-cancel-getpwuid_r.c: New file.
6720
6721         [BZ #11941]
6722         * elf/dl-close.c (_dl_close): Take dl_load_lock to examine map.
6723         Remove assert (map->l_init_called); if DF_1_NODELETE is set.
6724         * elf/Makefile [ifeq (yes,$(build-shared))] (tests): Add
6725         tst-nodelete-dlclose.
6726         (modules-names): Add tst-nodelete-dlclose-dso and
6727         tst-nodelete-dlclose-plugin.
6728         ($(objpfx)tst-nodelete-dlclose-dso.so): Define.
6729         ($(objpfx)tst-nodelete-dlclose-plugin.so): Define.
6730         ($(objpfx)tst-nodelete-dlclose): Define.
6731         ($(objpfx)tst-nodelete-dlclose.out): Define.
6732
6733 2016-12-23  Florian Weimer  <fweimer@redhat.com>
6734
6735         * scripts/test_printers_common.py: Log GDB output in case of
6736         Python detection failure.
6737
6738 2016-12-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6739
6740         * configure.ac: Check for python3 or python.
6741         * configure: Regenerated.
6742         * config.make.in (PYTHON): New variable.
6743         * benchtests/Makefile: Don't define PYTHON.
6744         (bench): Define target only if PYTHON was defined.
6745         * Rules: Don't define PYTHON.
6746         Define pretty printer targets only if PYTHON was defined.
6747         (tests-printers): Add to tests-unsupported if PYTHON is not
6748         found.
6749         (python-flags, python-invoke): Remove.
6750         (tests-printers-out): Use PYTHON instead of python-invoke.
6751
6752 2016-12-21  Joseph Myers  <joseph@codesourcery.com>
6753
6754         [BZ #20978]
6755         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
6756         Compare name == NULL, not name != NULL.
6757
6758         * manual/texinfo.tex: Update to version 2016-09-18.18 with
6759         trailing whitespace removed.
6760         * scripts/config.guess: Update to version 2016-10-02.
6761         * scripts/config.sub: Update to version 2016-11-19.
6762         * scripts/install-sh: Update to version 2016-01-11.22.
6763         * scripts/mkinstalldirs: Update to version 2016-01-11.22.
6764         * scripts/move-if-change: Update to version 2016-01-11 22:04.
6765
6766 2015-12-21  Wilco Dijkstra  <wdijkstr@arm.com>
6767
6768         * benchtests/bench-strsep.c (oldstrsep): Add old implementation.
6769         (do_one_test) Restore original string so iteration works.
6770         * string/string-inlines.c (do_test): Create better input strings.
6771         (test_main) Reduce number of testruns.
6772         * string/string-inlines.c (__old_strsep_1c): New function.
6773         (__old_strsep_2c): Likewise.
6774         (__old_strsep_3c): Likewise.
6775         * string/strsep.c (__strsep): Remove case of small delim string.
6776         Call strcspn directly rather than strpbrk.
6777         * string/bits/string2.h (__strsep): Remove define.
6778         (__strsep_1c): Remove.
6779         (__strsep_2c): Remove.
6780         (__strsep_3c): Remove.
6781         (strsep): Remove.
6782         * sysdeps/unix/sysv/linux/internal_statvfs.c
6783         (__statvfs_getflags): Rename to __strsep.
6784
6785 2016-12-21  Florian Weimer  <fweimer@redhat.com>
6786
6787         * csu/libc-tls.c (_dl_tls_setup): Remove.
6788         * elf/dl-tls.c (_dl_tls_setup): Likewise.
6789         * elf/Versions (GLIBC_PRIVATE): Remove _dl_tls_setup.
6790         * sysdeps/generic/ldsodefs.h (_dl_tls_setup): Remove declaration.
6791
6792 2016-12-21  Nick Alcock <nick.alcock@oracle.com>
6793
6794         [BZ #7065]
6795         * sysdeps/x86_64/Makefile [$(subdir) = elf]
6796         (CFLAGS-tst-quad1pie.c, CFLAGS-tst-quad2pie.c): Add $(PIE-ccflag).
6797
6798 2016-12-21  Nick Alcock <nick.alcock@oracle.com>
6799             Florian Weimer  <fweimer@redhat.com>
6800
6801         [BZ #7065]
6802         * csu/Makefile (tests): Empty assignment and document it.
6803         (tests-static): Remove.
6804         * csu/tst-empty.c: Move to...
6805         * misc/tst-empty.c: ... here.  Switch to new test driver.
6806         * csu/tst-atomic.c: Move to...
6807         * misc/tst-atomic.c: ... here.  Switch to new test driver.
6808         * csu/tst-atomic-long.c: Move to...
6809         * misc/tst-atomic-long.c: ... here.
6810         * misc/Makefile (tests): Add tst-empty, tst-atomic,
6811         tst-atomic-long.
6812         (tests-static): Add tst-empty.
6813
6814 2016-12-21  Rical Jasan  <ricaljasan@pacific.net>
6815
6816         * manual/nss.texi: Change incorrect @vtable to @table.
6817         * manual/arith.texi: Convert @tables of variables to @vtables
6818         and remove unnecessary indexing.
6819         * manual/filesys.texi: Likewise.
6820         * manual/llio.texi: Likewise.
6821         * manual/memory.texi: Likewise.
6822         * manual/process.texi: Likewise.
6823         * manual/resource.texi: Likewise.
6824         * manual/search.texi: Likewise.
6825         * manual/signal.texi: Likewise.
6826         * manual/socket.texi: Likewise.
6827         * manual/stdio.texi: Likewise.
6828         * manual/sysinfo.texi: Likewise.
6829         * manual/syslog.texi: Likewise.
6830         * manual/terminal.texi: Likewise.
6831         * manual/time.texi: Likewise.
6832         * manual/users.texi: Likewise.
6833
6834 2016-12-21  Joseph Myers  <joseph@codesourcery.com>
6835
6836         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
6837         (roundeven): New declaration.
6838         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (roundeven): New
6839         macro.
6840         * math/Versions (roundeven): New libm symbol at version
6841         GLIBC_2.25.
6842         (roundevenf): Likewise.
6843         (roundevenl): Likewise.
6844         * math/Makefile (libm-calls): Add s_roundevenF.
6845         * math/libm-test.inc (roundeven_test_data): New array.
6846         (roundeven_test): New function.
6847         (main): Call roundeven_test.
6848         * math/test-tgmath.c (NCALLS): Increase to 134.
6849         (F(compile_test)): Call roundeven.
6850         (F(roundeven)): New function.
6851         * manual/arith.texi (Rounding Functions): Document roundeven,
6852         roundevenf and roundevenl.
6853         * manual/libm-err-tab.pl (@all_functions): Add roundeven.
6854         * include/math.h (roundeven): Use libm_hidden_proto.
6855         * sysdeps/ieee754/dbl-64/s_roundeven.c: New file.
6856         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Likewise.
6857         * sysdeps/ieee754/flt-32/s_roundevenf.c: Likewise.
6858         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Likewise.
6859         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c: Likewise.
6860         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Likewise.
6861         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
6862         roundeven.
6863         (CFLAGS-nldbl-roundeven.c): New variable.
6864         * sysdeps/ieee754/ldbl-opt/nldbl-roundeven.c: New file.
6865         * sysdeps/nacl/libm.abilist: Update.
6866         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6867         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6868         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6869         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6870         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6871         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6872         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6873         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6874         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6875         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6876         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6877         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6879         Likewise.
6880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6881         Likewise.
6882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6883         Likewise.
6884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6885         Likewise.
6886         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6887         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6888         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6889         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6890         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6891         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6892         Likewise.
6893         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6894         Likewise.
6895         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6896         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6897         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6898
6899 2016-12-20  Joseph Myers  <joseph@codesourcery.com>
6900
6901         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): Add
6902         preprocessor indentation inside #if.
6903
6904 2016-12-20  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6905
6906         * math/libm-test.inc (fmt_ftostr): New function.
6907         (print_float, check_float_internal): Replace some uses of
6908         FTOSTR with uses of fmt_ftostr.
6909         (print_max_error, print_complex_max_error, print_function_ulps)
6910         (print_complex_function_ulps): Remove uses of the macros
6911         PRINTF_EXPR, PRINTF_NEXPR, and PRINTF_XEXPR.
6912         * math/test-double.h (FTOSTR): Define to strfromd.
6913         (PRINTF_EXPR): Delete.
6914         (PRINTF_XEXPR): Likewise.
6915         (PRINTF_NEXPR): Likewise.
6916         * math/test-float.h (FTOSTR): Define to strfromf.
6917         (PRINTF_EXPR): Delete.
6918         (PRINTF_XEXPR): Likewise.
6919         (PRINTF_NEXPR): Likewise.
6920         * math/test-ldouble.h (FTOSTR): Define to strfroml.
6921         (PRINTF_EXPR): Delete.
6922         (PRINTF_XEXPR): Likewise.
6923         (PRINTF_NEXPR): Likewise.
6924
6925 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6926
6927         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
6928         (__lll_unlock_elision, lll_unlock_elision): Add adapt_count argument.
6929         * sysdeps/unix/sysv/linux/s390/elision-lock.c:
6930         (__lll_lock_elision): Decrement adapt_count while unlocking
6931         instead of before locking.
6932         * sysdeps/unix/sysv/linux/s390/elision-trylock.c
6933         (__lll_trylock_elision): Likewise.
6934         * sysdeps/unix/sysv/linux/s390/elision-unlock.c:
6935         (__lll_unlock_elision): Likewise.
6936
6937 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6938
6939         * sysdeps/unix/sysv/linux/s390/htm.h(__libc_tbegin_retry): New macro.
6940         * sysdeps/unix/sysv/linux/s390/elision-lock.c (__lll_lock_elision):
6941         Use __libc_tbegin_retry macro.
6942
6943 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6944
6945         * sysdeps/unix/sysv/linux/s390/Makefile (elision-CFLAGS):
6946         Add -msoft-float.
6947         * sysdeps/unix/sysv/linux/s390/htm.h: New File.
6948         * sysdeps/unix/sysv/linux/s390/elision-lock.c:
6949         Use __libc_t* transaction macros instead of __builtin_t*.
6950         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
6951         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
6952
6953 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6954
6955         * sysdeps/unix/sysv/linux/s390/elision-lock.c
6956         (__lll_lock_elision): Use atomics to load / store adapt_count.
6957         * sysdeps/unix/sysv/linux/s390/elision-trylock.c
6958         (__lll_trylock_elision): Likewise.
6959
6960 2016-12-20  Florian Weimer  <fweimer@redhat.com>
6961
6962         Do not require memset elimination in explicit_bzero test.
6963         * string/tst-xbzero-opt.c (prepare_test_buffer): Force inlining.
6964         (enum test_expectation): Add NO_EXPECTATIONS.
6965         (subtests): NO_EXPECTATIONS for ordinary clear.
6966         (check_test_buffer): Handle NO_EXPECTATIONS.
6967         * string/Makefile (CFLAGS-tst-xbzero-opt.c): Compile with -O3.
6968
6969 2016-12-20  Joseph Myers  <joseph@codesourcery.com>
6970
6971         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
6972         (fmaxmag): New declaration.
6973         (fminmag): Likewise.
6974         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (fmaxmag): New
6975         macro.
6976         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fminmag): Likewise.
6977         * math/Versions (fmaxmag): New libm symbol at version GLIBC_2.25.
6978         (fmaxmagf): Likewise.
6979         (fmaxmagl): Likewise.
6980         (fminmag): Likewise.
6981         (fminmagf): Likewise.
6982         (fminmagl): Likewise.
6983         * math/Makefile (gen-libm-calls): Add s_fmaxmagF and s_fminmagF.
6984         * math/s_fmaxmag_template.c: New file.
6985         * math/s_fminmag_template.c: Likewise.
6986         * math/libm-test.inc (fmaxmag_test_data): New array.
6987         (fmaxmag_test): New function.
6988         (fminmag_test_data): New array.
6989         (fminmag_test): New function.
6990         (main): Call fmaxmag_test and fminmag_test.
6991         * math/test-tgmath.c (NCALLS): Increase to 132.
6992         (F(compile_test)): Call fmaxmag and fminmag.
6993         (F(fminmag)): New function.
6994         (F(fmaxmag)): Likewise.
6995         * manual/arith.texi (Misc FP Arithmetic): Document fminmag,
6996         fminmagf, fminmagl, fmaxmag, fmaxmagf and fmaxmagl.
6997         * manual/libm-err-tab.pl (@all_functions): Add fmaxmag and
6998         fminmag.
6999         * sysdeps/ieee754/ldbl-opt/nldbl-fmaxmag.c: New file.
7000         * sysdeps/ieee754/ldbl-opt/nldbl-fminmag.c: Likewise.
7001         * sysdeps/ieee754/ldbl-opt/s_fmaxmagl.c: Likewise.
7002         * sysdeps/ieee754/ldbl-opt/s_fminmagl.c: Likewise.
7003         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmaxmag
7004         and fminmag.
7005         (CFLAGS-nldbl-fmaxmag.c): New variable.
7006         (CFLAGS-nldbl-fminmag.c): Likewise.
7007         * sysdeps/nacl/libm.abilist: Update.
7008         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7009         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7010         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7011         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7012         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7013         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7014         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7015         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7016         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7017         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7018         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7019         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7021         Likewise.
7022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7023         Likewise.
7024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7025         Likewise.
7026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7027         Likewise.
7028         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7029         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7030         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7031         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7032         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7033         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7034         Likewise.
7035         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7036         Likewise.
7037         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7038         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7039         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7040
7041 2016-12-19  Torvald Riegel  <triegel@redhat.com>
7042
7043         [BZ #20973]
7044         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Fix lost
7045         wake-up in robust mutexes.
7046         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
7047
7048 2016-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7049
7050         * benchtests/Makefile (bench-math): Add fminf and fmaxf.
7051         (CFLAGS-bench-fmaxf.c): New rule.
7052         (CFLAGS-bench-fminf.c): Likewise.
7053         * benchtests/fmaxf-inputs: New file.
7054         * benchtests/fminf-inputs: Likewise.
7055
7056         * benchtests/Makefile (bench-math): Add fmin and fmax.
7057         (CFLAGS-bench-fmax.c): New rule.
7058         (CFLAGS-bench-fmin.c): Likewise.
7059         * benchtests/fmax-inputs: New file.
7060         * benchtests/fmin-inputs: Likewise.
7061
7062         * benchtests/bench-string.h (TEST_FUNCTION): Use name without
7063         parenthesis.
7064         (CMDLINE_PROCESS): Define using function instead of macro.
7065         * benchtests/bench-memccpy.c: Include <support/test-driver.c> instead
7066         of test-skeleton.
7067         * benchtests/bench-memchr.c: Likewise.
7068         * benchtests/bench-memcmp.c: Likewise.
7069         * benchtests/bench-memcpy-large.c: Likewise.
7070         * benchtests/bench-memcpy.c: Likewise.
7071         * benchtests/bench-memmem.c: Likewise.
7072         * benchtests/bench-memmove-large.c: Likewise.
7073         * benchtests/bench-memmove.c: Likewise.
7074         * benchtests/bench-memset-large.c: Likewise.
7075         * benchtests/bench-memset.c: Likewise.
7076         * benchtests/bench-rawmemchr.c: Likewise.
7077         * benchtests/bench-strcasecmp.c: Likewise.
7078         * benchtests/bench-strcasestr.c: Likewise.
7079         * benchtests/bench-strcat.c: Likewise.
7080         * benchtests/bench-strchr.c: Likewise.
7081         * benchtests/bench-strcmp.c: Likewise.
7082         * benchtests/bench-strcpy.c: Likewise.
7083         * benchtests/bench-strcpy_chk.c: Likewise.
7084         * benchtests/bench-strlen.c: Likewise.
7085         * benchtests/bench-strncasecmp.c: Likewise.
7086         * benchtests/bench-strncmp.c: Likewise.
7087         * benchtests/bench-strncpy.c: Likewise.
7088         * benchtests/bench-strnlen.c: Likewise.
7089         * benchtests/bench-strpbrk.c: Likewise.
7090         * benchtests/bench-strrchr.c: Likewise.
7091         * benchtests/bench-strsep.c: Likewise.
7092         * benchtests/bench-strspn.c: Likewise.
7093         * benchtests/bench-strstr.c: Likewise.
7094         * benchtests/bench-strtok.c: Likewise.
7095
7096 2016-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
7097
7098         * sysdeps/x86/cpu-features.c (get_common_indeces): Add
7099         stepping identification.
7100         (init_cpu_features): Add handle of Haswell.
7101
7102 2016-11-25  Jim Meyering  <meyering@fb.com>
7103
7104         [BZ #20386]
7105         Let gcc detect assert(a = 1) errors.
7106         * assert/assert.h (assert): Rewrite, retaining the old definintion
7107         when required, but otherwise putting the expression as-is in an "if"
7108         expression (hence, with no added parentheses) within a statement
7109         expression.
7110
7111 2016-12-17  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7112
7113         * benchtests/Makefile (binaries-benchset): Depend on libsupport
7114         DSO.
7115
7116 2016-12-17  Martin Galvan  <martingalvan@sourceware.org>
7117
7118         * Rules (python-flags, python-invoke): New.
7119         ($(test-printers-out)): Use $(python-flags).
7120
7121 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
7122
7123         * manual/arith.texi (Math Error Reporting): Document that sNaN
7124         arguments are not considered domain errors.
7125
7126 2016-12-16  Zack Weinberg <zackw@panix.com>
7127             Florian Weimer <fweimer@redhat.com>
7128             Nick Mathewson <nickm@torproject.org>
7129
7130         * string/explicit_bzero.c: New routine.
7131         * string/test-explicit_bzero.c, string/tst-xbzero-opt.c: New tests.
7132         * string/Makefile (routines, strop-tests, tests): Add them.
7133         * string/test-memset.c: Add ifdeffage for testing explicit_bzero.
7134         * string/string.h [__USE_MISC]: Declare explicit_bzero.
7135
7136         * debug/explicit_bzero_chk.c: New routine.
7137         * debug/Makefile (routines): Add it.
7138         * debug/tst-chk1.c: Test fortification of explicit_bzero.
7139         * string/bits/string3.h: Fortify explicit_bzero.
7140
7141         * manual/string.texi: Document explicit_bzero.
7142         * NEWS: Mention addition of explicit_bzero.
7143
7144         * crypt/crypt-entry.c (__crypt_r): Clear key-dependent intermediate
7145         data before returning, using explicit_bzero.
7146         * crypt/md5-crypt.c (__md5_crypt_r): Likewise.
7147         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
7148         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
7149
7150         * include/string.h: Redirect internal uses of explicit_bzero
7151         to __explicit_bzero_chk[_internal].
7152         * string/Versions [GLIBC_2.25]: Add explicit_bzero.
7153         * debug/Versions [GLIBC_2.25]: Add __explicit_bzero_chk.
7154         * sysdeps/arm/nacl/libc.abilist
7155         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
7156         * sysdeps/unix/sysv/linux/alpha/libc.abilist
7157         * sysdeps/unix/sysv/linux/arm/libc.abilist
7158         * sysdeps/unix/sysv/linux/hppa/libc.abilist
7159         * sysdeps/unix/sysv/linux/i386/libc.abilist
7160         * sysdeps/unix/sysv/linux/ia64/libc.abilist
7161         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
7162         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
7163         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
7164         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7165         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7166         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7167         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7168         * sysdeps/unix/sysv/linux/nios2/libc.abilist
7169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7173         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
7174         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7175         * sysdeps/unix/sysv/linux/sh/libc.abilist
7176         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
7177         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
7178         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
7179         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
7180         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
7181         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
7182         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
7183         Add entries for explicit_bzero and __explicit_bzero_chk.
7184
7185 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
7186
7187         * math/fenv.h
7188         [__GLIBC_USE (IEC_60559_BFP_EXT) && FE_INVALID && __SUPPORT_SNAN__]
7189         (FE_SNANS_ALWAYS_SIGNAL): New macro.
7190         * math/test-fe-snans-always-signal.c: New file.
7191         * math/Makefile (tests): Add test-fe-snans-always-signal.
7192         (CFLAGS-test-fe-snans-always-signal.c): New variable.
7193         * manual/arith.texi (Infinity and NaN): Document
7194         FE_SNANS_ALWAYS_SIGNAL.
7195
7196 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7197
7198         * string/test-memchr.c (do_test): Typo on ‘byte’ and missing closing
7199         bracket.
7200
7201 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
7202
7203         * scripts/build-many-glibcs.py (Context.exec_self): Flush stdout
7204         before calling execv.
7205
7206 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7207
7208         [BZ #20971]
7209         * sysdeps/powerpc/powerpc64/power7/memchr.S (__memchr): Avoid
7210         overflow in pointer addition.
7211         * string/test-memchr.c (do_test): Add an argument to pass as
7212         the size on memchr.
7213         (test_main): Add check for SIZE_MAX.
7214
7215 2016-12-16  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7216
7217         * math/Makefile (gen-libm-calls): Remove w_scalblnF.
7218         (libm-calls): Add w_scalblnF.
7219         * math/w_scalbln.c: Remove.
7220         * math/w_scalblnf.c: Likewise.
7221         * math/w_scalblnl.c: Likewise.
7222         * math/w_scalbln_template.c: New file with type-generic
7223         implementation based on math/w_scalbln.c.
7224         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: Remove.
7225         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Use new template.
7226
7227 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
7228
7229         [BZ #20947]
7230         * sysdeps/i386/fpu/s_fmaxl.S (__fmaxl): Add the arguments when
7231         either is a signaling NaN.
7232         * sysdeps/i386/fpu/s_fminl.S (__fminl): Likewise.  Make code
7233         follow fmaxl more closely.
7234         * sysdeps/i386/i686/fpu/s_fmaxl.S (__fmaxl): Add the arguments
7235         when either is a signaling NaN.
7236         * sysdeps/i386/i686/fpu/s_fminl.S (__fminl): Likewise.
7237         * sysdeps/x86_64/fpu/s_fmax.S (__fmax): Likewise.
7238         * sysdeps/x86_64/fpu/s_fmaxf.S (__fmaxf): Likewise.
7239         * sysdeps/x86_64/fpu/s_fmaxl.S (__fmaxl): Likewise.
7240         * sysdeps/x86_64/fpu/s_fmin.S (__fmin): Likewise.
7241         * sysdeps/x86_64/fpu/s_fminf.S (__fminf): Likewise.
7242         * sysdeps/x86_64/fpu/s_fminl.S (__fminl): Likewise.
7243         * math/libm-test.inc (fmax_test_data): Add tests of sNaN inputs.
7244         (fmin_test_data): Likewise.
7245
7246 2016-12-15  Andreas Schwab  <schwab@suse.de>
7247
7248         * support/support_test_main.c (support_test_main): Don't shadow
7249         file-local variable test_pid.
7250
7251 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
7252
7253         [BZ #20947]
7254         * sysdeps/powerpc/fpu/s_fmax.S (__fmax): Add the arguments when
7255         either is a signaling NaN.
7256         * sysdeps/powerpc/fpu/s_fmin.S (__fmin): Likewise.
7257
7258 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
7259
7260         [BZ #20947]
7261         * math/s_fmax_template.c (M_DECL_FUNC (__fmax)): Add the arguments
7262         when either is a signaling NaN.
7263         * math/s_fmin_template.c (M_DECL_FUNC (__fmin)): Likewise.
7264
7265         * bits/long-double.h: New file.
7266         * sysdeps/ieee754/ldbl-128/bits/long-double.h: Likewise.
7267         * sysdeps/ieee754/ldbl-96/bits/long-double.h: Likewise.
7268         * sysdeps/ieee754/ldbl-opt/bits/long-double.h: Likewise.
7269         * sysdeps/mips/bits/long-double.h: Likewise.
7270         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Likewise.
7271         * math/Makefile (headers): Add bits/long-double.h.
7272         * misc/sys/cdefs.h: Include <bits/long-double.h>.
7273         * stdlib/strtold.c: Include <bits/long-double.h> instead of
7274         <bits/wordsize.h>.
7275         * bits/mathdef.h [!_COMPLEX_H]: Do not allow inclusion.
7276         [!__NO_LONG_DOUBLE_MATH]: Remove conditional code.
7277         * math/math.h: Do not include <bits/mathdef.h>.
7278         * sysdeps/aarch64/bits/mathdef.h: Remove file.
7279         * sysdeps/alpha/bits/mathdef.h [!_COMPLEX_H]: Do not allow
7280         inclusion.
7281         * sysdeps/ia64/bits/mathdef.h: Remove file.
7282         * sysdeps/m68k/m680x0/bits/mathdef.h: Likewise.
7283         * sysdeps/mips/bits/mathdef.h: Likewise.
7284         * sysdeps/powerpc/bits/mathdef.h: Likewise.
7285         * sysdeps/s390/bits/mathdef.h: Likewise.
7286         * sysdeps/sparc/bits/mathdef.h: Likewise.
7287         * sysdeps/x86/bits/mathdef.h: Likewise.
7288         * sysdeps/s390/s390-32/bits/wordsize.h
7289         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]: Remove
7290         conditional code.
7291         * sysdeps/s390/s390-64/bits/wordsize.h
7292         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7293         Likewise.
7294         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h
7295         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7296         Likewise.
7297         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h
7298         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7299         Likewise.
7300         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
7301         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7302         Likewise.
7303
7304         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]: Include
7305         <linux/falloc.h>.
7306         (FALLOC_FL_KEEP_SIZE): Remove.
7307         (FALLOC_FL_PUNCH_HOLE): Likewise.
7308         (FALLOC_FL_COLLAPSE_RANGE): Likewise.
7309         (FALLOC_FL_ZERO_RANGE): Likewise.
7310
7311 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7312
7313         * stdlib/tst-strfrom.h (ENTRY): Replace use of CSUF with LSUF.
7314
7315 2016-12-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7316
7317         * sysdeps/unix/sysv/linux/renameat.c: New file.
7318         * sysdeps/unix/sysv/linux/syscalls.list: Remove renameat.
7319
7320         * sysdeps/unix/sysv/linux/rename.c: New file.
7321         * sysdeps/unix/sysv/linux/generic/rename.c: Remove file.
7322
7323 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
7324
7325         * benchtests/bench-strtok.c (oldstrtok): Add old implementation.
7326         * string/strtok.c (strtok): Change to tailcall __strtok_r.
7327         * string/strtok_r.c (__strtok_r): Optimize for performance.
7328         * string/string-inlines.c (__old_strtok_r_1c): New function.
7329         * string/bits/string2.h (__strtok_r): Move to string-inlines.c.
7330
7331 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7332
7333         * math/Makefile (gen-libm-calls): Add w_log1pF.
7334         (libm-calls): Remove w_log1pF.
7335         * math/w_log1p.c: Remove.
7336         * math/w_log1pf.c: Likewise.
7337         * math/w_log1pl.c: Likewise.
7338         * math/w_log1p_template.c: New file with type-generic
7339         implementation based on math/w_log1p.c.
7340         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Remove.
7341         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: Likewise.
7342
7343 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
7344
7345         * string/rawmemchr.c (RAWMEMCHR): Use faster memchr/strlen.
7346
7347 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
7348
7349         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7350         kernel version to 4.9.
7351
7352 2016-12-12  Andrew Senkevich  <andrew.senkevich@intel.com>
7353
7354         * math/Makefile ($(inst_libdir)/libm-$(version).a): New target.
7355         ($(inst_libdir)/libm.a): Fix rule to create the target only.
7356
7357 2016-12-13  Andreas Schwab  <schwab@suse.de>
7358
7359         * sysdeps/powerpc/dl-procinfo.c: Don't define
7360         _dl_powerpc_platforms.
7361         * sysdeps/powerpc/dl-procinfo.h (_dl_string_platform): Use string
7362         constants instead of referencing _dl_powerpc_platforms.
7363         (_dl_platform_string): Remove.
7364
7365 2016-12-13  Florian Weimer  <fweimer@redhat.com>
7366
7367         * nptl/tst-cancel7.c (cmdline_process): Add missing case label.
7368
7369 2016-12-13  Florian Weimer  <fweimer@redhat.com>
7370
7371         * Rules (binaries-shared-tests, binaries-pie-tests)
7372         (binaries-static-tests): Link with $(link-extra-libs-tests).
7373         * Makeconfig (+link-pie-tests, +link-static-tests, +link-tests):
7374         Remove $(link-extra-libs-tests).
7375
7376 2016-12-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7377
7378         * sysdeps/powerpc/powerpc64/multiarch/Makefile
7379         (sysdep_routines): Add strncmp_power9.
7380         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7381         (strncmp): Add __strncmp_power9 to list of strncmp functions.
7382         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: New file.
7383         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7384         (strncmp): Add __strncmp_power9 to ifunc list.
7385         * sysdeps/powerpc/powerpc64/power9/strncmp.S: New file.
7386
7387 2016-12-12  Florian Weimer  <fweimer@redhat.com>
7388
7389         [BZ #17252]
7390         Add getentropy, getrandom.
7391         * stdlib/sys/random.h: New file.
7392         (headers): Add it.
7393         * stdlib/Makefile (routines): Add getentropy, getrandom.
7394         (tests): Add tst-getrandom.
7395         * stdlib/Versions (GLIBC_2.25): Add getrandom, getentropy.
7396         * stdlib/getentropy.c: New file.
7397         * stdlib/getrandom.c: Likewise.
7398         * stdlib/tst-getrandom.c: Likewise.
7399         * sysdeps/unix/sysv/linux/getentropy.c: Likewise.
7400         * sysdeps/unix/sysv/linux/getrandom.c: Likewise.
7401         * manual/crypt.texi (Unpredictable Bytes): New section.
7402         * manual/math.texi (Pseudo-Random Numbers): Add cross-reference.
7403         * sysdeps/arm/nacl/libc.abilist: Add getrandom, getentropy.
7404         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
7405         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7406         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7407         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7408         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7409         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7410         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7411         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7412         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7413         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7414         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7415         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7416         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7417         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7419         Likewise.
7420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7421         Likewise.
7422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7424         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7425         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7426         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7427         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7428         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7429         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7430         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7431         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7432         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7433         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7434
7435 2016-12-10  Florian Weimer  <fweimer@redhat.com>
7436
7437         [BZ #20956]
7438         * debug/tst-backtrace.h (NO_INLINE): Add noclone, weak attributes
7439         as additional compiler barriers.
7440         * debug/tst-backtrace2.c: Switch to <support/test-driver.c>.
7441         (fn2, do_test): Declare with external linkage.
7442         * debug/tst-backtrace3.c: Switch to <support/test-driver.c>.
7443         (do_test): Declare with external linkage.
7444         * debug/tst-backtrace4.c: Switch to <support/test-driver.c>.
7445         (do_test): Declare with external linkage.
7446         * debug/tst-backtrace5.c: Switch to <support/test-driver.c>.
7447         (do_test): Declare with external linkage.
7448
7449 2016-12-10  Andreas Schwab  <schwab@linux-m68k.org>
7450
7451         * support/support_test_main.c (support_test_main): Use correct
7452         timeout.
7453
7454 2016-12-09  Carlos O'Donell  <carlos@redhat.com>
7455             Florian Weimer  <fweimer@redhat.com>
7456
7457         [BZ #16421]
7458         * inet/netinet/in.h (struct in6_addr): Always define __u6_addr16
7459         and __u6_addr32 members.
7460         (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK)
7461         (IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL)
7462         (IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL):
7463         Use __u6_addr32.
7464         * inet/tst-checks.c: Use <support/test-driver.c>
7465         * inet/tst-checks-posix.c: New file.
7466         * inet/Makefile (tests): Add it.
7467         (CFLAGS-tst-checks-posix.c): Compile in C99 mode.
7468
7469 2016-12-09  Florian Weimer  <fweimer@redhat.com>
7470
7471         New subdirectory support for build and test infrastructure.
7472         * extra-libs.mk (extra-libs-noinstall): Add variable.  Use it when
7473         setting install-lib.
7474         * Makeconfig (link-extra-libs-tests): Define.
7475         (+link-pie-tests, +link-static-tests, +link-tests): Use
7476         link-extra-libs-tests.
7477         (rpath-dirs, all-subdirs): Add support.
7478         (built-modules): Add libsupport.
7479         (libsupport): Define.
7480         * support: New directory.
7481         * support/Makefile: New file.
7482         * support/check.c: Likewise.
7483         * support/check.h: Likewise.
7484         * support/delayed_exit.c: Likewise.
7485         * support/ignore_stderr.c: Likewise.
7486         * support/oom_error.c: Likewise.
7487         * support/set_fortify_handler.c: Likewise.
7488         * support/support.h: Likewise.
7489         * support/temp_file-internal.h: Likewise.
7490         * support/temp_file.c: Likewise.
7491         * support/test-driver.c: Likewise.
7492         * support/test-driver.h: Likewise.
7493         * support/test_main.c: Likewise.
7494         * support/write_message.c: Likewise.
7495         * support/xasprintf.c: Likewise.
7496         * support/xcalloc.c: Likewise.
7497         * support/xmalloc.c: Likewise.
7498         * support/xpthread_barrier_destroy.c: Likewise.
7499         * support/xpthread_barrier_init.c: Likewise.
7500         * support/xpthread_barrier_wait.c: Likewise.
7501         * support/xpthread_cancel.c: Likewise.
7502         * support/xpthread_check_return.c: Likewise.
7503         * support/xpthread_cond_wait.c: Likewise.
7504         * support/xpthread_create.c: Likewise.
7505         * support/xpthread_detach.c: Likewise.
7506         * support/xpthread_join.c: Likewise.
7507         * support/xpthread_mutex_lock.c: Likewise.
7508         * support/xpthread_mutex_unlock.c: Likewise.
7509         * support/xpthread_sigmask.c: Likewise.
7510         * support/xpthread_spin_lock.c: Likewise.
7511         * support/xpthread_spin_unlock.c: Likewise.
7512         * support/xrealloc.c: Likewise.
7513         * support/xsignal.h: Likewise.
7514         * support/xthread.h: Likewise.
7515         * support_tempfile.h: Likewise.
7516         * test-skeleton.c: Include <support/support.h>, <support/xsignal.h>.
7517         (TEST_DATA_LIMIT): Remove unused macro.
7518         (_FAIL, FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Remove.  Now in
7519         <support/check.h>.
7520         (oom_error, xmalloc, xcalloc, xrealloc, xasprintf, write_message)
7521         (ignore_stderr, set_fortify_handler): Remove.  Now in
7522         <support/support.h>.
7523         (xpthread_sigmask): Remove.  Now in <support/xsignal.h>.
7524         (xpthread_mutex_lock, xpthread_spin_lock, xpthread_cond_wait)
7525         (xpthread_barrier_wait, xpthread_create, xpthread_detach)
7526         (xpthread_join): Remove.  Now in <support/xthread.h>.
7527         (TEST_FUNCTION, PREPARE, CLEANUP_HANDLER, CMDLINE_PROCESS):
7528         Introduce legacy wrappers.
7529         * dlfcn/Makefile (bug-atexit3-lib.so): Link with $(libsupport).
7530         * dlfcn/bug-atexit3-lib.cc: Include <support/support.h>.
7531         (write_message): Remove.
7532         * dirent/opendir-tst1.c: Use <support/test-driver.h> instead of
7533         test-skeleton.c.
7534         * io/test-open-tmpfile: Likewise.
7535         * io/tst-posix_fallocate-common.c: Likewise.
7536         * libio/tst-fseek.c: Likewise.
7537         * malloc/tst-malloc-backtrace.c: Likewise.
7538         * malloc/tst-malloc-fork-deadlock.c: Likewise.
7539         * malloc/tst-malloc-thread-exit.c: Likewise.
7540         * nptl/tst-cancel7.c: Likewise.
7541         * nptl/tst-cleanup0.c: Likewise.
7542         * posix/tst-posix_fadvise-common.c: Likewise.
7543         * rt/tst-shm.c: Likewise.
7544         * time/bug-getdate1.c: Likewise.
7545         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
7546         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Likewise.
7547         * elf/Makefile (tst-piemod1.so): Link against libsupport.
7548
7549 2016-12-08  Joseph Myers  <joseph@codesourcery.com>
7550
7551         * Rules [$(run-built-tests) != no] (tests-expected): Add
7552         $(tests-printers).
7553         (tests): Do not pass $(tests-printers) to merge-test-results.sh.
7554
7555 2016-12-08  Andrew Senkevich  <andrew.senkevich@intel.com>
7556
7557         [BZ #20539]
7558         * math/Makefile (install-lib-ldscripts): Add libm.a.
7559         (install_subdir): Remove.
7560         (install-others): Add.
7561         ($(inst_libdir)/libm.a): Add rule for installation as
7562         linker script.
7563         * Makerules (install-lib.a): Filter out install-lib-ldscripts.
7564
7565 2016-12-08  Martin Galvan  <martin.galvan@tallertechnologies.com>
7566
7567         * INSTALL: Regenerated.
7568         * Makeconfig: Add comments and whitespace to make the control flow
7569         clearer.
7570         (+link-printers-tests, +link-pie-printers-tests,
7571         CFLAGS-printers-tests, installed-rtld-LDFLAGS,
7572         built-rtld-LDFLAGS, link-libc-rpath,
7573         link-libc-tests-after-rpath-link,
7574         link-libc-printers-tests): New.
7575         (rtld-LDFLAGS, rtld-tests-LDFLAGS, link-libc-tests-rpath-link,
7576         link-libc-tests): Use the new variables as required.
7577         * Makerules ($(py-const)): New rule.
7578         generated: Add $(py-const).
7579         * README.pretty-printers: New file.
7580         * Rules (tests-printers-programs, tests-printers-out, py-env): New.
7581         (others): Depend on $(py-const).
7582         (tests): Depend on $(tests-printers-programs) or
7583         $(tests-printers-out),
7584         as required.  Pass $(tests-printers) to merge-test-results.sh.
7585         * manual/install.texi: Add requirements for testing the pretty
7586         printers.
7587         * nptl/Makefile (gen-py-const-headers, pretty-printers,
7588         tests-printers, CFLAGS-test-mutexattr-printers.c
7589         CFLAGS-test-mutex-printers.c, CFLAGS-test-condattr-printers.c,
7590         CFLAGS-test-cond-printers.c, CFLAGS-test-rwlockattr-printers.c
7591         CFLAGS-test-rwlock-printers.c, tests-printers-libs): Define.
7592         * nptl/nptl-printers.py: New file.
7593         * nptl/nptl_lock_constants.pysym: Likewise.
7594         * nptl/test-cond-printers.c: Likewise.
7595         * nptl/test-cond-printers.py: Likewise.
7596         * nptl/test-condattr-printers.c: Likewise.
7597         * nptl/test-condattr-printers.py: Likewise.
7598         * nptl/test-mutex-printers.c: Likewise.
7599         * nptl/test-mutex-printers.py: Likewise.
7600         * nptl/test-mutexattr-printers.c: Likewise.
7601         * nptl/test-mutexattr-printers.py: Likewise.
7602         * nptl/test-rwlock-printers.c: Likewise.
7603         * nptl/test-rwlock-printers.py: Likewise.
7604         * nptl/test-rwlockattr-printers.c: Likewise.
7605         * nptl/test-rwlockattr-printers.py: Likewise.
7606         * scripts/gen-py-const.awk: Likewise.
7607         * scripts/test_printers_common.py: Likewise.
7608         * scripts/test_printers_exceptions.py: Likewise.
7609
7610 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
7611
7612         * scripts/build-many-glibcs.py (Context.__init__): Take strip
7613         argument.
7614         (Glibc.build_glibc): Strip installed shared libraries if
7615         requested.
7616         (get_parser): Add --strip option.
7617         (main): Update Context call.
7618
7619 2016-12-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7620             Dominik Vogt  <vogt@linux.vnet.ibm.com>
7621
7622         [BZ #20847]
7623         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
7624         array bounds for else branch.
7625         (__execvpe): Style fixes.
7626         * posix/tst-vfork3.c (run_script): New function.
7627         (create_script): Likewise.
7628         (do_test): Use run_script internal function.
7629         (do_prepare): Use create_script internal function.
7630
7631 2016-12-07  Andreas Schwab  <schwab@suse.de>
7632
7633         * sysdeps/unix/sysv/linux/x86/elision-conf.h
7634         (__elision_available): Don't declare.
7635         * sysdeps/unix/sysv/linux/x86/elision-conf.c
7636         (__elision_available): Don't define.
7637         (elision_init): Don't set __elision_available.
7638
7639 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
7640
7641         [BZ #20940]
7642         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Do not
7643         return Inf for arguments Inf and sNaN.
7644         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
7645         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
7646         Likewise.
7647         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
7648         Likewise.
7649         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
7650         * sysdeps/powerpc/fpu/e_hypot.c (TEST_INF_NAN): Do not return Inf
7651         for arguments Inf and sNaN.  When returning a NaN, compute it by
7652         arithmetic on the arguments.
7653         * sysdeps/powerpc/fpu/e_hypotf.c (TEST_INF_NAN): Likewise.
7654         * math/libm-test.inc (hypot_test_data): Add tests of sNaN
7655         arguments.
7656
7657 2016-12-06  Joseph Myers  <joseph@codesourcery.com>
7658
7659         [BZ #20916]
7660         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Do not return 1 for
7661         arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN arguments
7662         to compute result.
7663         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7664         * math/libm-test.inc (pow_test_data): Add tests of sNaN arguments.
7665
7666 2016-12-05  Torvald Riegel  <triegel@redhat.com>
7667
7668         * include/atomic.h (__atomic_check_size_ls): New.
7669         (atomic_load_relaxed, atomic_load_acquire, atomic_store_relaxed,
7670         atomic_store_release): Use it.
7671         * sysdeps/x86/elide.h (ACCESS_ONCE): Remove.
7672         (elision_adapt, ELIDE_LOCK): Use atomics.
7673         * sysdeps/unix/sysv/linux/x86/elision-lock.c (__lll_lock_elision): Use
7674         atomics and improve code comments.
7675         * sysdeps/unix/sysv/linux/x86/elision-trylock.c
7676         (__lll_trylock_elision): Likewise.
7677
7678 2016-12-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7679
7680         * hurd/hurd.h: Cast errno constants to error_t to fix usage in C++
7681         programs.
7682
7683 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
7684
7685         [BZ #20916]
7686         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return 1
7687         for arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN
7688         arguments to compute result.
7689         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Do not return
7690         1 for arguments (sNaN, 0) or (1, sNaN).
7691         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7692         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7693
7694         [BZ #20919]
7695         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return
7696         NaN first argument when raised to power 0.
7697         * math/w_pow.c (__pow): Do not check for NaN or zero results from
7698         raising to power zero.
7699         * math/w_powf.c (__powf): Likewise.
7700         * math/w_powl.c (__powl): Likewise.
7701         * sysdeps/ieee754/k_standard.c (__kernel_standard): Do not handle
7702         pow (0, 0) or pow (NaN, 0).
7703
7704 2016-12-02  Carlos O'Donell  <carlos@redhat.com>
7705
7706         [BZ #20918]
7707         * configure.ac: Test for static NSS cryptographic libraries and set
7708         libc_cv_static_nss_crypt.
7709         * configure: Regenerate.
7710         * config.make.in (static-nss-crypt): Define.
7711         * elf/Makefile (CFLAGS-tst-linkall-static.c): Define.
7712         [ifeq (yesno,$(nss-crypt)$(static-nss-crypt))]
7713         (CFLAGS-tst-linkall-static.c): Define.
7714         ($(objpfx)tst-linkall-static): Remove libcrypt.a.
7715         [ifeq (yesyes,$(nss-crypt)$(static-nss-crypt))]
7716         ($(objpfx)tst-linkall-static): Define.
7717         [ifeq (no,$(nss-crypt))] ($(objpfx)tst-linkall-static): Define.
7718         * elf/tst-linkall-static.c [USE_CRYPT](references): Reference crypt().
7719
7720 2016-12-02  Florian Weimer  <fweimer@redhat.com>
7721
7722         * elf/Makefile [build-shared] (tests): Add tst-latepthread.
7723         (one-hundred, tst-tls-many-dynamic-modules): Define.
7724         (modules-names): Add $(tst-tls-many-dynamic-modules).
7725         (tst-tls-manydynamic%mod.os): Build with special preprocessor
7726         macros.
7727         (tst-tls-manydynamic): Link against libdl, libpthread.
7728         (tst-tls-manydynamic.out): The test needs the test modules at run
7729         time.
7730         * elf/tst-tls-manydynamic.c: New file.
7731         * elf/tst-tls-manydynamic.h: Likewise.
7732         * elf/tst-tls-manydynamicmod.c: Likewise.
7733
7734 2016-12-02  Florian Weimer  <fweimer@redhat.com>
7735
7736         * sysdeps/aarch64/tlsdesc.sym (TCBHEAD_DTV, DTV_COUNTER)
7737         (TLS_DTV_UNALLOCATED): Add.
7738         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use explicit
7739         offsets.
7740
7741 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
7742
7743         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7744
7745 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
7746
7747         * elf/Makefile (CFLAGS-tst-latepthreadmod.c):
7748         Add -fno-optimize-sibling-calls.
7749
7750 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
7751
7752         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb):
7753         New declaration.
7754         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): New
7755         macro.
7756         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (__FP_LONG_MAX):
7757         New macro.
7758         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGB0): Likewise.
7759         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGBNAN): Likewise.
7760         * math/Versions (llogb): New libm symbol at version GLIBC_2.25.
7761         (llogbf): Likewise.
7762         (llogbl): Likewise.
7763         * math/Makefile (gen-libm-calls): Add w_llogbF.
7764         (tests): Add test-fp-llogb-constants.
7765         * math/w_llogb_template.c: New file.  Based on
7766         math/w_ilogb_template.c.
7767         * math/libm-test.inc (llogb_test_data): New array.
7768         (llogb_test): New function.
7769         (main): Call llogb_test.
7770         * math/test-fp-llogb-constants.c: New file.  Based on
7771         math/test-fp-ilogb-constants.c.
7772         * math/test-tgmath-ret.c (llogb): New CHECK_RET_CONST call.
7773         (do_test): Call check_return_llogb.
7774         * math/test-tgmath.c (NCALLS): Increase to 126.
7775         (F(compile_test)): Call llogb.
7776         (F(llogb)): New function.
7777         * manual/math.texi (Exponents and Logarithms): Document llogb,
7778         llogbf, llogbl, FP_LLOGB0 and FP_LLOGBNAN.
7779         * manual/libm-err-tab.pl (@all_functions): Add llogb.
7780         * sysdeps/ieee754/ldbl-opt/nldbl-llogb.c: New file.
7781         * sysdeps/ieee754/ldbl-opt/w_llogbl.c: Likewise.
7782         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add llogb.
7783         (CFLAGS-nldbl-llogb.c): New variable.
7784         * sysdeps/nacl/libm.abilist: Update.
7785         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7786         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7787         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7788         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7789         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7790         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7791         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7792         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7793         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7794         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7795         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7796         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7798         Likewise.
7799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7800         Likewise.
7801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7802         Likewise.
7803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7804         Likewise.
7805         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7806         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7807         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7808         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7809         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7810         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7811         Likewise.
7812         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7813         Likewise.
7814         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7815         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7816         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7817
7818 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
7819
7820         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Use
7821         _Float128 instead of long double.
7822         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c (FUNC): Likewise.
7823
7824         * sysdeps/alpha/setjmp.S (__sigsetjmp): Use hidden_def.
7825         * sysdeps/hppa/setjmp.S (__sigsetjmp): Likewise.
7826         * sysdeps/mips/mips64/setjmp.S (__sigsetjmp): Likewise.
7827         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
7828         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Likewise.
7829         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Likewise.
7830         * sysdeps/sparc/sparc32/setjmp.S (__sigsetjmp): Likewise.
7831         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
7832         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S (__sigsetjmp):
7833         Likewise.
7834
7835 2016-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7836
7837         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c (weak_alias):
7838         Remove redirection to __strrchr_ppc.
7839
7840 2016-12-01  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7841
7842         * sysdeps/powerpc/powerpc64/multiarch/Makefile
7843         (sysdep_routines): Add strcmp_power9.
7844         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7845         (strcmp): Add __strcmp_power9 to list of strcmp functions.
7846         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: New file.
7847         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7848         (strcmp): Add __strcmp_power9 to ifunc list.
7849         * sysdeps/powerpc/powerpc64/power9/strcmp.S: New file.
7850
7851 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
7852
7853         * bits/fp-logb.h: New file.
7854         * sysdeps/ia64/bits/fp-logb.h: Likewise.
7855         * sysdeps/m68k/m680x0/bits/fp-logb.h: Likewise.
7856         * sysdeps/x86/bits/fp-logb.h: Likewise.
7857         * math/Makefile (headers): Add bits/fp-logb.h.
7858         * math/math.h: Include <bits/fp-logb.h>.
7859         [__USE_ISOC99] (FP_ILOGB0): Define based on __FP_LOGB0_IS_MIN.
7860         [__USE_ISOC99] (FP_ILOGBNAN): Define based on __FP_LOGBNAN_IS_MIN.
7861         * bits/mathdef.h (FP_ILOGB0): Remove.
7862         (FP_ILOGBNAN): Likewise.
7863         * sysdeps/aarch64/bits/mathdef.h (FP_ILOGB0): Likewise.
7864         (FP_ILOGBNAN): Likewise.
7865         * sysdeps/alpha/bits/mathdef.h (FP_ILOGB0): Likewise.
7866         (FP_ILOGBNAN): Likewise.
7867         * sysdeps/ia64/bits/mathdef.h (FP_ILOGB0): Likewise.
7868         (FP_ILOGBNAN): Likewise.
7869         * sysdeps/m68k/m680x0/bits/mathdef.h (FP_ILOGB0): Likewise.
7870         (FP_ILOGBNAN): Likewise.
7871         * sysdeps/mips/bits/mathdef.h (FP_ILOGB0): Likewise.
7872         (FP_ILOGBNAN): Likewise.
7873         * sysdeps/powerpc/bits/mathdef.h (FP_ILOGB0): Likewise.
7874         (FP_ILOGBNAN): Likewise.
7875         * sysdeps/s390/bits/mathdef.h (FP_ILOGB0): Likewise.
7876         (FP_ILOGBNAN): Likewise.
7877         * sysdeps/sparc/bits/mathdef.h (FP_ILOGB0): Likewise.
7878         (FP_ILOGBNAN): Likewise.
7879         * sysdeps/x86/bits/mathdef.h (FP_ILOGB0): Likewise.
7880         (FP_ILOGBNAN): Likewise.
7881
7882         * scripts/build-many-glibcs.py: Add bot to usage message.  Import
7883         time module.
7884         (Context.__init__): Initialize self.logsdir_old.
7885         (Context.run_builds): Handle bot action.
7886         (Context.bot_cycle): Copy logs directory before running builds.
7887         (Context.bot_run_self): Take argument for whether to check
7888         subprocess result.  Flush stdout before running subprocess.
7889         (Context.bot): New function.
7890         (get_parser): Allow bot action.
7891
7892 2016-11-30  Joseph Myers  <joseph@codesourcery.com>
7893
7894         * scripts/build-many-glibcs.py: Add bot-cycle to usage message.
7895         Import email.mime.text, email.utils and smtplib modules.
7896         (Context.__init__): Initialize self.bot_config_json.
7897         (Context.run_builds): Handle bot-cycle action.
7898         (Context.load_bot_config_json): New function.
7899         (Context.part_build_old): Likewise.
7900         (Context.bot_cycle): Likewise.
7901         (Context.bot_build_mail): Likewise.
7902         (Context.bot_run_self): Likewise.
7903         (get_parser): Allow bot-cycle action.
7904
7905 2016-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7906
7907         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c (weak_alias):
7908         Remove redirection to __stpcpy_ppc.
7909
7910 2016-11-30  Florian Weimer  <fweimer@redhat.com>
7911
7912         Remove __libc_memalign from ld.so because it is unused.
7913         * elf/dl-minimal.c: Update comment on the malloc implementation.
7914         (malloc): Renamed from __libc_memalign, replacing the original
7915         malloc implementation.  Replace the align parameter with
7916         MALLOC_ALIGNMENT.
7917         * elf/Versions (ld): Update comment and remove __libc_memalign.
7918         * sysdeps/nacl/ld.abilist: Likewise.
7919         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
7920         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
7921         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
7922         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
7923         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
7924         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
7925         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
7926         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
7927         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
7928         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
7929         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
7930         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
7931         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
7932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
7933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
7934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
7935         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
7936         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
7937         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
7938         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
7939         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
7940         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: Likewise.
7941         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: Likewise.
7942         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
7943         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
7944         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
7945         * sysdeps/generic/localplt.data (ld.so): Likewise.
7946         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
7947         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
7948         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
7949         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
7950         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
7951         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
7952         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
7953         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so): Likewise.
7954         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
7955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
7956         (ld.so): Likewise.
7957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
7958         (ld.so): Likewise.
7959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
7960         Likewise.
7961         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
7962         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
7963         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so): Likewise.
7964         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so): Likewise.
7965         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
7966
7967 2016-11-30  Florian Weimer  <fweimer@redhat.com>
7968
7969         [BZ #16628]
7970         Implement _dl_catch_error, _dl_signal_error in libc.so.
7971         * elf/dl-error-skeleton.c: Rename from elf/dl-error.c.
7972         (catch_hook): Define as thread-local or regular variable,
7973         depending on DL_ERROR_BOOTSTRAP.
7974         (CATCH_HOOK): Remove.
7975         (dl_signal_error, _dl_catch_error): Use
7976         catch_hook.  Add hidden definition for libc.
7977         (_dl_receive_error, _dl_signal_cerror): Use catch_hook.  Compile
7978         for DL_ERROR_BOOTSTRAP only.
7979         * elf/dl-error.c: New file.
7980         * elf/dl-error-minimal.c: Likewise.
7981         * elf/tst-latepthread.c: Likewise.
7982         * elf/tst-latepthreadmod.c: Likewise.
7983         * elf/Makefile (routines): Add dl-error.
7984         (dl-routines): Remove dl-error.
7985         (rtld-routines): Add dl-error-minimal.
7986         [build-shared] (tests): Add tst-latepthread.
7987         (module-names): Add tst-latepthreadmod.
7988         (LDFLAGS-tst-latepthreadmod.so): Enable lazy binding to undefined
7989         symbol.
7990         (tst-latepthreadmod.so): Link against libpthread.
7991         (tst-latepthread): Link against libdbl.
7992         * elf/Versions [libc] (GLIBC_PRIVATE): Add _dl_signal_error,
7993         _dl_catch_error.
7994         [ld] (GLIBC_PRIVATE): Likewise.
7995         * elf/dl-close.c (_dl_cose): Call _dl_signal_error directly.
7996         * elf/dl-libc.c (dlerror_run): Call _dl_catch_error directly.
7997         * elf/dl-sym.c (do_sym): Call _dl_signal_error, _dl_catch_error
7998         directly.
7999         * elf/dl-tsd.c: Remove file.
8000         * elf/rtld.c (_rtld_global_ro): Remove initializers for
8001         _dl_catch_error, _dl_signal_error.
8002         (_dl_initial_error_catch_tsd): Remove definition.
8003         (do_preload): Remove initialization of dl_error_catch_tsd.
8004         * dlfcn/dlerror.c (_dlerror_run): Call _dl_catch_error directly.
8005         * dlfcn/dlinfo.c (dlinfo_doit): Call _dl_signal_error directly.
8006         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
8007         * dlfcn/dlopen.c (dlopen_doit): Likewise.
8008         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Do not
8009         set dl_error_catch_tsd.
8010         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
8011         _dl_error_catch_tsd member.
8012         (struct rtld_global_ro): Remove _dl_catch_error, _dl_signal_error
8013         members.
8014         (_dl_initial_error_catch_tsd): Remove declaration.
8015         (_dl_dprintf): Provide definition for use outside of ld.so.
8016         [!rtld] (_dl_signal_cerror): Redirect to _dl_signal_error.
8017         (_dl_signal_error, _dl_catch_error): Make public.  Add hidden
8018         prototype for libc.
8019         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_error,
8020         _dl_catch_error.
8021         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
8022         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
8023         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
8024         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
8025         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
8026         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
8027         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
8028         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
8029         Likewise.
8030         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
8031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
8032         (ld.so): Likewise.
8033         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
8034         (ld.so): Likewise.
8035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
8036         Likewise.
8037         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
8038         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
8039         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
8040         Likewise.
8041         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
8042         Likewise.
8043         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
8044
8045 2016-11-30  Florian Weimer  <fweimer@redhat.com>
8046
8047         [BZ #4099]
8048         * libio/filedoalloc.c (_IO_file_doallocate): Limit buffer size to
8049         _IO_BUFSIZ (8192).
8050
8051 2016-11-30  Carlos O'Donell  <carlos@redhat.com>
8052
8053         * PROJECTS: Remove file.
8054
8055 2016-11-29  Florian Weimer  <fweimer@redhat.com>
8056
8057         * iconvdata/gbk.c (BODY): Add Euro sign support (both directions).
8058
8059 2016-11-29  Yury Norov  <ynorov@caviumnetworks.com>
8060             Steve Ellcey  <sellcey@caviumnetworks.com>
8061
8062         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Do not define
8063         fxstat if XSTAT_IS_XSTAT64 is set to non-zero.
8064         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Ditto for
8065         fxstatat.
8066         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Ditto for
8067         lxstat.
8068         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Ditto for xstat.
8069         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat64.c: New file.
8070         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat64.c: New file.
8071         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Make __lxstat
8072         an alias of __lxstat64 if XSTAT_IS_XSTAT64 is set to non-zero.
8073         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Ditto for
8074         __xstat.
8075
8076 2016-11-29  Florian Weimer  <fweimer@redhat.com>
8077
8078         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI___sigsetjmp):
8079         Define.
8080         * sysdeps/powerpc/powerpc32/setjmp.S (__sigsetjmp): Add hidden
8081         definition.
8082
8083 2016-11-29  Florian Weimer  <fweimer@redhat.com>
8084
8085         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S (__longjmp): Remove
8086         version and turn into strong alias.  Remove compat symbol.
8087
8088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
8089         (__longjmp): Remove.
8090
8091 2016-11-29  Joseph Myers  <joseph@codesourcery.com>
8092
8093         * bits/fp-fast.h: New file.
8094         * sysdeps/aarch64/bits/fp-fast.h: Likewise.
8095         * sysdeps/powerpc/bits/fp-fast.h: Likewise.
8096         * math/Makefile (headers): Add bits/fp-fast.h.
8097         * math/math.h: Include <bits/fp-fast.h>.
8098         * bits/mathdef.h (FP_FAST_FMA): Remove.
8099         (FP_FAST_FMAF): Likewise.
8100         (FP_FAST_FMAL): Likewise.
8101         * sysdeps/aarch64/bits/mathdef.h (FP_FAST_FMA): Likewise.
8102         (FP_FAST_FMAF): Likewise.
8103         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Likewise.
8104         (FP_FAST_FMAF): Likewise.
8105         * sysdeps/x86/bits/mathdef.h (FP_FAST_FMA): Likewise.
8106         (FP_FAST_FMAF): Likewise.
8107         (FP_FAST_FMAL): Likewise.
8108         * sysdeps/arm/bits/mathdef.h: Remove file.
8109         * sysdeps/hppa/fpu/bits/mathdef.h: Likewise.
8110         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
8111         * sysdeps/tile/bits/mathdef.h: Likewise.
8112
8113 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
8114
8115         * math/w_ilogb_template.c: New file.  Based on math/w_ilogb.c.
8116         * math/w_ilogb.c: Remove.
8117         * math/w_ilogbf.c: Likewise.
8118         * math/w_ilogbl.c: Likewise.
8119         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: Likewise.
8120         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: Likewise.
8121         * math/Makefile (gen-libm-calls): Add w_ilogbF.
8122         (libm-calls): Remove w_ilogbF.
8123         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
8124         (LDOUBLE_ilogbl_libm_version): New macro.
8125
8126         * sysdeps/unix/sysv/linux/ia64/tst-setcontext2.c: New file.
8127
8128         * sysdeps/ia64/fpu/libm-symbols.h: Make contents conditional on
8129         [!__STRICT_ANSI__ && !__cplusplus].
8130
8131 2016-11-28  H.J. Lu  <hongjiu.lu@intel.com>
8132
8133         [BZ #20750]
8134         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Check SHARED instead
8135         of PIC.
8136
8137 2016-11-28  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
8138             Yury Norov  <ynorov@caviumnetworks.com>
8139             Steve Ellcey  <sellcey@caviumnetworks.com>
8140
8141         * sysdeps/aarch64/crti.S: Add include of sysdep.h.
8142         (call_weak_fn): Use PTR_REG to get correct reg name in ILP32.
8143         * sysdeps/aarch64/dl-irel.h: Add include of sysdep.h.
8144         (elf_irela): Use AARCH64_R macro to get correct relocation in ILP32.
8145         * sysdeps/aarch64/dl-machine.h: Add include of sysdep.h.
8146         (elf_machine_load_address, RTLD_START, RTLD_START_1, RTLD_START,
8147         elf_machine_type_class, ELF_MACHINE_JMP_SLOT, elf_machine_rela,
8148         elf_machine_lazy_rel): Add ifdef's for ILP32 support.
8149         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return,
8150         _dl_tlsdesc_return_lazy, _dl_tlsdesc_dynamic,
8151         _dl_tlsdesc_resolve_hold): Extend pointers in ILP32, use PTR_REG
8152         to get correct reg name for ILP32.
8153         * sysdeps/aarch64/dl-trampoline.S (ip01): New Macro.
8154         (RELA_SIZE): New Macro.
8155         (_dl_runtime_resolve, _dl_runtime_profile): Use new macros and PTR_REG
8156         to support ILP32.
8157         * sysdeps/aarch64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Add
8158         cast for ILP32 mode.
8159         * sysdeps/aarch64/memcmp.S (memcmp): Extend arg pointers for ILP32 mode.
8160         * sysdeps/aarch64/memcpy.S (memmove, memcpy): Ditto.
8161         * sysdeps/aarch64/memset.S (__memset): Ditto.
8162         * sysdeps/aarch64/strchr.S (strchr): Ditto.
8163         * sysdeps/aarch64/strchrnul.S (__strchrnul): Ditto.
8164         * sysdeps/aarch64/strcmp.S (strcmp): Ditto.
8165         * sysdeps/aarch64/strcpy.S (strcpy): Ditto.
8166         * sysdeps/aarch64/strlen.S (__strlen): Ditto.
8167         * sysdeps/aarch64/strncmp.S (strncmp): Ditto.
8168         * sysdeps/aarch64/strnlen.S (strnlen): Ditto.
8169         * sysdeps/aarch64/strrchr.S (strrchr): Ditto.
8170         * sysdeps/unix/sysv/linux/aarch64/clone.S: Ditto.
8171         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Ditto.
8172         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext): Ditto.
8173         * sysdeps/aarch64/__longjmp.S (__longjmp): Extend pointers in ILP32,
8174         change PTR_MANGLE call to use register numbers instead of names.
8175         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Ditto.
8176         * sysdeps/aarch64/setjmp.S (__sigsetjmp): Extend arg pointers for
8177         ILP32 mode, change PTR_MANGLE calls to use register numbers.
8178         * sysdeps/aarch64/start.S (_start): Ditto.
8179         * sysdeps/aarch64/nptl/bits/pthreadtypes.h
8180         (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New define.
8181         (__SIZEOF_PTHREAD_ATTR_T, __SIZEOF_PTHREAD_MUTEX_T,
8182         __SIZEOF_PTHREAD_MUTEXATTR_T, __SIZEOF_PTHREAD_COND_T,
8183         __SIZEOF_PTHREAD_COND_COMPAT_T, __SIZEOF_PTHREAD_CONDATTR_T,
8184         __SIZEOF_PTHREAD_RWLOCK_T, __SIZEOF_PTHREAD_RWLOCKATTR_T,
8185         __SIZEOF_PTHREAD_BARRIER_T, __SIZEOF_PTHREAD_BARRIERATTR_T):
8186         Make defined values dependent on __ILP32__.
8187         * sysdeps/aarch64/nptl/bits/semaphore.h (__SIZEOF_SEM_T): Change define.
8188         (sem_t): Change __align type.
8189         * sysdeps/aarch64/sysdep.h (AARCH64_R, PTR_REG, PTR_LOG_SIZE, DELOUSE,
8190         PTR_SIZE): New Macros.
8191         (LDST_PCREL, LDST_GLOBAL) Update to use PTR_REG.
8192         * sysdeps/unix/sysv/linux/aarch64/bits/fcntl.h (O_LARGEFILE):
8193         Set when in ILP32 mode.
8194         (F_GETLK64, F_SETLK64, F_SETLKW64): Only set in LP64 mode.
8195         * sysdeps/unix/sysv/linux/aarch64/dl-cache.h (DL_CACHE_DEFAULT_ID):
8196         Set elf flags for ILP32.
8197         (add_system_dir): Set ILP32 library directories.
8198         * sysdeps/unix/sysv/linux/aarch64/init-first.c
8199         (_libc_vdso_platform_setup): Set minimum kernel version for ILP32.
8200         * sysdeps/unix/sysv/linux/aarch64/ldconfig.h
8201         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add ILP32 names.
8202         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h (GET_PC, SET_PC):
8203         New Macros.
8204         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Handle ILP32 pointers.
8205
8206 2016-11-28  Steve Ellcey  <sellcey@caviumnetworks.com>
8207
8208         * sysdeps/unix/sysv/linux/fstatfs64.c: Reorder include files,
8209         only alias fstatfs and __fstatfs if STATFS_IS_STATFS64 is non-zero.
8210         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for statfs and __statfs.
8211
8212 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
8213
8214         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: Do not include
8215         <asm/cachectl.h>.
8216
8217 2016-11-27  Zack Weinberg  <zackw@panix.com>
8218
8219         * libio/libio.h: Use __USE_GNU, not _GNU_SOURCE, in a conditional.
8220         * test-skeleton.c: Include stdint.h to ensure uintptr_t is available.
8221
8222 2016-11-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8223
8224         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results to
8225         error_t to fix usage in C++ programs.
8226
8227 2016-11-26  Joseph Myers  <joseph@codesourcery.com>
8228
8229         * scripts/build-many-glibcs.py: Import datetime module.
8230         (Context.__init__): Load JSON build state.  Initialize list of
8231         status logs.
8232         (Context.run_builds): Update saved build state.
8233         (Context.add_makefile_cmdlist): Update list of status logs.
8234         (Context.load_build_state_json): New function.
8235         (Context.store_build_state_json): Likewise.
8236         (Context.clear_last_build_state): Likewise.
8237         (Context.update_build_state): Likewise.
8238         (CommandList.status_logs): Likewise.
8239
8240 2016-11-25  Joseph Myers  <joseph@codesourcery.com>
8241
8242         * scripts/build-many-glibcs.py (Context.__init__): Save text of
8243         script being executed.
8244         (Context.get_script_text): New function.
8245         (Context.exec_self): Likewise.
8246         (Context.checkout): Re-exec script if changed by checkout process.
8247
8248 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
8249
8250         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
8251         (setpayloadsig): New declaration.
8252         * math/Versions (setpayloadsig): New libm symbol at version
8253         GLIBC_2.25.
8254         (setpayloadsigf): Likewise.
8255         (setpayloadsigl): Likewise.
8256         * math/Makefile (libm-calls): Add s_setpayloadsigF.
8257         * math/libm-test.inc (RUN_TEST_Ff_b1): Call feclearexcept
8258         (FE_ALL_EXCEPT) after initializing EXTRA_VAR.
8259         (setpayloadsig_test_data): New array.
8260         (setpayloadsig_test): New function.
8261         (main): Call setpayloadsig_test.
8262         * manual/arith.texi (FP Bit Twiddling): Document setpayloadsig,
8263         setpayloadsigf and setpayloadsigl.
8264         * manual/libm-err-tab.pl: Update comment on interfaces without
8265         ulps tabulated.
8266         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c: New file.
8267         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c: Likewise.
8268         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c: Likewise.
8269         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c: Likewise.
8270         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Likewise.
8271         * sysdeps/ieee754/ldbl-opt/nldbl-setpayloadsig.c: Likewise.
8272         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8273         setpayloadsig.
8274         (CFLAGS-nldbl-setpayloadsig.c): New variable.
8275         * sysdeps/nacl/libm.abilist: Update.
8276         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8277         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8278         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8279         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8280         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8281         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8282         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8283         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8284         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8285         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8286         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8287         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8288         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
8289         Likewise.
8290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8291         Likewise.
8292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8293         Likewise.
8294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
8295         Likewise.
8296         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8297         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8298         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8299         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8300         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8301         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
8302         Likewise.
8303         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
8304         Likewise.
8305         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
8306         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8307         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8308
8309         * scripts/build-many-glibcs.py: Import json module.
8310         (Context.__init__): Take replace_sources argument.  Load
8311         versions.json.
8312         (Context.load_versions_json): New function.
8313         (Context.store_json): Likewise.
8314         (Context.store_versions_json): Likewise.
8315         (Context.set_component_version): Likewise.
8316         (Context.checkout): Update versions.json.  Check for and handle
8317         changes of version.  Prefer previously explicitly specified
8318         version to default version.
8319         (Context.checkout_vcs): Return a revision identifier.
8320         (Context.git_checkout): Likewise.
8321         (Context.gcc_checkout): Likewise.
8322         (get_parser): Add --replace-sources option.
8323         (main): Pass replace_sources argument to Context call.
8324
8325 2016-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8326
8327         * sysdeps/nptl/fork.c (__libc_fork): Remove pid cache setting.
8328         * nptl/allocatestack.c (allocate_stack): Likewise.
8329         (__reclaim_stacks): Likewise.
8330         (setxid_signal_thread): Obtain pid through syscall.
8331         * nptl/nptl-init.c (sigcancel_handler): Likewise.
8332         (sighandle_setxid): Likewise.
8333         * nptl/pthread_cancel.c (pthread_cancel): Likewise.
8334         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
8335         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
8336         Likewise.
8337         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
8338         * sysdeps/unix/sysv/linux/raise.c (raise): Remove old behaviour
8339         comment.
8340         * sysdeps/unix/sysv/linux/getpid.c: Remove file.
8341         * nptl/descr.h (struct pthread): Change comment about pid value.
8342         * nptl/pthread_getattr_np.c (pthread_getattr_np): Remove thread
8343         pid assert.
8344         * sysdeps/unix/sysv/linux/pthread-pids.h (__pthread_initialize_pids):
8345         Do not set pid value.
8346         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove thread
8347         pid cache check.
8348         * nptl_db/td_thr_validate.c (td_thr_validate): Likewise.
8349         * sysdeps/aarch64/nptl/tcb-offsets.sym: Remove pid offset.
8350         * sysdeps/alpha/nptl/tcb-offsets.sym: Likewise.
8351         * sysdeps/arm/nptl/tcb-offsets.sym: Likewise.
8352         * sysdeps/hppa/nptl/tcb-offsets.sym: Likewise.
8353         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
8354         * sysdeps/ia64/nptl/tcb-offsets.sym: Likewise.
8355         * sysdeps/m68k/nptl/tcb-offsets.sym: Likewise.
8356         * sysdeps/microblaze/nptl/tcb-offsets.sym: Likewise.
8357         * sysdeps/mips/nptl/tcb-offsets.sym: Likewise.
8358         * sysdeps/nios2/nptl/tcb-offsets.sym: Likewise.
8359         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
8360         * sysdeps/s390/nptl/tcb-offsets.sym: Likewise.
8361         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
8362         * sysdeps/sparc/nptl/tcb-offsets.sym: Likewise.
8363         * sysdeps/tile/nptl/tcb-offsets.sym: Likewise.
8364         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
8365         * sysdeps/unix/sysv/linux/aarch64/clone.S: Remove pid and tid caching.
8366         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
8367         * sysdeps/unix/sysv/linux/arm/clone.S: Likewise.
8368         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
8369         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
8370         * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
8371         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
8372         * sysdeps/unix/sysv/linux/nios2/clone.S: Likewise.
8373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
8374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
8375         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
8376         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
8377         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
8378         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
8379         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
8380         * sysdeps/unix/sysv/linux/tile/clone.S: Likewise.
8381         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8382         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Remove pid set and reset.
8383         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
8384         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
8385         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
8386         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
8387         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
8388         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
8389         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
8390         * sysdeps/unix/sysv/linux/nios2/vfork.S: Likewise.
8391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
8392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
8393         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
8394         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
8395         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
8396         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
8397         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
8398         * sysdeps/unix/sysv/linux/tile/vfork.S: Likewise.
8399         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
8400         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
8401         * sysdeps/unix/sysv/linux/tst-clone2.c (f): Remove direct pthread
8402         struct access.
8403         (clone_test): Remove function.
8404         (do_test): Rewrite to take in consideration pid is not cached anymore.
8405
8406 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
8407
8408         * bits/flt-eval-method.h: New file.
8409         * sysdeps/m68k/m680x0/bits/flt-eval-method.h: Likewise.
8410         * sysdeps/s390/bits/flt-eval-method.h: Likewise.
8411         * sysdeps/x86/bits/flt-eval-method.h: Likewise.
8412         * math/Makefile (headers): Add bits/flt-eval-method.h.
8413         * math/math.h: Include <bits/flt-eval-method.h>.
8414         [__USE_ISOC99] (float_t): Define based on __GLIBC_FLT_EVAL_METHOD.
8415         [__USE_ISOC99] (double_t): Likewise.
8416         * bits/mathdef.h (float_t): Remove.
8417         (double_t): Likewise.
8418         * sysdeps/aarch64/bits/mathdef.h (float_t): Likewise.
8419         (double_t): Likewise.
8420         * sysdeps/alpha/bits/mathdef.h (float_t): Likewise.
8421         (double_t): Likewise.
8422         * sysdeps/arm/bits/mathdef.h (float_t): Likewise.
8423         (double_t): Likewise.
8424         * sysdeps/hppa/fpu/bits/mathdef.h (float_t): Likewise.
8425         (double_t): Likewise.
8426         * sysdeps/ia64/bits/mathdef.h (float_t): Likewise.
8427         (double_t): Likewise.
8428         * sysdeps/m68k/m680x0/bits/mathdef.h (float_t): Likewise.
8429         (double_t): Likewise.
8430         * sysdeps/mips/bits/mathdef.h (float_t): Likewise.
8431         (double_t): Likewise.
8432         * sysdeps/powerpc/bits/mathdef.h (float_t): Likewise.
8433         (double_t): Likewise.
8434         * sysdeps/s390/bits/mathdef.h (float_t): Likewise.
8435         (double_t): Likewise.
8436         * sysdeps/sh/sh4/bits/mathdef.h (float_t): Likewise.
8437         (double_t): Likewise.
8438         * sysdeps/sparc/bits/mathdef.h (float_t): Likewise.
8439         (double_t): Likewise.
8440         * sysdeps/tile/bits/mathdef.h (float_t): Likewise.
8441         (double_t): Likewise.
8442         * sysdeps/x86/bits/mathdef.h (float_t): Likewise.
8443         (double_t): Likewise.
8444
8445 2016-11-24  Aurelien Jarno  <aurelien@aurel32.net>
8446
8447         * sysdeps/x86_64/memcpy_chk.S (__memcpy_chk): Check for SHARED
8448         instead of PIC.
8449
8450 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
8451
8452         [BZ #20859]
8453         * sysdeps/sh/sh4/bits/mathdef.h (FP_ILOGB0): Define to
8454         (-0x7fffffff) instead of 0x80000001.
8455         * math/test-fp-ilogb-constants.c: New file.
8456         * math/Makefile (tests): Add test-fp-ilogb-constants.
8457
8458 2016-11-23  Maciej W. Rozycki  <macro@imgtec.com>
8459
8460         * sysdeps/mips/mips32/crti.S (JALR_RELOC): New macro.
8461         (_init): Use it in place of hardcoded R_MIPS_JALR.
8462         * sysdeps/mips/mips64/n32/crti.S (JALR_RELOC): New macro.
8463         (_init): Use it in place of hardcoded R_MIPS_JALR.
8464         * sysdeps/mips/mips64/n64/crti.S (JALR_RELOC): New macro.
8465         (_init): Use it in place of hardcoded R_MIPS_JALR.
8466
8467 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
8468
8469         [BZ #20787]
8470         * sysdeps/x86/bits/mathdef.h (float_t): Do not define to float if
8471         [__x86_64__] when __FLT_EVAL_METHOD__ is nonzero.
8472         (double_t): Do not define to double if [__x86_64__] when
8473         __FLT_EVAL_METHOD__ is nonzero.
8474         * sysdeps/x86/fpu/test-flt-eval-method-387.c: New file.
8475         * sysdeps/x86/fpu/test-flt-eval-method-sse.c: Likewise.
8476         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
8477         test-flt-eval-method-387 and test-flt-eval-method-sse.
8478         [$(subdir) = math] (CFLAGS-test-flt-eval-method-387.c): New
8479         variable.
8480         [$(subdir) = math] (CFLAGS-test-flt-eval-method-sse.c): Likewise.
8481
8482 2016-11-23  Chris Metcalf  <cmetcalf@mellanox.com>
8483
8484         * scripts/build-many-glibcs.py (Context.add_all_configs): Revert
8485         use of -fno-isolate-erroneous-paths options for tilepro.
8486
8487 2016-11-23  Florian Weimer  <fweimer@redhat.com>
8488
8489         * elf/dl-load.c (_dl_map_object_from_fd): Delayed TLS data
8490         structure initialization is no longer needed.
8491
8492 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
8493
8494         [BZ #20855]
8495         * bits/mathdef.h (float_t): Define to float.
8496         * math/test-flt-eval-method.c: New file.
8497         * math/Makefile (tests): Add test-flt-eval-method.
8498         (CFLAGS-test-flt-eval-method.c): New variable.
8499
8500 2016-11-22  Steve Ellcey  <sellcey@caviumnetworks.com>
8501
8502         * sysdeps/unix/sysv/linux/fstatfs64.c: Hide prototypes for fstatfs
8503         and __fstatfs.  Make them aliases of __fstatfs64 if
8504         STATFS_IS_STATFS64 is set to non-zero.
8505         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for __statfs, statfs,
8506         and __statfs64.
8507         * sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c: Do not
8508         define __fstatfs and fstatfs if STATFS_IS_STATFS64 is non-zero.
8509         * sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c: Ditto
8510         for __statfs and statfs.
8511         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h: Set STATFS_IS_STATFS64
8512         to 0.
8513         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Ditto.
8514         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Ditto.
8515         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Ditto.
8516         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
8517         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
8518         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
8519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
8520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: Ditto.
8521         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Ditto.
8522         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
8523         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Ditto.
8524         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: Ditto.
8525
8526 2016-11-22  Andreas Schwab  <schwab@suse.de>
8527
8528         * misc/mkstemp.c: Include <fcntl.h>.
8529         * misc/mkstemps.c: Likewise.
8530         * misc/mkostemp.c: Likewise.
8531         * misc/mkostemps.c: Likewise.
8532
8533 2016-11-22  Adhemerval Zanella  <adhemerva.zanella@linaro.org>
8534
8535         [BZ #20847]
8536         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
8537         array bounds.
8538         (__execvpe): Likewise.
8539
8540 2016-11-22  Joseph Myers  <joseph@codesourcery.com>
8541
8542         * scripts/build-many-glibcs.py (Context.add_all_configs): Also use
8543         -fno-isolate-erroneous-paths options for tilepro.
8544
8545 2016-11-21  Steve Ellcey  <sellcey@caviumnetworks.com>
8546
8547         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Set XSTAT_IS_XSTAT64
8548         to 0 when in 32 bit mode.
8549         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Set XSTAT_IS_XSTAT64 to 0.
8550         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
8551         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
8552         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
8553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
8554         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
8555         * sysdeps/unix/sysv/linux/fxstat.c: Replace #ifdef with #if on
8556         XSTAT_IS_XSTAT64 test.
8557         * sysdeps/unix/sysv/linux/fxstatat.c: Ditto.
8558         * sysdeps/unix/sysv/linux/generic/lxstat.c: Ditto.
8559         * sysdeps/unix/sysv/linux/generic/xstat.c: Ditto.
8560         * sysdeps/unix/sysv/linux/i386/fxstat.c: Ditto.
8561         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Ditto.
8562         * sysdeps/unix/sysv/linux/i386/lxstat.c: Ditto.
8563         * sysdeps/unix/sysv/linux/i386/xstat.c: Ditto.
8564         * sysdeps/unix/sysv/linux/lxstat.c: Ditto.
8565         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Ditto.
8566         * sysdeps/unix/sysv/linux/xstat.c: Ditto.
8567         * sysdeps/unix/sysv/linux/xstatconv.c: Ditto.
8568
8569 2016-11-19  Joseph Myers  <joseph@codesourcery.com>
8570
8571         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
8572         (setpayload): New declaration.
8573         * math/Versions (setpayload): New libm symbol at version
8574         GLIBC_2.25.
8575         (setpayloadf): Likewise.
8576         (setpayloadl): Likewise.
8577         * math/Makefile (libm-calls): Add s_setpayloadF.
8578         * math/libm-test.inc (struct test_Ffp_b1_data): Rename to struct
8579         test_Ff_b1_data.
8580         (RUN_TEST_Ff_b1): New macro.
8581         (RUN_TEST_LOOP_Ff_b1): Likewise.
8582         (canonicalize_test_data): Update type.
8583         (setpayload_test_data): New array.
8584         (setpayload_test): New function.
8585         (main): Call setpayload_test.
8586         * manual/arith.texi (FP Bit Twiddling): Document setpayload,
8587         setpayloadf and setpayloadl.
8588         * manual/libm-err-tab.pl: Update comment on interfaces without
8589         ulps tabulated.
8590         * sysdeps/ieee754/dbl-64/s_setpayload.c: New file.
8591         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Likewise.
8592         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c:
8593         Likewise.
8594         * sysdeps/ieee754/flt-32/s_setpayloadf.c: Likewise.
8595         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Likewise.
8596         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c: Likewise.
8597         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Likewise.
8598         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c: Likewise.
8599         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl_main.c: Likewise.
8600         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c: Likewise.
8601         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Likewise.
8602         * sysdeps/ieee754/ldbl-opt/nldbl-setpayload.c: Likewise.
8603         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8604         setpayload.
8605         (CFLAGS-nldbl-setpayload.c): New variable.
8606         * sysdeps/nacl/libm.abilist: Update.
8607         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8608         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8609         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8610         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8611         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8612         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8613         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8614         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8615         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8616         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8617         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8618         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
8620         Likewise.
8621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8622         Likewise.
8623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8624         Likewise.
8625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
8626         Likewise.
8627         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8628         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8629         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8630         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8631         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8632         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
8633         Likewise.
8634         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
8635         Likewise.
8636         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
8637         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8638         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8639
8640 2016-11-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8641
8642         * hurd/hurd.h (__hurd_fail_noerrno): Remove function.
8643         * include/unistd.h: Extend comment about __access_noerrno return
8644         semantics.
8645         * sysdeps/match/hurd/access.c (__hurd_fail_noerrno): Return -1.
8646         (access_common): Correct typo for EACCES.
8647
8648 2016-11-18  Chris Metcalf  <cmetcalf@mellanox.com>
8649
8650         * sysdeps/tile/math-tests.h: New file.
8651
8652         * sysdeps/unix/sysv/linux/tile/set_dataplane.c
8653         (__old_set_dataplane): Rename from set_dataplane and make a
8654         compatibility symbol.
8655         * sysdeps/unix/sysv/linux/tile/sys/dataplane.h: Remove file.
8656         * sysdeps/unix/sysv/linux/tile/Makefile (sysdep_headers): Remove
8657         sys/dataplane.h.
8658
8659 2016-11-18  Joseph Myers  <joseph@codesourcery.com>
8660
8661         * scripts/build-many-glibcs.py (Context.write_files): Make wrapper
8662         script quote words in command output to log suitably for input to
8663         the shell.
8664
8665 2016-11-18  Matthew Fortune  <Matthew.Fortune@imgtec.com>
8666             Maciej W. Rozycki  <macro@imgtec.com>
8667
8668         * sysdeps/mips/mips32/crti.S (_init): Add `.insn' pseudo-op at
8669         `.Lno_weak_fn' label.
8670         * sysdeps/mips/mips64/n32/crti.S (_init): Likewise.
8671         * sysdeps/mips/mips64/n64/crti.S (_init): Likewise.
8672
8673 2016-11-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8674             Yury Norov  <ynorov@caviumnetworks.com>
8675
8676         * bits/typesizes.h (__RLIM_T_MATCHES_RLIM64_T): define.
8677         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h
8678         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8679         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h
8680         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8681         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h [__s390x__]
8682         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8683         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8684         [__arch64__ || __sparcv9] (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8685         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h [__86_64__]
8686         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8687         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = resource]
8688         (sysdep_routines): Remove oldgetrlimit64.
8689         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = resource]
8690         (sysdep_routines): Likewise.
8691         * sysdeps/unix/sysv/linux/m68k/Makefile [$(subdir) = resource]
8692         (sysdep_routines): Likewise.
8693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
8694         [$(subdir) = resource] (sysdep_routines): Likewise.
8695         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
8696         [$(subdir) = resource] (sysdep_routines): Likewise.
8697         * sysdeps/unix/sysv/linux/arm/getrlimit64.c: Remove file.
8698         * sysdeps/unix/sysv/linux/arm/oldgetrlimit64.c: Likewise.
8699         * sysdeps/unix/sysv/linux/arm/oldgetrlimit.c: Likewise.
8700         * sysdeps/unix/sysv/linux/arm/oldsetrlimit.c: Likewise.
8701         * sysdeps/unix/sysv/linux/hppa/getrlimit64.c: Likewise.
8702         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
8703         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
8704         * sysdeps/unix/sysv/linux/m68k/getrlimit64.c: Likewise.
8705         * sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c: Likewise.
8706         * sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: Likewise.
8707         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: Likewise.
8708         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit64.c: Likewise.
8709         * sysdeps/unix/sysv/linux/s390/s390-32/oldgetrlimit64.c: Likewise.
8710         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: Likewise.
8711         * sysdeps/unix/sysv/linux/wordsize-64/getrlimit64.c: Likewise.
8712         * sysdeps/unix/sysv/linux/wordsize-64/setrlimit64.c: Likewise.
8713         * sysdeps/sysv/linux/generic/wordsize-32/syscalls.list: Remove
8714         setrlimit and getrlimit.
8715         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
8716         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
8717         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list: Likewise.
8718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
8719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
8720         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
8721         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
8722         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8723         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
8724         * sysdeps/unix/sysv/linux/getrlimit.c: New file.
8725         * sysdeps/unix/sysv/linux/sparc/getrlimit64.c: Likewise.
8726         * sysdeps/unix/sysv/linux/setrlimit.c: Likewise.
8727         * sysdeps/unix/sysv/linux/getrlimit64.c (__getrlimit64): Handle
8728         __RLIM_T_MATCHES_RLIM64_T and add alias if defined.
8729         (__old_getrlimit64): Add compatibility symbol.
8730         * sysdeps/unix/sysv/linux/setrlimit64.c (__setrlimit): Likewise.
8731
8732 2016-11-17  Joseph Myers  <joseph@codesourcery.com>
8733
8734         * scripts/build-many-glibcs.py (Config.build_gcc): Configure with
8735         newly built gmp, mpfr and mpc.
8736
8737         * sysdeps/unix/sysv/linux/alpha/sys/user.h: Include <stddef.h>.
8738
8739 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
8740
8741         * conform/Makefile (linknamespace-libs): Rename to
8742         linknamespace-libs-thr.
8743         (linknamespace-libs-posix): New variable.
8744         (linknamespace-libs-xsi): Likewise.
8745         (linknamespace-libs-XPG3): Include libcrypt.a.
8746         (linknamespace-libs-XPG4): Use $(linknamespace-libs-XPG3).
8747         (linknamespace-libs-POSIX): Use $(linknamespace-libs-thr).
8748         (linknamespace-libs-UNIX98): Use $(linknamespace-libs-xsi).
8749         (linknamespace-libs-XOPEN2K): Likewise.
8750         (linknamespace-libs-XOPEN2K8): Likewise.
8751         (linknamespace-libs-POSIX2008): Use $(linknamespace-libs-posix).
8752
8753         [BZ #20829]
8754         * stdio-common/Versions (__snprintf): Add to version
8755         GLIBC_PRIVATE.
8756         * include/stdio.h (__snprintf): Use libc_hidden_proto.
8757         * stdio-common/snprintf.c (__snprintf): Use libc_hidden_def.
8758         * crypt/sha256-crypt.c (__sha256_crypt_r): Use __snprintf instead
8759         of snprintf.
8760         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8761
8762 2016-11-16  Zack Weinberg  <zackw@panix.com>
8763
8764         * string/string.h: Remove obsolete comment stating that
8765         strcoll_l and strxfrm_l have not yet been standardized.
8766
8767 2016-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8768
8769         * hurd/hurd.h (__hurd_fail_noerrno): New function.
8770         * include/unistd.h [IS_IN (rtld) || !defined SHARED]: Declare
8771         __access_noerrno.
8772         * io/access.c (__access_noerrno): New function.
8773         * sysdeps/mach/hurd/access.c (hurd_fail_seterrno): New function.
8774         (hurd_fail_seterrno): Likewise.
8775         (access_common): Likewise.
8776         (__access_noerrno): Likewise.
8777         * sysdeps/nacl/access.c (__access_noerrno): Likewise.
8778         * sysdeps/unix/sysv/linux/access.c (__access_noerrno): Likewise.
8779         * sysdeps/nacl/nacl-interfaces.h (NACL_CALL_NOERRNO): New
8780         macro.
8781
8782 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
8783
8784         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h (register_dump):
8785         Only declare fpregs if [__SH_FPU_ANY__].
8786
8787 2016-11-15  Joseph Myers  <joseph@codesourcery.com>
8788
8789         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h [__SH4__ || __SH4A__]:
8790         Make code unconditional.
8791         [!(__SH4__ || __SH4A__)]: Remove conditional code.
8792
8793 2016-11-15  Rical Jasan  <ricaljasan@pacific.net>
8794
8795         * manual/sysinfo.texi (S_APPEND): Delete.
8796         (S_IMMUTABLE): Likewise.
8797
8798 2016-11-15  Denis Kaganovich  <mahatma@eu.by>
8799             Magnus Granberg  <zorry@gentoo.org>
8800             Mike Frysinger  <vapier@gentoo.org>
8801
8802         [BZ #20662]
8803         * configure.ac (libc_cv_predef_stack_protector): Also check for
8804         __stack_chk_fail_local symbols.
8805         * configure: Regenerated.
8806
8807 2016-11-15  Florian Weimer  <fweimer@redhat.com>
8808
8809         * sysdeps/s390/s390-64/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
8810         (libc_hidden_def): Remove redefinition.
8811         (__sigsetjmp): Add hidden definition.
8812         * sysdeps/s390/s390-32/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
8813         (libc_hidden_def): Remove redefinition.
8814         (__sigsetjmp): Add hidden definition.
8815
8816 2016-11-14  Joseph Myers  <joseph@codesourcery.com>
8817
8818         * scripts/build-many-glibcs.py (os.path): Do not import.
8819         (Context): Inherit explicitly from object.  Remove blank line
8820         between class and docstring.
8821         (Config): Likewise.
8822         (Glibc): Likewise.
8823         (Command): Likewise.
8824         (CommandList): Likewise.
8825         (Context.write_files): Store chmod mode in a variable.
8826
8827         * sysdeps/unix/sysv/linux/tile/tilegx/configure.ac: Use
8828         LIBC_SLIBDIR_RTLDDIR for tilegx32.
8829         * sysdeps/unix/sysv/linux/tile/tilegx/configure: Regenerated.
8830
8831 2016-11-14  Zack Weinberg  <zackw@panix.com>
8832
8833         * sunrpc/Makefile (rpcgen-tests): Delete the .out file before
8834         creating or re-creating it.
8835
8836         * string/bits/string2.h: Fix typo in comment.
8837
8838 2016-11-14  Zack Weinberg  <zackw@panix.com>
8839
8840         * misc/sys/sysmacros.h (__SYSMACROS_DM, __SYSMACROS_DM1): New macros.
8841         (__SYSMACROS_DEPRECATION_MSG, __SYSMACROS_FST_DECL_TEMPL)
8842         (__SYSMACROS_FST_IMPL_TEMPL): Delete.
8843         (major, minor, makedev): Use __SYSMACROS_DM in definition, instead
8844         of redirected function names.
8845
8846         * misc/sys/cdefs.h (__glibc_macro_warning): Activate for clang >= 3.5
8847         as well.  Document that MESSAGE must be a single string literal.
8848
8849 2016-11-11  Joseph Myers  <joseph@codesourcery.com>
8850
8851         * scripts/build-many-glibcs.py: New file.
8852
8853         * stdlib/bug-getcontext.c: Include <libc-internal.h>.
8854         (do_test): Disable -Wmaybe-uninitialized around uses of
8855         except_mask.
8856
8857         * sysdeps/unix/sysv/linux/sh/sys/user.h: Include <stddef.h>.
8858
8859 2016-11-10  Chris Metcalf  <cmetcalf@mellanox.com>
8860
8861         * sysdeps/tile/tilepro/atomic-machine.h (atomic_store_relaxed)
8862         (atomic_store_release): Provide tilepro-specific implementations.
8863
8864 2016-11-10  Joseph Myers  <joseph@codesourcery.com>
8865
8866         * math/math.h (__MATH_TG): New macro.
8867         [__USE_ISOC99] (fpclassify): Define using __MATH_TG.
8868         [__USE_ISOC99] (signbit): Likewise.
8869         [__USE_ISOC99] (isfinite): Likewise.
8870         [__USE_ISOC99] (isnan): Likewise.
8871         [__USE_ISOC99] (isinf): Likewise.
8872         [__GLIBC_USE (IEC_60559_BFP_EXT)] (issignaling): Likewise.
8873         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__MATH_EVAL_FMT2): New macro.
8874         [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define using
8875         __MATH_TG and __MATH_EVAL_FMT2.
8876         * sysdeps/generic/math_private.h (fabs_tg): Define using
8877         __MATH_TG.
8878         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
8879         [!__NO_LONG_DOUBLE_MATH] (__iscanonicalf): New macro.
8880         [!__NO_LONG_DOUBLE_MATH] (__iscanonical): Likewise.
8881         [!__NO_LONG_DOUBLE_MATH] (iscanonical): Define using __MATH_TG.
8882         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (__iscanonicalf): New
8883         macro.
8884         (__iscanonical): Likewise.
8885         (iscanonical): Define using __MATH_TG.
8886
8887 2016-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8888
8889         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Add include
8890         guards.
8891
8892         * sysdeps/unix/sysv/linux/access.c: New file.
8893         * sysdeps/unix/sysv/linux/generic/access.c: Remove file.
8894
8895 2016-11-10  Steve Ellcey  <sellcey@caviumnetworks.com>
8896
8897         * sysdeps/tile/tilepro/bits/wordsize.h: Define __WORDSIZE32_SIZE_ULONG
8898         and __WORDSIZE32_PTRDIFF_LONG.
8899
8900 2016-11-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8901
8902         * sysdeps/aarch64/libm-test-ulps: Regenerated.
8903
8904 2016-11-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8905
8906         * sysdeps/unix/sysv/linux/arm/truncate64.c: Remove file.
8907         * sysdeps/unix/sysv/linux/generic/wordsize-32/truncate.c: Likewise.
8908         * sysdeps/sysv/linux/generic/wordsize-32/truncate64.c: Likewise.
8909         * sysdeps/unix/sysv/linux/mips/mips32/truncate64.c: Likewise.
8910         * sysdeps/unix/sysv/linux/mips/mips64/truncate64.c: Likewise.
8911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
8912         * sysdeps/unix/sysv/linux/wordsize-64/truncate64.c: Likewise.
8913         * sysdeps/unix/sysv/linux/truncate.c: New file.
8914         * sysdeps/unix/sysv/linux/truncate64.c (truncate64): Use
8915         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
8916         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (truncate):
8917         Remove.
8918         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (truncate):
8919         Likewise.
8920
8921         * posix/tst-truncate-common.c: New file.
8922         * posix/tst-truncate.c: Use tst-truncate-common.c.
8923         * posix/tst-truncate64.c: Likewise and add LFS tests.
8924         * sysdeps/unix/sysv/linux/arm/ftruncate64.c: Remove file.
8925         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate.c: Likewise.
8926         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate64.c: Likewise.
8927         * sysdeps/unix/sysv/linux/mips/mips32/ftruncate64.c: Likewise.
8928         * sysdeps/unix/sysv/linux/mips/mips64/ftruncate64.c: Likewise.
8929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
8930         * sysdeps/unix/sysv/linux/wordsize-64/ftruncate64.c: Likewise.
8931         * sysdeps/unix/sysv/linux/ftruncate.c: New file.
8932         * sysdeps/unix/sysv/linux/ftruncate64.c (__ftruncate64): Use
8933         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
8934         [__OFF_T_MATCHES_OFF64_T] (ftruncate): Add alias.
8935         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (ftruncate):
8936         Remove.
8937         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (ftruncate):
8938         Likewise.
8939
8940 2016-11-08  Joseph Myers  <joseph@codesourcery.com>
8941
8942         [BZ #20790]
8943         * sunrpc/rpc_parse.c (get_prog_declaration): Increase buffer size
8944         to MAXLINESIZE.
8945         * sunrpc/bug20790.x: New file.
8946         * sunrpc/Makefile [$(run-built-tests) = yes] (rpcgen-tests): New
8947         variable.
8948         [$(run-built-tests) = yes] (tests-special): Add $(rpcgen-tests).
8949         [$(run-built-tests) = yes] ($(rpcgen-tests)): New rule.
8950
8951         * sysdeps/unix/sysv/linux/sh/localplt.data: New file.
8952
8953         * sysdeps/unix/sysv/linux/hppa/localplt.data: New file.
8954
8955         * sysdeps/unix/sysv/linux/alpha/localplt.data: Make __tls_get_addr
8956         optional in ld.so.  Allow R_ALPHA_GLOB_DAT relocation for malloc,
8957         calloc, realloc, free, memalign and __libc_memalign rather than
8958         making them optional.
8959
8960         * sysdeps/unix/sysv/linux/nios2/localplt.data: Add __extendsfdf2
8961         for libc.so.
8962
8963 2016-11-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8964
8965         * nptl/Makefile (libpthread-routines): Remove ptw-llseek and add
8966         ptw-lseek64.
8967         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Remove llseek.
8968         * sysdeps/unix/sysv/linux/alpha/Makefile  (sysdeps_routines):
8969         Likewise.
8970         * sysdeps/unix/sysv/linux/generic/wordsize-32/llseek.c: Remove file.
8971         * sysdeps/unix/sysv/linux/generic/wordsize-32/lseek.c: Remove file.
8972         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: Likewise.
8973         * sysdeps/unix/sysv/linux/llseek.c: Remove file.
8974         * sysdeps/unix/sysv/linux/lseek.c: New file.
8975         * sysdeps/unix/sysv/linux/lseek64.c: Add default Linux implementation.
8976         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Remove lseek and
8977         __libc_lseek64 from auto-generation.
8978         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
8979         * sysdeps/unix/sysv/linux/x86_64/x32/lseek64.S: New file.
8980
8981 2016-11-07  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8982
8983         * nptl/tst-basic1.c (tf, do_test): Use write_message.
8984         * nptl/tst-cleanup1.c (do_test): Likewise.
8985         * nptl/tst-cleanup3.c (do_test): Likewise.
8986         * nptl/tst-key1.c (do_test): Likewise.
8987         * nptl/tst-key2.c (tf, do_test): Likewise.
8988         * nptl/tst-key3.c (tf, do_test): Likewise.
8989         * nptl/tst-stdio1.c (do_test): Likewise.
8990         * nptl/tst-stdio2.c (do_test): Likewise.
8991
8992         * nptl/tst-kill3.c (handler): Use write_message in place of write.
8993         * nptl/tst-kill6.c (handler): Likewise.
8994         * nptl/tst-tls2.c (CB): Likewise.
8995         * nptl/tst-tls3.c (CB): Likewise.
8996
8997 2016-11-07  Joseph Myers  <joseph@codesourcery.com>
8998
8999         * scripts/check-installed-headers.sh: Ignore sys/sysctl.h for x32.
9000
9001 2016-11-07  Yury Norov  <ynorov@caviumnetworks.com>
9002             Steve Ellcey  <sellcey@caviumnetworks.com>
9003
9004         * sysdeps/unix/sysv/linux/alpha/kernel-features.h: #define
9005           __ASSUME_ST_INO_64_BIT as 0
9006         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Likewise.
9007         * sysdeps/unix/sysv/linux/fxstat64.c: Replace #ifdef with #if
9008           over the code where __ASSUME_ST_INO_64_BIT is used.
9009         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
9010         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
9011         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9012
9013 2016-11-07  Florian Weimer  <fweimer@redhat.com>
9014
9015         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9016         Document ABI exposure of the __kind offset.
9017         * sysdeps/arm/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9018         Mention reason for the __kind offset exposure in the ABI.
9019         * sysdeps/hppa/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9020         Likewise.
9021         * sysdeps/ia64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9022         Likewise.
9023         * sysdeps/m68k/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9024         Likewise.
9025         * sysdeps/microblaze/nptl/bits/pthreadtypes.h
9026         (struct __pthread_mutex_s): Likewise.
9027         * sysdeps/mips/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9028         Likewise.
9029         * sysdeps/nios2/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9030         Likewise.
9031         * sysdeps/s390/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9032         Likewise.
9033         * sysdeps/sh/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9034         Likewise.
9035         * sysdeps/sparc/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9036         Likewise.
9037         * sysdeps/tile/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9038         Likewise.
9039         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
9040         (struct __pthread_mutex_s): Likewise.
9041         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
9042         (struct __pthread_mutex_s): Likewise.
9043         * sysdeps/x86/bits/pthreadtypes.h (struct __pthread_mutex_s):
9044         Likewise.
9045
9046 2016-11-07  Steve Ellcey  <sellcey@caviumnetworks.com>
9047
9048         * test-skeleton.c: Document do_test usage.
9049
9050 2016-11-06  Aurelien Jarno  <aurelien@aurel32.net>
9051
9052         * iconv/gconv.h (__gconv_info): Define __data element using a
9053         zero-length array.
9054
9055 2016-11-04  Steve Ellcey  <sellcey@caviumnetworks.com>
9056
9057         * math/test-tgmath2.c: Split up test function.
9058
9059 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
9060
9061         * Rules (tests-expected): New variable, depending on
9062         $(run-built-tests).
9063         (tests): Pass $(tests-expected) to merge-test-results.sh, not
9064         $(tests).
9065
9066         * Rules [$(run-built-tests) = no] (tests): Do not depend on
9067         $(tests-unsupported).
9068
9069 2016-11-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9070
9071         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
9072         (__WORDSIZE_TIME64_COMPAT32): Define for both 32 and  64 bits.
9073
9074 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
9075
9076         [BZ #20768]
9077         * sysdeps/alpha/fpu/feholdexcpt.c (__feholdexcept): Call
9078         __fegetenv instead of fegetenv.
9079
9080         [BZ #14139]
9081         * manual/libm-err-tab.pl (%pplatforms): Initialize to empty.
9082         (find_files): Obtain platform name from libm-test-ulps-name and
9083         store in %pplatforms.
9084         (canonicalize_platform): Remove.
9085         (print_platforms): Use $pplatforms directly.
9086         (by_platforms): Do not allow for platforms missing from
9087         %pplatforms.
9088         * sysdeps/aarch64/libm-test-ulps-name: New file.
9089         * sysdeps/alpha/fpu/libm-test-ulps-name: Likewise.
9090         * sysdeps/arm/libm-test-ulps-name: Likewise.
9091         * sysdeps/generic/libm-test-ulps-name: Likewise.
9092         * sysdeps/hppa/fpu/libm-test-ulps-name: Likewise.
9093         * sysdeps/i386/fpu/libm-test-ulps-name: Likewise.
9094         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps-name: Likewise.
9095         * sysdeps/ia64/fpu/libm-test-ulps-name: Likewise.
9096         * sysdeps/m68k/coldfire/fpu/libm-test-ulps-name: Likewise.
9097         * sysdeps/m68k/m680x0/fpu/libm-test-ulps-name: Likewise.
9098         * sysdeps/microblaze/libm-test-ulps-name: Likewise.
9099         * sysdeps/mips/mips32/libm-test-ulps-name: Likewise.
9100         * sysdeps/mips/mips64/libm-test-ulps-name: Likewise.
9101         * sysdeps/nios2/libm-test-ulps-name: Likewise.
9102         * sysdeps/powerpc/fpu/libm-test-ulps-name: Likewise.
9103         * sysdeps/powerpc/nofpu/libm-test-ulps-name: Likewise.
9104         * sysdeps/s390/fpu/libm-test-ulps-name: Likewise.
9105         * sysdeps/sh/libm-test-ulps-name: Likewise.
9106         * sysdeps/sparc/fpu/libm-test-ulps-name: Likewise.
9107         * sysdeps/tile/libm-test-ulps-name: Likewise.
9108         * sysdeps/x86_64/fpu/libm-test-ulps-name: Likewise.
9109
9110         * sysdeps/unix/sysv/linux/mips/sys/user.h: Include <stddef.h>.
9111
9112         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = elf]
9113         (test-xfail-check-execstack): New variable.
9114
9115         * sysdeps/mips/localplt.data: New file.
9116
9117 2016-11-04  Yury Norov  <ynorov@caviumnetworks.com>
9118             Steve Ellcey  <sellcey@caviumnetworks.com>
9119
9120         * bits/wordsize.h: Add documentation.
9121         * sysdeps/aarch64/bits/wordsize.h : New file
9122         * sysdeps/generic/stdint.h (PTRDIFF_MIN, PTRDIFF_MAX): Update
9123         definitions.
9124         (SIZE_MAX): Change ifdef to if in __WORDSIZE32_SIZE_ULONG check.
9125         * sysdeps/gnu/bits/utmp.h (__WORDSIZE_TIME64_COMPAT32): Check
9126         with #if instead of #ifdef.
9127         * sysdeps/gnu/bits/utmpx.h (__WORDSIZE_TIME64_COMPAT32): Ditto.
9128         * sysdeps/mips/bits/wordsize.h (__WORDSIZE32_SIZE_ULONG,
9129         __WORDSIZE32_PTRDIFF_LONG, __WORDSIZE_TIME64_COMPAT32):
9130         Add or change defines.
9131         * sysdeps/powerpc/powerpc32/bits/wordsize.h: Likewise.
9132         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
9133         * sysdeps/s390/s390-32/bits/wordsize.h: Likewise.
9134         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
9135         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
9136         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
9137         * sysdeps/tile/tilegx/bits/wordsize.h: Likewise.
9138         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
9139         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h: Likewise.
9140         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
9141         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h: Likewise.
9142         * sysdeps/wordsize-32/bits/wordsize.h: Likewise.
9143         * sysdeps/wordsize-64/bits/wordsize.h: Likewise.
9144         * sysdeps/x86/bits/wordsize.h: Likewise.
9145
9146 2016-11-04  Wilco Dijkstra  <wdijkstr@arm.com>
9147             Kevin Petit  <kevin.petit@arm.com>
9148
9149         * sysdeps/aarch64/memchr.S (__memchr): New file.
9150
9151 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
9152
9153         * sysdeps/tile/preconfigure: Accept tilegx* instead of tilegx.
9154
9155 2016-11-03  Joseph Myers  <joseph@codesourcery.com>
9156
9157         [BZ #19398]
9158         * conform/Makefile ($(linknamespace-header-tests)): Also depend on
9159         $(linknamespace-symlists-tests).
9160
9161 2016-11-02  Steve Ellcey  <sellcey@caviumnetworks.com>
9162
9163         * time/tst-strptime2.c: Ignore -Wformat-length warning.
9164
9165 2016-11-02  Florian Weimer  <fweimer@redhat.com>
9166             Carlos O'Donell  <carlos@redhat.com>
9167
9168         [Bug #20729]
9169         * resolv/res_send.c (send_vc): Revert DIAG_IGNORE_Os_NEEDS_COMMENT
9170         change to non -Os related diagnostic.  Use DIAG_IGNORE_Os_NEEDS_COMMENT
9171         for -Os related change.
9172
9173 2016-11-01  Steve Ellcey  <sellcey@caviumnetworks.com>
9174
9175         * stdio-common/tst-printf.c: Ignore -Wformat-length warning.
9176
9177 2016-11-01  Joseph Myers  <joseph@codesourcery.com>
9178
9179         [BZ #19673]
9180         * manual/math.texi (Exponents and Logarithms): Correct description
9181         of clog10.
9182
9183 2016-10-31  Carlos O'Donell  <carlos@redhat.com>
9184
9185         [Bz #20729]
9186         * locale/weight.h: Include libc-internal.h.
9187         * locale/weightwc.h: Likewise.
9188         * nptl/nptl_dbP.h: Likewise.
9189
9190 2016-10-31  Brent W. Baccala  <cosine@freesoft.org>
9191
9192         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Do not deallocate memobj_wr
9193         when it is MACH_PORT_NULL.
9194
9195 2016-10-31  Andreas Schwab  <schwab@suse.de>
9196
9197         [BZ #20707]
9198         * posix/glob.c (glob): Initialize pglob before checking for
9199         GLOB_BRACE.  Don't call glob recursively if pattern contains no
9200         valid brace expression despite GLOB_BRACE.
9201         * posix/globtest.sh: Test it.
9202
9203 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
9204
9205         [BZ #20729]
9206         * include/libc-internal.h (DIAG_IGNORE_Os_NEEDS_COMMENT):
9207         Define.
9208         * iconvdata/iso-2022-cn-ext.c: Include libc-internal.h and ignore
9209         -Wmaybe-uninitialized for BODY macro only for -Os compiles.
9210         * locale/weight.h (findix): Ignore -Wmaybe-uninitialized error
9211         for seq2.back_us and seq1.back_us only for -Os compiles.
9212         * locale/weightwc.h (findix): Likewise.
9213         * nptl_db/thread_dbP.h: Ignore -Wmaybe-uninitialized error for
9214         DB_GET_FIELD_ADDRESS only for -Os compiles.
9215         * resolv/res_send (reopen): Ignore -Wmaybe-uninitialized error
9216         for slen only for -Os compiles.
9217         * string/strcoll_l.c (get_next_seq): Ignore
9218         -Wmaybe-uninitialized for seq2.save_idx and seq1.save_idx only
9219         for -Os compiles.
9220
9221         * elf/Makefile (CFALGS-tst-linkall-static): Remove.
9222         * include/crypt.h: New file.
9223
9224 2016-10-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9225
9226         * dlfcn/bug-atexit3-lib.cc (write_message): New function, copied
9227         from test-skeleton.c.
9228         (statclass): Replace calls to write with calls to write_message.
9229
9230 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
9231
9232         * math/math.h
9233         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANF):
9234         New macro.
9235         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNAN):
9236         Likewise.
9237         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANL):
9238         Likewise.
9239         * manual/arith.texi (Infinity and NaN): Document SNANF, SNAN and
9240         SNANL.
9241         * math/test-double.h (snan_value_MACRO): New macro.
9242         * math/test-float.h (snan_value_MACRO): Likewise.
9243         * math/test-ldouble.h (snan_value_MACRO): Likewise.
9244         * math/libm-test.inc (issignaling_test_data): Add tests of
9245         snan_value_MACRO.
9246
9247 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9248
9249         * nptl/pthread_rwlock_unlock.c: Add a comment explaining its
9250         behavior when eliding a lock not held by the current thread.
9251         * sysdeps/powerpc/nptl/elide.h: Likewise.
9252
9253 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9254
9255         [BZ #20728]
9256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Replace a
9257         branch to _exit() by a function call.
9258
9259 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9260
9261         * malloc/malloc.c: Update chunk layout comments.
9262         (chunk_main_arena): Update comment.
9263
9264 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9265
9266         * crypt/sha256.c, crypt/sha256-block.c,
9267         sysdeps/sparc/sparc64/multiarch/sha256-block.c: Rename
9268         sha256_process_block to __sha256_process_block.
9269         * crypt/sha512.c, crypt/sha512-block.c,
9270         sysdeps/sparc/sparc64/multiarch/sha512-block.c: Rename
9271         sha512_process_block to __sha512_process_block.
9272
9273 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
9274
9275         * elf/Makefile (CFLAGS-tst-linkall-static): Define.
9276
9277         * math/test-nan-overflow.c: Include stdlib.h for malloc.
9278
9279 2016-10-28  H.J. Lu  <hongjiu.lu@intel.com>
9280
9281         [BZ #20019]
9282         * sysdeps/i386/dl-machine.h (elf_machine_rel): Check IFUNC
9283         definition in unrelocated shared library.
9284         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
9285
9286 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9287
9288         [BZ #20729]
9289         Support i386 builds with CFLAGS which imply -fno-omit-frame-pointer.
9290         * sysdeps/unix/sysv/linux/i386/Makefile
9291         (uses-6-syscall-arguments): Define.
9292         [subdir == misc] (CFLAGS-epoll_pwait.o, CFLAGS-epoll_pwait.os)
9293         (CFLAGS-mmap.o, CFLAGS-mmap.os, CFLAGS-mmap64.o, CFLAGS-mmap64.os)
9294         (CFLAGS-pselect.o, CFLAGS-pselect.os, CFLAGS-rtld-mmap.os): Use it.
9295         [subdir = sysvipc] (CFLAGS-semtimedop.o, CFLAGS-semtimedop.os):
9296         Likewise.
9297         [subdir = io] (CFLAGS-posix_fadvise64.o, CFLAGS-posix_fadvise64.os)
9298         (CFLAGS-posix_fallocate.o, CFLAGS-posix_fallocate.os)
9299         (CFLAGS-posix_fallocate64.o, CFLAGS-posix_fallocate64.os)
9300         (CFLAGS-sync_file_range.o, CFLAGS-sync_file_range.os)
9301         (CFLAGS-fallocate.o, CFLAGS-fallocate.os, CFLAGS-fallocate64.o)
9302         (CFLAGS-fallocate64.os): Likewise.
9303         [subdir = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o)
9304         (CFLAGS-pthread_rwlock_timedrdlock.os)
9305         (CFLAGS-pthread_rwlock_timedwrlock.o)
9306         (CFLAGS-pthread_rwlock_timedwrlock.os, CFLAGS-sem_wait.o)
9307         (CFLAGS-sem_wait.os, CFLAGS-sem_timedwait.o)
9308         (CFLAGS-sem_timedwait.os): Likewise.
9309
9310 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9311
9312         * elf/tst-linkall-static.c: New file.
9313         * elf/Makefile (tests-static): Add tst-linkall-static.
9314         (tst-linkall-static): Link against static libraries.
9315
9316 2016-10-27  Florian Weimer  <fweimer@redhat.com>
9317
9318         * malloc/malloc.c (sysmalloc): Initialize previous size field of
9319         mmaped chunks.
9320
9321 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9322
9323         * malloc/malloc.c (struct malloc_chunk): Rename prev_size, size
9324         members to mchunk_prev_size, mchunk_size.
9325         (chunk_main_arena): Reverse sense and rename from
9326         chunk_non_main_arena.
9327         (prev_inuse, chunk_is_mmapped, chunk_main_arena): Use
9328         mchunk_size instead of size.
9329         (set_non_main_arena): Define.
9330         (chunksize): Use chunksize_nomask instead of direct member access.
9331         (chunksize_nomask): Define.
9332         (next_chunk): Use chunksize instead of direct member access.
9333         (prev_size, set_prev_size): Define.
9334         (prev_chunk): Use prev_size instead of direct member access.
9335         (inuse, set_inuse, clear_inuse): Use chunksize and mchunk_size member.
9336         (inuse_bit_at_offset, set_inuse_bit_at_offset)
9337         (clear_inuse_bit_at_offset): Use mchunk_size member instead of size.
9338         (mchunk_prev_size, mchunk_size): Poison tokens.
9339         (unlink): Use chunksize_nomask, prev_size accessors.
9340         (do_check_remalloced_chunk): Use chunk_main_arena accessor.
9341         (do_check_free_chunk): Use prev_size accessor.
9342         (sysmalloc): Use set_prev_size, set_head accessors.
9343         (munmap_chunk, mremap_chunk): Use prev_size accessor.
9344         (__libc_free): Use chunksize_nomask accessor.
9345         (_int_malloc): Use set_non_main_arena, chunksize_nomask,
9346         chunk_main_arena accessors.
9347         (_int_free): Use chunksize_nomask, prev_size accessors.
9348         (malloc_consolidate): Use chunksize, prev_size accessors.
9349         (_int_realloc): Use chunksize_nomask accessor.
9350         (_int_memalign): Use set_prev_size accessor.
9351         (__malloc_info): Use chunksize_nomask accessor.
9352         * malloc/hooks.c (mem2chunk_check): Use prev_size, prev_inuse
9353         accessors.
9354         * malloc/arena.c (arena_for_chunk): Use chunk_main_arena accessor.
9355         (heap_trim): Use chunksize_nomask, prev_size accessors.
9356
9357 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
9358
9359         [BZ #19380]
9360         * stdlib/strtod_l.c (round_and_return): Force "inexact" exception
9361         for inexact results.
9362         * stdlib/gen-tst-strtod-round.c (string_to_fp): Return indication
9363         of inexact result where mpfr_subnormalize is the only inexact
9364         step.
9365         * stdlib/tst-strtod-round-data.h: Regenerated.
9366         * stdlib/tst-strtod-round-skeleton.c [!FE_INEXACT] (FE_INEXACT):
9367         Define to 0.
9368         (GEN_ONE_TEST): Test inexact exceptions raised are as expected.
9369
9370 2016-10-27  David S. Miller  <davem@davemloft.net>
9371
9372         * sysdeps/unix/sysv/linux/sparc/sys/user.h: Include stddef.h
9373
9374 2016-10-27  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9375
9376         * malloc/malloc.c (do_set_mallopt_check): New function.
9377         (do_set_mmap_threshold): Likewise.
9378         (do_set_mmaps_max): Likewise.
9379         (do_set_top_pad): Likewise.
9380         (do_set_perturb_byte): Likewise.
9381         (do_set_trim_threshold): Likewise.
9382         (do_set_arena_max): Likewise.
9383         (do_set_arena_test): Likewise.
9384         (__libc_mallopt): Use them.
9385
9386 2016-10-26  Joseph Myers  <joseph@codesourcery.com>
9387
9388         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9389         (canonicalize): New declaration.
9390         * math/Versions (canonicalize): New libm symbol at version
9391         GLIBC_2.25.
9392         (canonicalizef): Likewise.
9393         (canonicalizel): Likewise.
9394         * math/Makefile (gen-libm-calls): Add s_canonicalizeF.
9395         * math/s_canonicalize_template.c: New file.
9396         * math/libm-test.inc: Update comment on functions tested and
9397         testing of NaN payloads.
9398         (TEST_NAN_PAYLOAD): New macro.
9399         (NO_TEST_INLINE): Update value.
9400         (XFAIL_TEST): Likewise.
9401         (ERRNO_UNCHANGED): Likewise.
9402         (ERRNO_EDOM): Likewise.
9403         (ERRNO_ERANGE): Likewise.
9404         (IGNORE_RESULT): Likewise.
9405         (NON_FINITE): Likewise.
9406         (TEST_SNAN): Likewise.
9407         (NO_TEST_MATHVEC): Likewise.
9408         (TEST_NAN_PAYLOAD_CANONICALIZE): New macro.
9409         (check_float_internal): Check NaN payloads if TEST_NAN_PAYLOAD.
9410         (struct test_Ffp_b1_data): New type.
9411         (RUN_TEST_Ffp_b1): New macro.
9412         (RUN_TEST_LOOP_Ffp_b1): Likewise.
9413         (canonicalize_test_data): New array.
9414         (canonicalize_test): New function.
9415         (main): Call canonicalize_test.
9416         * manual/arith.texi (FP Bit Twiddling): Document canonicalize,
9417         canonicalizef and canonicalizel.
9418         * manual/libm-err-tab.pl: Update comment on interfaces without
9419         ulps tabulated.
9420         * sysdeps/ieee754/ldbl-opt/nldbl-canonicalize.c: New file.
9421         * sysdeps/ieee754/ldbl-opt/s_canonicalizel.c: Likewise.
9422         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9423         canonicalize.
9424         (CFLAGS-nldbl-canonicalize.c): New variable.
9425         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c: Move
9426         to ...
9427         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c:
9428         ... here.
9429         (do_test): Also test canonicalizel.
9430         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Change
9431         test-iscanonical-ldbl-128ibm to test-canonical-ldbl-128ibm.
9432         * sysdeps/ieee754/ldbl-128ibm/include/bits/iscanonical.h: New
9433         file.
9434         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c (__iscanonicall):
9435         Use libm_hidden_def.
9436         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Move to ...
9437         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c: ... here.
9438         (do_test): Also test canonicalizel.
9439         * sysdeps/ieee754/ldbl-96/Makefile (tests): Change
9440         test-iscanonical-ldbl-96 to test-canonical-ldbl-96.
9441         * sysdeps/ieee754/ldbl-96/include/bits/iscanonical.h: New file.
9442         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c (__iscanonicall): Use
9443         libm_hidden_def.
9444         * sysdeps/generic/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): New
9445         macro.
9446         * sysdeps/mips/math-tests.h [__mips_hard_float && !__mips_nan2008]
9447         (SNAN_TESTS_PRESERVE_PAYLOAD): Likewise.
9448         * sysdeps/nacl/libm.abilist: Update.
9449         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9450         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9451         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9452         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9453         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9454         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9455         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9456         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9457         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9458         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9459         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9460         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9461         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9462         Likewise.
9463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9464         Likewise.
9465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9466         Likewise.
9467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9468         Likewise.
9469         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9470         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9471         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9472         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9473         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9474         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9475         Likewise.
9476         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9477         Likewise.
9478         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9479         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9480         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9481
9482         * sysdeps/ieee754/ldbl-opt/nldbl-getpayload.c: New file.
9483         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9484         getpayload.
9485         (CFLAGS-nldbl-getpayload.c): New variable.
9486
9487 2016-10-26  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9488
9489         * stdio-common/vfscanf.c (_IO_vfwscanf): Use read_int to parse
9490         integer from the format string.
9491
9492 2016-10-26  Florian Weimer  <fweimer@redhat.com>
9493
9494         [BZ #19473]
9495         * malloc/malloc.h (malloc_get_state, malloc_set_state): Remove
9496         declarations.
9497         * malloc/malloc.c (malloc_get_state, malloc_set_state): Remove
9498         weak aliases.
9499         * malloc/hooks.c (__malloc_get_state): Remove definition.
9500         (malloc_get_state): New stub implementation as
9501         compatibility symbol.
9502         (malloc_set_state): Rename from __malloc_set_state.  Turn into
9503         compat symbol.
9504         * malloc/tst-mallocstate.c: Rewrite to approximate how Emacs uses
9505         malloc_set_state.
9506         * malloc/Makefile (LDFLAGS-tst-mallocstate): Link with -rdynamic.
9507
9508 2016-10-26  Florian Weimer  <fweimer@redhat.com>
9509
9510         * iconvdata/iso646.c (enum variant): Drop illegal_var.
9511         (names): Turn into concatenation of strings.
9512         (gconv_init): Adapt iteration over names.
9513
9514 2016-10-26  Florian Weimer  <fweimer@redhat.com>
9515
9516         * iconvdata/ibm930.h (__ucs4_to_ibm930sb): Remove indirection and
9517         make const.
9518         * iconvdata/ibm933.h (__ucs4_to_ibm933sb): Likewise.
9519         * iconvdata/ibm935.h (__ucs4_to_ibm935sb): Likewise.
9520         * iconvdata/ibm939.h (__ucs4_to_ibm939sb): Likewise.
9521         * iconvdata/ibm930.c [TO_LOOP] (BODY): Store converted single-byte
9522         character in sbconv.
9523         * iconvdata/ibm933.c [TO_LOOP] (BODY): Likewise.
9524         * iconvdata/ibm935.c [TO_LOOP] (BODY): Likewise.
9525         * iconvdata/ibm939.c [TO_LOOP] (BODY): Likewise.
9526
9527 2016-10-26  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9528
9529         * malloc/malloc.c (M_ARENA_TEST, M_ARENA_MAX): Remove.
9530
9531         * manual/memory.texi (M_TOP_PAD): Remove reference to sbrk.
9532         (M_TRIM_THRESHOLD): Likewise.
9533
9534         * manual/memory.texi (M_ARENA_TEST): Add documentation.
9535         (M_ARENA_MAX): Likewise.
9536         * malloc/malloc.c: Remove obsolete comment.
9537
9538         * manual/memory.texi: Add environment variable alternatives to
9539         setting mallopt parameters.
9540
9541 2016-10-26  Carlos O'Donell  <carlos@redhat.com>
9542
9543         * include/atomic.h
9544         [USE_COMPILER_ATOMIC_BUILTINS && !atomic_fetch_xor_release]
9545         (atomic_fetch_xor_release): Use atomic_compare_exchange_weak_release.
9546
9547 2016-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9548
9549         * stdlib/Makefile (tests): Add tst-strfrom and tst-strfrom-locale.
9550         * stdlib/tst-strfrom.h: New file.
9551         * stdlib/tst-strfrom.c: New file.
9552         * stdlib/tst-strfrom-locale.c: New file.
9553
9554         * stdlib/bug-strtod.c: Refactor based on GEN_TEST_STRTOD_FOREACH.
9555         * stdlib/bug-strtod2.c: Likewise.
9556         * stdlib/tst-strtod-round-skeleton.c: Likewise.
9557         * stdlib/tst-strtod6.c: Likewise.
9558         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH): Use strfrom.
9559
9560 2016-10-25  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9561
9562         * NEWS: Mention the addition of strfromd, strfromf, and strfroml.
9563         * manual/arith.texi: Document strfromd, strfromf, strfroml.
9564         * stdlib/Makefile: Add strfromd, strfromf, and strfroml.
9565         * stdlib/Versions (GLIBC_2.25): Add strfromd, strfromf, and strfroml.
9566         * stdlib/stdlib.h (strfromd): New declaration.
9567         (strfromf): Likewise.
9568         (strfroml): Likewise.
9569         * stdlib/strfrom-skeleton.c: New file.  Generic implementation for
9570         strfrom.
9571         * stdlib/strfromd.c: New file.
9572         * stdlib/strfromf.c: Likewise.
9573         * stdlib/strfroml.c: Likewise.
9574         * stdlib/bits/stdlib-ldbl.h: Add redirection from strfroml to strfromd.
9575         * sysdeps/ieee754/ldbl-opt/Makefile: Add rule for nldbl-strfroml.c.
9576         * sysdeps/ieee754/ldbl-opt/nldbl-strfroml.c: New file;
9577         * sysdeps/arm/nacl/libc.abilist: Update.
9578         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
9579         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9580         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9581         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9582         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9583         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9584         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9585         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9586         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9587         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9588         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9589         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9590         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9591         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
9593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
9594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9596         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9597         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9598         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9599         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9600         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9601         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
9602         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
9603         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
9604         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9605         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9606
9607 2016-10-25  Joseph Myers  <joseph@codesourcery.com>
9608
9609         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Use cmplwi
9610         instead of cmpli.
9611         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Use cmpldi
9612         instead of cmpli.
9613
9614 2016-10-24  Yury Norov  <ynorov@caviumnetworks.com>
9615
9616         * sysdeps/unix/sysv/linux/fxstat.c: Remove useless cast.
9617         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
9618         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
9619         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
9620         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
9621         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
9622
9623 2016-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9624
9625         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Use SYSCALL_LL_PRW.
9626         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
9627         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Use
9628         SYSCALL_LL64_PRW.
9629         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
9630         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Define
9631         __ASSUME_PRW_DUMMY_ARG.
9632         * sysdeps/unix/sysv/linux/sh/pread.c: Remove file.
9633         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
9634         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
9635         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
9636         * sysdeps/unix/sysv/linux/sysdep.h: Define SYSCALL_LL_PRW and
9637         SYSCALL_LL_PRW64 based on __ASSUME_PRW_DUMMY_ARG.
9638
9639 2016-10-24  Steve Ellcey  <sellcey@caviumnetworks.com>
9640
9641         * sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size.
9642
9643 2016-10-22  Florian Weimer  <fweimer@redhat.com>
9644
9645         * math/math.h [__cplusplus] (iszero): Wrap C++ bits in extern
9646         "C++", to override a potential extern "C" directive around the
9647         header file inclusion.
9648
9649 2016-10-21  Joseph Myers  <joseph@codesourcery.com>
9650
9651         * benchtests/Makefile (CFLAGS-bench-sqrt.c): New variable.
9652
9653 2016-10-21  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9654
9655         * sysdeps/powerpc/fpu/fenv_private.h:
9656         (_FPU_MASK_ALL): Rename to...
9657         (_FPU_ALL_TRAPS): New macro representing ISA VE OE UE ZE and
9658         XE FPSCR bits.
9659
9660         (_FPU_MASK_RN): New macro to mask out ISA RN bits in FPSCR.
9661
9662         (_FPU_MASK_ROUNDING): Rename to...
9663         (_FPU_MASK_NOT_RN_NI): New macro to mask out all but ISA RN and
9664         NI bits.
9665
9666         (_FPU_MASK_EXCEPT_ROUND): Rename to...
9667         (_FPU_MASK_TRAPS_RN): New macro to mask out exception enable
9668         bits and rounding bits.
9669
9670         (__libc_feholdbits_ppc): New inline function to mask, set,
9671         and pontentially clear FSPCR bits, and change MSR[FE] bits.
9672         (libc_feholdexcept_ppc): Redefine using __libc_feholdbits_ppc.
9673         (libc_feholdexcept_setround_ppc): Likewise.
9674
9675         (__libc_femergeenv_ppc): New function to dynamically mask both
9676         old and new FP environments and merge.
9677         (libc_fesetenv_ppc): Redefine in terms of __libc_femergeenv_ppc.
9678         (libc_feresetround_ppc): Likewise.
9679         (libc_feupdateenv_test_ppc): Likewise.
9680         (libc_feupdateenv_ppc): Likewise.
9681
9682         (libc_feholdsetround_ppc_ctx): Fix usage to include masking
9683         of ISA RN bits, and update macro names.
9684         (libc_feholdexcept_setround_ppc_ctx): Remove as it is
9685         effectively the same as the previously mentioned function.
9686
9687         (libc_feupdateenv_ppc_ctx): Replace libc_feupdatedenv_test_ppc
9688         usage with fe_resetround_ppc.
9689
9690         (libc_feholdexcept_setround_ctx): Remove, this doesn't appear
9691         to be used.
9692         (libc_feholdexcept_setround_ctxf): Likewise.
9693         (libc_feholdexcept_setround_ctxl): Likewise.
9694
9695 2016-10-21  Florian Weimer  <fweimer@redhat.com>
9696
9697         [BZ #20715]
9698         * math/math.h [__cplusplus] (iszero): Define as function template.
9699         * math/Makefile [CXX] (tests): Add test-math-iszero.
9700         (CFLAGS-test-math-iszero.cc): Set.
9701         * math/test-math-iszero.cc: New file.
9702
9703 2016-10-20  Joseph Myers  <joseph@codesourcery.com>
9704
9705         [BZ #20660]
9706         * sysdeps/arm/e_sqrt.c: New file.
9707         * sysdeps/arm/e_sqrtf.c: Likewise.
9708
9709 2016-10-19  Joseph Myers  <joseph@codesourcery.com>
9710
9711         [BZ #20718]
9712         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S (__copysignl): Do
9713         not use floating-point comparisons to test sign.
9714         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S (__copysignl):
9715         Likewise.
9716
9717         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9718         (getpayload): New declaration.
9719         * math/Versions (getpayload): New libm symbol at version
9720         GLIBC_2.25.
9721         (getpayloadf): Likewise.
9722         (getpayloadl): Likewise.
9723         * math/Makefile (libm-calls): Add s_getpayloadF.
9724         * math/libm-test.inc: Include <nan-high-order-bit.h>.
9725         (struct test_f_f_data): Add comment.
9726         (RUN_TEST_fp_f): New macro.
9727         (RUN_TEST_LOOP_fp_f): Likewise.
9728         (getpayload_test_data): New array.
9729         (getpayload_test): New function.
9730         (main): Call getpayload_test.
9731         * math/gen-libm-test.pl (parse_args): Handle 'p' in argument
9732         descriptor.
9733         * manual/arith.texi (FP Bit Twiddling): Document getpayload,
9734         getpayloadf and getpayloadl.
9735         * manual/libm-err-tab.pl: Update comment on interfaces without
9736         ulps tabulated.
9737         * sysdeps/ieee754/dbl-64/s_getpayload.c: New file.
9738         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Likewise.
9739         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Likewise.
9740         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Likewise.
9741         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c: Likewise.
9742         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Likewise.
9743         * sysdeps/nacl/libm.abilist: Update.
9744         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9745         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9746         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9747         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9748         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9749         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9750         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9751         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9752         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9753         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9754         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9755         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9757         Likewise.
9758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9759         Likewise.
9760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9761         Likewise.
9762         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9763         Likewise.
9764         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9765         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9766         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9767         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9768         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9769         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9770         Likewise.
9771         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9772         Likewise.
9773         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9774         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9775         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9776
9777 2016-10-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9778
9779         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = math] (tests): Move
9780         tst-fallocate{64}.
9781         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Check for EOPNOTSUPP
9782         on syscall return.
9783
9784 2016-10-17  Carlos O'Donell  <carlos@redhat.com>
9785
9786         [BZ #20689]
9787         * sysdeps/x86/cpu-features.c: Only enable FMA and AVX2 if AVX is
9788         usable.
9789
9790 2016-10-17  Joseph Myers  <joseph@codesourcery.com>
9791
9792         * sysdeps/generic/nan-high-order-bit.h: New file.
9793         * sysdeps/hppa/nan-high-order-bit.h: Likewise.
9794         * sysdeps/mips/nan-high-order-bit.h: Likewise.
9795         * sysdeps/hppa/math_private.h: Remove file.
9796         * sysdeps/mips/math_private.h (HIGH_ORDER_BIT_IS_SET_FOR_SNAN): Do
9797         not define here.
9798         * sysdeps/ieee754/dbl-64/s_issignaling.c: Include
9799         <nan-high-order-bit.h>.
9800         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9801         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
9802         <nan-high-order-bit.h>.
9803         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9804         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
9805         <nan-high-order-bit.h>.
9806         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9807         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Include
9808         <nan-high-order-bit.h>.
9809         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9810         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
9811         <nan-high-order-bit.h>.
9812         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9813         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
9814         <nan-high-order-bit.h>.
9815         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9816         * sysdeps/ieee754/flt-32/s_issignalingf.c: Include
9817         <nan-high-order-bit.h>.
9818         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9819         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
9820         <nan-high-order-bit.h>.
9821         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9822         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
9823         <nan-high-order-bit.h>.
9824         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9825         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Include
9826         <nan-high-order-bit.h>.
9827         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9828         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
9829         <nan-high-order-bit.h>.
9830         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9831         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
9832         <nan-high-order-bit.h>.
9833         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9834         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Include
9835         <nan-high-order-bit.h>.
9836         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9837         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
9838         <nan-high-order-bit.h>.
9839         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9840         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
9841         <nan-high-order-bit.h>.
9842         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9843         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Include
9844         <nan-high-order-bit.h>.
9845         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9846         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
9847         <nan-high-order-bit.h>.
9848         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9849         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
9850         <nan-high-order-bit.h>.
9851         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9852
9853 2016-10-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
9854
9855         * sysdeps/s390/fpu/fix-fp-int-compare-invalid.h: New file.
9856
9857 2016-09-22  John David Anglin  <dave.anglin@bell.net>
9858
9859         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: Don't include
9860         abort-instr.h.
9861         (EFAULT): Remove conditional define.
9862         (ENOSYS): Likewise.
9863         (atomic_compare_and_exchange_val_acq): Use instruction nullification
9864         instead of conditional branch instructions.
9865
9866 2016-10-15  Joseph Myers  <joseph@codesourcery.com>
9867
9868         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9869         (totalordermag): New declaration.
9870         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag):
9871         New macro.
9872         * math/Versions (totalordermag): New libm symbol at version
9873         GLIBC_2.25.
9874         (totalordermagf): Likewise.
9875         (totalordermagl): Likewise.
9876         * math/Makefile (libm-calls): Add s_totalordermagF.
9877         * math/libm-test.inc (totalordermag_test_data): New array.
9878         (totalordermag_test): New function.
9879         (main): Call totalordermag_test.
9880         * math/test-tgmath.c (NCALLS): Increase to 125.
9881         (F(compile_test)): Call totalordermag.
9882         (F(totalordermag)): New function.
9883         * manual/arith.texi (FP Comparison Functions): Document
9884         totalordermag, totalordermagf and totalordermagl.
9885         * manual/libm-err-tab.pl: Update comment on interfaces without
9886         ulps tabulated.
9887         * sysdeps/ieee754/dbl-64/s_totalordermag.c: New file.
9888         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Likewise.
9889         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Likewise.
9890         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Likewise.
9891         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Likewise.
9892         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Likewise.
9893         * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c: Likewise.
9894         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9895         totalordermag.
9896         (CFLAGS-nldbl-totalordermag.c): New variable.
9897         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
9898         (do_test): Also test totalordermagl.
9899         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
9900         Likewise.
9901         * sysdeps/nacl/libm.abilist: Update.
9902         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9903         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9904         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9905         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9906         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9907         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9908         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9909         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9910         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9911         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9912         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9913         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9914         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9915         Likewise.
9916         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9917         Likewise.
9918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9919         Likewise.
9920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9921         Likewise.
9922         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9923         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9924         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9925         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9926         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9927         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9928         Likewise.
9929         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9930         Likewise.
9931         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9932         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9933         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9934
9935 2016-10-14  Steve Ellcey  <sellcey@caviumnetworks.com>
9936
9937         * sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly
9938         boolean.
9939
9940 2016-10-13  Joseph Myers  <joseph@codesourcery.com>
9941
9942         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Instead of
9943         raising FE_INVALID with feraisexcept in case where part of
9944         argument is infinite, subtract that part of argument from itself.
9945         * math/s_cexp_template.c (M_DECL_FUNC (__cexp)): Likewise.
9946         * math/s_csin_template.c (M_DECL_FUNC (__csin)): Likewise.
9947         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
9948
9949 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
9950
9951         * math/libm-test.inc (totalorder_test_data): Add more tests.
9952
9953 2016-10-12  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
9954
9955         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c:
9956         Undefine weak_alias and add a comment why mips64 require
9957         versioning.
9958
9959 2016-10-12  H.J. Lu  <hongjiu.lu@intel.com>
9960
9961         [BZ #20647]
9962         * sysdeps/x86/cacheinfo.c (handle_intel): Return -1 if the
9963         maximum CPUID level is less than 2.
9964
9965 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
9966
9967         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9968         (totalorder): New declaration.
9969         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder):
9970         New macro.
9971         * math/Versions (totalorder): New libm symbol at version
9972         GLIBC_2.25.
9973         (totalorderf): Likewise.
9974         (totalorderl): Likewise.
9975         * math/Makefile (libm-calls): Add s_totalorderF.
9976         * math/gen-libm-test.pl (parse_args): Escape quotes in test name
9977         string.
9978         * math/libm-test.inc (PAYLOAD_DIG): New macro.
9979         (qnan_value_pl): Likewise.
9980         (snan_value_pl): Likewise.
9981         (qnan_value): Define using qnan_value_pl.
9982         (snan_value): Define using snan_value_pl.
9983         (struct test_ff_i_data): Add comment about which tests use this
9984         structure.
9985         (RUN_TEST_ff_b): New macro.
9986         (RUN_TEST_LOOP_ff_b): Likewise.
9987         (totalorder_test_data): New array.
9988         (totalorder_test): New function.
9989         (main): Call totalorder_test.
9990         * math/test-tgmath.c (NCALLS): Increase to 122.
9991         (F(compile_test)): Call totalorder.
9992         (F(totalorder)): New function.
9993         * manual/arith.texi (FP Comparison Functions): Document
9994         totalorder, totalorderf and totalorderl.
9995         * manual/libm-err-tab.pl: Update comment on interfaces without
9996         ulps tabulated.
9997         * sysdeps/ieee754/dbl-64/s_totalorder.c: New file.
9998         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Likewise.
9999         * sysdeps/ieee754/flt-32/s_totalorderf.c: Likewise.
10000         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Likewise.
10001         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Likewise.
10002         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Likewise.
10003         * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c: Likewise.
10004         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
10005         totalorder.
10006         (CFLAGS-nldbl-totalorder.c): New variable.
10007         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c: New
10008         file.
10009         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
10010         Add test-totalorderl-ldbl-128ibm.
10011         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c: New file.
10012         * sysdeps/ieee754/ldbl-96/Makefile [$(subdir) = math] (tests): Add
10013         test-totalorderl-ldbl-96.
10014         * sysdeps/nacl/libm.abilist: Update.
10015         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10016         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10017         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10018         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10019         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10020         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10021         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10022         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10023         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10024         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10025         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10026         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10028         Likewise.
10029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10030         Likewise.
10031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10032         Likewise.
10033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10034         Likewise.
10035         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10036         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10037         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10038         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10039         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10040         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10041         Likewise.
10042         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10043         Likewise.
10044         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10045         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10046         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10047
10048 2016-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10049
10050         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sync_file_range.
10051         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c: Remove file.
10052         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c: Likewise.
10053         * sysdeps/unix/sysv/linux/sync_file_range.c: Use SYSCALL_LL64 and
10054         remove ENOSYS implementation.
10055         * sysdeps/unix/sysv/linux/tst-sync_file_range.c (sync_file_range):
10056         Consolidate all Linux implementations.
10057
10058 2016-10-11  Florian Weimer  <fweimer@redhat.com>
10059
10060         * resolv/Makefile (+cflags): Do not set -Wno-write-strings.
10061         * resolv/herror.c (herror): Cast away const-ness.
10062         * resolv/res_debug.c (__p_class_syms, __p_default_section_syms)
10063         (__p_update_section_syms, __p_type_syms, __p_rcode_syms): Likewise.
10064
10065 2016-10-11  Joseph Myers  <joseph@codesourcery.com>
10066
10067         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Use M_NAN
10068         instead of M_NAN + M_NAN.
10069         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
10070
10071 2016-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10072
10073         * misc/getauxval.c [!HAVE_AUX_VECTOR] (__getauxval): Do not define
10074         unused variable 'p'.
10075
10076 2016-10-09  Alan Modra  <amodra@gmail.com>
10077             Andreas Schwab  <schwab@linux-m68k.org>
10078
10079         [BZ #20554]
10080         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount)
10081         [PIC && !SHARED]: Set up PIC register for PLT call.
10082
10083 2016-10-07  Joseph Myers  <joseph@codesourcery.com>
10084
10085         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define
10086         conditional on value of [__FLT_EVAL_METHOD__].
10087         * math/test-iseqsig-excess-precision.c: New file.
10088         * math/Makefile (tests): Add test-iseqsig-excess-precision.
10089
10090 2016-10-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10091
10092         * math/s_iseqsig_template.c: Include math-private.h.
10093
10094         * posix/Makefile (tests): Add tst-posix_fadvise and tst-posix_fadvise64.
10095         * posix/tst-posix_fadvise.c: New file.
10096         * posix/tst-posix_fadvise64.c: Likewise.
10097         * posix/tst-posix_fadvise-common.c: Likewise.
10098         * sysdeps/unix/sysv/linux/arm/kernel-features.h
10099         (__ASSUME_FADVISE64_64_6ARG): Define.
10100         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10101         [!__powerpc64__] (__ASSUME_FADVISE64_64_6ARG): Define.
10102         * sysdeps/unix/sysv/linux/tile/kernel-features.h
10103         [!LP64] (__ASSUME_FADVISE64_64_NO_ALIGN): Define.
10104         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c: Remove file.
10105         * sysdeps/unix/sysv/linux/generic/wordsize-32/posix_fadvise.c: Likewise.
10106         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
10107         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
10108         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise64.c: Likewise.
10109         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise.c: Likewise.
10110         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise64.c: Likewise.
10111         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c: Likewise.
10112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: Likewise.
10113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c:
10114         Likewise.
10115         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c: Likewise.
10116         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise64.c: Likewise.
10117         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c
10118         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
10119         Alias to __posix_fadvise64_l32.
10120         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l32]:
10121         Add compat definition to posix_fadvise64.
10122         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
10123         Add versioned definition to posix_fadvise64.
10124         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Build iff
10125         __OFF_T_MATCHES_OFF64_T is defined, use INTERNAL_SYSCALL_CALL, add
10126         __ASSUME_FADVISE64_64_6ARG/__ASSUME_FADVISE64_64_NO_ALIGN support.
10127         * sysdeps/unix/sysv/linux/posix_fadvise64.c (posix_fadvise64): Add
10128         __ASSUME_FADVISE64_64_NO_ALIGN support and use INTERNAL_SYSCALL_CALL.
10129
10130         * io/Makefile (tests): Add tst-posix_fallocate and
10131         tst-posix_fallocate64.
10132         * io/tst-posix_fallocate-common.c: New file.
10133         * io/tst-posix_fallocate.c: Likewise.
10134         * io/tst-posix_fallocate64.c: Likewise.
10135         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c: Remove
10136         file.
10137         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c:
10138         Likewise.
10139         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate.c: Likewise.
10140         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate64.c:
10141         Likewise.
10142         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Likewise.
10143         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: Likewise.
10144         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Use
10145         SYSCALL_LL to pass both offset and len arguments.
10146         * sysdeps/unix/sysv/linux/posix_fallocate64.c (posix_fallocate64):
10147         Likewise.
10148         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pwrite64): Add
10149         __libc_pwrite64 alias used by posix_fallocate64.
10150
10151         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
10152         tst-fallocate64.
10153         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
10154         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
10155         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
10156         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
10157         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
10158         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
10159         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
10160         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
10161         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
10162         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
10163         macro on offset argument.
10164         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
10165         SYSCALL_LL64 on offset argument.
10166
10167         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
10168         tst-fallocate64.
10169         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
10170         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
10171         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
10172         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
10173         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
10174         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
10175         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
10176         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
10177         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
10178         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
10179         macro on offset argument.
10180         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
10181         SYSCALL_LL64 on offset argument.
10182         * test-skeleton.c (FAIL_RET): Add macro.
10183         (FAIL_EXIT): Likewise.
10184         (FAIL_EXIT1): Likewise.
10185         (_FAIL): Likewise.
10186
10187 2016-10-07  Florian Weimer  <fweimer@redhat.com>
10188
10189         [BZ #20629]
10190         resolv: Remove RES_USEBSTRING and its implementation.
10191         * resolv/resolv.h (RES_USEBSTRING): Remove.
10192         * resolv/ns_name.c (NS_TYPE_ELT, DNS_LABELTYPE_BITSTRING)
10193         (digitvalue, encode_bitstring, decode_bitstring): Remove.
10194         (ns_name_ntop, ns_name_pton, ns_name_unpack, ns_name_skip)
10195         (labellen): Remove extended label types support.
10196         * resolv/res_debug.c (p_option): Remove RES_USEBSTRING handling.
10197         * resolv/res_init.c (res_setoptions): Likewise.
10198         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
10199
10200 2016-10-07  Florian Weimer  <fweimer@redhat.com>
10201
10202         resolv: Remove RES_NOIP6DOTINT and its implementation.
10203         * resolv/resolv.h (RES_DEFAULT): Remove RES_NOIP6DOTINT.
10204         (RES_NOIP6DOTINT): Remove.
10205         * resolv/gethnamaddr.c (gethostbyaddr): Remove RES_NOIP6DOTINT
10206         handling.
10207         * resolv/res_debug.c (p_option): Likewise.
10208         * resolv/res_init.c (res_setoptions): Likewise.
10209         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
10210
10211 2016-10-07  Florian Weimer  <fweimer@redhat.com>
10212
10213         resolv: Deprecate unimplemented flags.
10214         * misc/sys/cdefs.h (__glibc_macro_warning1)
10215         (__glibc_macro_warning): Define.
10216         * resolv/resolv.h (RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME)
10217         (RES_KEEPTSIG): Mark as deprecated.
10218         * resolv/res_debug.c (p_option): Remove RES_AAONLY, RES_PRIMARY,
10219         RES_NOCHECKNAME, RES_KEEPTSIG.
10220         * resolv/res_init.c (res_setoptions): Remove RES_NOCHECKNAME handling.
10221
10222 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10223
10224         * nptl/pt-longjmp.c (DEFINE_LONGJMP): Use libc_ifunc macro.
10225         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c (longjmp, siglongjmp):
10226         Use strong_alias to create symbols for glibc verison 2.19.
10227
10228 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10229
10230         * nptl/pt-vfork.c (DEFINE_VFORK): Use libc_ifunc macro.
10231
10232 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10233
10234         * nptl/pt-system.c (system_ifunc): Use libc_ifunc macro.
10235
10236 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10237
10238         * rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
10239
10240 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10241
10242         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
10243         Use libc_ifunc_hidden and libc_hidden_def macro. Redirect ifunced function
10244         in header for using it as type for ifunc function because __GI_* symbols
10245         for ppc32 do not target the ifunc symbols.
10246         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
10247
10248 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10249
10250         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
10251         Use libc_ifunc_hidden macro. Use libc_hidden_def instead of
10252         libc_ifunc_hidden_def.
10253         * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
10254         * sysdeps/unix/sysv/linux/i386/gettimeofday.c (__gettimeofday):
10255         Redirect ifunced function in header for using it as type of ifunc'ed
10256         function. Redefine libc_hidden_def to use fallback non ifunc'ed
10257         function for __GI_* symbol.
10258         * sysdeps/unix/sysv/linux/i386/time.c (time): Likewise.
10259         * include/libc-symbols.h
10260         (libc_ifunc_hidden_def, libc_ifunc_hidden_def1): Delete macro.
10261
10262 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10263
10264         [BZ #20478]
10265         * sysdeps/s390/multiarch/ifunc-resolve.h
10266         (s390_vx_libc_ifunc2, s390_libc_ifunc): Use __ifunc from libc-symbols.h
10267         to create ifunc symbols.
10268         (s390_vx_libc_ifunc_init, s390_vx_libc_ifunc_redirected
10269         , s390_vx_libc_ifunc2_redirected, s390_libc_ifunc_init): New define.
10270         * sysdeps/s390/multiarch/memchr.c: Redirect ifunced function in header
10271         for using it as type for ifunc function.
10272         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
10273         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
10274         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
10275         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
10276         * sysdeps/s390/multiarch/strcat.c: Likewise.
10277         * sysdeps/s390/multiarch/strchr.c: Likewise.
10278         * sysdeps/s390/multiarch/strcmp.c: Likewise.
10279         * sysdeps/s390/multiarch/strcpy.c: Likewise.
10280         * sysdeps/s390/multiarch/strcspn.c: Likewise.
10281         * sysdeps/s390/multiarch/strlen.c: Likewise.
10282         * sysdeps/s390/multiarch/strncmp.c: Likewise.
10283         * sysdeps/s390/multiarch/strncpy.c: Likewise.
10284         * sysdeps/s390/multiarch/strnlen.c: Likewise.
10285         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
10286         * sysdeps/s390/multiarch/strrchr.c: Likewise.
10287         * sysdeps/s390/multiarch/strspn.c: Likewise.
10288         * sysdeps/s390/multiarch/wcschr.c: Likewise.
10289         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
10290         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
10291         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
10292         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
10293         * sysdeps/s390/multiarch/wmemset.c: Likewise.
10294         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
10295         * sysdeps/s390/s390-32/multiarch/memcpy.c: Likewise.
10296         * sysdeps/s390/s390-32/multiarch/memset.c: Likewise.
10297         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
10298         * sysdeps/s390/s390-64/multiarch/memcpy.c: Likewise.
10299         * sysdeps/s390/s390-64/multiarch/memset.c: Likewise.
10300
10301 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10302
10303         * include/libc-symbols.h (__ifunc_resolver):
10304         New macro is used by __ifunc* macros.
10305         (__ifunc): New macro uses gcc attribute ifunc or inline assembly
10306         depending on HAVE_GCC_IFUNC.
10307         (libc_ifunc, libm_ifunc): Use __ifunc as base macro.
10308         (libc_ifunc_redirected, libc_ifunc_hidden, libm_ifunc_init): New macro.
10309         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
10310         Redirect ifunced function in header for using as type for ifunc function.
10311         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
10312         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
10313         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
10314         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
10315         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
10316         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
10317         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
10318         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
10319         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
10320         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
10321         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
10322         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
10323         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
10324         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
10325         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
10326         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
10327         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
10328         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
10329         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
10330         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
10331         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
10332         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
10333         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
10334         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
10335         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
10336         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
10337         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
10338         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
10339         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
10340         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
10341         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
10342         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: Likewise.
10343         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
10344         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c:
10345         Add libc_hidden_def() and use libc_ifunc_hidden() macro
10346         instead of libc_ifunc() macro.
10347         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
10348         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
10349
10350 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10351
10352         * config.h.in (HAVE_GCC_IFUNC): New undef.
10353         * configure.ac: Add check if gcc supports attribute ifunc feature.
10354         * configure: Regenerated.
10355         * manual/install.texi: Add recommendation for gcc with
10356         indirect-function support.
10357         * INSTALL: Regenerated.
10358
10359 2016-10-06  Joseph Myers  <joseph@codesourcery.com>
10360
10361         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): New
10362         macro.
10363         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10364         (__iseqsig): New declaration.
10365         * math/s_iseqsig_template.c: New file.
10366         * math/Versions (__iseqsigf): New libm symbol at version
10367         GLIBC_2.25.
10368         (__iseqsig): Likewise.
10369         (__iseqsigl): Likewise.
10370         * math/libm-test.inc (iseqsig_test_data): New array.
10371         (iseqsig_test): New function.
10372         (main): Call iseqsig_test.
10373         * math/Makefile (gen-libm-calls): Add s_iseqsigF.
10374         * manual/arith.texi (FP Comparison Functions): Document iseqsig.
10375         * manual/libm-err-tab.pl: Update comment on interfaces without
10376         ulps tabulated.
10377         * sysdeps/generic/fix-fp-int-compare-invalid.h: New file.
10378         * sysdeps/powerpc/fpu/fix-fp-int-compare-invalid.h: Likewise.
10379         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h: Likewise.
10380         * sysdeps/nacl/libm.abilist: Update.
10381         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10382         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10383         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10384         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10385         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10386         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10387         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10388         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10389         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10390         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10391         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10392         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10394         Likewise.
10395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10396         Likewise.
10397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10398         Likewise.
10399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10400         Likewise.
10401         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10402         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10403         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10404         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10405         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10406         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10407         Likewise.
10408         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10409         Likewise.
10410         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10411         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10412         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10413
10414 2016-10-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10415
10416         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute, do_sincos_1,
10417         do_sincos_2, sloww, sloww1): Update comments.
10418
10419         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Adjust calls to
10420         do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant.
10421
10422         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Make
10423         K boolean and rename it.
10424         (__sin): Adjust.
10425         (__cos): Adjust.
10426
10427 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
10428             Siddhesh Poyarekar  <siddhesh@sourceware.org>
10429
10430         * manual/nss.texi: Fix typos in the manual.
10431
10432 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
10433
10434         * manual/contrib.texi: Fix typos in the manual.
10435
10436         * manual/maint.texi: Fix typos in the manual.
10437
10438         * manual/install.texi: Fix typos in the manual.
10439         * INSTALL: Regenerated.
10440
10441         * manual/lang.texi: Fix typos in the manual.
10442
10443         * manual/probes.texi: Fix typos in the manual.
10444
10445         * manual/threads.texi: Fix typos in the manual.
10446
10447         * manual/debug.texi: Fix typos in the manual.
10448
10449         * manual/crypt.texi: Fix typos in the manual.
10450
10451         * manual/conf.texi: Fix typos in the manual.
10452
10453         * manual/sysinfo.texi: Fix typos in the manual.
10454
10455         * manual/users.texi: Fix typos in the manual.
10456
10457         * manual/job.texi: Fix typos in the manual.
10458
10459         * manual/process.texi: Fix typos in the manual.
10460
10461         * manual/argp.texi: Fix typos in the manual.
10462         * manual/getopt.texi: Likewise.
10463         * manual/startup.texi: Likewise.
10464
10465         * manual/signal.texi: Fix typos in the manual.
10466
10467         * manual/setjmp.texi: Fix typos in the manual.
10468
10469         * manual/resource.texi: Fix typos in the manual.
10470
10471         * manual/time.texi: Fix typos in the manual.
10472
10473         * manual/arith.texi: Fix typos in the manual.
10474
10475         * manual/math.texi: Fix typos in the manual.
10476
10477         * manual/syslog.texi: Fix typos in the manual.
10478
10479         * manual/terminal.texi: Fix typos in the manual.
10480
10481         * manual/socket.texi: Fix typos in the manual.
10482
10483         * manual/filesys.texi: Fix typos in the manual.
10484
10485         * manual/llio.texi: Fix typos in the manual.
10486
10487         * manual/stdio.text: Fix typos in the manual.
10488
10489 2016-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10490
10491         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Check N
10492         instead of K1.
10493
10494         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Rename K to
10495         SHIFT_QUADRANT and make it bool.
10496         (do_sincos_2): Likewise.
10497         (sloww): Likewise.
10498         (sloww1): Likewise.
10499         (__sin): Adjust calls to do_sincos_1 and do_sincos_2.
10500         (__cos): Likewise.
10501
10502 2016-10-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10503
10504         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
10505
10506 2016-10-04  Joseph Myers  <joseph@codesourcery.com>
10507
10508         * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH):
10509         Define to __WORDSIZE, not conditional on [LONG_MAX ==
10510         0x7fffffffL].
10511         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
10512
10513 2016-10-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10514
10515         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Replace
10516         inline by __inline__.
10517         (__ppc_yield, __ppc_mdoio, __ppc_mdoom, __ppc_set_ppr_med): Likewise.
10518         (__ppc_set_ppr_med_low, __ppc_set_ppr_low): Likewise.
10519         (__ppc_set_ppr_very_low, __ppc_set_ppr_med_high): Likewise.
10520         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Require
10521         sigset_t from signal.h.
10522         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: Include stddef.h,
10523         which is already required.
10524
10525 2016-10-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
10526
10527         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10528
10529 2016-10-03  Joseph Myers  <joseph@codesourcery.com>
10530
10531         * sysdeps/gnu/netinet/tcp.h (TCP_REPAIR_WINDOW): New macro.
10532         (struct tcp_repair_window): New type.
10533
10534 2016-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10535
10536         * libio/tst-memstream3.c: Include string.h.
10537
10538 2016-09-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10539
10540         [BZ #18241]
10541         [BZ #20181]
10542         * libio/Makefile (test): Add tst-memstream3 and tst-wmemstream3.
10543         * libio/memstream.c (_IO_mem_sync): Only append a null byte if
10544         write position is at the end the buffer.
10545         * libio/wmemstream.c (_IO_wmem_sync): Likewise.
10546         * libio/strops.c (_IO_str_switch_to_get_mode): New function.
10547         (_IO_str_seekoff): Set correct offset from negative displacement and
10548         set EINVAL for invalid ones.
10549         * libio/wstrops.c (enlarge_userbuf): Use correct function to calculate
10550         buffer length.
10551         (_IO_wstr_switch_to_get_mode): New function.
10552         (_IO_wstr_seekoff): Set correct offset from negative displacement and
10553         set EINVAL for invalid ones.
10554         * libio/tst-memstream3.c: New file.
10555         * libio/tst-wmemstream3.c: Likewise.
10556         * manual/examples/memstrm.c: Remove warning when priting size_t.
10557
10558 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
10559
10560         * sysdeps/ieee754/dbl-64/dla.h [__FP_FAST_FMA] (DLA_FMS): Define
10561         macro to use __builtin_fma.
10562         * sysdeps/x86_64/fpu/dla.h: Remove file.
10563
10564         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
10565         [__NO_LONG_DOUBLE_MATH] (__iscanonicall): Do not declare.
10566         [__NO_LONG_DOUBLE_MATH] (iscanonical): Define to evaluate to 1.
10567
10568 2016-09-30  Carlos O'Donell  <carlos@redhat.com>
10569
10570         [BZ #20292]
10571         * elf/Makefile (routines): Add dl-addr-obj.
10572         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests): Add
10573         tst-_dl_addr_inside_object.
10574         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests-pie): Likewise.
10575         [ifeq (yesyes,$(have-fpie)$(build-shared))]
10576         ($(objpfx)tst-_dl_addr_inside_object): Add $(objpfx)dl-addr-obj.os.
10577         [ifeq (yesyes,$(have-fpie)$(build-shared))]
10578         (CFLAGS-tst-_dl_addr_inside_object.c): Add $(PIE-ccflag).
10579         * elf/dl-addr.c: Remove _dl_addr_inside_object function.
10580         * elf/dl-open.c: Likewise.
10581         * elf/dl-addr-obj.c: New file.
10582         * elf/tst-_dl_addr_inside_object.c: New file.
10583
10584 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
10585
10586         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Include
10587         <bits/iscanonical.h>.
10588         * bits/iscanonical.h: New file.
10589         * math/s_iscanonicall.c: Likewise.
10590         * math/Versions (__iscanonicall): New libm symbol at version
10591         GLIBC_2.25.
10592         * math/libm-test.inc (iscanonical_test_data): New array.
10593         (iscanonical_test): New function.
10594         (main): Call iscanonical_test.
10595         * math/Makefile (headers): Add bits/iscanonical.h.
10596         (type-ldouble-routines): Add s_iscanonicall.
10597         * manual/arith.texi (Floating Point Classes): Document
10598         iscanonical.
10599         * manual/libm-err-tab.pl: Update comment on interfaces without
10600         ulps tabulated.
10601         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h: New file.
10602         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c: Likewise.
10603         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c:
10604         Likewise.
10605         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
10606         test-iscanonical-ldbl-128ibm.
10607         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h: New file.
10608         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c: Likewise.
10609         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Likewise.
10610         * sysdeps/ieee754/ldbl-96/Makefile: Likewise.
10611         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10612         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10613         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10615         Likewise.
10616         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10617         Likewise.
10618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10619         Likewise.
10620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10621         Likewise.
10622         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10623         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10624
10625 2016-09-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10626
10627         * string/bits/string3.h: Remove C++ style comments.
10628
10629 2016-09-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10630
10631         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign
10632         instead of ternary condition.
10633         (do_sincos_2): Likewise.
10634         (__sin): Likewise.
10635         (__cos): Likewise.
10636         (slow): Likewise.
10637         (sloww): Likewise.
10638         (sloww1): Likewise.
10639         (bsloww): Likewise.
10640         (bsloww1): Likewise.
10641
10642         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): use copysign
10643         instead of ternary condition.
10644         (do_sin_slow): Likewise.
10645         (do_sincos_1): Likewise.
10646         (do_sincos_2): Likewise.
10647         (__cos): Likewise.
10648         (sloww): Likewise.
10649         (sloww1): Likewise.
10650         (sloww2): Likewise.
10651         (bsloww): Likewise.
10652         (bsloww1): Likewise.
10653         (bsloww2): Likewise.
10654
10655         * sysdeps/ieee754/dbl-64/s_sin.c (slow1): Consolidate sign
10656         check from here...
10657         (slow2): ... and here...
10658         (__sin): ... to here.
10659
10660 2016-09-28  Joseph Myers  <joseph@codesourcery.com>
10661
10662         * math/math.h
10663         [__GLIBC_USE (IEC_60559_BFP_EXT) && !__SUPPORT_SNAN__] (iszero):
10664         Cast argument to its own type.
10665         * math/test-iszero-excess-precision.c: New file.
10666         * math/Makefile (tests): Add test-iszero-excess-precision.
10667         (CFLAGS-test-iszero-excess-precision.c): New variable.
10668
10669 2016-09-28  Rasmus Villemoes <rv@rasmusvillemoes.dk>
10670
10671         * sysdeps/unix/sysv/linux/spawni.c (posix_spawn_args): Remove pipe
10672         field, add err field.
10673         (__spawni_child): Report error through err member instead of pipe.
10674         (__spawnix): Likewise.
10675
10676 2016-09-28  Zack Weinberg  <zackw@panix.com>
10677
10678         * scripts/check-installed-headers.sh: Generalize treatment of
10679         sys/elf.h to all target architectures.
10680
10681         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Restore accidentally-
10682         deleted typedef ucontext_t.
10683
10684 2016-09-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10685
10686         * sysdeps/unix/sysdep.h (__INTERNAL_SYSCALL0): New macro.
10687         (__INTERNAL_SYSCALL1): Likewise.
10688         (__INTERNAL_SYSCALL2): Likewise.
10689         (__INTERNAL_SYSCALL3): Likewise.
10690         (__INTERNAL_SYSCALL4): Likewise.
10691         (__INTERNAL_SYSCALL5): Likewise.
10692         (__INTERNAL_SYSCALL6): Likewise.
10693         (__INTERNAL_SYSCALL7): Likewise.
10694         (__INTERNAL_SYSCALL_NARGS_X): Likewise.
10695         (__INTERNAL_SYSCALL_NARGS): Likewise.
10696         (__INTERNAL_SYSCALL_DISP): Likewise.
10697         (INTERNAL_SYSCALL_CALL): Likewise.
10698         (__SYSCALL0): Rename to __INLINE_SYSCALL0.
10699         (__SYSCALL1): Rename to __INLINE_SYSCALL1.
10700         (__SYSCALL2): Rename to __INLINE_SYSCALL2.
10701         (__SYSCALL3): Rename to __INLINE_SYSCALL3.
10702         (__SYSCALL4): Rename to __INLINE_SYSCALL4.
10703         (__SYSCALL5): Rename to __INLINE_SYSCALL5.
10704         (__SYSCALL6): Rename to __INLINE_SYSCALL6.
10705         (__SYSCALL7): Rename to __INLINE_SYSCALL7.
10706         (__SYSCALL_NARGS_X): Rename to __INLINE_SYSCALL_NARGS_X.
10707         (__SYSCALL_NARGS): Rename to __INLINE_SYSCALL_NARGS.
10708         (__SYSCALL_DISP): Rename to __INLINE_SYSCALL_DISP.
10709         (__SYSCALL_CALL): Rename to INLINE_SYSCALL_CALL.
10710         (SYSCALL_CANCEL): Replace __SYSCALL_CALL with INLINE_SYSCALL_CALL.
10711
10712 2016-09-23  Joseph Myers  <joseph@codesourcery.com>
10713
10714         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iszero): New
10715         macro.
10716         * math/libm-test.inc (iszero_test_data): New array.
10717         (iszero_test): New function.
10718         (main): Call iszero_test.
10719         * manual/arith.texi (Floating Point Classes): Document iszero.
10720         * manual/libm-err-tab.pl: Update comment on interfaces without
10721         ulps tabulated.
10722
10723 2016-09-23  Zack Weinberg  <zackw@panix.com>
10724
10725         * scripts/check-installed-headers.sh: New script.
10726         * Rules: In each directory that defines header files to be installed,
10727         run check-installed-headers.sh on them as a special test.
10728         * Makefile: Likewise for the headers installed at top level.
10729
10730         * include/aliases.h, include/alloca.h, include/argz.h
10731         * include/arpa/nameser.h, include/arpa/nameser_compat.h
10732         * include/elf.h, include/envz.h, include/err.h
10733         * include/execinfo.h, include/fpu_control.h, include/getopt.h
10734         * include/gshadow.h, include/ifaddrs.h, include/libintl.h
10735         * include/link.h, include/malloc.h, include/mcheck.h
10736         * include/mntent.h, include/netinet/ether.h
10737         * include/nss.h, include/obstack.h, include/printf.h
10738         * include/pty.h, include/resolv.h, include/rpc/auth.h
10739         * include/rpc/auth_des.h, include/rpc/auth_unix.h
10740         * include/rpc/clnt.h, include/rpc/des_crypt.h
10741         * include/rpc/key_prot.h, include/rpc/netdb.h
10742         * include/rpc/pmap_clnt.h, include/rpc/pmap_prot.h
10743         * include/rpc/pmap_rmt.h, include/rpc/rpc.h
10744         * include/rpc/rpc_msg.h, include/rpc/svc.h
10745         * include/rpc/svc_auth.h, include/rpc/xdr.h
10746         * include/rpcsvc/nis_callback.h, include/rpcsvc/nislib.h
10747         * include/rpcsvc/yp.h, include/rpcsvc/ypclnt.h
10748         * include/rpcsvc/ypupd.h, include/shadow.h
10749         * include/stdio_ext.h, include/sys/epoll.h
10750         * include/sys/file.h, include/sys/gmon.h, include/sys/ioctl.h
10751         * include/sys/prctl.h, include/sys/profil.h
10752         * include/sys/statfs.h, include/sys/sysctl.h
10753         * include/sys/sysinfo.h, include/ttyent.h, include/utmp.h
10754         * sysdeps/arm/nacl/include/bits/setjmp.h
10755         * sysdeps/mips/include/sys/asm.h
10756         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h
10757         * sysdeps/unix/sysv/linux/include/sys/timex.h
10758         * sysdeps/x86/fpu/include/bits/fenv.h:
10759         Add #ifndef _ISOMAC guard around internal declarations.
10760         Add multiple-inclusion guard if not already present.
10761
10762 2016-09-23  Zack Weinberg  <zackw@panix.com>
10763
10764         * sysdeps/generic/sys/ucontext.h
10765         * sysdeps/arm/sys/ucontext.h
10766         * sysdeps/i386/sys/ucontext.h
10767         * sysdeps/m68k/sys/ucontext.h
10768         * sysdeps/mips/sys/ucontext.h
10769         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
10770         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
10771         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h
10772         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
10773         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h
10774         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
10775         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
10776         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
10777         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
10778         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h
10779         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h
10780         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
10781         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h
10782         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h:
10783         Include both bits/sigcontext.h and bits/sigstack.h.
10784         Fix grammar error in comment, if present.
10785
10786         * bits/sigstack.h
10787         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
10788         * sysdeps/unix/sysv/linux/alpha/bits/sigstack.h
10789         * sysdeps/unix/sysv/linux/bits/sigstack.h
10790         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h
10791         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h
10792         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
10793         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h
10794         * bits/sigcontext.h
10795         * sysdeps/mach/hurd/i386/bits/sigcontext.h
10796         * sysdeps/unix/sysv/linux/bits/sigcontext.h
10797         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h
10798         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h:
10799         Add multiple inclusion guard.  Permit inclusion by sys/ucontext.h
10800         as well as signal.h, if this was not already allowed.  Request
10801         definition of size_t if necessary.  Minimize semantically-null
10802         differences across files.
10803
10804 2016-09-23  Zack Weinberg  <zackw@panix.com>
10805
10806         * time/time.h, bits/time.h, sysdeps/unix/sysv/linux/bits/time.h:
10807         Remove all logic conditional on __need macros.  Move all the
10808         conditionally defined types to their own headers...
10809         * time/bits/types/clock_t.h: Define clock_t here.
10810         * time/bits/types/clockid_t.h: Define clockid_t here.
10811         * time/bits/types/struct_itimerspec.h: Define struct itimerspec here.
10812         * time/bits/types/struct_timespec.h: Define struct timespec here.
10813         * time/bits/types/struct_timeval.h: Define struct timeval here.
10814         * time/bits/types/struct_tm.h: Define struct tm here.
10815         * time/bits/types/time_t.h: Define time_t here.
10816         * time/bits/types/timer_t.h: Define timer_t here.
10817         * time/Makefile: Install the new headers.
10818
10819         * bits/resource.h, io/fcntl.h, io/sys/poll.h, io/sys/stat.h
10820         * io/utime.h, misc/sys/select.h, posix/sched.h, posix/sys/times.h
10821         * posix/sys/types.h, resolv/netdb.h, rt/aio.h, rt/mqueue.h
10822         * signal/signal.h, pthread/semaphore.h, sysdeps/nptl/pthread.h
10823         * sysdeps/unix/sysv/linux/alpha/bits/resource.h
10824         * sysdeps/unix/sysv/linux/alpha/sys/acct.h
10825         * sysdeps/unix/sysv/linux/bits/resource.h
10826         * sysdeps/unix/sysv/linux/bits/timex.h
10827         * sysdeps/unix/sysv/linux/mips/bits/resource.h
10828         * sysdeps/unix/sysv/linux/net/ppp_defs.h
10829         * sysdeps/unix/sysv/linux/sparc/bits/resource.h
10830         * sysdeps/unix/sysv/linux/sys/acct.h
10831         * sysdeps/unix/sysv/linux/sys/timerfd.h
10832         * sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h
10833         * time/sys/time.h, time/sys/timeb.h
10834         Use the new bits/types headers.
10835
10836         * include/time.h: Remove __need logic.
10837         * include/bits/time.h
10838         * include/bits/types/clock_t.h, include/bits/types/clockid_t.h
10839         * include/bits/types/time_t.h, include/bits/types/timer_t.h
10840         * include/bits/types/struct_itimerspec.h
10841         * include/bits/types/struct_timespec.h
10842         * include/bits/types/struct_timeval.h
10843         * include/bits/types/struct_tm.h:
10844         New wrapper headers.
10845
10846 2016-09-23  Zack Weinberg  <zackw@panix.com>
10847
10848         * sysdeps/mach/hurd/net/if_ppp.h
10849         * sysdeps/unix/sysv/linux/net/if_ppp.h:
10850         Only define struct ifpppstatsreq and struct ifpppcstatsreq
10851         if __USE_MISC is defined, to ensure struct ifreq is declared.
10852
10853         * inet/netinet/ether.h: Condition all function prototypes
10854         on __USE_MISC, to ensure struct ether_addr is declared.
10855
10856         * socket/bits/types/struct_osockaddr.h: New header.
10857         * include/bits/types/struct_osockaddr.h: New wrapper.
10858         * socket/Makefile: Install the new header.
10859         * socket/sys/socket.h, inet/protocols/talkd.h:
10860         Refer to bits/types/struct_osockaddr.h for the definition of
10861         struct osockaddr.
10862
10863 2016-09-23  Zack Weinberg  <zackw@panix.com>
10864
10865         * bits/in.h, gmon/sys/gmon.h, inet/netinet/igmp.h
10866         * inet/protocols/routed.h, inet/protocols/talkd.h
10867         * inet/protocols/timed.h, io/fts.h, nptl_db/thread_db.h
10868         * resolv/arpa/nameser.h, resolv/resolv.h, sunrpc/rpc/rpc_des.h
10869         * sysdeps/generic/netinet/if_ether.h
10870         * sysdeps/generic/netinet/in_systm.h
10871         * sysdeps/generic/netinet/ip.h, sysdeps/generic/netinet/tcp.h
10872         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
10873         * sysdeps/gnu/netinet/udp.h, sysdeps/mach/hurd/net/ethernet.h
10874         * sysdeps/mach/hurd/net/if_arp.h
10875         * sysdeps/mach/hurd/net/if_ppp.h
10876         * sysdeps/mach/hurd/net/route.h, sysdeps/mach/sys/reboot.h
10877         * sysdeps/unix/sysv/linux/bits/in.h
10878         * sysdeps/unix/sysv/linux/net/ethernet.h
10879         * sysdeps/unix/sysv/linux/net/if_arp.h
10880         * sysdeps/unix/sysv/linux/net/if_ppp.h
10881         * sysdeps/unix/sysv/linux/net/if_shaper.h
10882         * sysdeps/unix/sysv/linux/net/route.h
10883         * sysdeps/unix/sysv/linux/netinet/if_ether.h
10884         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
10885         * sysdeps/unix/sysv/linux/netinet/if_tr.h
10886         * sysdeps/unix/sysv/linux/netipx/ipx.h
10887         * sysdeps/unix/sysv/linux/sys/acct.h
10888         * include/arpa/nameser.h, include/resolv.h:
10889         Change all uses of u_char to unsigned char,
10890         u_short and ushort to unsigned short, u_int and uint to unsigned int,
10891         u_long and ulong to unsigned long, u_int8_t to uint8_t,
10892         u_int16_t to uint16_t, u_int32_t to uint32_t, quad_t to int64_t,
10893         and u_int64_t and u_quad_t to uint64_t.
10894
10895         * mach/sys/reboot.h: Remove two casts of integer literals
10896         to the types they already have.
10897
10898         * bits/in.h: Correct error in description of IP_MULTICAST_LOOP.
10899         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
10900         * sysdeps/unix/sysv/linux/netinet/if_ether.h: Change a comment
10901         from referring to 'unsigned char' to 'uint8_t' for consistency with
10902         the macro definition below.
10903
10904         * gmon/sys/gmon.h, inet/netinet/igmp.h, inet/protocols/talkd.h
10905         * io/fts.h, resolv/arpa/nameser.h, resolv/resolv.h
10906         * sunrpc/rpc/rpc_des.h, sysdeps/generic/netinet/ip.h
10907         * sysdeps/gnu/netinet/tcp.h, sysdeps/gnu/netinet/udp.h
10908         * sysdeps/mach/hurd/net/if_ppp.h, sysdeps/unix/sysv/linux/net/if_ppp.h
10909         * sysdeps/unix/sysv/linux/sys/acct.h
10910         * include/arpa/nameser.h, include/resolv.h:
10911         Fix indentation disrupted by mechanical edits.
10912
10913         * inet/protocols/talkd.h, resolv/arpa/nameser.h
10914         * sysdeps/generic/netinet/in_systm.h
10915         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
10916         * sysdeps/gnu/netinet/udp.h
10917         * sysdeps/unix/sysv/linux/net/ethernet.h
10918         * sysdeps/unix/sysv/linux/net/if_arp.h
10919         * sysdeps/unix/sysv/linux/net/if_ppp.h
10920         * sysdeps/unix/sysv/linux/net/if_shaper.h
10921         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
10922         * sysdeps/unix/sysv/linux/netinet/if_tr.h
10923         * sysdeps/unix/sysv/linux/netipx/ipx.h
10924         * sysdeps/unix/sysv/linux/sys/acct.h
10925         Include stdint.h for uintNN_t definitions.
10926         Don't include sys/cdefs.h, features.h, or asm/types.h directly.
10927
10928 2016-09-23  Zack Weinberg  <zackw@panix.com>
10929
10930         * rpcsvc/nislib.h: Include rpcsvc/nis.h.
10931         * sysdeps/unix/sysv/linux/netrose/rose.h:
10932         Include sys/socket.h and netax25/ax25.h.
10933
10934         * inet/netinet/icmp6.h, inet/netinet/ip6.h
10935         * resolv/arpa/nameser_compat.h:
10936         Use __BYTE_ORDER etc. instead of BYTE_ORDER etc.
10937
10938         * sysdeps/unix/sysv/linux/sys/quota.h:
10939         Use __caddr_t instead of caddr_t.
10940         * sysdeps/unix/sysv/linux/sys/timerfd.h:
10941         Use __clockid_t instead of clockid_t.
10942
10943         * sysvipc/sys/ipc.h: Remove unnecessary #warning.
10944
10945         * argp/argp.h: Check whether _LIBC is defined before expanding it.
10946         * posix/glob.h: Check whether __USE_XOPEN2K8 is defined instead of
10947         expanding it.
10948
10949         * misc/sys/cdefs.h: Tidy up conditional nest defining __flexarr.
10950         Define __glibc_c99_flexarr_available to 1 when the compiler
10951         supports C99-compatible flexible array members, 0 otherwise.
10952         * sysdeps/unix/sysv/linux/bits/socket.h
10953         * sysdeps/mach/hurd/bits/socket.h
10954         * bits/socket.h: Use __glibc_c99_flexarr_available in
10955         definitions of struct cmsghdr and CMSG_DATA.
10956
10957 2016-09-23  Florian Weimer  <fweimer@redhat.com>
10958
10959         * manual/nss.texi (NSS Modules Interface): Adjust function return
10960         type to enum nss_status.  Document errnop argument.  Clarify
10961         h_errnop semantics.  Fix cross-reference formatting.
10962         (NSS Module Function Internals): Mention that *errnop needs to be
10963         set on failure, but not to zero.
10964
10965 2016-09-23  Florian Weimer  <fweimer@redhat.com>
10966
10967         * io/tst-open-tmpfile.c (wrap_open64, wrap_openat64)
10968         (get_random_name): New functions.
10969         (check_wrapper_flags_mode): Use linkat to give the new file a name
10970         determined by get_random_name.
10971         (do_test): Add calls to test open64 and openat64.
10972
10973 2016-09-23  Florian Weimer  <fweimer@redhat.com>
10974
10975         * test-skeleton.c: Remove #include <stdarg.h>.
10976
10977 2016-09-21  Alexandre Oliva <aoliva@redhat.com>
10978
10979         [BZ #19826]
10980         * elf/dl-tls.c (_dl_allocate_tls_init): Restore DTV early
10981         initialization of static TLS entries.
10982         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Likewise.
10983         * nptl/allocatestack.c (init_one_static_tls): Likewise.
10984
10985 2016-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10986
10987         * hurd/hurdmalloc.c (malloc_fork_prepare): Rename to
10988         _hurd_malloc_fork_prepare.
10989         (malloc_fork_parent): Rename to _hurd_malloc_fork_parent.
10990         (malloc_fork_child): Rename to _hurd_malloc_fork_child.
10991         (_hurd_fork_prepare_hook): Drop malloc_fork_prepare.
10992         (_hurd_fork_parent_hook): Drop malloc_fork_parent.
10993         (_hurd_fork_child_hook): Drop malloc_fork_child.
10994         * hurd/hurdmalloc.h (_hurd_malloc_fork_prepare,
10995         _hurd_malloc_fork_parent, _hurd_malloc_fork_child): Add declarations.
10996         * sysdeps/mach/hurd/fork.c (__fork): Call __malloc_fork_lock_parent
10997         after locking locks (notably hurd_dtable_lock). Call
10998         _hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
10999         before __malloc_fork_unlock_parent and _hurd_malloc_fork_child before
11000         __malloc_fork_unlock_child.
11001         * sysdeps/mach/i386/syscall.S (syscall): Push back syscall number.
11002
11003 2016-09-21  James Greenhalgh  <james.greenhalgh@arm.com>
11004
11005         * soft-fp/extendhftf2.c: New.
11006         * soft-fp/fixhfti.c: Likewise.
11007         * soft-fp/fixunshfti.c: Likewise.
11008         * soft-fp/floattihf.c: Likewise.
11009         * soft-fp/floatuntihf.c: Likewise.
11010         * soft-fp/half.h: Likewise.
11011         * soft-fp/trunctfhf2.c: Likewise.
11012
11013 2016-09-21  Joseph Myers  <joseph@codesourcery.com>
11014
11015         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (issubnormal): New
11016         macro.
11017         * math/libm-test.inc (issubnormal_test_data): New array.
11018         (issubnormal_test): New function.
11019         * manual/arith.texi (Floating Point Classes): Document
11020         issubnormal.
11021         * manual/libm-err-tab.pl: Update comment on interfaces without
11022         ulps tabulated.
11023
11024         * sysdeps/generic/stdint.h: Define
11025         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
11026         <bits/libc-header-start.h> instead of including <features.h>.
11027         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT8_WIDTH): New macro.
11028         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT8_WIDTH): Likewise.
11029         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT16_WIDTH): Likewise.
11030         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT16_WIDTH): Likewise.
11031         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT32_WIDTH): Likewise.
11032         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT32_WIDTH): Likewise.
11033         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT64_WIDTH): Likewise.
11034         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT64_WIDTH): Likewise.
11035         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST8_WIDTH): Likewise.
11036         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST8_WIDTH): Likewise.
11037         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST16_WIDTH): Likewise.
11038         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST16_WIDTH): Likewise.
11039         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST32_WIDTH): Likewise.
11040         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST32_WIDTH): Likewise.
11041         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST64_WIDTH): Likewise.
11042         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST64_WIDTH): Likewise.
11043         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST8_WIDTH): Likewise.
11044         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST8_WIDTH): Likewise.
11045         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST16_WIDTH): Likewise.
11046         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST16_WIDTH): Likewise.
11047         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST32_WIDTH): Likewise.
11048         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST32_WIDTH): Likewise.
11049         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST64_WIDTH): Likewise.
11050         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST64_WIDTH): Likewise.
11051         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTPTR_WIDTH): Likewise.
11052         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTPTR_WIDTH): Likewise.
11053         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTMAX_WIDTH): Likewise.
11054         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTMAX_WIDTH): Likewise.
11055         [__GLIBC_USE (IEC_60559_BFP_EXT)] (PTRDIFF_WIDTH): Likewise.
11056         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIG_ATOMIC_WIDTH): Likewise.
11057         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIZE_WIDTH): Likewise.
11058         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WCHAR_WIDTH): Likewise.
11059         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WINT_WIDTH): Likewise.
11060         * manual/arith.texi (Integers): Document these macros for types
11061         specified by width properties.
11062         * manual/lang.texi (Width of Type): Document these macros for
11063         other standard typedefs.
11064         * stdlib/tst-width-stdint.c: New file.
11065         * stdlib/Makefile (tests): Add tst-width-stdint.
11066
11067 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11068
11069         [BZ #20016]
11070         * resolv/res_send.c (__libc_res_nsend): Remove USE_HOOK code.
11071         * resolv/res_data.c (res_send_setqhook, res_send_setrhook):
11072         Move ...
11073         * resolv/compat-hooks.c (res_send_setqhook, res_send_setrhook):
11074         ... here, as compatibility symbols in a new file.
11075         * resolv/Makefile (libresolv-routines): Add compat-hooks.
11076         * resolv/res_init.c (__res_vinit): Adjust member names.
11077         * include/resolv.h (res_send_setqhook, res_send_setrhook): Remove.
11078         * resolv/resolv.h (res_sendhookact, res_send_qhook)
11079         (res_send_rhook): Remove.
11080         (struct __res_state): Rename qhook, rhook members.
11081
11082 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11083
11084         malloc: Use __libc_lock wrappers.
11085         * malloc/arena.c (list_lock, free_list_lock): Define using
11086         __libc_lock_define_initialized.
11087         (arena_lock): Adjust formatting.
11088         * malloc/malloc.c (struct malloc_state): Define mutex using
11089         __libc_lock_define.
11090         * sysdeps/generic/malloc-machine.h (mutex_t, mutex_init)
11091         (mutex_lock, mutex_trylock, mutex_unlock): Remove.
11092         * sysdeps/mach/hurd/malloc-machine.h (mutex_t, mutex_lock)
11093         (mutex_unlock, mutex_trylock): Remove.
11094         (__pthread_initialize): Remove unused macro.
11095         * sysdeps/nptl/malloc-machine.h (mutex_t, mutex_lock)
11096         (mutex_unlock, mutex_trylock): Remove.
11097
11098 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11099
11100         [BZ #20592]
11101         Remove RR type classification macros.
11102         * resolv/arpa/nameser.h (ns_t_qt_p, ns_t_mrr_p, ns_t_rr_p)
11103         (ns_t_udp_p, ns_t_xfr_p): Remove.
11104
11105 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11106
11107         Remove misleading version information.
11108         * resolv/arpa/nameser.h (__NAMESER): Remove.
11109         * resolv/arpa/nameser_compat.h (__BIND): Remove.
11110
11111 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11112
11113         Remove the always-defined BIND_4_COMPAT macro.
11114         * resolv/arpa/nameser.h: Unconditionally include
11115         <arpa/nameser_compat.h>.
11116         (BIND_4_COMPAT): Remove.
11117         * resolv/res_comp.c: Do not check BIND_4_COMPAT.
11118
11119 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11120
11121         [BZ #20591]
11122         Remove obsolete DNSSEC support.
11123         * resolv/arpa/nameser.h (ns_key_types, NS_KEY_*, NS_ALG_*)
11124         (NS_MD5_RSA_*, NS_DSA_*, NS_NXT_*, ns_sign, ns_sign2, ns_sign_tcp)
11125         (ns_sign_tcp2, ns_sign_tcp_init, ns_find_tsig, ns_verify)
11126         (ns_verify_tcp, ns_verify_tcp_init): Remove.
11127         (ns_cert_types): Add comment.
11128         * resolv/ns_print.c (ns_sprintrrf): Do not handle DNSSEC records
11129         separately.
11130         (KEY_RSA, KEY_HMAC_MD5, dst_s_id_calc, dst_s_get_int16)
11131         (dst_s_dns_key_id): Remove.
11132         * resolv/res_debug.c (__p_key_syms, __p_cert_syms): Remove unused
11133         variables.
11134
11135 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11136
11137         [BZ #20524]
11138         * manual/string.texi (String/Array Comparison): Clarify the
11139         strverscmp behavior.
11140
11141 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11142
11143         * test-skeleton.c (xasprintf): Add function.
11144         * io/tst-open-tmpfile.c: New test.
11145         * io/Makefile (tests): Add it.
11146
11147 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11148
11149         Avoid running $(CXX) during build to obtain header file paths.
11150         * configure.ac (CXX_SYSINCLUDES, CXX_CMATH_HEADER): Set.
11151         * config.make.in (c++-cstdlib-header, c++-cmath-header): Define.
11152         * Makerules (cstdlib, cmath): Remove variables.  Use
11153         $(c++-cstdlib-header), $(c++-cmath-header) instead.
11154         * configure: Regenerate.
11155
11156 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11157
11158         * Makeconfig (all-object-suffixes): Include .op only if
11159         $(build-profile).
11160
11161 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11162
11163         * elf/sln.c: Remove HAVE_CONFIG_H, S_ISDIR, S_ISLNK preprocessor
11164         conditionals.  Do not define PATH_MAX.
11165
11166 2016-09-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11167
11168         * posix/Makefile (tests): Add tst-spawn3.
11169         * posix/tst-spawn3.c: New file.
11170         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Close file descriptor
11171         if it is already opened for open action.
11172
11173         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Correctly block and unblock
11174         all signals when executing the clone vfork child.
11175         (SIGALL_SET): Remove macro.
11176
11177         * nptl/Makefile (tests): Add tst-exec5.
11178         * nptl/tst-exec5.c: New file.
11179         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Correctly enable and disable
11180         asynchronous cancellation.
11181
11182 2016-09-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11183
11184         * hurd/exc2signal.c: #include <hurd/signal.h>
11185         (_hurd_exception2signal): Replace 'exception', 'code', 'subcode',
11186         'sigcode', 'error' parameters with 'detail' parameter.  Fix code
11187         accordingly.
11188         * mach/mach_error.c (mach_error): Fix old-style function definition.
11189         * mach/errstring.c (mach_error_type, mach_error_string): Likewise.
11190
11191 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11192
11193         * math/Makefile (libm-calls): Remove s_nanF.
11194         (gen-libm-calls): Add s_nanF.
11195
11196         * math/s_nan.c: Refactor into ...
11197         * math/s_nan_template.c: New file.
11198
11199         * math/s_nanf.c: Removed.
11200         * math/s_nanl.c: Removed.
11201         * sysdeps/ieee754/ldbl-opt/s_nan.c: Removed.
11202         * sysdeps/ieee754/ldbl-opt/s_nanl.c: Removed.
11203
11204         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
11205         (LDOUBLE_nanl_libm_version): New macro.
11206
11207         * sysdeps/generic/math-type-macros-double.h:
11208         (M_STRTO_NAN): New macro.
11209         * sysdeps/generic/math-type-macros-float.h: Likewise.
11210         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
11211
11212         * sysdeps/generic/math-type-macros.h: Document
11213         M_STRTO_NAN.
11214
11215 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11216
11217         * math/s_nanf.c: Remove __nanf undef.
11218         * math/s_nan.c: Remove __nan undef.
11219         * math/s_nanl.c: Remove __nanl undef.
11220
11221         * sysdeps/generic/math_private.h (__nan): Remove macro
11222         override.
11223         (__nanf): Likewise.
11224         (__nanl): Likewise.
11225
11226 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11227
11228         * math/Makefile (gen-all-calls): New variable.
11229         (generated): Replace gen-libm-calls with gen-all-calls.
11230         (gen-libm-templates.stmp): Likewise.  Also, ensure
11231         the output directory exists or is created and add
11232         dependency on the Makefile.
11233         (calls): Move s_ldexpF into gen-calls.
11234         (gen-calls): New variable.
11235
11236         * math/s_ldexpf.c: Removed.
11237         * math/s_ldexpl.c: Removed.
11238         * math/s_ldexp.c: Refactored into ...
11239         * math/s_ldexp_template.c: New file.
11240
11241         * sysdeps/generic/math-type-macros-double.h: Remove
11242         redundant fall-through definition of declare_mgen_alias.
11243         (declare_mgen_alias_2): New macro.
11244
11245         * sysdeps/generc/math-type-macros.h (declare_mgen_alias_2):
11246         New macro for function aliased to two exported symbols.
11247
11248         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Update to use
11249         new template file.
11250         sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
11251
11252 2016-09-20  Florian Weimer  <fweimer@redhat.com>
11253
11254         * Makeconfig (all-object-suffixes): Remove .og.
11255         * Makerules (elide-routines.og): Remove.
11256         * sysdeps/i386/i686/Makefile (CFLAGS-.og, ASFLAGS-.og): Remove.
11257         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.og): Remove.
11258         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.op): Remove.
11259
11260 2016-09-20  Florian Weimer  <fweimer@redhat.com>
11261
11262         * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for
11263         .os objects.
11264
11265 2016-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11266
11267         [BZ #20615]
11268         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Replace
11269         fpu directory by non-fpu.
11270         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Remove dependency
11271         on non-fpu directory from a fpu directory.
11272
11273 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
11274
11275         * include/limits.h: Define
11276         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
11277         <bits/libc-header-start.h> instead of including <features.h>.
11278         [__GLIBC_USE (IEC_60559_BFP_EXT)] (CHAR_WIDTH): New macro.
11279         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SCHAR_WIDTH): Likewise.
11280         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UCHAR_WIDTH): Likewise.
11281         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SHRT_WIDTH): Likewise.
11282         [__GLIBC_USE (IEC_60559_BFP_EXT)] (USHRT_WIDTH): Likewise.
11283         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_WIDTH): Likewise.
11284         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_WIDTH): Likewise.
11285         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH): Likewise.
11286         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
11287         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LLONG_WIDTH): Likewise.
11288         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULLONG_WIDTH): Likewise.
11289         * manual/lang.texi (Width of Type): Document these macros.
11290         * stdlib/tst-width.c: New file.
11291         * stdlib/Makefile (tests): Add tst-width.
11292
11293 2016-09-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11294
11295         * intl/dcigettext.c (PATH_MAX): Call __pathconf instead of pathconf.
11296         * sysdeps/posix/dup.c (__dup): Call __fcntl instead of fcntl.
11297
11298 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11299
11300         * nptl/sem_init.c (__new_sem_init): Init pad value to 0.
11301         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
11302         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
11303
11304 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11305
11306         [BZ #18243]
11307         * rt/Makefile (test): Add tst-shm-cancel.
11308         * rt/tst-shm-cancel.c: New file.
11309         * sysdeps/posix/shm_open.c: Disable asynchronous cancellation.
11310
11311         [BZ #18243]
11312         * nptl/pthreadP.h (__pthread_testcancel): Add prototype and hidden_proto.
11313         * nptl/pthread_testcancel.c (pthread_cancel): Add internal aliais
11314         definition.
11315         * nptl/sem_timedwait.c (sem_timedwait): Add cancellation check for
11316         uncontended case.
11317         * nptl/sem_wait.c (__new_sem_wait): Likewise.
11318         * nptl/tst-cancel12.c (cleanup): Remove wrong cancellation point.
11319         (tf): Fix check for uncontended case.
11320         (do_test): Likewise.
11321         * nptl/tst-cancel13.c (cleanup): Remove wrong cancellation point.
11322         (tf): Fix check for uncontended case.
11323         (do_test): Likewise.
11324         * nptl/tst-cancel14.c (cleanup): Remove wrong cancellation point.
11325         (tf): Fix check for uncontended case.
11326         (do_test): Likewise.
11327         * nptl/tst-cancel15.c (cleanup): Remove wrong cancellation point.
11328         (tf): Fix check for uncontended case.
11329         (do_test): Likewise.
11330
11331         * sysdeps/sparc/sparc32/sem_wait.c: Remove file.
11332         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Likewise.
11333
11334         [BZ #15765]
11335         * nptl/Makefile (tests): Add tst-sem16.
11336         * nptl/tst-sem16.c: New file.
11337         * nptl/sem_open.c (sem_open): Disable asynchronous cancellation.
11338
11339         * nptl/sem_open.c (sem_open): Init pad value to 0.
11340         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
11341         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
11342
11343 2016-09-15  Florian Weimer  <fweimer@redhat.com>
11344
11345         [BZ #20611]
11346         * inet/Makefile (routines): Add inet6_scopeid_pton.
11347         (tests): Add tst-inet6_scopeid_pton.
11348         * inet/inet6_scopeid_pton.c: New file.
11349         * inet/net-internal.h: Likewise.
11350         * inet/tst-inet6_scopeid_pton.c: New test.
11351         * inet/Versions (GLIBC_PRIVATE): Add __inet6_scopeid_pton.
11352         * resolv/res_init.c (__res_vinit): Use __inet6_scopeid_pton.
11353         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
11354
11355 2016-09-14  Florian Weimer  <fweimer@redhat.com>
11356
11357         Remove support for compiling wrappers with PTW.
11358         * sysdeps/nptl/Makeconfig: Drop ptw- support.
11359         * nptl/Makefile (pthread-compat-wrappers): Define.
11360         (libpthread-routines): Use pthread-compat-wrappers.
11361         * sysdeps/unix/sysv/linux/alpha/Makefile
11362         (libpthread-routines, libpthread-shared-only-routines): Remove
11363         ptw- prefix.
11364         * sysdeps/s390/nptl/Makefile
11365         (libpthread-routines, libpthread-shared-only-routines): Likewise.
11366         * sysdeps/ia64/nptl/Makefile
11367         (libpthread-routines, libpthread-shared-only-routines): Likewise.
11368         * sysdeps/nacl/Makefile (libpthread-routines): Use
11369         pthread-compat-wrappers to filter the routines list instead of the
11370         ptw- prefix.
11371
11372 2016-09-13  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11373
11374         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Wrap long double literals
11375         with L() and remove explicit suffix, convert real literals
11376         which can be equivalentally substituted with integers, and
11377         transform -L(x) to L(-x).
11378
11379         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11380         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11381         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11382         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11383         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11384         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
11385         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11386         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11387         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11388         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11389         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11390         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11391         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11392         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11393         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11394         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11395         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11396         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11397         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11398         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11399         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11400         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11401         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11402         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11403         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
11404         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11405         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11406         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11407         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11408         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11409         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11410         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11411         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11412         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11413         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11414         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11415         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11416         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11417         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11418         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11419         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11420         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11421         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11422         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11423         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11424         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11425         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11426         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
11427         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
11428         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
11429
11430 2016-09-13  Florian Weimer  <fweimer@redhat.com>
11431
11432         * resolv/res_init.c: Remove _LIBC_REENTRANT; it is always defined.
11433
11434 2016-09-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11435
11436         * malloc/Makefile (tests): Remove individual static test names
11437         and just add all of tests-static.
11438
11439         * csu/libc-start.c (__libc_csu_irel): Remove declaration.
11440
11441 2016-09-07  Joseph Myers  <joseph@codesourcery.com>
11442
11443         * sysdeps/powerpc/powerpc32/e500/nofpu/fetestexceptflag.c: New
11444         file.
11445
11446         * sysdeps/sparc/fpu/fegetmode.c: New file.
11447         * sysdeps/sparc/fpu/fesetmode.c: Likewise.
11448
11449         * sysdeps/sh/sh4/fpu/fegetmode.c: New file.
11450         * sysdeps/sh/sh4/fpu/fesetmode.c: Likewise.
11451
11452         * sysdeps/s390/fpu/fegetmode.c: New file.
11453         * sysdeps/s390/fpu/fesetmode.c: Likewise.
11454
11455         * sysdeps/powerpc/fpu/fegetmode.c: New file.
11456         * sysdeps/powerpc/fpu/fesetmode.c: Likewise.
11457         * sysdeps/powerpc/nofpu/fegetmode.c: Likewise.
11458         * sysdeps/powerpc/nofpu/fesetmode.c: Likewise.
11459         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetmode.c: Likewise.
11460         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetmode.c: Likewise.
11461
11462         * sysdeps/mips/fpu/fegetmode.c: New file.
11463         * sysdeps/mips/fpu/fesetmode.c: Likewise.
11464
11465         * sysdeps/m68k/fpu/fegetmode.c: New file.
11466         * sysdeps/m69k/fpu/fesetmode.c: Likewise.
11467
11468         * sysdeps/ia64/fpu/fegetmode.c: New file.
11469         * sysdeps/ia64/fpu/fesetmode.c: Likewise.
11470
11471         * sysdeps/hppa/fpu/fegetmode.c: New file.
11472         * sysdeps/hppa/fpu/fesetmode.c: Likewise.
11473
11474         * sysdeps/arm/fegetmode.c: New file.
11475         * sysdeps/arm/fesetmode.c: Likewise.
11476
11477         * sysdeps/alpha/fpu/fegetmode.c: New file.
11478         * sysdeps/alpha/fpu/fesetmode.c: Likewise.
11479
11480         * sysdeps/aarch64/fpu/fegetmode.c: New file.
11481         * sysdeps/aarch64/fpu/fesetmode.c: Likewise.
11482
11483         * math/fegetmode.c: New file.
11484         * math/fesetmode.c: Likewise.
11485         * sysdeps/i386/fpu/fegetmode.c: Likewise.
11486         * sysdeps/i386/fpu/fesetmode.c: Likewise.
11487         * sysdeps/x86_64/fpu/fegetmode.c: Likewise.
11488         * sysdeps/x86_64/fpu/fesetmode.c: Likewise.
11489         * math/fenv.h: Update comment on inclusion of <bits/fenv.h>.
11490         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fegetmode): New function
11491         declaration.
11492         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetmode): Likewise.
11493         * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (femode_t): New
11494         typedef.
11495         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11496         * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11497         (femode_t): New typedef.
11498         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11499         * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11500         (femode_t): New typedef.
11501         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11502         * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11503         (femode_t): New typedef.
11504         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11505         * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11506         (femode_t): New typedef.
11507         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11508         * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11509         (femode_t): New typedef.
11510         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11511         * sysdeps/m68k/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11512         (femode_t): New typedef.
11513         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11514         * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11515         (femode_t): New typedef.
11516         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11517         * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11518         (femode_t): New typedef.
11519         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11520         * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11521         (femode_t): New typedef.
11522         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11523         * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11524         (femode_t): New typedef.
11525         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__fe_dfl_mode): New variable
11526         declaration.
11527         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11528         * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11529         (femode_t): New typedef.
11530         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11531         * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11532         (femode_t): New typedef.
11533         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11534         * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11535         (femode_t): New typedef.
11536         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11537         * sysdeps/tile/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11538         (femode_t): New typedef.
11539         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11540         * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11541         (femode_t): New typedef.
11542         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11543         * manual/arith.texi (FE_DFL_MODE): Document macro.
11544         (fegetmode): Document function.
11545         (fesetmode): Likewise.
11546         * math/Versions (fegetmode): New libm symbol at version
11547         GLIBC_2.25.
11548         (fesetmode): Likewise.
11549         * math/Makefile (libm-support): Add fegetmode and fesetmode.
11550         (tests): Add test-femode and test-femode-traps.
11551         * math/test-femode-traps.c: New file.
11552         * math/test-femode.c: Likewise.
11553         * sysdeps/powerpc/fpu/fenv_const.c (__fe_dfl_mode): Declare as
11554         alias for __fe_dfl_env.
11555         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_dfl_mode): Likewise.
11556         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c
11557         (__fe_dfl_mode): Likewise.
11558         * sysdeps/powerpc/Versions (__fe_dfl_mode): New libm symbol at
11559         version GLIBC_2.25.
11560         * sysdeps/nacl/libm.abilist: Update.
11561         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11562         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11563         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11564         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11565         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11566         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11567         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11568         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11569         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11570         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11571         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11572         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
11574         Likewise.
11575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11576         Likewise.
11577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
11578         Likewise.
11579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
11580         Likewise.
11581         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11582         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11583         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11584         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11585         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11586         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
11587         Likewise.
11588         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
11589         Likewise.
11590         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
11591         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11592         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11593
11594 2016-09-06  H.J. Lu  <hongjiu.lu@intel.com>
11595
11596         [BZ #20495]
11597         [BZ #20508]
11598         * sysdeps/x86/cpu-features.c (init_cpu_features): For Intel
11599         processors, set Use_dl_runtime_resolve_slow and set
11600         Use_dl_runtime_resolve_opt if XGETBV suports ECX == 1.
11601         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
11602         New.
11603         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
11604         (index_arch_Use_dl_runtime_resolve_opt): Likewise.
11605         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
11606         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Use
11607         _dl_runtime_resolve_avx512_opt and _dl_runtime_resolve_avx_opt
11608         if Use_dl_runtime_resolve_opt is set.  Use
11609         _dl_runtime_resolve_slow if Use_dl_runtime_resolve_slow is set.
11610         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features.h>.
11611         (_dl_runtime_resolve_opt): New.  Defined for AVX and AVX512.
11612         (_dl_runtime_resolve): Add one for _dl_runtime_resolve_sse_vex.
11613         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx_slow):
11614         New.
11615         (_dl_runtime_resolve_opt): Likewise.
11616         (_dl_runtime_profile): Define only if _dl_runtime_profile is
11617         defined.
11618
11619 2016-09-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
11620
11621         * sysdeps/unix/sysv/linux/s390/localplt.data: Mark ld.so:
11622         __libc_memalign with "+ RELA R_390_GLOB_DAT".
11623
11624 2016-09-06  Florian Weimer  <fweimer@redhat.com>
11625
11626         Convert malloc to __libc_lock.  Automated part, using this Perl
11627         s/// command:
11628           s/(?:\(void\)\s*)?mutex_((?:|un|try)lock|init)
11629             \s*\(\&([^\)]+)\)/__libc_lock_$1\ ($2)/gx;
11630         * malloc/malloc.c, malloc/arena.c, malloc/hooks.c: Perform
11631         conversion.
11632
11633 2016-09-05  Aurelien Jarno  <aurelien@aurel32.net>
11634
11635         * conform/Makefile (conformtest-header-tests): Pass -I. to $(PERL).
11636         (linknamespace-symlists-tests): Likewise.
11637         (linknamespace-header-tests): Likewise.
11638
11639 2016-09-03  Aurelien Jarno  <aurelien@aurel32.net>
11640
11641         [BZ #19810]
11642         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag later.
11643         * elf/tst-noload.c: New test case.
11644         * elf/Makefile (tests): Add tst-noload.
11645
11646 2016-09-02  Roland McGrath  <roland@hack.frob.com>
11647
11648         * sysdeps/nacl/dup.c: Add libc_hidden_def.
11649
11650         * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's
11651         not any more.
11652
11653         * sysdeps/nacl/clock.c (clock): nacl_abi_clock_t -> nacl_irt_clock_t
11654
11655 2016-09-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11656
11657         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Mark as inline.
11658         (do_cos_slow): Likewise.
11659         (do_sin): Likewise.
11660         (do_sin_slow): Likewise.
11661         (slow): Likewise.
11662         (slow1): Likewise.
11663         (slow2): Likewise.
11664         (sloww): Likewise.
11665         (sloww1): Likewise.
11666         (sloww2): Likewise.
11667         (bsloww): Likewise.
11668         (bsloww1): Likewise.
11669         (bsloww2): Likewise.
11670         (cslow2): Likewise.
11671
11672         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use do_sin.
11673
11674         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Accept X and DX as input
11675         arguments.  Consolidate input partitioning from callers here.
11676         (do_cos_slow): Likewise.
11677         (do_sin): Likewise.
11678         (do_sin_slow): Likewise.
11679         (do_sincos_1): Remove the no longer necessary input partitioning.
11680         (do_sincos_2): Likewise.
11681         (__sin): Likewise.
11682         (__cos): Likewise.
11683         (slow1): Likewise.
11684         (slow2): Likewise.
11685         (sloww1): Likewise.
11686         (sloww2): Likewise.
11687         (bsloww1): Likewise.
11688         (bsloww2): Likewise.
11689         (cslow2): Likewise.
11690
11691 2016-09-02  Florian Weimer  <fweimer@redhat.com>
11692
11693         * stdio-common/vfscanf.c (_IO_vfwscanf): Use MB_LEN_MAX instead of
11694         MB_CUR_MAX to avoid race condition.  Avoid pointer arithmetic
11695         outside of allocated array.
11696
11697 2016-09-02  Florian Weimer  <fweimer@redhat.com>
11698
11699         * stdio-common/vfprintf.c (process_string_arg): Use MB_LEN_MAX
11700         instead of MB_CUR_MAX to avoid variable-length array.
11701
11702 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11703
11704         * math/Makefile (libm-calls): Remove k_rem_pio2F.
11705         (type-double-routines): Add k_rem_pio2.
11706         (type-float-routines): Add k_rem_pio2f.
11707
11708         * sysdeps/generic/math_private.h:
11709         (__kernel_rem_pio2l): Removed.
11710
11711         * math/k_rem_pio2l.c: Removed.
11712         * sysdeps/i386/fpu/k_rem_pio2l.c: Removed.
11713         * sysdeps/ia64/fpu/k_rem_pio2l.c: Removed.
11714         * sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c: Removed.
11715         * sysdeps/x86_64/fpu/k_rem_pio2l.c: Removed.
11716
11717 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11718
11719         * math/Makefile (gen-libm-calls): Add s_fmin
11720         (libm-calls): Remove above.
11721
11722         * math/s_fmin.c: Refactor into ...
11723         * math/s_fmin_template.c: New file.
11724
11725         * math/s_fminf.c: Removed.
11726         * math/s_fminl.c: Removed.
11727         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
11728         (LDOUBLE_fmin_libm_version): New macro.
11729
11730         * sysdeps/ieee754/ldbl-opt/s_fmin.c: Removed.
11731         * sysdeps/ieee754/ldbl-opt/s_fminl.c: Removed.
11732
11733 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11734
11735         * math/Makefile: (gen-libm-calls): Add s_fmax.
11736         (libm-calls): Remove above.
11737
11738         * math/s_fmax.c: Refactor into ...
11739         * math/s_fmax_template.c: New file.
11740         * math/s_fmaxf.c: Removed.
11741         * math/s_fmaxl.c: Removed.
11742
11743         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
11744         (LDOUBLE_fmaxl_libm_version): New macro.
11745
11746         * sysdeps/ieee754/ldbl-opt/s_fmax.c: Removed.
11747         * sysdeps/ieee754/ldbl-opt/s_fmaxl.c: Removed.
11748
11749         * sysdeps/aarch64/fpu/s_fmax.c: Append fpu/ to include of
11750         s_fmin.c to pick the aarch64 version of the file.
11751         * sysdeps/aarch64/fpu/s_fmaxf.c: Likewise.
11752         * sysdeps/aarch64/fpu/s_fminf.c: Likewise.
11753
11754 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11755
11756         * math/Makefile: (gen-libm-calls): Add s_nextdown.
11757         (libm-calls): Remove above.
11758
11759         * math/s_nextdown.c: Refactor into ...
11760         * math/s_nextdown_template.c: New file.
11761         * math/s_nextdownf.c: Removed.
11762         * math/s_nextdownl.c: Removed.
11763
11764         * sysdeps/ieee754/ldbl-opt/s_nextdownl.c: New file.
11765
11766 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11767
11768         * math/Makefile (gen-libm-calls): Add s_fdim.
11769         (libm-calls): Move to above.
11770
11771         * math/s_fdim.c: Renamed and refactored into to ...
11772         * math/s_fdim_template.c: New file.
11773         * math/s_fdiml.c: Removed.
11774         * sysdeps/ieee754/ldbl-opt/s_fdim.c: Removed.
11775         * sysdeps/ieee754/ldbl-opt/s_fdiml.c: Removed.
11776
11777         * sysdeps/generic/math-type-macros-double.h:
11778         (declare_mgen_alias): Don't declare if already declared.
11779         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h:
11780         Likewise.
11781
11782         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
11783         (declare_mgen_alias): Don't declare if already declared.
11784         (M_LIBM_NEED_COMPAT): Likewise.
11785         (declare_mgen_libm_compat): Likewise.
11786         (LDOUBLE_fdiml_libm_version): New macro.
11787
11788         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
11789         Include math/s_fdim.c now that ldbl-opt version is not needed.
11790         (declare_mgen_alias): New macro to disable aliasing.
11791
11792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c:
11793         (declare_mgen_alias): Likewise.
11794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c:
11795         (declare_mgen_alias): Likewise.
11796         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c:
11797         (declare_mgen_alias): Likewise.
11798         (M_LIBM_NEED_COMPAT): Likewise.
11799
11800 2016-09-01  Florian Weimer  <fweimer@redhat.com>
11801
11802         [BZ #20525]
11803         * sysdeps/unix/sysv/linux/sys/quota.h: Update copyright.
11804         Include <linux/quota.h>.
11805         (fs_to_dq_blocks): Hard-code BLOCK_SIZE as 1024, to match dbtob
11806         and btodb.
11807         (_LINUX_QUOTA_VERSION, MAXQUOTAS, USRQUOTA, GRPQUOTA, INITQFNAMES)
11808         (SUBCMDMASK, SUBCMDSHIFT, QCMD, Q_QUOTAON, Q_QUOTAOFF, Q_GETQUOTA)
11809         (Q_SETQUOTA, Q_SETUSE, Q_SYNC, Q_SETQLIM, Q_GETSTATS, Q_RSQUASH)
11810         (Q_GETFMT, Q_GETINFO, Q_SETINFO, Q_GETNEXTQUOTA, QIF_BLIMITS)
11811         (QIF_SPACE, QIF_ILIMITS, QIF_INODES, QIF_BTIME, QIF_ITIME)
11812         (QIF_LIMITS, QIF_USAGE, QIF_TIMES, QIF_ALL, IIF_BGRACE)
11813         (IIF_IGRACE, IIF_FLAGS, IIF_ALL): Remove.
11814         (struct dqblock, struct dqinfo): Use __uint64_t and __uint32_t
11815         types.
11816         * sysdeps/unix/sysv/linux/tst-quota.c: New test.
11817         * sysdeps/unix/sysv/linux/Makefile (tests): Add it.
11818
11819 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11820
11821         * sysdeps/ieee754/ldbl-128/e_gammal_r.c:
11822         (gammal_positive): Fix spacing.
11823         (__ieee754_gammal_r): Likewise.
11824
11825 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11826
11827         * sysdeps/ieee754/ldbl-128/math_ldbl.h:
11828         (_Float128): Define as long double, always.
11829         (L): Apply long double type suffix, always.
11830
11831         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Rename long double
11832         _Float128, excepting comments.
11833
11834         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11835         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11836         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11837         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11838         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
11839         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11840         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11841         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11842         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11843         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: Likewise.
11844         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11845         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11846         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11847         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11848         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11849         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11850         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11851         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11852         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11853         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11854         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11855         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
11856         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11857         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11858         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11859         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11860         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
11861         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
11862         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11863         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11864         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11865         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11866         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11867         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11868         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11869         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11870         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11871         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11872         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11873         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11874         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11875         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11876         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11877         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11878         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
11879         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11880         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11881         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11882         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11883         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11884         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11885         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11886         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11887         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11888         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11889         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11890         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11891         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11892         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11893         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11894         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11895         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11896         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11897         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11898         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11899         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
11900         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
11901         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11902
11903         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Rename long double
11904         _Float128, and include math_private.h.
11905         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
11906
11907         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (L): Define using
11908         long double semantics.
11909         (_Float128): Likewise.
11910         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Likewise.
11911         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11912         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
11913         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
11914
11915 2016-08-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
11916
11917         * config.h.in (HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT): New undefine.
11918         * sysdeps/s390/configure.ac: Add test for z196 zarch support.
11919         * sysdeps/s390/configure: Regenerated.
11920         * sysdeps/s390/fpu/fraiseexcpt.c (__feraiseexcept): Use ledbra
11921         instruction for raising over-/underflow if z196 zarch is supported
11922         by default.
11923         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Correct comment.
11924
11925 2016-08-30  Svante Signell  <svante.signell@gmail.com>
11926
11927         * sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
11928         it point to a dumb buffer for RPC to fill it.
11929
11930 2016-08-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11931
11932         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): Use ternary
11933         instead of if/else.
11934         (do_sin_slow): Likewise.
11935         (do_sincos_1): Use fabs instead of if/else.
11936         (do_sincos_2): Likewise.
11937         (__sin): Likewise.
11938         (__cos): Likewise.
11939         (slow2): Likewise.
11940         (sloww): Likewise.
11941         (sloww1): Likewise.  Drop argument M.
11942         (sloww2): Use fabs instead of if/else.
11943         (bsloww): Likewise.
11944         (bsloww1): Likewise.
11945         (bsloww2): Likewise.
11946
11947         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Add
11948         fall through comment.
11949         (do_sincos_1): Likewise.
11950
11951         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute):
11952         Consolidate switch cases 0 and 2.
11953
11954 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11955
11956         * math/Makefile (libm-gen-calls): Add cpow, clog, clog10, cexp, cproj.
11957         (libm-calls): Remove the above.
11958
11959         * math/s_cexp_template.c: Update using type-generic macros.
11960         * math/s_clog10_template.c: Likewise.
11961         * math/s_cpow_template.c: Likewise.
11962         * math/s_clog_template.c: Likewise.
11963         * math/s_cproj_template.c: Likewise.
11964         * math/s_csqrt_template.c: Likewise.
11965
11966         * math/s_cexp.c: Removed.
11967         * math/s_cexpf.c: Removed.
11968         * math/s_cexpl.c: Removed.
11969         * math/s_clog10.c: Removed.
11970         * math/s_clog10f.c: Removed.
11971         * math/s_clog10l.c: Removed.
11972         * math/s_cpow.c: Removed.
11973         * math/s_cpowf.c: Removed.
11974         * math/s_cpowl.c: Removed.
11975         * math/s_clog.c: Removed.
11976         * math/s_clogf.c: Removed.
11977         * math/s_clogl.c: Removed.
11978         * math/s_cproj.c: Removed.
11979         * math/s_cprojf.c: Removed.
11980         * math/s_cprojl.c: Removed.
11981         * math/s_csqrt.c: Removed.
11982         * math/s_csqrtf.c: Removed.
11983         * math/s_csqrtl.c: Removed.
11984
11985         * sysdeps/alpha/fpu/s_cexpf.c: Update using templated version.
11986         * sysdeps/alpha/fpu/s_clog10f.c: Update using templated version.
11987         * sysdeps/alpha/fpu/s_clogf.c: Update using templated version.
11988         * sysdeps/alpha/fpu/s_cpowf.c: Update using templated version.
11989         * sysdeps/alpha/fpu/s_cprojf.c: Update using templated version.
11990         * sysdeps/alpha/fpu/s_csqrtf.c: Update using templated version.
11991
11992         * sysdeps/ieee754/ldbl-opt/s_cexp.c: Removed.
11993         * sysdeps/ieee754/ldbl-opt/s_cexpl.c: Removed.
11994         * sysdeps/ieee754/ldbl-opt/s_clog.c: Removed.
11995         * sysdeps/ieee754/ldbl-opt/s_clog10.c: Removed.
11996         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Removed.
11997         * sysdeps/ieee754/ldbl-opt/s_cpow.c: Removed.
11998         * sysdeps/ieee754/ldbl-opt/s_cpowl.c: Removed.
11999         * sysdeps/ieee754/ldbl-opt/s_cproj.c: Removed.
12000         * sysdeps/ieee754/ldbl-opt/s_cprojl.c: Removed.
12001         * sysdeps/ieee754/ldbl-opt/s_csqrt.c: Removed.
12002         * sysdeps/ieee754/ldbl-opt/s_csqrtl.c: Removed.
12003
12004         * sysdeps/ieee754/ldbl-opt/s_clogl.c: Update using templated
12005         version.
12006
12007         * sysdeps/m68k/m680x0/fpu/s_cexp.c: Refactor into.
12008         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c: New file.
12009         * sysdeps/m68k/m680x0/fpu/s_cexpf.c: Removed.
12010         * sysdeps/m68k/m680x0/fpu/s_cexpl.c: Removed.
12011
12012 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12013
12014         * s_cexp_template.c: Copy of s_cexp.c.
12015         * s_clog_template.c: Copy of s_clog.c.
12016         * s_clog10_template.c: Copy of s_clog10.c.
12017         * s_cpow_template.c: Copy of s_cpow.c.
12018         * s_cproj_template.c: Copy of s_cproj.c.
12019         * s_csqrt_template.c: Copy of s_csqrt.c.
12020
12021 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12022
12023         [BZ #20517]
12024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
12025         Include ldbl-opt/s_fdim.c to ensure fdiml@GLIBC_2.1 is
12026         exported.
12027
12028 2016-08-29  Joseph Myers  <joseph@codesourcery.com>
12029
12030         * math/fetestexceptflag.c: New file.
12031         * sysdeps/s390/fpu/fetestexceptflag.c: Likewise.  Comment by
12032         Stefan Liebler.
12033         * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
12034         (fetestexceptflag): New function declaration.
12035         * manual/arith.texi (fetestexceptflag): Document function.
12036         * math/Versions (fetestexceptflag): New libm symbol at version
12037         GLIBC_2.25.
12038         * math/Makefile (libm-support): Add fetestexceptflag.
12039         (tests): Add test-fetestexceptflag.
12040         * math/test-fetestexceptflag.c: New file.
12041         * sysdeps/nacl/libm.abilist: Update.
12042         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12043         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12044         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12045         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12046         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12047         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12048         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12049         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12050         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12051         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12052         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12053         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12055         Likewise.
12056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12057         Likewise.
12058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12059         Likewise.
12060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12061         Likewise.
12062         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12063         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12064         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12065         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12066         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12067         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12068         Likewise.
12069         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12070         Likewise.
12071         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12072         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12073         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12074
12075 2016-08-26  Florian Weimer  <fweimer@redhat.com>
12076
12077         [BZ #20432]
12078         Avoid strong references to malloc-internal symbols when linking
12079         statically, to support statically interposed mallocs.
12080         * include/libc-symbols.h (call_function_static_weak): New macro.
12081         * malloc/Makefile (tests): Add tst-interpose-nothread,
12082         tst-interpose-thread, tst-interpose-static-nothread,
12083         tst-interpose-static-thread.
12084         (tests-static): Add tst-interpose-static-nothread,
12085         tst-interpose-static-thread.
12086         (extra-tests-objs): Add tst-interpose-aux-nothread.o,
12087         tst-interpose-aux-thread.o.
12088         (test-extras): Add tst-interpose-aux-nothread,
12089         tst-interpose-aux-thread.
12090         (tst-interpose-nothread, tst-interpose-static-nothread): Link with
12091         tst-interpose-aux-nothread.o.
12092         (tst-interpose-thread, tst-interpose-static-thread): Link with
12093         tst-interpose-aux-thread.o and libthread.
12094         * malloc/tst-interpose-aux-nothread.c: New file.
12095         * malloc/tst-interpose-aux-thread.c: Likewise.
12096         * malloc/tst-interpose-aux.c: Likewise.
12097         * malloc/tst-interpose-aux.h: Likewise.
12098         * malloc/tst-interpose-nothread.c: Likewise.
12099         * malloc/tst-interpose-skeleton.c: Likewise.
12100         * malloc/tst-interpose-static-nothread.c: Likewise.
12101         * malloc/tst-interpose-static-thread.c: Likewise.
12102         * malloc/tst-interpose-thread.c: Likewise.
12103         * nptl/tst-tls3-malloc.c: Use new interposed malloc.
12104         * sysdeps/mach/hurd/fork.c (__fork): Only call
12105         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
12106         __malloc_fork_unlock_child if defined.
12107         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
12108
12109 2016-08-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12110
12111         * test-skeleton.c (delayed_exit_thread): Add initializer on struct
12112         timespec C99 designated initialization.
12113
12114 2016-08-26  Florian Weimer  <fweimer@redhat.com>
12115
12116         [BZ #19946]
12117         Avoid expected SIGALRM signals.
12118         * test-skeleton.c (xpthread_sigmask, xpthread_mutex_lock)
12119         (xpthread_spin_lock, xpthread_cond_wait, xpthread_barrier_wait)
12120         (xpthread_create, xpthread_detach, xpthread_join)
12121         (delayed_exit_thread, delayed_exit): New functions.
12122         * nptl/tst-cond3 (EXPECTED_SIGNAL): Remove.
12123         (tf): Use xpthread_cond_wait.
12124         (do_test): Likewise.  Replace alarm with delayed_exit.
12125         * nptl/tst-eintr1.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12126         (do_test): Call delayed_exit.  Report failure.
12127         * nptl/tst-eintr2.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12128         (do_test): Call delayed_exit.
12129         * nptl/tst-eintr3.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12130         (do_test): Call delayed_exit.  Use xpthread_join.  Report error.
12131         * nptl/tst-eintr4.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12132         (do_test): Call delayed_exit.  Use xpthread_barrier_wait.  Report
12133         error.
12134         * nptl/tst-eintr5.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12135         (do_test): Call delayed_exit.  Use xpthread_cond_wait.  Report
12136         error.
12137         * nptl/tst-exit2.c (EXPECTED_SIGNAL): Remove.
12138         (do_test): Call delayed_exit.
12139         * nptl/tst-exit3.c (EXPECTED_SIGNAL): Remove.
12140         (do_test): Call delayed_exit.
12141         * nptl/tst-mutex6.c (EXPECTED_SIGNAL): Remove.
12142         (do_test): Call delayed_exit instead of alarm.  Use
12143         xpthread_mutex_lock.
12144         * nptl/tst-rwlock5.c (EXPECTED_SIGNAL): Remove.
12145         (do_test): Call delayed_exit instead of alarm.  Use
12146         xpthread_mutex_lock.
12147         * nptl/tst-sem2.c (EXPECTED_SIGNAL): Remove.
12148         (do_test): Call delayed_exit instead of alarm.
12149         * nptl/tst-spin3.c (EXPECTED_SIGNAL): Remove.
12150         (do_test): Call delayed_exit instead of alarm.  Use
12151         xpthread_spin_lock.
12152         * nptl/tst-stdio1.c (EXPECTED_SIGNAL): Remove.
12153         (do_test): Call delayed_exit instead of alarm.  Use
12154         xpthread_join.
12155
12156 2016-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12157
12158         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't
12159         adjust CFA when allocating register save area on re-aligned
12160         stack.
12161
12162 2016-08-26  Florian Weimer  <fweimer@redhat.com>
12163
12164         * string/tst-cmp.c: New test.
12165         * string/Makefile (tests): Add it.
12166
12167 2016-08-25  Mark Wielaard  <mark@klomp.org>
12168
12169         * misc/tsearch.c (struct node_t): Reduce to 3 pointers if
12170         USE_MALLOC_LOW_BIT.  Define pointer/value accessors.
12171         (check_tree_recurse): Use newly defined accessors.
12172         (check_tree): Likewise.
12173         (maybe_split_for_insert): Likewise.
12174         (__tfind): Likewise.
12175         (__tdelete): Likewise.
12176         (trecurse): Likewise.
12177         (tdestroy_recurse): Likewise.
12178         (__tsearch): Likewise. And add asserts for malloc alignment.
12179         (__twalk): Cast root to node in case CHECK_TREE is defined.
12180
12181 2016-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12182
12183         * scripts/check-local-headers.sh (exclude): Add mach_debug/.
12184
12185 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12186
12187         * math/Makefile (libm-gen-calls): Add
12188         catan, catanh, ctan, ctanh.
12189         (libm-calls): Remove the above.
12190
12191         * math/s_catan_template.c: Update using type-generic macros.
12192         * math/s_catanh_template.c: Likewise.
12193         * math/s_ctan_template.c: Likewise.
12194         * math/s_ctanh_template.c: Likewise.
12195
12196         * math/s_catanf.c: Removed.
12197         * math/s_catan.c: Removed.
12198         * math/s_catanl.c: Removed.
12199         * math/s_catanhf.c: Removed.
12200         * math/s_catanh.c: Removed.
12201         * math/s_catanhl.c: Removed.
12202         * math/s_ctanf.c: Removed.
12203         * math/s_ctan.c: Removed.
12204         * math/s_ctanl.c: Removed.
12205         * math/s_ctanhf.c: Removed.
12206         * math/s_ctanh.c: Removed.
12207         * math/s_ctanhl.c: Removed.
12208
12209         * sysdeps/ieee754/ldbl-opt/s_catanhl.c: Removed.
12210         * sysdeps/ieee754/ldbl-opt/s_catanl.c: Removed.
12211         * sysdeps/ieee754/ldbl-opt/s_ctan.c: Removed.
12212         * sysdeps/ieee754/ldbl-opt/s_ctanh.c: Removed.
12213         * sysdeps/ieee754/ldbl-opt/s_ctanhl.c: Removed.
12214         * sysdeps/ieee754/ldbl-opt/s_ctanl.c: Removed.
12215
12216         * sysdeps/alpha/fpu/s_catanf.c: Update to use template file.
12217         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
12218         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
12219         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
12220
12221 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12222
12223         * s_catan_template.c: Copy of s_catan.c.
12224         * s_catanh_template.c: Copy of s_catanh.c.
12225         * s_ctan_template.c: Copy of s_ctan.c.
12226         * s_ctanh_template.c: Copy of s_ctanh.c.
12227
12228 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12229
12230         * math/Makefile (gen-libm-calls): Move
12231         casin, casinh, csin, csinh here.
12232         (libm-calls): Remove the above.
12233
12234         * math/s_casin_template.c: Update using type-generic macros.
12235         * math/s_casinh_template.c: Likewise.
12236         * math/s_csin_template.c: Likewise.
12237         * math/s_csinh_template.c: Likewise.
12238         * math/k_casinh_template.c: Likewise.
12239
12240         * math/s_casinf.c: Removed.
12241         * math/s_casin.c: Removed.
12242         * math/s_casinl.c: Removed.
12243         * math/s_casinh.c: Removed.
12244         * math/s_casinhf.c: Removed.
12245         * math/s_casinhl.c: Removed.
12246         * math/s_csin.c: Removed.
12247         * math/s_csinf.c: Removed.
12248         * math/s_csinl.c: Removed.
12249         * math/s_csinh.c: Removed.
12250         * math/s_csinhf.c: Removed.
12251         * math/s_csinhl.c: Removed.
12252         * math/k_casinh.c: Removed.
12253         * math/k_casinhf.c: Removed.
12254         * math/k_casinhl.c: Removed.
12255
12256         * sysdeps/alpha/fpu/s_casinf.c: Refactor using templated version.
12257         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
12258         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
12259         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
12260
12261         * sysdeps/ieee754/ldbl-opt/s_casin.c: Removed.
12262         * sysdeps/ieee754/ldbl-opt/s_casinh.c: Removed.
12263         * sysdeps/ieee754/ldbl-opt/s_casinhl.c: Removed.
12264         * sysdeps/ieee754/ldbl-opt/s_casinl.c: Removed.
12265         * sysdeps/ieee754/ldbl-opt/s_csin.c: Removed.
12266         * sysdeps/ieee754/ldbl-opt/s_csinh.c: Removed.
12267         * sysdeps/ieee754/ldbl-opt/s_csinhl.c: Removed.
12268         * sysdeps/ieee754/ldbl-opt/s_csinl.c: Removed.
12269
12270         * sysdeps/m68k/m680x0/fpu/s_csin.c: Refactor into ...
12271         * sysdeps/m68k/m680x0/fpu/s_csin_template.c: New file.
12272         * sysdeps/m68k/m680x0/fpu/s_csinf.c: Removed.
12273         * sysdeps/m68k/m680x0/fpu/s_csinl.c: Removed.
12274
12275         * sysdeps/m68k/m680x0/fpu/s_csinh.c: Refactor into.
12276         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c: New file.
12277         * sysdeps/m68k/m680x0/fpu/s_csinhf.c: Removed.
12278         * sysdeps/m68k/m680x0/fpu/s_csinhl.c: Removed.
12279
12280 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12281
12282         * s_casin_template.c: Copy of s_casin.c.
12283         * s_casinh_template.c: Copy of s_casinh.c.
12284         * s_csin_template.c: Copy of s_csin.c.
12285         * s_csinh_template.c: Copy of s_csinh.c.
12286         * k_casinh_template.c: Copy of k_casinh.c.
12287
12288 2016-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12289
12290         * sysdeps/x86/cpu-features.h (bit_YMM_state): Set to (1 << 2).
12291
12292 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12293
12294         * sysdeps/ieee754/ldbl-128/gamma_productl.c:
12295         (mul_split) Remove, rename as mul_splitl, remove
12296         redundant float.h include, and include via mul_splitl.h
12297
12298         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12299         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
12300         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12301         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
12302         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
12303
12304         * math/mul_splitl.h: New file.
12305
12306         * sysdeps/ieee754/dbl-64/gamma_product.c (mul_split):
12307         Move into mul_split.h, and remove redundant float.h include.
12308
12309         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
12310         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
12311         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12312         * sysdeps/ieee754/ldbl-128ibm/x2y2m1.c: Likewise.
12313
12314         * math/mul_split.h: New file.
12315
12316 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12317
12318         * math/Makefile (libm-gen-calls): Move
12319         s_cacos, s_cacosh, s_ccos, s_ccosh from ...
12320         (libm-calls): Remove above.
12321
12322         * math/s_cacos_template.c: Update using type-generic macros.
12323         * math/s_cacosh_template.c: Likewise.
12324         * math/s_ccos_template.c: Likewise.
12325         * math/s_ccosh_template.c: Likewise.
12326
12327         * math/s_cacosf.c: Removed.
12328         * math/s_cacos.c: Removed.
12329         * math/s_cacosl.c: Removed.
12330         * math/s_cacoshf.c: Removed.
12331         * math/s_cacosh.c: Removed.
12332         * math/s_cacoshl.c: Removed.
12333         * math/s_ccosf.c: Removed.
12334         * math/s_ccos.c: Removed.
12335         * math/s_ccosl.c: Removed.
12336         * math/s_ccoshf.c: Removed.
12337         * math/s_ccosh.c: Removed.
12338         * math/s_ccoshl.c: Removed.
12339
12340         * sysdeps/ieee754/ldbl-opt/s_cacoshl.c: Removed.
12341         * sysdeps/ieee754/ldbl-opt/s_cacosl.c: Removed.
12342         * sysdeps/ieee754/ldbl-opt/s_ccos.c: Removed.
12343         * sysdeps/ieee754/ldbl-opt/s_ccosh.c: Removed.
12344         * sysdeps/ieee754/ldbl-opt/s_ccoshl.c: Removed.
12345         * sysdeps/ieee754/ldbl-opt/s_ccosl.c: Removed.
12346
12347         * sysdeps/m68k/m680x0/fpu/s_ccosh.c: Refactor into.
12348         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c: New file.
12349         * sysdeps/m68k/m680x0/fpu/s_ccoshf.c: Removed.
12350         * sysdeps/m68k/m680x0/fpu/s_ccoshl.c: Removed.
12351
12352         * sysdeps/alpha/fpu/s_cacosf.c: Update to use template file.
12353         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
12354         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
12355         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
12356
12357 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12358
12359         * s_cacos_template.c: Copy of s_cacos.c.
12360         * s_cacosh_template.c: Copy of s_cacosh.c.
12361         * s_ccos_template.c: Copy of s_ccos.c.
12362         * s_ccosh_template.c: Copy of s_ccosh.c.
12363
12364 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12365
12366         * stdlib/tst-strtod-round-skeleton.c:
12367         Refactored from tst-strtod-round.c.
12368
12369         (L_): New macro to apply literal modifier.
12370         (FNPFX): New macro to select str or wcs prefix.
12371         (CHAR): New macro to choose wchar_t or char.
12372         (STRM): New macro to choose printf for tested character type.
12373
12374         (STRTO): New macro to choose appropriate string -> real function.
12375         (FNPFXS): Stringitized version of FNPFX.
12376         (STR): Support for above macro.
12377         (STRX): Likewise.
12378
12379         (TEST): Update with above macros.
12380         (test): Likewise.
12381         (GEN_ONE_TEST): Likewise.
12382         (test_in_one_mode): Likewise.
12383
12384         * stdlib/tst-strtod-round.c: New file.
12385         * wcsmbs/tst-wcstod-round.c: New file.
12386
12387         * wcsmbs/Makefile: (tests): Add tst-wcstod-round
12388         (tst-wcstod-round): Add libm depencency for fesetround.
12389
12390 2016-08-19  Zack Weinberg  <zackw@panix.com>
12391
12392         * debug/tst-chk1.c: Add tests for fortification of bcopy and bzero.
12393
12394 2016-08-18  Torvald Riegel  <triegel@redhat.com>
12395
12396         [BZ #20477]
12397         * resolv/res_hconf.c (do_init): Use atomic access.
12398         * resolv/res_hconf.h: Add comments.
12399         * nscd/aicache.c (addhstaiX): Call _res_hconf_init unconditionally.
12400         * nss/getXXbyYY_r.c (REENTRANT_NAME): Likewise.
12401         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
12402
12403 2016-08-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
12404
12405         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
12406         Use DIAG_*_NEEDS_COMMENT macro to get rid of array-bounds warning.
12407         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
12408         Likewise.
12409
12410 2016-08-18  Florian Weimer  <fweimer@redhat.com>
12411
12412         [BZ #16907]
12413         * argp/argp.h: Switch to __BEGIN_DECLS and __END_DECLS.
12414         (__THROW, __NTH, __attribute__, __restrict): Remove definitions.
12415         * argp/argp-fmtstream.h: Add __BEGIN_DECLS and __END_DECLS.
12416         (__attribute__): Remove definition.
12417
12418 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12419
12420         * sysdeps/ieee754/ldbl-128/e_asinl.c:
12421         Remove unused sqrtl declaration.
12422
12423 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12424
12425         * math/Makefile: (gen-libm-templates.stmp): New rule.
12426         (libm-calls): Move carg conj cimag and cabs into ...
12427         (gen-libm-calls): New variable.
12428         (generated): Inform Make objects from gen-libm-calls
12429         may be generated.
12430
12431         * sysdeps/generic/math-type-macros.h: New file.
12432         * sysdeps/generic/math-type-macros-float.h: Likewise.
12433         * sysdeps/generic/math-type-macros-double.h: Likewise.
12434         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
12435         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Likewise.
12436         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Likewise.
12437
12438         * math/cabs.c: Refactor into
12439         * math/cabs_template.c: new file.
12440         * math/cabsf.c: Removed.
12441         * math/cabsl.c: Removed.
12442         * sysdeps/ieee754/ldbl-opt/cabsf.c: Removed.
12443         * sysdeps/ieee754/ldbl-opt/cabsl.c: Removed.
12444
12445         * math/carg.c: Refactor into
12446         * math/carg_template.c: new file.
12447         * math/cargf.c: Removed.
12448         * math/cargl.c: Removed.
12449         * sysdeps/ieee754/ldbl-opt/cargf.c: Removed.
12450         * sysdeps/ieee754/ldbl-opt/cargl.c: Removed.
12451
12452         * math/conj.c: Refactor into
12453         * math/conj_template.c: new file.
12454         * math/conjf.c: Removed.
12455         * math/conjl.c: Removed.
12456         * sysdeps/ieee754/ldbl-opt/conjf.c: Removed.
12457         * sysdeps/ieee754/ldbl-opt/conjl.c: Removed.
12458
12459         * math/cimag.c: Refactor into
12460         * math/cimag_template.c: new file.
12461         * math/cimagf.c: Removed.
12462         * math/cimagl.c: Removed.
12463         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
12464         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
12465
12466         * math/cimag.c: Refactor into
12467         * math/cimag_template.c: new file.
12468         * math/cimagf.c: Removed.
12469         * math/cimagl.c: Removed.
12470         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
12471         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
12472
12473 2016-08-17  Florian Weimer  <fweimer@redhat.com>
12474
12475         Reduce time to expected nptl/tst-once5 failure.
12476         * nptl/tst-once5.cc (TIMEOUT): Define.
12477
12478 2016-08-17  Florian Weimer  <fweimer@redhat.com>
12479
12480         [BZ #20452]
12481         Avoid additional copies of objects in libc.a in static libraries.
12482         * sysdeps/ia64/nptl/Makefile (libpthread-shared-only-routines):
12483         Add ptw-sysdep, ptw-sigblock, ptw-sigprocmask.
12484         * sysdeps/mips/Makefile (librt-shared-only-routines): Add
12485         rt-sysdep.
12486         * sysdeps/mips/nptl/Makefile (libpthread-shared-only-routines):
12487         Add nptl-sysdep.
12488         * sysdeps/s390/nptl/Makefile (libpthread-shared-only-routines):
12489         Add ptw-sysdep.
12490         * sysdeps/unix/alpha/Makefile (librt-shared-only-routines): Add
12491         rt-sysdep.
12492         * sysdeps/unix/sysv/linux/alpha/Makefile
12493         (libpthread-shared-only-routines): Add ptw-sysdep,
12494         ptw-sigprocmask, ptw-rt_sigaction.
12495         * sysdeps/unix/sysv/linux/ia64/Makefile
12496         (librt-shared-only-routines): Add rt-sysdep.
12497         * sysdeps/unix/sysv/linux/i386/Makefile
12498         (libpthread-shared-only-routines): Add libc-do-syscall.
12499         * sysdeps/unix/sysv/linux/microblaze/Makefile
12500         (libpthread-shared-only-routines): Add sysdep.
12501         * sysdeps/unix/sysv/linux/powerpc/Makefile
12502         (librt-shared-only-routines): Add rt-sysdep.
12503         (libpthread-shared-only-routines): Add sysdep.
12504         * sysdeps/unix/sysv/linux/s390/Makefile
12505         (librt-shared-only-routines): Add rt-sysdep.
12506         * sysdeps/unix/sysv/linux/sparc/Makefile
12507         (librt-shared-only-routines): Add rt-sysdep.
12508         (libpthread-shared-only-routines): Add sysdep.
12509         * sysdeps/unix/sysv/linux/tile/Makefile
12510         (libpthread-shared-only-routines): Likewise.
12511
12512 2016-08-16  Joseph Myers  <joseph@codesourcery.com>
12513
12514         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_E):
12515         Mask implicit bit out of unpacked value.
12516         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_EP): Likewise.
12517         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_E): Likewise.
12518         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_EP): Likewise.
12519
12520         * sysdeps/sparc/fpu/fesetexcept.c: New file.
12521
12522         * sysdeps/sh/sh4/fpu/fesetexcept.c: New file.
12523
12524         * sysdeps/s390/fpu/fesetexcept.c: New file.
12525
12526         * sysdeps/powerpc/fpu/fesetexcept.c: New file.
12527         * sysdeps/powerpc/nofpu/fesetexcept.c: Likewise.
12528         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetexcept.c: Likewise.
12529
12530         * sysdeps/mips/fpu/fesetexcept.c: New file.
12531
12532         * sysdeps/m68k/fpu/fesetexcept.c: New file.
12533
12534         * sysdeps/ia64/fpu/fesetexcept.c: New file.
12535
12536         * sysdeps/hppa/fpu/fesetexcept.c: New file.
12537
12538         * sysdeps/arm/fesetexcept.c: New file.
12539
12540         * sysdeps/alpha/fpu/fesetexcept.c: New file.
12541
12542         * sysdeps/aarch64/fpu/fesetexcept.c: New file.
12543
12544         * math/fesetexcept.c: New file.
12545         * sysdeps/i386/fpu/fesetexcept.c: Likewise.
12546         * sysdeps/x86_64/fpu/fesetexcept.c: Likewise.
12547         * math/fenv.h: Define
12548         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
12549         <bits/libc-header-start.h> instead of including <features.h>.
12550         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetexcept): New function
12551         declaration.
12552         * manual/arith.texi (fesetexcept): Document function.
12553         * math/Versions (fesetexcept): New libm symbol at version
12554         GLIBC_2.25.
12555         * math/Makefile (libm-support): Add fesetexcept.
12556         (tests): Add test-fesetexcept and test-fesetexcept-traps.
12557         * math/test-fesetexcept.c: New file.
12558         * math/test-fesetexcept-traps.c: Likewise.
12559         * sysdeps/nacl/libm.abilist: Update.
12560         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12561         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12562         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12563         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12564         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12565         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12566         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12567         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12568         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12569         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12570         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12571         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12573         Likewise.
12574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12575         Likewise.
12576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12577         Likewise.
12578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12579         Likewise.
12580         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12581         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12582         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12583         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12584         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12585         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12586         Likewise.
12587         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12588         Likewise.
12589         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12590         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12591         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12592
12593 2016-08-16  Florian Weimer  <fweimer@redhat.com>
12594
12595         * nptl/tst-tls3.c (default_stack_size_in_mb, stack_size_in_mb):
12596         New.
12597         (do_test): Apply default_stack_size_in_mb if not set.
12598         * nptl/tst-tls3-malloc.c (stack_size_in_mb): Override default.
12599
12600 2016-08-15  Andreas Schwab  <schwab@suse.de>
12601
12602         [BZ #20435]
12603         CVE-2016-6323
12604         * sysdeps/unix/sysv/linux/arm/setcontext.S (__startcontext): Mark
12605         as .cantunwind.
12606
12607 2016-08-12  Joseph Myers  <joseph@codesourcery.com>
12608
12609         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add
12610         comment from fraiseexcpt.c.
12611
12612         * math/test-fexcept.c (feraiseexcept_exact): New function.
12613         (test_set): Call feraiseexcept_exact instead of feraiseexcept.
12614         (test_except): Likewise.
12615
12616 2016-08-10  Joseph Myers  <joseph@codesourcery.com>
12617
12618         [BZ #20455]
12619         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Mask out
12620         all FE_INVALID sub-exceptions from FPSCR when FE_INVALID specified
12621         to be restored.
12622
12623         * math/test-fexcept-traps.c: New file.
12624         * math/test-fexcept.c: Likewise.
12625         * math/Makefile (tests): Add test-fexcept and test-fexcept-traps.
12626         * sysdeps/generic/math-tests.h (EXCEPTION_SET_FORCES_TRAP): New
12627         macro.
12628         * sysdeps/powerpc/math-tests.h [!__NO_FPRS__]
12629         (EXCEPTION_SET_FORCES_TRAP): Likewise.
12630
12631 2016-08-09  Torvald Riegel  <triegel@redhat.com>
12632
12633         * include/atomic.h (atomic_fetch_and_relaxed,
12634         atomic_fetch_and_release, atomic_fetch_or_release,
12635         atomic_fetch_xor_release): New.
12636
12637 2016-08-06  Christian Seiler  <christian@iwakd.de>
12638
12639         [BZ #20444]
12640         * sysdeps/mach/hurd/recvmsg.c (__libc_recvmsg): Cope with aport being
12641         MACH_PORT_NULL.
12642
12643 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
12644
12645         * math/s_fdim.c: Avoid alias renamed.
12646         * math/s_fdimf.c: Likewise.
12647         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
12648         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
12649         Add s_fdimf-vis3, s_fdim-vis3.
12650         (CFLAGS-s_fdimf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
12651         (CFLAGS-s_fdim-vis3.c): Likewise.
12652         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c: New file.
12653         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
12654
12655 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
12656
12657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
12658         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
12659         Remove s_fdimf-vis3, s_fdim-vis3.
12660         * sysdeps/sparc/sparc32/fpu/s_fdim.S: Delete file.
12661         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: Likewise.
12662         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: Likewise.
12663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: Likewise.
12664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: Likewise.
12665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: Likewise.
12666         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: Likewise.
12667         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: Likewise.
12668         * sysdeps/sparc/sparc64/fpu/s_fdim.S: Likewise.
12669         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: Likewise.
12670
12671 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
12672
12673         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
12674         * sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
12675         -Wa,-Av9a -mvis.
12676
12677 2016-08-05  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12678
12679         * math/gen-libm-test.pl (apply_lit): Rewrite to apply
12680         LIT() to individual constants in simple expressions
12681         after splitting on spaces.
12682         (_apply_lit): Rename replaced version, and use it to
12683         apply to what appears to be a token.
12684
12685         * math/libm-test.inc: Fix many, many issues with
12686         spacing.
12687
12688 2016-08-05  Joseph Myers  <joseph@codesourcery.com>
12689
12690         * math/math.h: Move comment about <bits/mathdef.h> definitions
12691         above inclusion of <bits/mathdef.h>.  Do not mention
12692         FLT_EVAL_METHOD, INFINITY or DECIMAL_DIG in that comment.
12693
12694 2016-08-05  Torvald Riegel  <triegel@redhat.com>
12695
12696         * include/atomic.h (atomic_exchange_relaxed): New.
12697
12698 2016-08-04  Joseph Myers  <joseph@codesourcery.com>
12699
12700         * math/e_scalb.c: Do not include <fenv.h>.
12701         (invalid_fn): Do calculation resulting in NaN instead of raising
12702         FE_INVALID and returning a NaN explicitly.
12703         * math/e_scalbf.c: Do not include <fenv.h>.
12704         (invalid_fn): Do calculation resulting in NaN instead of raising
12705         FE_INVALID and returning a NaN explicitly.
12706         * math/e_scalbl.c: Do not include <fenv.h>.
12707         (invalid_fn): Do calculation resulting in NaN instead of raising
12708         FE_INVALID and returning a NaN explicitly.
12709
12710 2016-08-04  Carlos O'Donell  <carlos@redhat.com>
12711
12712         * po/de.po: Updated from Translation Project.
12713         * po/fi.po: Likewise.
12714         * po/sv.po: Likewise.
12715
12716 2016-08-04  Florian Weimer  <fweimer@redhat.com>
12717
12718         [BZ #20452]
12719         Use sysdep.o from libc.a in static libraries.
12720         * sysdeps/unix/sysv/linux/i386/Makefile
12721         (libpthread-shared-only-routines): Add sysdep.
12722         (librt-shared-only-routines): Likewise.
12723
12724 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
12725
12726         * math/tgmath.h (nextdown): Define if
12727         [__GLIBC_USE (IEC_60559_BFP_EXT)], not if [__USE_GNU].
12728         (nextup): Likewise.
12729
12730         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT): New
12731         macro.
12732         * include/features.h (__STDC_WANT_IEC_60559_FUNCS_EXT__):
12733         Document.
12734         * manual/creature.texi (__STDC_WANT_IEC_60559_FUNCS_EXT__):
12735         Document macro.
12736         * manual/math.texi (exp10): Document as ISO from TS 18661-4:2015.
12737         (exp10f): Likewise.
12738         (exp10l): Likewise.
12739         * math/bits/mathcalls.h (exp10): Declare if
12740         [__GLIBC_USE (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
12741
12742         * manual/arith.texi (nextup): Fix typo in last change.
12743
12744 2016-08-03  Zack Weinberg  <zackw@panix.com>
12745
12746         [BZ #19239]
12747         * NEWS: Inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
12748         * misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined,
12749         define major, minor, and makedev to issue deprecation warnings on use.
12750         If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress
12751         previously-activated deprecation warnings for these macros and prevent
12752         subsequent inclusions of this header from having any effect.
12753         * posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before
12754         including <sys/sysmacros.h>, and undefine it again afterward.
12755
12756 2016-08-03  Zack Weinberg  <zackw@panix.com>
12757
12758         * sysdeps/generic/sys/sysmacros.h: Delete file.
12759         * sysdeps/unix/sysv/linux/makedev.c: Delete file.
12760         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Move file ...
12761         * bits/sysmacros.h: ... here; this encoding is now the generic
12762         encoding.  Now defines only the following macros:
12763         __SYSMACROS_DECLARE_MAJOR, __SYSMACROS_DEFINE_MAJOR,
12764         __SYSMACROS_DECLARE_MINOR, __SYSMACROS_DEFINE_MINOR,
12765         __SYSMACROS_DECLARE_MAKEDEV, __SYSMACROS_DEFINE_MAKEDEV.
12766
12767         * misc/sys/sysmacros.h, misc/makedev.c: New files that use
12768         bits/sysmacros.h and the above new macros to generate the
12769         public implementations of major, minor, and makedev.
12770         * misc/tst-makedev.c: New test.
12771         * include/sys/sysmacros.h: New wrapper.
12772
12773         * misc/Makefile (headers): Add sys/sysmacros.h, bits/sysmacros.h.
12774         (routines): Add makedev.
12775         (tests): Add tst-makedev.
12776         * misc/Versions [GLIBC_2.25]: Add gnu_dev_major, gnu_dev_minor,
12777         gnu_dev_makedev.
12778         * posix/Makefile (headers): Remove sys/sysmacros.h.
12779         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove makedev.
12780
12781         * sysdeps/arm/nacl/libc.abilist: Add GLIBC_2.25,
12782         gnu_dev_major, gnu_dev_makedev, gnu_dev_minor.
12783         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
12784         * sysdeps/unix/sysv/linux/alpha/libc.abilist
12785         * sysdeps/unix/sysv/linux/arm/libc.abilist
12786         * sysdeps/unix/sysv/linux/hppa/libc.abilist
12787         * sysdeps/unix/sysv/linux/i386/libc.abilist
12788         * sysdeps/unix/sysv/linux/ia64/libc.abilist
12789         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
12790         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
12791         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
12792         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
12793         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
12794         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
12795         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
12796         * sysdeps/unix/sysv/linux/nios2/libc.abilist
12797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
12798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
12799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
12800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
12801         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
12802         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
12803         * sysdeps/unix/sysv/linux/sh/libc.abilist
12804         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
12805         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
12806         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
12807         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
12808         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
12809         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
12810         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
12811         Add GLIBC_2.25.
12812
12813         * include/features.h (__glibc_clang_prereq): New macro.
12814         * misc/sys/cdefs.h (__glibc_clang_has_extension)
12815         (__attribute_deprecated_msg__): New macros.
12816
12817 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
12818
12819         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): New
12820         macro.
12821         * include/features.h (__STDC_WANT_IEC_60559_BFP_EXT__): Document.
12822         * manual/arith.texi (issignaling): Document as ISO from TS
12823         18661-1:2014.
12824         (nextup): Likewise.
12825         (nextupf): Likewise.
12826         (nextupl): Likewise.
12827         (nextdown): Likewise.
12828         (nextdownf): Likewise.
12829         (nextdownl): Likewise.
12830         * manual/creature.texi (__STDC_WANT_IEC_60559_BFP_EXT__): Document
12831         macro.
12832         * math/math.h: Define
12833         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
12834         <bits/libc-header-start.h> instead of including <features.h>.
12835         (issignaling): Define if [__GLIBC_USE (IEC_60559_BFP_EXT)], not
12836         [__USE_GNU].
12837         * math/bits/mathcalls.h (nextdown): Declare if
12838         [__GLIBC_USE (IEC_60559_BFP_EXT)], not [__USE_GNU].
12839         (nextup): Likewise.
12840         (__issignaling): Likewise.
12841
12842 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12843
12844         * s_ccoshf.c (__ccoshf): Remove FE_INVALID
12845         check, and remove __glibc_likely hint
12846         from FP_INFINITE check.
12847         * s_csinhf.c (__csinhf): Likewise.
12848
12849         * s_ccoshl.c (__ccoshl): Remove __glibc_likely
12850         hint from FP_INFINITE check.
12851         * s_csinhl.c (__csinhl): Likewise.
12852
12853 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12854
12855         * math/Makefile (libm-calls): Insert F placeholder into
12856         object names.  Move w_lgamma_compat* routines into
12857         (libm-compat-calls): New variable.
12858         (libm-compat-calls-ldouble-yes): New variable.
12859         (calls): Insert F placeholder.
12860         (generated): Redefine using new type-foreach macro call.
12861         (routines): Likewise.
12862
12863         (types): New variable to hold a list of symbolic names
12864         for each type supported by the target machine.
12865         (libm-routines): Redefine using new types variable.
12866         (type-foreach): macro to replace fooF with the
12867         appropriately suffixed foo for each types.
12868
12869         (type-ldouble-suffix): New variable.
12870         (type-ldouble-routines): Likewise.
12871         (type-ldouble-yes): Likewise.
12872         (type-double-suffix): Likewise.
12873         (type-double-routines): Likewise.
12874         (type-float-suffix): Likewise.
12875         (type-float-routines): Likewise.
12876
12877         (dbl-only-routines): Remove.
12878         (long-c-yes): Likewise.
12879         (long-m-routines): Likewise.
12880         (long-m-support): Likewise.
12881         (long-m-yes): Likewise.
12882         (test-longdouble-yes): Likewise.
12883
12884         (test-float.o): Simplify by increasing the scope of the
12885         recipe which adds libm-test.stmp to the vector types.
12886         (test-ifloat.o): Likewise.
12887         (test-float-finite.o): Likewise.
12888         (test-double.o): Likewise
12889         (test-idouble.o): Likewise.
12890         (test-double-finite.o): Likewise.
12891         (test-ldouble.o): Likewise
12892         (test-ildoubl.o): Likewise.
12893         (test-ldouble-finite.o): Likewise.
12894
12895         (libm-tests): Redefine type tests using foreach and the
12896         list of types in types.
12897
12898         (CPPFLAGS-test-ildoubl.c): Rename to
12899         (CPPFLAGS-test-ildouble.c): New variable
12900
12901         * math/test-ildoubl.c: Rename to
12902         * math/test-ildouble.c: New file.
12903
12904 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12905
12906         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernal_tanl):
12907         Use fabsl instead of fabs.
12908         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl):
12909         Likewise.
12910         * sysdeps/ieee754/ldbl-128/s_atanl.c (__kernel_tanl):
12911         Add long double suffix to constant to ensure proper
12912         promotion to long double.
12913
12914 2016-08-03  Tom Tromey  <tom@tromey.com>
12915
12916         [BZ #20311]
12917         * nptl_db/Makefile (headers): Add proc_service.h.
12918         * nptl_db/proc_service.h: Add include guard.  Use
12919         __BEGIN/__END_DECLS.
12920         (ps_get_thread_area, ps_pstop, ps_pcontinue, ps_lstop)
12921         (ps_lcontinue): Remove "const" from "struct ps_prochandle *"
12922         arguments.
12923
12924
12925 2016-08-03  Florian Weimer  <fweimer@redhat.com>
12926
12927         [BZ #17730]
12928         Avoid using memalign for TCB allocations.
12929         * elf/dl-tls.c (tcb_to_pointer_to_free_location): New.
12930         (_dl_allocate_tls_storage): Use malloc and manual alignment.
12931         Avoid alignment gap in the TLS_DTV_AT_TP case.
12932         (_dl_deallocate_tls): Use tcb_to_pointer_to_free_location to
12933         determine the pointer to free.
12934         * nptl/tst-tls3-malloc.c: New test.
12935         * nptl/Makefile (tests): Add it.
12936         (tst-tls3-malloc): Link with libdl, libpthread.
12937         (LDFLAGS-tst-tls3-malloc): Set.
12938         (tst-tls3-malloc.out): Depend on DSO used in test.
12939
12940 2016-08-03  Florian Weimer  <fweimer@redhat.com>
12941
12942         [BZ #17730]
12943         Avoid using memalign for TLS allocations.
12944         * sysdeps/generic/dl-dtv.h (struct dtv_pointer): New.  Replaces
12945         is_static member with to_free member.
12946         (union dtv): Use struct dtv_pointer.
12947         * csu/libc-tls.c (__libc_setup_tls): Set to_free member of struct
12948         dtv_pointer instead of is_static.
12949         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
12950         (_dl_deallocate_tls): Free to_free member of struct dtv_pointer
12951         instead of val.
12952         (allocate_dtv_entry): New function.
12953         (allocate_and_init): Return struct dtv_pointer.  Call
12954         allocate_dtv_entry instead of __libc_memalign.
12955         (_dl_update_slotinfo): Free to_free member of struct dtv_pointer
12956         instead of val.
12957         (tls_get_addr_tail): Set to_free member of struct dtv_pointer
12958         instead of is_static.  Adjust call to allocate_and_init.
12959         * nptl/allocatestack.c (get_cached_stack): Free to_free member of
12960         struct dtv_pointer instead of val.
12961
12962 2016-08-03  Florian Weimer  <fweimer@redhat.com>
12963
12964         * malloc/malloc.c (INTERNAL_SIZE_T, SIZE_SZ, MALLOC_ALIGNMENT)
12965         (MALLOC_ALIGN_MASK): Move ...
12966         * malloc/malloc-internal.h: ... to here.
12967         * elf/dl-minimal.c (malloc): Allocate with MALLOC_ALIGNMENT.
12968
12969 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
12970
12971         * sysdeps/gnu/netinet/udp.h (UDP_ENCAP_GTP0): New macro.
12972         (UDP_ENCAP_GTP1U): Likewise.
12973
12974         * sysdeps/unix/sysv/linux/bits/socket.h (PF_QIPCRTR): New macro.
12975         (PF_MAX): Update value.
12976         (AF_QIPCRTR): New macro.
12977
12978 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
12979
12980         * sysdeps/ieee754/dbl-64/s_trunc.c: Avoid alias renamed.
12981         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12982         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12983         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
12984         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
12985         Add s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
12986         s_truncf-vis3, s_trunc-vis3.
12987         (CFLAGS-s_ceilf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
12988         (CFLAGS-s_ceil-vis3.c): Likewise.
12989         (CFLAGS-s_floorf-vis3.c): Likewise.
12990         (CFLAGS-s_floor-vis3.c): Likewise.
12991         (CFLAGS-s_truncf-vis3.c): Likewise.
12992         (CFLAGS-s_trunc-vis3.c): Likewise.
12993         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.c: New file.
12994         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
12995         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.c: Likewise.
12996         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
12997         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.c: Likewise.
12998         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
12999         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.c: Likewise.
13000         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
13001         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.c: Likewise.
13002         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
13003         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.c: Likewise.
13004         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
13005
13006 2016-08-02  David S. Miller  <davem@davemloft.net>
13007
13008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
13009         (__nearbyint_vis3): Don't check for sNaN before float register is
13010         loaded with the incoming argument.
13011         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
13012         (__nearbyintf_vis3): Likewise.
13013         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint):
13014         Likewise.
13015         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf):
13016         Likewise.
13017
13018         * string/test-strncmp.c (do_test_limit): Make sure the test data
13019         stream is aligned as required for the type "CHAR".
13020         (do_test): Likewise.
13021
13022 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
13023
13024         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Replace beqlr instructions
13025         by beq instructions jumping to the end of the function.
13026         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Add "11", "12", "cr0" to the
13027         clobber list. Use "i" constraint instead of "X".
13028         (ifunc_one): Add "12" to the clobber list. Use "i" constraint instead
13029         of "X".
13030
13031 2016-08-02  Joseph Myers  <joseph@codesourcery.com>
13032
13033         * bits/libc-header-start.h: New file.
13034         * Makefile (headers): Add bits/libc-header-start.h.
13035         * include/features.h (__STDC_WANT_LIB_EXT2__): Document.
13036         (__GLIBC_USE): New macro.
13037         * libio/stdio.h: Define
13038         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
13039         <bits/libc-header-start.h> instead of including <features.h>.
13040         (fmemopen): Declare also if [__GLIBC_USE (LIB_EXT2)].
13041         (open_memstream): Likewise.
13042         (vasprintf): Declare if [__GLIBC_USE (LIB_EXT2)], not [__USE_GNU].
13043         (__asprintf): Likewise.
13044         (asprintf): Likewise.
13045         (__getdelim): Declare also if [__GLIBC_USE (LIB_EXT2)].
13046         (getdelim): Likewise.
13047         (getline): Likewise.
13048         * string/string.h: Define
13049         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
13050         <bits/libc-header-start.h> instead of including <features.h>.
13051         (strdup): Declare also if [__GLIBC_USE (LIB_EXT2)]
13052         (strndup): Likewise.
13053         * wcsmbs/wchar.h: Define
13054         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
13055         <bits/libc-header-start.h> instead of including <features.h>.
13056         (open_wmemstream): Declare also if [__GLIBC_USE (LIB_EXT2)].
13057         * manual/creature.texi (__STDC_WANT_LIB_EXT2__): Document macro.
13058
13059 2016-08-02  Florian Weimer  <fweimer@redhat.com>
13060
13061         Support linking against compatibility symbols, for use in tests.
13062         * include/libc-symbols.h (symbol_version_reference): New macro.
13063         (symbol_version): Use it.
13064         * include/shlib-compat.h: Unconditionally include <abi-versions.h>.
13065         (compat_symbol): Use compat_symbol_reference.
13066         (compat_symbol_1, compat_symbol_2): Remove.
13067         (compat_symbol_reference, compat_symbol_reference_1)
13068         (compat_symbol_reference_2): New macro.  Use
13069         symbol_version_reference.
13070
13071 2016-08-02  Florian Weimer  <fweimer@redhat.com>
13072
13073         [BZ #19469]
13074         * malloc/Makefile (CPPFLAGS): Compile tests with
13075         -DTEST_NO_MALLOPT.
13076         * test-skeleton.c (main): Only call mallopt if !TEST_NO_MALLOPT.
13077
13078 2016-08-02  Andrew Senkevich  <andrew.senkevich@intel.com>
13079
13080         [BZ #20033]
13081         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: Call
13082         finite version.
13083         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: Likewise.
13084         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: Likewise.
13085         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: Likewise.
13086         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: Likewise.
13087         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: Likewise.
13088         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: Likewise.
13089         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: Likewise.
13090         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: Likewise.
13091         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Likewise.
13092         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: Likewise.
13093         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: Likewise.
13094         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: Likewise.
13095         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: Likewise.
13096         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: Likewise.
13097         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: Likewise.
13098         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: Likewise.
13099         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: Likewise.
13100         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: Likewise.
13101         * sysdeps/x86_64/fpu/svml_d_log2_core.S: Likewise.
13102         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: Likewise.
13103         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: Likewise.
13104         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: Likewise.
13105         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: Likewise.
13106         * math/libm-test.inc (pow_test_data): Exclude tests for qNaN
13107         in zero power.
13108
13109 2016-08-02  Florian Weimer  <fweimer@redhat.com>
13110
13111         [BZ #20370]
13112         * malloc/arena.c (get_free_list): Update comment.  Assert that
13113         arenas on the free list have no attached threads.
13114         (remove_from_free_list): New function.
13115         (reused_arena): Call it.
13116
13117 2016-08-02  Aurelien Jarno  <aurelien@aurel32.net>
13118
13119         * sysdeps/alpha/fpu/s_ceil.c (__ceil): Add argument with itself
13120         when it is a NaN.
13121         [_IEEE_FP_INEXACT] Remove.
13122         * sysdeps/alpha/fpu/s_ceilf.c (__ceilf): Likewise.
13123         * sysdeps/alpha/fpu/s_floor.c (__floor): Add argument with itself
13124         when it is a NaN.
13125         [_IEEE_FP_INEXACT] Remove.
13126         * sysdeps/alpha/fpu/s_floorf.c (__floorf): Likewise.
13127         * sysdeps/alpha/fpu/s_rint.c (__rint): Add argument with itself
13128         when it is a NaN.
13129         * sysdeps/alpha/fpu/s_rintf.c (__rintf): Likewise.
13130         * sysdeps/alpha/fpu/s_trunc.c (__trunc): Return the input value
13131         when its absolute value is greater than 0x1.0p52.
13132         [_IEEE_FP_INEXACT] Remove.
13133         * sysdeps/alpha/fpu/s_truncf.c (__truncf): Return the input value
13134         when its absolute value is greater than 0x1.0p23.
13135         [_IEEE_FP_INEXACT] Remove.
13136
13137 2016-08-01  Carlos O'Donell  <carlos@redhat.com>
13138
13139         * version.h (RELEASE): Set to "development"
13140         (VERSION): Set to 2.24.90.
13141         * NEWS: Add 2.25 section.
13142
13143         * version.h (RELEASE): Set to "stable"
13144         (VERSION): Set to 2.24.
13145         * include/features.h (__GLIBC_MINOR__): Set to 24.
13146
13147         * NEWS: Add 2.24 fixed bugs.
13148         * po/libc.pot: Regenerate.
13149
13150 2016-08-01  Aurelien Jarno  <aurelien@aurel32.net>
13151
13152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13153         [$(subdir) = math] (libm-sysdep_routines): Remove.
13154         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
13155         Remove s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
13156         s_truncf-vis3, s_trunc-vis3.
13157         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
13158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: Delete
13159         file.
13160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Likewise.
13161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Likewise.
13162         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: Likewise.
13163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: Likewise.
13164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
13165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: Likewise.
13166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Likewise.
13167         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
13168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: Likewise.
13169         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: Likewise.
13170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
13171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: Likewise.
13172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: Likewise.
13173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: Likewise.
13174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: Likewise.
13175         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
13176         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13177         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
13178         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: Likewise.
13179         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: Likewise.
13180         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: Likewise.
13181         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: Likewise.
13182         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
13183         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
13184         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: Likewise.
13185         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
13186         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
13187         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: Likewise.
13188         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
13189         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
13190         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: Likewise.
13191         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
13192         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
13193         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: Likewise.
13194         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: Likewise.
13195         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: Likewise.
13196         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: Likewise.
13197         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13198         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13199         * sysdeps/sparc/sparc64/fpu/s_floor.S: Likewise.
13200         * sysdeps/sparc/sparc64/fpu/s_floorf.S: Likewise.
13201         * sysdeps/sparc/sparc64/fpu/s_trunc.S: Likewise.
13202         * sysdeps/sparc/sparc64/fpu/s_truncf.S: Likewise.
13203
13204 2016-07-27  H.J. Lu  <hongjiu.lu@intel.com>
13205
13206         [BZ #20384]
13207         * sysdeps/x86_64/fpu/Makefile (extra-test-objs): Add
13208         test-double-libmvec-sincos-avx-main.o,
13209         test-double-libmvec-sincos-avx2-main.o,
13210         test-double-libmvec-sincos-main.o,
13211         test-float-libmvec-sincosf-avx-main.o,
13212         test-float-libmvec-sincosf-avx2-main.o and
13213         test-float-libmvec-sincosf-main.o.
13214         test-float-libmvec-sincosf-avx512-main.o.
13215         ($(objpfx)test-double-libmvec-sincos): Also link with
13216         $(objpfx)test-double-libmvec-sincos-main.o.
13217         ($(objpfx)test-double-libmvec-sincos-avx): Also link with
13218         $(objpfx)test-double-libmvec-sincos-avx-main.o.
13219         ($(objpfx)test-double-libmvec-sincos-avx2): Also link with
13220         $(objpfx)test-double-libmvec-sincos-avx2-main.o.
13221         ($(objpfx)test-float-libmvec-sincosf): Also link with
13222         $(objpfx)test-float-libmvec-sincosf-main.o.
13223         ($(objpfx)test-float-libmvec-sincosf-avx): Also link with
13224         $(objpfx)test-float-libmvec-sincosf-avx2-main.o.
13225         [$(config-cflags-avx512) == yes] (extra-test-objs): Add
13226         test-double-libmvec-sincos-avx512-main.o and
13227         ($(objpfx)test-double-libmvec-sincos-avx512): Also link with
13228         $(objpfx)test-double-libmvec-sincos-avx512-main.o.
13229         ($(objpfx)test-float-libmvec-sincosf-avx512): Also link with
13230         $(objpfx)test-float-libmvec-sincosf-avx512-main.o.
13231         (CFLAGS-test-double-libmvec-sincos.c): Removed.
13232         (CFLAGS-test-float-libmvec-sincosf.c): Likewise.
13233         (CFLAGS-test-double-libmvec-sincos-main.c): New.
13234         (CFLAGS-test-double-libmvec-sincos-avx-main.c): Likewise.
13235         (CFLAGS-test-double-libmvec-sincos-avx2-main.c): Likewise.
13236         (CFLAGS-test-float-libmvec-sincosf-main.c): Likewise.
13237         (CFLAGS-test-float-libmvec-sincosf-avx-main.c): Likewise.
13238         (CFLAGS-test-float-libmvec-sincosf-avx2-main.c): Likewise.
13239         (CFLAGS-test-float-libmvec-sincosf-avx512-main.c): Likewise.
13240         (CFLAGS-test-double-libmvec-sincos-avx.c): Set to -DREQUIRE_AVX.
13241         (CFLAGS-test-float-libmvec-sincosf-avx.c ): Likewise.
13242         (CFLAGS-test-double-libmvec-sincos-avx2.c): Set to
13243         -DREQUIRE_AVX2.
13244         (CFLAGS-test-float-libmvec-sincosf-avx2.c ): Likewise.
13245         (CFLAGS-test-double-libmvec-sincos-avx512.c): Set to
13246         -DREQUIRE_AVX512F.
13247         (CFLAGS-test-float-libmvec-sincosf-avx512.c): Likewise.
13248         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Rewritten.
13249         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
13250         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx-main.c: New
13251         file.
13252         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2-main.c:
13253         Likewise.
13254         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512-main.c:
13255         Likewise.
13256         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-main.c:
13257         Likewise.
13258         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx-main.c:
13259         Likewise.
13260         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2-main.c:
13261         Likewise.
13262         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512-main.c:
13263         Likewise.
13264         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-main.c:
13265         Likewise.
13266
13267 2016-07-27  Chung-Lin Tang  <cltang@codesourcery.com>
13268
13269         * sysdeps/unix/sysv/linux/nios2/localplt.data (__eqsf2): Remove.
13270
13271 2016-07-21  Gustavo Romero  <gromero@linux.vnet.ibm.com>
13272
13273         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix missing verb
13274         and typo in a comment about AT_HWCAP entry.
13275
13276 2016-07-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13277
13278         * sysdeps/aarch64/libm-test-ulps: Updated.
13279
13280 2016-07-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
13281
13282         * sysdeps/s390/s390-32/memcpy.S (memcpy): Eliminate the usage
13283         of r13 as it is not restored in mvcle case.
13284
13285 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
13286
13287         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
13288         Rename "ret" to "__ret".
13289         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
13290         inline_syscall5, inline_syscall6): Likewise.
13291
13292 2016-07-19   Will Newton  <will.newton@gmail.com>
13293
13294         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
13295         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
13296         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
13297         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
13298         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
13299
13300 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13301
13302         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
13303         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
13304         -mfpmath=387 with $(rtld-CFLAGS).
13305         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
13306         $(rtld-CFLAGS).
13307
13308 2016-07-18   Ross Burton  <ross.burton@intel.com>
13309              Khem Raj  <raj.khem@gmail.com>
13310
13311         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
13312         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
13313         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
13314         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
13315         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
13316         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
13317         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
13318         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
13319         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
13320         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
13321         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
13322         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
13323         R_METAG_TLS_DTPOFF): New.
13324
13325 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13326             Matt Clay  <mclay@lycos.com>
13327
13328         [BZ #20357]
13329         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
13330         to call __mpsin/__mpcos and to negate values.
13331         * math/auto-libm-test-in: Add test.
13332         * math/auto-libm-test-out: Regenerate.
13333
13334 2016-07-18  Zack Weinberg  <zackw@panix.com>
13335
13336         * grp/Makefile: Don't install the internal header grp-merge.h.
13337
13338 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13339
13340         * sysdeps/aarch64/libm-test-ulps: Regenerated.
13341
13342 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13343
13344         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
13345
13346 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13347
13348         [BZ #15368]
13349         * sysdeps/unix/sysv/linux/nptl-signals.h
13350         (__nptl_clear_internal_signals): New function.
13351         (__libc_signal_block_all): Likewise.
13352         (__libc_signal_block_app): Likewise.
13353         (__libc_signal_restore_set): Likewise.
13354         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
13355         implementation.
13356         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
13357         the cached pid/tid value in pthread structure.
13358
13359 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
13360
13361         [BZ #20347]
13362         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
13363
13364 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
13365
13366         [BZ #20348]
13367         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
13368         preadv64, pwrite64 and pwritev64.
13369
13370 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
13371
13372         [BZ #20350]
13373         * posix/tst-preadwrite.c: Renamed to ...
13374         * posix/tst-preadwrite-common.c: This.
13375         (PREAD): Removed.
13376         (PWRITE): Likewise.
13377         (STRINGIFY): Likewise.
13378         (STRINGIFY2): Likewise.
13379         (do_prepare): Make it static and remove function arguments.
13380         (do_test): Likewise.
13381         (PREPARE): Updated.
13382         (TEST_FUNCTION): New.
13383         (name): Make it static.
13384         (fd): Likewise.
13385         (do_prepare): Use create_temp_file.
13386         (do_test): Renamed to ...
13387         (do_test_with_offset): This.  Make it static and accept offset.
13388         Properly check return value of PWRITE and PREAD.  Return bytes
13389         read.  Don't close fd nor unlink name.
13390         * posix/tst-preadwrite.c: Rewrite.
13391         * posix/tst-preadwrite64.c: Likewise.
13392
13393 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
13394
13395         [BZ #20309]
13396         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
13397         -mtls-dialect=gnu2 works.
13398         * configure: Regenerated.
13399         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
13400         (tests): Add tst-gnu2-tls1.
13401         (modules-names): Add tst-gnu2-tls1mod.
13402         ($(objpfx)tst-gnu2-tls1): New.
13403         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
13404         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
13405         * elf/tst-gnu2-tls1.c: New file.
13406         * elf/tst-gnu2-tls1mod.c: Likewise.
13407         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
13408         bytes for push in the PLT entry to align the stack.
13409
13410 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
13411
13412         [BZ #20349]
13413         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
13414
13415 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13416
13417         [BZ #18707]
13418         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
13419         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
13420
13421 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13422
13423         * sysdeps/unix/sysv/linux/sysdep.h
13424         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
13425         guards.
13426         * misc/tst-preadvwritev-common.c: New file.
13427         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
13428         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
13429         a check for files larger than 2GB.
13430
13431         * sysdeps/unix/sysv/linux/mips/kernel-features.h
13432         (__ASSUME_OFF_DIFF_OFF64): Remove define.
13433         * sysdeps/unix/sysv/linux/pread.c
13434         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
13435         __OFF_T_MATCHES_OFF64_T.
13436         * sysdeps/unix/sysv/linux/pread64.c
13437         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
13438         * sysdeps/unix/sysv/linux/preadv.c
13439         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
13440         * sysdeps/unix/sysv/linux/preadv64.c
13441         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
13442         * sysdeps/unix/sysv/linux/pwrite.c
13443         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
13444         * sysdeps/unix/sysv/linux/pwrite64.c
13445         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
13446         * sysdeps/unix/sysv/linux/pwritev.c
13447         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
13448         * sysdeps/unix/sysv/linux/pwritev64.c
13449         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
13450
13451 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
13452
13453         * sysdeps/unix/sysv/linux/tile/kernel-features.h
13454         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
13455
13456 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
13457
13458         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
13459
13460 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
13461
13462         [BZ #20240]
13463         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
13464         (CFLAGS-s_modf-ppc32.c): New variable.
13465         (CFLAGS-s_modff-ppc32.c): Likewise.
13466         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13467         (CFLAGS-s_modf-ppc64.c): Likewise.
13468         (CFLAGS-s_modff-ppc64.c): Likewise.
13469
13470 2016-07-07  Andreas Schwab  <schwab@suse.de>
13471
13472         [BZ #20263]
13473         * nptl/tst-robust10.c: New test.
13474         * nptl/Makefile (tests): Add tst-robust10.
13475
13476 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
13477
13478         [BZ #20263]
13479         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
13480
13481 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
13482
13483         * sysdeps/s390/linkmap.h (struct link_map_machine):
13484         Remove member gotplt and add member jmprel.
13485         * sysdeps/s390/s390-32/dl-machine.h
13486         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
13487         instead of gotplt with &got[3].
13488         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
13489         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13490
13491 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
13492
13493         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
13494
13495 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13496
13497         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
13498         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
13499         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
13500         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
13501         * libio/vtables.c (_IO_vtable_check)
13502         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
13503         * libio/libioP.h (IO_set_accept_foreign_vtables)
13504         [!PTR_MANGLE]: Do not call PTR_MANGLE.
13505
13506 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
13507
13508         [BZ #20314]
13509         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
13510         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
13511         $(common-objpfx)cmath.
13512         ($(common-objpfx)cstdlib): New target.
13513         ($(common-objpfx)cmath): Likewise.
13514
13515 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
13516
13517         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
13518
13519 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13520
13521         [BZ #20327]
13522         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
13523         are not part of the string.
13524
13525 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13526
13527         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
13528         * nptl/tst-cancel4-common.h (fifoname): New variable.
13529         (fifofd): Likewise.
13530         (cl_fifo): New function.
13531         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
13532         SIGINT.
13533         (tf_open): Add early cancel test.
13534
13535 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
13536
13537         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
13538
13539 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
13540
13541         * sysdeps/generic/ldsodefs.h
13542         (dl_symbol_visibility_binds_local_p): New inline function.
13543         * elf/dl-addr.c (determine_info): Treat hidden and internal
13544         symbols as local.
13545         * elf/dl-lookup.c (do_lookup_x): Likewise.
13546         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
13547
13548 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
13549
13550         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
13551         invalid exception for a sNaN input.
13552         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
13553         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
13554         (__nearbyint_vis3): Likewise
13555         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
13556         (__nearbyintf_vis3): Likewise
13557         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
13558         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
13559         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
13560         Likewise.
13561         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
13562         Likewise.
13563
13564 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
13565
13566         [BZ #20139]
13567         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
13568         (HAVE_AVX512DQ_ASM_SUPPORT): This.
13569         * sysdeps/x86_64/configure.ac: Require assembler from binutils
13570         2.24 or above.
13571         (HAVE_AVX512_ASM_SUPPORT): Removed.
13572         (HAVE_AVX512DQ_ASM_SUPPORT): New.
13573         * sysdeps/x86_64/configure: Regenerated.
13574         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
13575         check unconditional.
13576         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
13577         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13578         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13579         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
13580         Likewise.
13581         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
13582         Likewise.
13583         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
13584         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
13585         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13586         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13587         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
13588         Likewise.
13589         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
13590         Likewise.
13591         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13592         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13593         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
13594         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
13595         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
13596         Likewise.
13597         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
13598         Likewise.
13599         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
13600         Likewise.
13601         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
13602         Likewise.
13603         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
13604         Likewise.
13605         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
13606         Likewise.
13607         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
13608         Likewise.
13609         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
13610         Likewise.
13611         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
13612         Likewise.
13613         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
13614         Likewise.
13615         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
13616         Likewise.
13617
13618 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
13619
13620         [BZ #20024]
13621         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
13622         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
13623         of this implementation of vector function.
13624         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
13625         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
13626         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
13627         Likewise.
13628         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
13629         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
13630         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
13631         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
13632         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
13633         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
13634         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
13635         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
13636         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
13637         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
13638         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
13639         for testing vector sincos with fixed ABI.
13640         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
13641         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
13642         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
13643         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
13644         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
13645         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
13646         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
13647         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
13648         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
13649         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
13650         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
13651         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
13652         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
13653         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
13654         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
13655         * sysdeps/x86_64/fpu/Makefile: Added new tests.
13656
13657 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
13658
13659         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
13660
13661 2016-06-30  Anton Blanchard  <anton@samba.org>
13662
13663         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13664         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
13665         s_sinf-ppc64.
13666         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
13667         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
13668         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
13669         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
13670
13671 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13672
13673         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13674         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13675         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
13676         e_expf-ppc64.
13677         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
13678         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
13679         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
13680         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
13681
13682 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
13683
13684         [BZ #20277]
13685         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
13686         when SHARED is defined.
13687
13688 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
13689
13690         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
13691         (index_arch_Prefer_ERMS): Likewise.
13692         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
13693         __memcpy_erms for Prefer_ERMS.
13694         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13695         (__memmove_erms): Enabled for libc.a.
13696         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
13697         __memmove_erms or Prefer_ERMS.
13698         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
13699         __mempcpy_erms for Prefer_ERMS.
13700         * sysdeps/x86_64/multiarch/memset.S (memset): Return
13701         __memset_erms for Prefer_ERMS.
13702
13703 2016-06-30  Andreas Schwab  <schwab@suse.de>
13704
13705         [BZ #20262]
13706         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
13707         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
13708         of memory.
13709
13710 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
13711
13712         [BZ #18645]
13713         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
13714         (test-extras): Add tst-cleanupx4aux.
13715         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
13716         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
13717         tst-cleanupx4aux.o.
13718         * nptl/tst-cleanupx4aux.c: New file.
13719
13720 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
13721
13722         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
13723
13724 2016-06-29  Andreas Schwab  <schwab@suse.de>
13725
13726         [BZ #20260]
13727         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
13728         address before the beginning of the string as an integer to avoid
13729         array-bounds warning.
13730
13731 2016-06-28  Richard Henderson  <rth@redhat.com>
13732
13733         * elf/elf.h (EM_BPF): New.
13734         (EM_NUM): Update.
13735         (R_BPF_NONE, R_BPF_MAP_FD): New.
13736
13737         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
13738         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
13739         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
13740         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
13741         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
13742         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
13743         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
13744         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
13745         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
13746         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
13747         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
13748         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
13749         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
13750         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
13751         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
13752         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
13753         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
13754         (EM_NUM): Update.
13755
13756 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
13757
13758         [BZ #18960]
13759         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
13760         Set _nl_current_LC_CATEGORY_used to two instead of one.
13761
13762 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
13763
13764         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
13765         (do_test): ... this.
13766         (TEST_FUNCTION): New macro.
13767          Include test-skeleton.c.
13768         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
13769         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
13770
13771 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
13772
13773         [BZ #15479]
13774         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
13775         floating-point environment rather than just control word.
13776         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
13777         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
13778         floating-point environment, with "invalid" exceptions merged in,
13779         rather than just control word.
13780         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
13781         * math/libm-test.inc (trunc_test_data): Do not allow spurious
13782         "inexact" exceptions.
13783
13784         [BZ #15479]
13785         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
13786         floating-point environment rather than just control word.
13787         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
13788         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
13789         floating-point environment, with "invalid" exceptions merged in,
13790         rather than just control word.
13791         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
13792         * math/libm-test.inc (floor_test_data): Do not allow spurious
13793         "inexact" exceptions.
13794
13795         [BZ #15479]
13796         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
13797         floating-point environment rather than just control word.
13798         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
13799         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
13800         floating-point environment, with "invalid" exceptions merged in,
13801         rather than just control word.
13802         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
13803         * math/libm-test.inc (ceil_test_data): Do not allow spurious
13804         "inexact" exceptions.
13805
13806 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
13807
13808         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
13809         __libc_vfork.
13810         (__vfork) [IS_IN (libc)]: Remove alias.
13811         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
13812         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
13813         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
13814
13815 2016-06-24  Torvald Riegel  <triegel@redhat.com>
13816
13817         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
13818         of atomic_compare_and_exchange_bool_rel.
13819         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
13820         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
13821         catomic_compare_and_exchange_bool_rel): Remove.
13822         * sysdeps/aarch64/atomic-machine.h
13823         (atomic_compare_and_exchange_bool_rel): Likewise.
13824         * sysdeps/alpha/atomic-machine.h
13825         (atomic_compare_and_exchange_bool_rel): Likewise.
13826         * sysdeps/arm/atomic-machine.h
13827         (atomic_compare_and_exchange_bool_rel): Likewise.
13828         * sysdeps/mips/atomic-machine.h
13829         (atomic_compare_and_exchange_bool_rel): Likewise.
13830         * sysdeps/microblaze/atomic-machine.h
13831         ( __arch_compare_and_exchange_bool_8_rel,
13832         __arch_compare_and_exchange_bool_16_rel): Likewise.
13833         * sysdeps/powerpc/atomic-machine.h
13834         ( __arch_compare_and_exchange_bool_8_rel,
13835         __arch_compare_and_exchange_bool_16_rel): Likewise.
13836         * sysdeps/powerpc/powerpc32/atomic-machine.h
13837         ( __arch_compare_and_exchange_bool_32_rel,
13838         __arch_compare_and_exchange_bool_64_rel): Likewise.
13839         * sysdeps/powerpc/powerpc64/atomic-machine.h
13840         ( __arch_compare_and_exchange_bool_32_rel,
13841         __arch_compare_and_exchange_bool_64_rel): Likewise.
13842         * sysdeps/tile/atomic-machine.h
13843         (atomic_compare_and_exchange_bool_rel): Likewise.
13844
13845 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
13846
13847         [BZ #20296]
13848         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
13849         when either argument is a NaN.
13850         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
13851         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
13852
13853         * math/libm-test.inc (snan_value_ld): New macro.
13854         (isgreater_test_data): Add sNaN tests.
13855         (isgreaterequal_test_data): Likewise.
13856         (isless_test_data): Likewise.
13857         (islessequal_test_data): Likewise.
13858         (islessgreater_test_data): Likewise.
13859         (isunordered_test_data): Likewise.
13860         (nextafter_test_data): Likewise.
13861         (nexttoward_test_data): Likewise.
13862         (remainder_test_data): Likewise.
13863         (remquo_test_data): Likewise.
13864         (significand_test_data): Likewise.
13865         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
13866
13867 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13868
13869         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
13870         environment macros are defined.
13871         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
13872
13873 2016-06-23  Florian Weimer  <fweimer@redhat.com>
13874
13875         [BZ #20191]
13876         Implement vtable verification in libio.
13877         * Makerules (shlib.lds): Place __libc_IO_vtables section.
13878         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
13879         * debug/vdprintf_chk.c (__vdprintf_chk): Call
13880         _IO_new_file_init_internal instead of _IO_file_init.
13881         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
13882         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
13883         * libio/Makefile (routines): Add vtables.
13884         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
13885         (_IO_init): Remove, not for internal use.
13886         (_IO_init_internal): Declare, internal replacement for _IO_init.
13887         (_IO_file_init): Remove, not for internal use.
13888         (_IO_new_file_init): Remove, not for internal use.
13889         (_IO_new_file_init_internal): Declare, internal replacement for
13890         _IO_new_file_init.
13891         (_IO_old_file_init): Remove, not for internal use.
13892         (_IO_old_file_init_internal): Declare, internal replacement for
13893         _IO_old_file_init.
13894         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
13895         internal use.
13896         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
13897         Declare.
13898         (libio_vtable): New macro.
13899         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
13900         functions.
13901         * libio/fileops.c (_IO_new_file_init_internal): Rename from
13902         _IO_new_file_init.
13903         (_IO_new_file_init): New externally visible wrapper which disables
13904         vtable verification.
13905         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
13906         Define as vtables.
13907         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
13908         (_IO_init): New externally visible wrapper which disables
13909         vtable verification.
13910         * libio/iofdopen.c (_IO_new_fdopen): Call
13911         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
13912         comment.
13913         * libio/iofopen.c (__fopen_internal): Call
13914         _IO_new_file_init_internal instead of _IO_file_init.
13915         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
13916         Define as vtables.
13917         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
13918         _IO_new_file_init_internal instead of _IO_file_init.
13919         * libio/iopopen.c (_IO_new_popen): Likewise.
13920         (_IO_proc_jumps): Define as vtable.
13921         * libio/iovdprintf.c (_IO_vdprintf): Call
13922         _IO_new_file_init_internal instead of _IO_file_init.
13923         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
13924         (__open_memstream): Call _IO_init_internal instead of _IO_init.
13925         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
13926         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
13927         _IO_old_file_init.
13928         (_IO_old_file_init): New externally visible wrapper which disables
13929         vtable verification.
13930         (_IO_old_file_jumps): Define as vtable.
13931         * libio/oldiofdopen.c (_IO_old_fdopen): Call
13932         _IO_old_file_init_internal instead of _IO_old_file_init.
13933         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
13934         * libio/oldiopopen.c (_IO_old_popen): Likewise.
13935         (_IO_old_proc_jumps): Define as vtable.
13936         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
13937         Define as vtables.
13938         * libio/vtables.c: New file.
13939         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
13940         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
13941         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
13942         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
13943         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
13944         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
13945         instead of _IO_init.
13946
13947 2016-06-23  Florian Weimer  <fweimer@redhat.com>
13948
13949         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
13950
13951 2016-06-23  Florian Weimer  <fweimer@redhat.com>
13952
13953         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
13954         potentially unused.
13955
13956 2016-06-22  Florian Weimer  <fweimer@redhat.com>
13957
13958         * test-skeleton.c (write_message): New function.
13959         * malloc/tst-mallocfork2.c (write_message): Remove.
13960         * debug/tst-longjmp_chk2.c (write_indented): New function.
13961         (write_message): Remove.
13962         (stackoverflow_handler): Call write_indented.
13963
13964 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
13965
13966         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
13967         "inexact" exceptions after fnstenv.
13968         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
13969         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
13970         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
13971
13972 2015-06-22  Zack Weinberg  <zackw@panix.com>
13973
13974         * sysdeps/generic/bits/hwcap.h: Moved to ...
13975         * bits/hwcap.h: Here.
13976
13977 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
13978
13979         * sysdeps/aarch64/memcpy.S (memcpy):
13980         Further tuning for performance.
13981
13982 2016-06-21  Florian Weimer  <fweimer@redhat.com>
13983
13984         [BZ #20284]
13985         * malloc/arena.c (reused_arena): Do not return NULL if we start
13986         out with a non-corrupted arena.
13987
13988 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13989
13990         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
13991         * misc/tst-preadvwritev.c: New file.
13992         * misc/tst-preadvwritev64.c: Likewise.
13993         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
13994         usage.
13995         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
13996         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
13997         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
13998         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
13999
14000 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
14001
14002         [BZ #19654]
14003         * sysdeps/x86_64/fpu/Makefile: Added new tests.
14004         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
14005         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
14006         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
14007         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
14008         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
14009         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
14010         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
14011         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
14012         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
14013         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
14014         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
14015         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
14016         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
14017         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
14018         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
14019         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
14020         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
14021         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
14022         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
14023         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
14024         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
14025         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
14026         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
14027         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
14028         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
14029
14030 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
14031
14032         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
14033         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
14034
14035 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
14036
14037         * sysdeps/aarch64/memcpy.S (memcpy):
14038         Rewrite of optimized memcpy and memmove.
14039         * sysdeps/aarch64/memmove.S (memmove): Remove
14040         memmove code (merged into memcpy.S).
14041
14042 2016-06-20  Florian Weimer  <fweimer@redhat.com>
14043
14044         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
14045         * sysdeps/generic/dl-dtv.h: New file.
14046         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14047         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
14048         (dtv_t): Remove.
14049         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14050         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
14051         (dtv_t): Remove.
14052         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14053         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
14054         (dtv_t): Remove.
14055         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14056         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
14057         (dtv_t): Remove.
14058         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14059         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
14060         (dtv_t): Remove.
14061         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14062         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
14063         (dtv_t): Remove.
14064         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14065         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
14066         (dtv_t): Remove.
14067         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
14068         (dtv_t): Remove.
14069         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14070         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
14071         (dtv_t): Remove.
14072         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14073         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
14074         (dtv_t): Remove.
14075         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14076         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
14077         (dtv_t): Remove.
14078         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14079         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
14080         (dtv_t): Remove.
14081         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14082         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
14083         (dtv_t): Remove.
14084         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14085         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
14086         (dtv_t): Remove.
14087         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14088         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
14089         (dtv_t): Remove.
14090         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14091         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
14092         (dtv_t): Remove.
14093
14094 2016-06-20  Florian Weimer  <fweimer@redhat.com>
14095
14096         Revert symbol poisoning of  __malloc_initialize_hook.
14097         * include/stdc-predef.h (__malloc_initialize_hook): Remove
14098         poisoning.
14099         * malloc/Makefile: Remove un-poisoning.
14100         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
14101         instead of old__malloc_initialize_hook.
14102         * malloc/malloc-hooks.h: Likewise.
14103         * malloc/malloc.c: Likewise.
14104         * malloc/mcheck-init.c: Likewise.
14105
14106 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
14107
14108         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
14109
14110 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
14111
14112         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
14113         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
14114         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
14115         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
14116
14117 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14118
14119         * NEWS: Mention addition of nextup and nextdown.
14120         * manual/arith.texi: Document nextup and nextdown.
14121         * manual/libm-err-tab.pl: Add nextup and nextdown.
14122         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
14123         * math/Versions (libm): Add GLIBC_2.24.
14124         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
14125         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
14126         Add new test.
14127         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
14128         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
14129         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
14130         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
14131         (nextup_test_data): Likewise.
14132         (nextdown_test_data): Likewise.
14133         * math/s_nextdown.c: New file.
14134         * math/s_nextdownf.c: Likewise.
14135         * math/s_nextdownl.c: Likewise.
14136         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
14137         F(nextup): New function.
14138         F(nextdown): Likewise.
14139         * math/tgmath.h: Add nextup and nextdown.
14140         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
14141         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
14142         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
14143         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
14144         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
14145         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
14146         Add nextup and nextdown.
14147         (CFLAGS-nldbl-nextup.c): New variable.
14148         (CFLAGS-nldbl-nextdown.c): Likewise.
14149         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
14150         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
14151         * sysdeps/nacl/libm.abilist: Update.
14152         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14153         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14154         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14155         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14156         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14157         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14158         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14159         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14160         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14161         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14162         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14163         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14166         Likewise.
14167         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14169         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14170         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14171         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14172         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14173         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14174         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
14175         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
14176         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
14177         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14178         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14179         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14180
14181 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14182
14183         * manual/pattern.texi: Fix typos & grammar errors.
14184
14185 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14186
14187         * manual/search.texi: Fix typos & grammar errors.
14188
14189 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14190
14191         * manual/message.texi: Fix typos & grammar errors.
14192
14193 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
14194
14195         * manual/contrib.texi: Fix spelling typos.
14196         * manual/crypt.texi: Likewise.
14197         * manual/filesys.texi: Likewise.
14198         * manual/locale.texi: Likewise.
14199         * manual/message.texi: Likewise.
14200         * manual/nss.texi: Likewise.
14201         * manual/string.texi: Likewise.
14202
14203 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14204
14205         * manual/locale.texi: Fix typos & grammar errors.
14206
14207 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14208
14209         * manual/charset.texi: Fix typos & grammar errors.
14210
14211 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14212
14213         * manual/string.texi: Fix typos.
14214
14215 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14216
14217         * manual/ctype.texi: Fix typos.
14218
14219 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14220
14221         * manual/memory.texi: Fix various typos & grammar errors.
14222
14223 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
14224
14225         [BZ #20255]
14226         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
14227         * math/libm-test.inc (fdim_test_data): Add another test.
14228
14229         [BZ #6796]
14230         [BZ #20255]
14231         [BZ #20256]
14232         * math/s_fdim.c: Include <math_private.h>.
14233         (__fdim): Use math_narrow_eval on result.
14234         * math/s_fdimf.c: Include <math_private.h>.
14235         (__fdimf): Use math_narrow_eval on result.
14236         * sysdeps/i386/fpu/s_fdim.S: Remove file.
14237         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
14238         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
14239         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
14240         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
14241         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
14242         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
14243         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
14244         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
14245         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
14246         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
14247         * math/libm-test.inc (fdim_test_data): Expect errno setting on
14248         overflow.  Add sNaN tests.
14249
14250         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
14251         fpclassify.
14252         * math/s_fdimf.c (__fdimf): Likewise.
14253         * math/s_fdiml.c (__fdiml): Likewise.
14254
14255 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14256
14257         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
14258         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
14259         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
14260         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
14261         ifunc'ed strcasecmp/strncasecmp.
14262         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
14263         [EALIGN]: Removed.
14264         [END]: Likewise.
14265         [__strcasecmp]: Define instead of the above to control symbol name.
14266         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
14267         for __strcasecmp_power8.
14268         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
14269         for __strncasecmp_power8.
14270         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
14271         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
14272         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
14273         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
14274         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
14275         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
14276
14277 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
14278
14279         [BZ #20252]
14280         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
14281         arguments when second argument is a NaN.
14282         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
14283         qNaN tests.
14284
14285         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
14286         (conj_test_data): Likewise.
14287         (copysign_test_data): Likewise.
14288         (creal_test_data): Likewise.
14289         (fma_test_data): Likewise.
14290         (fmod_test_data): Likewise.
14291
14292         [BZ #20250]
14293         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
14294         itself.
14295         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
14296         zero input to itself.
14297         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
14298         Likewise.
14299         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
14300         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
14301         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
14302         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
14303         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
14304
14305 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14306
14307         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
14308         * nptl/tst-cancel4-common.c: New file.
14309         * nptl/tst-cancel4-common.h: Likewise.
14310         * nptl/tst-cancel4.c: Move common definitions to
14311         tst-cancel4-common.{c,h} file.
14312         * nptl/tst-cancel4_1.c: New test.
14313         * nptl/tst-cancel4_2.c: New test.
14314
14315 2016-06-13  Florian Weimer  <fweimer@redhat.com>
14316
14317         [BZ #20248]
14318         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
14319         (write_message): New function.
14320         (stackoverflow_handler): Call it instead of printf, to avoid
14321         excessive stack usage by printf.
14322         (do_test): Restore SIGSEGV, SIGBUS default handlers.
14323
14324 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14325
14326         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
14327         (prio_inherit_missing): Remove define.
14328         * sysdeps/unix/sysv/linux/arm/kernel-features.h
14329         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14330         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
14331         Likewise.
14332         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
14333         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14334         * sysdeps/unix/sysv/linux/mips/kernel-features.h
14335         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14336         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14337         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14338
14339 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
14340
14341         [BZ #19670]
14342         [BZ #19672]
14343
14344         * io/test-lfs.c (do_prepare): Use xmalloc.
14345         * io/tst-fcntl.c (do_prepare): Likewise.
14346         * libio/tst-fopenloc.c (do_bz17916): Likewise.
14347         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
14348         * login/tst-utmp.c (do_prepare): Likewise.
14349         * posix/tst-exec.c (do_prepare): Likewise.
14350         * posix/tst-pathconf.c (prepare): Likewise.
14351         * posix/tst-spawn.c (do_prepare): Likewise.
14352         * posix/tst-truncate.c (do_prepare): Likewise.
14353         * rt/tst-aio.c (do_prepare): Likewise.
14354         * rt/tst-aio64.c (do_prepare): Likewise.
14355
14356 2016-06-11  Florian Weimer  <fweimer@redhat.com>
14357
14358         [BZ #20237]
14359         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
14360         (get*ent): Set entidx to NULL during initialization.  If entidx is
14361         NULL, start iteration from the beginning.
14362
14363 2016-06-11  Florian Weimer  <fweimer@redhat.com>
14364
14365         * malloc/malloc.c (musable): Return correct size for dumped fake
14366         mmapped chunk.
14367
14368 2016-06-11  Florian Weimer  <fweimer@redhat.com>
14369
14370         [BZ #20222]
14371         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
14372         (_IO_cookie_write): Likewise.
14373         (_IO_cookie_seek): Likewise.
14374         (_IO_cookie_close): Likewise.
14375         (_IO_old_cookie_seek): Likewise.
14376         (set_callbacks): New function.
14377         (_IO_cookie_init): Call set_callbacks to copy callbacks.
14378
14379 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
14380
14381         * locale/programs/localedef.c (oldstyle_tables): Remove.
14382         * locale/programs/localedef.h (oldstyle_tables): Likewise.
14383
14384 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
14385
14386         [BZ #20240]
14387         * math/Makefile (CFLAGS-s_modf.c): New variable.
14388         (CFLAGS-s_modff.c): Likewise.
14389         (CFLAGS-s_modfl.c): Likewise.
14390         * math/libm-test.inc (modf_test_data): Add sNaN tests.
14391
14392 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
14393
14394         [BZ #20215]
14395         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
14396         [!__GNUC_PREREQ (3,2)]: Likewise.
14397
14398 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
14399
14400         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
14401         (msghdr.msg_controllen): Likewise.
14402         (cmsghdr.cmsg_len): Likewise.
14403         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
14404         ptw-oldsendmsg.
14405         (CFLAGS-oldrecvmsg.c): Remove rule.
14406         (CFLAGS-oldsendmsg.c): Likewise.
14407         (CFLAGS-recvmsg.c): Add rule.
14408         (CFLAGS-sendmsg.c): Likewise.
14409         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
14410         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
14411         (CFLAGS-recvmsg.c): Remove rule.
14412         (CFLAGS-sendmsg.c): Likewise.
14413         (CFLAGS-oldrecvmsg.c): Likewise.
14414         (CFLAGS-oldsendmsg.c): Likewise.
14415         (CFLAGS-recvmmsg.c): Likewise.
14416         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
14417         to kernel defined interfaces.
14418         (msghdr.msg_controllen): Likewise.
14419         (cmsghdr.cmsg_len): Likewise.
14420         (msghdr.__glibc_reserved1): Remove member.
14421         (msghdr.__glibc_reserved2): Likewise.
14422         (cmsghdr.__glibc_reserved1): Likewise.
14423         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
14424         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
14425         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
14426         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
14427         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
14428         version.
14429         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
14430         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
14431         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
14432         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
14433         Remove recvmsg and sendmsg.
14434         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
14435         Likewise.
14436         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
14437         Likewise.
14438         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
14439         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
14440         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
14441         Likewise.
14442         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
14443         Likewise.
14444         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
14445         [libc] (GLIBC_2.24): Likewise.
14446         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
14447         Likewise.
14448         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
14449         Likewise.
14450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
14451         [libc] (GLIBC_2.24): Likewise.
14452         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
14453         Likewise.
14454         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
14455         Likewise.
14456         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
14457         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
14458         Likewise.
14459         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
14460         Likewise.
14461         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
14462         Likewise.
14463         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
14464         Likewise.
14465         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
14466         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
14467         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
14468         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
14469         version for {recv,send,recm,sendm}msg.
14470         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14471         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14472         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14473         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14474         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14475         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14476         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14477         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14478         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14479         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14480         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14481         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14483         Likewise.
14484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14485         Likewise.
14486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14488         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14489         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14490         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14491         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14492         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14493         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14494         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
14495         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
14496         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
14497         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14498         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14499
14500 2016-06-10  Florian Weimer  <fweimer@redhat.com>
14501
14502         [BZ #19564]
14503         Remove __malloc_initialize_hook from the API.
14504         * malloc/malloc.h (__malloc_initialize_hook): Remove.
14505         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
14506         #pragma GCC poison.
14507         * malloc/malloc-hooks.h: New file.
14508         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
14509         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
14510         (old__malloc_initialize_hook): Rename from
14511         __malloc_initialize_hook to evade poisoning.  Turn into compat
14512         symbol.
14513         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
14514         __malloc_initialize_hook.
14515         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
14516         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
14517         * manual/memory.texi (Hooks for Malloc): Remove
14518         __malloc_initialize_hook.  Adjust hook example.
14519
14520 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
14521
14522         [BZ #20235]
14523         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
14524         itself.
14525         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
14526         * math/libm-test.inc (log2_test_data): Add sNaN tests.
14527
14528         [BZ #20234]
14529         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
14530         infinity or NaN input to itself.
14531
14532         [BZ #20233]
14533         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
14534         to itself.
14535
14536         [BZ #20232]
14537         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
14538         itself.
14539
14540 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
14541
14542         * sysdeps/x86_64/start.S (_start): Always indirect branch to
14543         __libc_start_main via GOT.
14544
14545 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
14546
14547         * sysdeps/x86_64/memcopy.h: New file.
14548         * sysdeps/x86_64/wordcopy.c: Likewise.
14549
14550 2016-06-09  Florian Weimer  <fweimer@redhat.com>
14551
14552         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
14553         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
14554         <cstdlib>.
14555         (optimization_barrier): New.
14556         (do_test): Use it.  Call quick_exit in the global namespace.
14557         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
14558         instead of <cstdlib>, <thread>.
14559         (optimization_barrier): New.
14560         (non_main_thread): Adjust declaration.  Call optimization_barrier.
14561         Call quick_exit in the global namespace.
14562         (do_test): Call optimization_barrier.  Use pthread_create,
14563         pthread_join instead of std::thread.
14564
14565 2016-06-09  Andreas Schwab  <schwab@suse.de>
14566
14567         [BZ #19755]
14568         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
14569         new entries in auto-propagate mode.
14570         * nscd/grpcache.c (cache_addgr): Likewise.
14571
14572 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
14573
14574         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
14575         New functions.
14576         (add_temp_file): Use them.
14577
14578 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
14579
14580         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
14581
14582 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
14583
14584         [BZ #20229]
14585         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
14586         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
14587         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
14588
14589         [BZ #20228]
14590         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
14591         itself.
14592         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
14593         * math/libm-test.inc (log10_test_data): Add sNaN tests.
14594
14595         [BZ #20227]
14596         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
14597         itself.
14598         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
14599         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
14600         * math/libm-test.inc (log_test_data): Add sNaN tests.
14601
14602         [BZ #20226]
14603         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
14604         itself.
14605         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
14606         * math/libm-test.inc (exp_test_data): Add sNaN tests.
14607         (exp10_test_data): Likewise.
14608         (expm1_test_data): Likewise.
14609
14610         [BZ #20225]
14611         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
14612         itself.
14613         * math/s_ldexpf.c (__ldexpf): Likewise.
14614         * math/s_ldexpl.c (__ldexpl): Likewise.
14615         * math/w_scalbln.c (__w_scalbln): Likewise.
14616         * math/w_scalblnf.c (__w_scalblnf): Likewise.
14617         * math/w_scalblnl.c (__w_scalblnl): Likewise.
14618         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
14619         (scalbln_test_data): Likewise.
14620
14621         [BZ #20224]
14622         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
14623         argument to itself.
14624         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
14625
14626 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
14627
14628         [BZ #19776]
14629         * sysdeps/x86_64/memcpy.S: Make it dummy.
14630         * sysdeps/x86_64/mempcpy.S: Likewise.
14631         * sysdeps/x86_64/memmove.S: New file.
14632         * sysdeps/x86_64/memmove_chk.S: Likewise.
14633         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
14634         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
14635         * sysdeps/x86_64/memmove.c: Removed.
14636         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
14637         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
14638         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
14639         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
14640         Likewise.
14641         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
14642         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14643         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
14644         memcpy-sse2-unaligned, memmove-avx-unaligned,
14645         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
14646         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14647         (__libc_ifunc_impl_list): Replace
14648         __memmove_chk_avx512_unaligned_2 with
14649         __memmove_chk_avx512_unaligned.  Remove
14650         __memmove_chk_avx_unaligned_2.  Replace
14651         __memmove_chk_sse2_unaligned_2 with
14652         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
14653         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
14654         with __memmove_avx512_unaligned.  Replace
14655         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
14656         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
14657         with __memcpy_chk_avx512_unaligned.  Remove
14658         __memcpy_chk_avx_unaligned_2.  Replace
14659         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
14660         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
14661         Replace __memcpy_avx512_unaligned_2 with
14662         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
14663         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
14664         with __mempcpy_chk_avx512_unaligned.  Remove
14665         __mempcpy_chk_avx_unaligned_2.  Replace
14666         __mempcpy_chk_sse2_unaligned_2 with
14667         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
14668         Replace __mempcpy_avx512_unaligned_2 with
14669         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
14670         Replace __mempcpy_sse2_unaligned_2 with
14671         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
14672         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
14673         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
14674         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
14675         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
14676         (ENTRY): Removed.
14677         (END): Likewise.
14678         (ENTRY_CHK): Likewise.
14679         (libc_hidden_builtin_def): Likewise.
14680         Don't include ../memcpy.S.
14681         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
14682         __memcpy_chk_avx512_unaligned_erms and
14683         __memcpy_chk_avx512_unaligned.  Use
14684         __memcpy_chk_avx_unaligned_erms and
14685         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
14686         Default to __memcpy_chk_sse2_unaligned.
14687         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
14688         Change function suffix from unaligned_2 to unaligned.
14689         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
14690         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
14691         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
14692         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
14693         (ENTRY): Removed.
14694         (END): Likewise.
14695         (ENTRY_CHK): Likewise.
14696         (libc_hidden_builtin_def): Likewise.
14697         Don't include ../mempcpy.S.
14698         (mempcpy): New.  Add a weak alias.
14699         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
14700         __mempcpy_chk_avx512_unaligned_erms and
14701         __mempcpy_chk_avx512_unaligned.  Use
14702         __mempcpy_chk_avx_unaligned_erms and
14703         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
14704         Default to __mempcpy_chk_sse2_unaligned.
14705
14706 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
14707
14708         [BZ #19881]
14709         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
14710         into ...
14711         * sysdeps/x86_64/memset.S: This.
14712         (__bzero): Removed.
14713         (__memset_tail): Likewise.
14714         (__memset_chk): Likewise.
14715         (memset): Likewise.
14716         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
14717         defined.
14718         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
14719         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
14720         (__memset_zero_constant_len_parameter): Check SHARED instead of
14721         PIC.
14722         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
14723         memset-avx2 and memset-sse2-unaligned-erms.
14724         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14725         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
14726         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
14727         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14728         (__bzero): Enabled.
14729         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
14730         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
14731         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
14732         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
14733         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
14734         (memset): Removed.
14735         (__memset_chk): Likewise.
14736         (MEMSET_SYMBOL): New.
14737         (libc_hidden_builtin_def): Replace __memset_sse2 with
14738         __memset_sse2_unaligned.
14739         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
14740         __memset_chk_sse2 and __memset_chk_avx2 with
14741         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
14742         Use __memset_chk_sse2_unaligned_erms or
14743         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
14744         __memset_chk_avx512_unaligned_erms and
14745         __memset_chk_avx512_unaligned.
14746
14747 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14748
14749         * math/gen-auto-libm-test.c (fp_format_desc): remove
14750         suffix member.
14751         (output_generic_value): Remove usage of suffix member,
14752         and the resulting unuse of the fp_format argument.
14753         (output_for_one_input_case): Remove unused fp_format
14754         parameter.
14755
14756         * math/auto-libm-test-out: Regenerate.
14757
14758         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
14759         usage with TEST_COND_ibm128.
14760         (TEST_COND_flt_32): Remove.
14761         (TEST_COND_dbl_64): Remove.
14762         (TEST_COND_ldbl_96_intel): Remove.
14763         (TEST_COND_ldbl_96_m68k): Remove.
14764         (TEST_COND_ldbl_128): Remove.
14765
14766 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14767
14768         * auto-libm-test-in:
14769         Replace flt-32 usage with binary32.
14770         Replace dbl-64 usage with binary64.
14771         Replace ldbl-intel-96 usage with intel96.
14772         Replace ldbl-m68k-96 usage with m68k96.
14773         Replace ldbl-128ibm usage with ibm128.
14774         Replace ldbl-128 usage with binary128.
14775
14776         * auto-libm-test-out: Regenerate.
14777
14778 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14779
14780         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
14781         (parse_ulps): Dynamically generate type name matching
14782         string from all_floats.
14783         (get_ulps): Generate the ulps as an array instead.
14784         (output_ulps): Dynamically compose the type based
14785         on the number of supported formats, and print
14786         the indices as type specific helper macros.
14787
14788         * math/libm-test.inc: Remove comment about CHOOSE.
14789         (ulp_data): Generate the type in libm-test-ulps.h.
14790         (ULP_IDX): New macro.
14791         (find_ulps): Update usage of max_ulp.
14792
14793         * math/test-double-vlen2.h (CHOOSE): Remove.
14794         * math/test-double-vlen4.h (CHOOSE): Likewise.
14795         * math/test-double-vlen8.h (CHOOSE): Likewise.
14796         * math/test-float.c (CHOOSE): Likewise.
14797         * math/test-float-finite.c (CHOOSE): Likewise.
14798         * math/test-double.c (CHOOSE): Likewise.
14799         * math/test-double-finite.c (CHOOSE): Likewise.
14800         * math/test-idouble.c (CHOOSE): Likewise.
14801         * math/test-ifloat.c (CHOOSE): Likewise.
14802         * math/test-ildoubl.c (CHOOSE): Likewise.
14803         * math/test-ldouble-finite.c (CHOOSE): Likewise.
14804         * math/test-ldouble.c (CHOOSE): Likewise.
14805
14806         * math/test-float.h (TEST_FLOAT): Remove.
14807         * math/test-double.h (TEST_DOUBLE): Likewise.
14808         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
14809
14810 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14811
14812         * math/gen-libm-test.pl: (apply_lit): New subroutine.
14813         (parse_args): Strip C suffix from floating point literals
14814         typed with 'f' and wrap them with LIT().
14815
14816         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
14817         (test_ff_f_data_nexttoward): Rename to
14818         (test_fj_f_data): New struct.
14819         (nexttoward_test_data): Relabel tests as
14820         TEST_fj_f instead of TEST_ff_f.
14821
14822 2016-06-08  Florian Weimer  <fweimer@redhat.com>
14823
14824         Emacs bug 23726.
14825         * malloc/malloc.c (dumped_main_arena_start): Update comment.
14826         (__libc_realloc): Correct size computation for dumped fake mmapped
14827         chunks.
14828
14829 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
14830
14831         [BZ #20219]
14832         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
14833         to itself.
14834         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
14835
14836         [BZ #20218]
14837         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
14838         to itself.
14839         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
14840
14841 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
14842
14843         [BZ #20195]
14844         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
14845         check to ...
14846         (init_cpu_features): Here.
14847
14848 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
14849
14850         [BZ #20214]
14851         * sysdeps/unix/sysv/linux/bits/in.h
14852         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
14853          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
14854         Define to 1.
14855         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
14856          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
14857         Define to 0.
14858         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
14859         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
14860
14861 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
14862
14863         [BZ #20198]
14864         * stdlib/Makefile (tests): Add tst-quick_exit, and
14865         tst-thread-quick_exit.
14866         [ifeq ($(have-cxx-thread_local),yes)]
14867         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
14868         (CFLAGS-tst-thread-quick_exit.o): Likewise.
14869         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
14870         (LDLIBS-tst-thread-quick_exit): Likewise.
14871         [ifneq ($(have-cxx-thread_local),yes)]
14872         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
14873         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
14874         If run_dtors is true call __call_tls_dtors.
14875         (exit): Call __run_exit_handlers with run_dtors set to true.
14876         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
14877         definition.
14878         * stdlib/quick_exit.c (quick_exit): Remove function.
14879         (__new_quick_exit): New function.
14880         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
14881         function.
14882         * stdlib/tst-quick_exit.cc: New file.
14883         * stdlib/tst-thread-quick_exit.cc: New file.
14884         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
14885         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
14886         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
14887         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
14888         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
14889         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
14890         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
14891         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
14892         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
14893         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
14894         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
14895         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
14896         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
14897         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
14898         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
14899         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
14900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
14901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
14902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
14903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
14904         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
14905         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
14906         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
14907         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
14908         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
14909         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
14910         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
14911         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
14912         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
14913         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
14914
14915 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
14916
14917         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
14918         a typo in comments.
14919
14920 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
14921
14922         [BZ #20213]
14923         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
14924         argument to itself.
14925         * math/libm-test.inc (asin_test_data): Add sNaN tests.
14926
14927 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14928
14929         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
14930         required flags.
14931         (CFLAGS-pwritev64.c): Likewise.
14932         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
14933         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
14934         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
14935         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
14936         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likewise.
14937         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
14938         syscall from auto-generation.
14939         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
14940         [WORDSIZE == 64] (pwritev64): Remove macro.
14941         [!PWRITEV] (PWRITEV): Likewise.
14942         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
14943         [!PWRITEV] (PWRITE): Likewise.
14944         [!PWRITEV] (OFF_T): Likewise.
14945         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
14946         (LO_HI_LONG): Remove macro.
14947         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
14948         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
14949         (PWRITEV): Remove macro.
14950         (PWRITEV_REPLACEMENTE): Likewise.
14951         (PWRITE): Likewise.
14952         (OFF_T): Likewise.
14953         (pwritev64): New function.
14954         * nptl/tst-cancel4.c (tf_writev): Add test.
14955
14956         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
14957         required flags.
14958         (CFLAGS-preadv64.c): Likewise.
14959         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
14960         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
14961         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
14962         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
14963         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likewise.
14964         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
14965         syscall from auto-generation.
14966         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
14967         [WORDSIZE == 64] (preadv64): Remove macro.
14968         [!PREADV] (PREADV): Likewise.
14969         [!PREADV] (PREADV_REPLACEMENT): Likewise.
14970         [!PREADV] (PREAD): Likewise.
14971         [!PREADV] (OFF_T): Likewise.
14972         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
14973         (LO_HI_LONG): Remove macro.
14974         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
14975         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
14976         (PREADV): Remove macro.
14977         (PREADV_REPLACEMENTE): Likewise.
14978         (PREAD): Likewise.
14979         (OFF_T): Likewise.
14980         (preadv64): New function.
14981         * nptl/tst-cancel4.c (tf_preadv): Add test.
14982
14983 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
14984
14985         [BZ #20212]
14986         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
14987         argument to itself.
14988         * math/libm-test.inc (acos_test_data): Add sNaN tests.
14989
14990 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14991
14992         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
14993         New symbol defined as libc_hidden_def.
14994         (strcasestr): Became a weak alias to __strcasestr.
14995         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
14996         according to multi-arch support.  Move __stpncpy hidden
14997         definition from here to...
14998         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
14999         symbol stpncpy.
15000         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
15001         libc_hidden_builtin_def.
15002         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
15003         memset symbol to use when multi-arch support is available.
15004
15005 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
15006
15007         * dlfcn/tst-rec-dlopen.c: Include string.h.
15008
15009 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15010
15011         * manual/install.texi: Remove mention of --without-tls
15012         * INSTALL: Regenerate.
15013
15014 2016-06-05  Florian Weimer  <fweimer@redhat.com>
15015
15016         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
15017         Remove.
15018         (call_function, interposed_malloc_called): New variables.
15019         (malloc): New function.
15020         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
15021         and clear call_function as needed.
15022
15023 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
15024
15025         * include/wchar.h (__wmemset): Use __typeof.
15026
15027 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
15028
15029         * include/wchar.h (__wmemset): Declare function without typeof.
15030
15031 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
15032
15033         [BZ #20205]
15034         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
15035         exponent when incrementing negative subnormal with low mantissa
15036         word zero.
15037         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
15038         Add another test.
15039
15040 2016-06-03  Florian Weimer  <fweimer@redhat.com>
15041
15042         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
15043         __wmemset instead of wmemset.
15044
15045 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
15046
15047         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
15048         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
15049         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
15050         __USE_KERNEL_IPV6_DEFS to 0.
15051         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
15052         Update comment.
15053
15054 2016-06-01  Florian Weimer  <fweimer@redhat.com>
15055
15056         [BZ #19861]
15057         Do not use IFUNC resolver with potentially unrelocated symbol.
15058         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
15059         (DEFINE_FORK): Remove macro and inline definition.
15060         (fork_alias): Renamed from fork_ifunc.
15061         (__fork_alias): Renamed from __fork_ifunc.
15062
15063 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
15064
15065         [BZ 19653]
15066         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
15067         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
15068
15069 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15070
15071         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
15072         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
15073         i386-linux-gnu).
15074         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
15075         Set to no.
15076         * sysdeps/mach/hurd/configure: Refresh.
15077
15078 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15079
15080         [BZ #20178]
15081         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
15082         on failure instead of exit.
15083
15084 2016-05-30  Roland McGrath  <roland@hack.frob.com>
15085
15086         [BZ #3629]
15087         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
15088         of POSIX.1-2008.
15089
15090 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15091
15092         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
15093           Use PLT entry for calling _hurd_self_sigstate.
15094
15095 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
15096
15097         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
15098         available logical processors with SMT level type sharing L2
15099         cache for Intel processors.
15100
15101 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
15102
15103         [BZ #20160]
15104         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
15105         argument to itself before returning the result.
15106         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
15107         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
15108         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
15109         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
15110         Likewise.
15111         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
15112         Likewise.
15113         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
15114         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
15115         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
15116         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
15117         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
15118         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
15119
15120         [BZ #20160]
15121         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
15122         argument to itself before returning the result.
15123         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
15124         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
15125         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
15126         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
15127         Likewise.
15128         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
15129         Likewise.
15130         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
15131         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
15132         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
15133         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
15134         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
15135         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
15136
15137 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15138
15139         * libm-test.inc: Replace usage of M_El with
15140         (lit_e): New macro.
15141
15142 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15143
15144         * libm-test.inc: Replace usage of M_PI_4l with
15145         (lit_pi_4_d): New macro.
15146
15147 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15148
15149         * libm-test.inc: Replace usage of M_PIl with
15150         (lit_pi): New macro.
15151
15152 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15153
15154         * libm-test.inc: Replace usage of M_PI2l with
15155         (lit_pi_2_d): New macro.
15156
15157         * math/test-double.h (LITM): New macro.
15158         * math/test-float.h (LITM): Likewise.
15159         * math/test-ldouble.h (LITM): Likewise.
15160
15161 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15162
15163         * libm-test.inc (M_PI_34l): Rename to
15164         (lit_pi_3_m_4_d): New Macro.
15165         (M_PI_34_LOG10El): Rename to
15166         (lit_pi_3_m_4_ln10_m_d): New Macro.
15167         (M_PI2_LOG10El): Rename to
15168         (lit_pi_2_ln10_m_d):  New Macro.
15169         (M_PI4_LOG10El): Rename to
15170         (lit_pi_4_ln10_m_d):  New Macro.
15171         (M_PI_LOG10El): Rename to
15172         (lit_pi_ln10_d):  New Macro.
15173
15174 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
15175
15176         [BZ #20157]
15177         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
15178         determine whether to negate low half if [_ARCH_PPCGR], and integer
15179         comparison otherwise.
15180         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
15181         determine whether to negate low half.
15182
15183         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
15184         (NO_TEST_INLINE_DOUBLE): Likewise.
15185         (TEST_COND_x86_64): Likewise.
15186         (TEST_COND_x86): Likewise.
15187         (M_PI_6l): Likewise.
15188
15189 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15190
15191         * math/libm-test.inc:
15192         (TEST_FLOAT): Change usage to TEST_COND_binary32.
15193         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
15194         (TEST_LDOUBLE): Update usage to evaluate as true if
15195         the guarded tests match the property being tested.
15196         (LDBL_MAX_EXP): Change to MAX_EXP.
15197         (LDBL_MIN_EXP): Change to MIN_EXP.
15198         (LDBL_MANT_DIG): Change to MANT_DIG, except for
15199         nexttoward tests.
15200
15201 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15202
15203         * math/libm-test.inc:
15204         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
15205         (TYPE_MIN): Likewise.
15206         (TYPE_TRUE_MIN): Likewise.
15207         (TYPE_MAX): Likewise.
15208         (MIN_EXP): Likewise.
15209         (MAX_EXP): Likewise.
15210         (MANT_DIG): Likewise.
15211
15212         (FSTR_MAX): New macro.
15213         (__CONCATX): Likewise.
15214         (QTYPE_STR): Likewise.
15215         (TEST_COND_binary32): Likewise.
15216         (TEST_COND_binary64): Likewise.
15217         (TEST_COND_binary128): Likewise.
15218         (TEST_COND_ibm128): Likewise.
15219         (TEST_COND_intel96): Likewise.
15220         (TEST_COND_m68k96): Likewise.
15221
15222         (TEST_COND_flt_32): Redefine as equivalent format test macro.
15223         (TEST_COND_dbl_64): Likewise.
15224         (TEST_COND_ldbl_96_intel): Likewise.
15225         (TEST_COND_ldbl_96_m68k): Likewise.
15226         (TEST_COND_ldbl_128): Likewise.
15227         (TEST_COND_ldbl_128ibm): Likewise.
15228
15229         (plus_zero): Redefine using LIT macro.
15230         (minus_zero): Likewise.
15231         (plus_infty): Redefine as (INF).
15232         (minux_infty): Redefine as (-INF).
15233         (max_value): Redefine as TYPE_MAX.
15234         (min_value): Redefine as TYPE_MIN.
15235         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
15236
15237         (print_float): Refactor to use snprintf to convert FLOAT values
15238         to string. This brings it closer to dropin replacement of strtof
15239         for the TS 18661 defined types.
15240         (update_stats): Likewise.
15241         (print_complex_function_ulps): Likewise.
15242         (print_max_error): Likewise.
15243         (print_complex_max_error): Likewise.
15244         (check_float_internal): Likewise.
15245
15246         * math/test-float.h (PREFIX): New macro.
15247         (LIT): Likewise.
15248         (TYPE_STR): Likewise.
15249         (FTOSTR): Likewise.
15250
15251         * math/test-double.h (PREFIX): New macro.
15252         (LIT): Likewise.
15253         (TYPE_STR): Likewise.
15254         (FTOSTR): Likewise.
15255
15256         * math/test-ldouble.h (PREFIX): New macro.
15257         (LIT): Likewise.
15258         (TYPE_STR): Likewise.
15259         (FTOSTR): Likewise.
15260
15261 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
15262
15263         [BZ #20156]
15264         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
15265         to itself when zero or not finite.
15266         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
15267         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
15268         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
15269         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
15270
15271 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
15272
15273         [BZ #20153]
15274         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
15275         x * x + x for infinities and NaNs.
15276
15277         [BZ #20151]
15278         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
15279         argument to itself before returning result.
15280         (__ieee754_y0l): Likewise.
15281         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
15282         (__ieee754_y1l).
15283
15284         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
15285         (atan_test_data): Likewise.
15286         (ceil_test_data): Likewise.
15287         (cos_test_data): Likewise.
15288         (cosh_test_data): Likewise.
15289         (erf_test_data): Likewise.
15290         (exp2_test_data): Likewise.
15291         (fabs_test_data): Likewise.
15292         (floor_test_data): Likewise.
15293         (ilogb_test_data): Likewise.
15294         (j0_test_data): Likewise.
15295         (j1_test_data): Likewise.
15296         (jn_test_data): Likewise.
15297         (lgamma_test_data): Likewise.
15298         (lrint_test_data): Likewise.
15299         (llrint_test_data): Likewise.
15300         (logb_test_data): Likewise.
15301         (lround_test_data): Likewise.
15302         (llround_test_data): Likewise.
15303         (nearbyint_test_data): Likewise.
15304         (rint_test_data): Likewise.
15305         (round_test_data): Likewise.
15306         (sin_test_data): Likewise.
15307         (sincos_test_data): Likewise.
15308         (sinh_test_data): Likewise.
15309         (sqrt_test_data): Likewise.
15310         (tan_test_data): Likewise.
15311         (tanh_test_data): Likewise.
15312         (tgamma_test_data): Likewise.
15313         (trunc_test_data): Likewise.
15314         (y0_test_data): Likewise.
15315         (y1_test_data): Likewise.
15316         (yn_test_data): Likewise.
15317
15318         * math/libm-test.inc: Update comment about NaN testing.
15319         (TEST_SNAN): New macro.
15320         (snan_value): Likewise.
15321         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
15322         (fpclassify_test_data): Add sNaN tests.
15323         (isfinite_test_data): Likewise.
15324         (isinf_test_data): Likewise.
15325         (isnan_test_data): Likewise.
15326         (isnormal_test_data): Likewise.
15327         (issignaling_test_data): Likewise.
15328         (signbit_test_data): Likewise.
15329         * math/gen-libm-test.pl (%beautify): Add snan_value.
15330         (show_exceptions): Add argument $test_snan.
15331         (parse_args): Handle snan_value as non-finite.  Update call to
15332         show_exceptions.
15333         * math/Makefile (libm-test-no-inline-cflags): Add
15334         -fsignaling-nans.
15335
15336 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15337
15338         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
15339         (CFLAGS-oldsendmsg.c): Add rule.
15340         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
15341         Correct recvmsg symbol name.
15342         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
15343         Likewise.
15344
15345 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15346
15347         * sysdeps/unix/sysv/linux/Makefile
15348         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
15349         oldsendmmsg.
15350         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
15351         sendmmsg.
15352         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15353         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15354         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15355         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15357         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15358         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15359         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
15360         Likewise.
15361         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15362         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
15363         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
15364         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
15365         iovlen and controllen fields to adjust to POSIX specification.
15366         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
15367
15368         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
15369         and change to correct expected type.
15370         (msghdr.msg_controllen): Likewise.
15371         (cmsghdr.cmsg_len): Likewise.
15372         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
15373         expected POSIX assumption about the size.
15374         (msghdr.msg_controllen): Likewise.
15375         (msghdr.__glibc_reserved1): Likewise.
15376         (msghdr.__glibc_reserved2): Likewise.
15377         (cmsghdr.cmsg_len): Likewise.
15378         (cmsghdr.__glibc_reserved1): Likewise.
15379         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
15380         Add ptw-oldrecvmsg and ptw-oldsendmsg.
15381         (CFLAGS-sendmsg.c): Remove rule.
15382         (CFLAGS-recvmsg.c): Likewise.
15383         (CFLAGS-oldsendmsg.c): Add rule.
15384         (CFLAGS-oldrecvmsg.c): Likewise.
15385         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
15386         recvmsg and sendmsg.
15387         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
15388         Likewise.
15389         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
15390         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
15391         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
15392         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
15393         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
15394         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
15395         Likewise.
15396         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
15397         Likewise.
15398         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
15399         Likewise.
15400         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
15401         Likewise.
15402         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
15403         Likewise.
15404         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
15405         Likewise.
15406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
15407         (GLIBC_2.24): Likewise.
15408         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
15409         Likewise.
15410         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
15411         Likewise.
15412         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
15413         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
15414         Likewise.
15415         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
15416         Likewise.
15417         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
15418         Likewise.
15419         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
15420         (GLIBC_2.24): Likewise.
15421         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
15422         Likewise.
15423         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
15424         Likewise.
15425         * sysdeps/unix/sysv/linux/Makefile
15426         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
15427         (CFLAGS-sendmsg.c): Add rule.
15428         (CFLAGS-recvmsg.c): Likewise.
15429         (CFLAGS-oldsendmsg.c): Likewise.
15430         (CFLAGS-oldrecvmsg.c): Likewise.
15431         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
15432         initialization.
15433         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
15434         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
15435         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
15436         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
15437         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
15438         iovlen and controllen fields to adjust to POSIX specification.
15439         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
15440         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
15441         added recvmsg and sendmsg.
15442         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15443         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15444         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
15445         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15446         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15447         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15448         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15449         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15450         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15451         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15452         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15453         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
15454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15455         Likewise.
15456         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
15457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15458         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15459         Likewise.
15460         Likewise.
15461         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15462         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15463         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15464         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15465         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15466         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15467         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
15468         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
15469         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
15470         Likewise.
15471         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15472         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15473
15474         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
15475         from auto-generation.
15476         (sendmsg): Likewise.
15477         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
15478         (sendmsg): Likewise.
15479         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
15480         (sendmsg): Likewise.
15481         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
15482         (sendmsg): Likewise.
15483         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
15484         (sendmsg): Likewise.
15485         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
15486         (sendmsg): Likewise.
15487         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
15488         Likewise.
15489         (sendmsg): Likewise.
15490         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
15491         (sendmsg): Likewise.
15492         * sysdeps/unix/sysv/linux/i386/kernel-features.h
15493         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15494         Remove.
15495         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15496         Likewise.
15497         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15498         Undefine.
15499         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15500         Likewise.
15501         * sysdeps/unix/sysv/linux/kernel-features.h
15502         (__ASSUME_SENDMSG_SYSCALL): Define.
15503         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15504         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
15505         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15506         Remove.
15507         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15508         Likewise.
15509         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15510         Undefine.
15511         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15512         Likewise.
15513         * sysdeps/unix/sysv/linux/s390/kernel-features.h
15514         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15515         Remove.
15516         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15517         Likewise.
15518         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15519         Undefine.
15520         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15521         Likewise.
15522         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15523         (__ASSUME_SENDMSG_SYSCALL): Undefine.
15524         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15525         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
15526         (__ASSUME_SENDMSG_SYSCALL): Likewise.
15527         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15528         * sysdeps/unix/sysv/linux/sh/kernel-features.h
15529         (__ASSUME_SENDMSG_SYSCALL): Likewise.
15530         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15531
15532 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15533
15534         * stdlib/gen-tst-strtod-round.c: Add backslash to
15535         compile command in comment.
15536         (printfp): Remove the literal suffix, and define an infinite
15537         value as INF to avoid expansion clash with INFINITY.
15538         (round_str): Remove the literal suffix.
15539         (round_for_all): Likewise, remove the now duplicate ldbl-64
15540         entry, and remove some magic constants.
15541
15542         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
15543         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
15544         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
15545         (_CONCAT): New macro.
15546         (CONCAT): Likewise.
15547         (CHOOSE_ld): Likewise.
15548         (CHOOSE_f): Likewise.
15549         (CHOOSE_d): Likewise.
15550         (FTYPE_MEMBER): Likewise.
15551         (BOOL_MEMBER): Likewise.
15552         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
15553         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
15554         (_XNTRY): Likewise.
15555         (XNTRY): Likewise.
15556         (_ENTRY): Likewise.
15557         (ENTRY): Likewise.
15558         (test_exactness): Generate members via macro.
15559         (test_results): Likewise.
15560         (test): Update members.
15561         (TEST): Redefine using new macros.
15562         (INF): New macro.
15563         (fetestmodes): New structure.
15564         (do_test): Refactor to be type generic.
15565         (test_in_one_mode): Refactor duplicate code into
15566         (GEN_ONE_TEST): New macro.
15567
15568         * stdlib/tst-strtod-round-data.h: Regenerate.
15569
15570         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
15571         Extend to pass additional arbitrary parameters to
15572         generators.
15573
15574 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
15575
15576         [BZ #15479]
15577         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
15578         floating-point state after first floating-point operation on
15579         input.  Restore full floating-point state instead of just rounding
15580         mode.
15581         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
15582         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
15583         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
15584         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
15585         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
15586
15587         [BZ #15479]
15588         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
15589         floating-point state after first floating-point operation on
15590         input.  Restore full floating-point state instead of just rounding
15591         mode.
15592         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
15593         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
15594         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
15595         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
15596         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
15597
15598 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15599
15600         [BZ #19727]
15601         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
15602         valid high surrogate.
15603         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
15604         of an utf16 surrogate.
15605         * iconv/gconv_simple.c (BODY): Likewise.
15606         * iconvdata/bug-iconv12.c: New file.
15607         * iconvdata/Makefile (tests): Add bug-iconv12.
15608
15609 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15610
15611         [BZ #19726]
15612         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
15613         outptrp in case of an illegal input.
15614         * iconv/tst-iconv6.c: New file.
15615         * iconv/Makefile (tests): Add tst-iconv6.
15616
15617 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15618
15619         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
15620         an error in case of a value in range of an utf16 low surrogate.
15621
15622 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15623
15624         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
15625         an error in case of a value in range of an utf16 low surrogate.
15626
15627 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15628
15629         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
15630         Move to ...
15631         * sysdeps/s390/Makefile: ... here.
15632         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
15633         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
15634         (BRANCH_ON_COUNT): New define.
15635         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
15636         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
15637         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
15638         run on s390-32, too.
15639         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
15640         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
15641         run on s390-32, too.
15642         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
15643         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
15644         run on s390-32, too.
15645
15646 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15647
15648         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
15649         etf3eh or new vector loop-variant.
15650
15651 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15652
15653         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
15654         etf3eh or new vector loop-variant.
15655
15656 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15657
15658         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
15659         or new vector loop-variant.
15660
15661 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15662
15663         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
15664         Rename to TR_LOOP and usage of tr instead of troo instruction.
15665
15666 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15667
15668         * sysdeps/s390/multiarch/gconv_simple.c: New File.
15669         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
15670
15671 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15672
15673         * sysdeps/s390/multiarch/8bit-generic.c: New File.
15674         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
15675         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
15676         New override define.
15677         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
15678
15679 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15680
15681         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
15682         * sysdeps/s390/configure.ac: Add test for S390 vector register
15683         support in gcc.
15684         * sysdeps/s390/configure: Regenerated.
15685
15686 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15687
15688         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
15689         Install file from $(objpfx)gconv-modules.
15690         ($(objpfx)gconv-modules): Concatenate architecture specific file
15691         in variable sysdeps-gconv-modules and gconv-modules in src dir.
15692         * sysdeps/s390/gconv-modules: New file.
15693         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
15694         Deleted.
15695         ($(objpfx)gconv-modules-s390): Deleted.
15696         (sysdeps-gconv-modules): New variable.
15697
15698 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
15699
15700         [BZ #15479]
15701         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
15702         of immediate operand to rounding instruction.
15703         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
15704         Likewise.
15705         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
15706         Likewise.
15707         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
15708         Likewise.
15709
15710 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15711
15712         * math/libm-test.inc (MIN_EXP): Directly define as
15713         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
15714
15715 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15716
15717         * math/libm-test.inc (MANT_DIG): Directly define as
15718         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
15719
15720 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15721
15722         * stdlib/gen-tst-strtod-round.c (main):
15723           Change usage to more closely match the generated
15724           output.  Add usage and compilation instructions.
15725           (string_to_fp): Add and use FILE* parameter as
15726           output target.
15727           (print_fp): Likewise.
15728           (round_str): Likewise.
15729           (round_for_all): Likewise.
15730         * stdlib/tst-strtod-round.c (tests): Move into
15731         * stdlib/tst-strtod-round-data.h: New file.
15732
15733 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
15734
15735         [BZ #15479]
15736         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
15737         (__round): Do not force "inexact" exception.
15738         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
15739         variable.
15740         (__round): Do not force "inexact" exception.
15741         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
15742         (__roundf): Do not force "inexact" exception.
15743         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
15744         (__roundl): Do not force "inexact" exception.
15745         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
15746         (__roundl): Do not force "inexact" exception.
15747         * math/libm-test.inc (round_test_data): Do not allow spurious
15748         "inexact" exceptions.
15749
15750         [BZ #15479]
15751         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
15752         exception in comment.
15753         (huge): Remove variable.
15754         (__floor): Do not force "inexact" exception.
15755         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
15756         "inexact" exception in comment.
15757         (huge): Remove variable.
15758         (__floor): Do not force "inexact" exception.
15759         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
15760         exception in comment.
15761         (huge): Remove variable.
15762         (__floorf): Do not force "inexact" exception.
15763         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
15764         exception in comment.
15765         (huge): Remove variable.
15766         (__floorl): Do not force "inexact" exception.
15767
15768         [BZ #15479]
15769         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
15770         exception in comment.
15771         (huge): Remove variable.
15772         (__ceil): Do not force "inexact" exception.
15773         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
15774         "inexact" exception in comment.
15775         (huge): Remove variable.
15776         (__ceil): Do not force "inexact" exception.
15777         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
15778         (__ceilf): Do not force "inexact" exception.
15779         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
15780         exception in comment.
15781         (huge): Remove variable.
15782         (__ceill): Do not force "inexact" exception.
15783
15784 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
15785
15786         * config.h.in (BIND_NOW): New.
15787         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
15788         * configure: Regenerated.
15789         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
15790         indirect branch via the GOT slot.
15791
15792 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
15793
15794         [BZ #19765]
15795         * sysdeps/s390/mempcpy.S: New File.
15796         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
15797         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
15798         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
15799         Add mempcpy variants.
15800         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
15801         (memcpy): Adjust to be usable from mempcpy entry point.
15802         (__memcpy_mvcle): Likewise.
15803         * sysdeps/s390/s390-64/memcpy.S: Likewise.
15804         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
15805         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
15806         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
15807         (__memcpy_z10): Likewise.
15808         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
15809
15810 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
15811
15812         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
15813         Remove __GI_ symbol.
15814         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
15815         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
15816         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
15817         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
15818         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
15819         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
15820
15821 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
15822
15823         * sysdeps/s390/s390-64/memcpy.S (memcpy):
15824         Use cghi instead of chi to compare 64bit value.
15825
15826 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
15827
15828         * sysdeps/s390/s390-32/memcpy.S (memcpy):
15829         Jump to 1MB check before executing mvc-loop.
15830
15831 2016-05-24  Florian Weimer  <fweimer@redhat.com>
15832
15833         [BZ #6527]
15834         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
15835         unconditionally.
15836         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
15837
15838 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15839
15840         * stdlib/tst-strtod6.c (do_test): Use new type generic
15841         invocation of the test function.
15842         (test): Refactor into ...
15843         (TEST_STRTOD): New macro base function.
15844
15845 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15846
15847         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
15848         (TEST_STRTOD): New macro.
15849         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
15850
15851 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15852
15853         * stdlib/tst-strtod6.c (do_test): Use new type generic
15854         invocation of the test function.
15855         (test): Refactor into ...
15856         (TEST_STRTOD): New macro base function.
15857
15858 2016-05-23  Florian Weimer  <fweimer@redhat.com>
15859
15860         CVE-2016-4429
15861         [BZ #20112]
15862         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
15863         payload.
15864
15865 2016-05-23  Florian Weimer  <fweimer@redhat.com>
15866
15867         [BZ #20111]
15868         * bits/sockaddr.h (_SS_SIZE): Define.
15869         * bits/socket.h (_SS_SIZE): Remove.
15870         (_SS_PADSIZE): Adjust to account for all padding.
15871         (struct sockaddr_storage): Update comment.  Avoid implicit
15872         padding.
15873         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
15874         (_SS_PADSIZE): Adjust to account for all padding.
15875         (struct sockaddr_storage): Update comment.  Avoid implicit
15876         padding.
15877         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
15878         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
15879         (_SS_PADSIZE): Adjust to account for all padding.
15880         (struct sockaddr_storage): Update comment.  Avoid implicit
15881         padding.
15882         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
15883         __SS_SIZE is 126 in this version.
15884         * inet/tst-sockaddr.c: New file.
15885         * inet/Makefile (tests): Add tst-sockaddr.c
15886         (tst-sockaddr.c): Compile with non-strict aliasing.
15887
15888 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
15889
15890         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
15891         [XPG3 || XPG4].
15892         (NL_ARGMAX): Also expect for [XPG3].
15893         (NL_LANGMAX): Likewise.
15894         (NL_MSGMAX): Likewise.
15895         (NL_NMAX): Likewise.
15896         (NL_SETMAX): Likewise.
15897         (NL_TEXTMAX): Likewise.
15898         (NZERO): Likewise.
15899         (TMP_MAX): Likewise.
15900         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
15901         variable.
15902
15903         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
15904         (PF_MAX): Update value.
15905         (AF_KCM): New macro.
15906         (SOL_NETBEUI): Likewise.
15907         (SOL_LLC): Likewise.
15908         (SOL_DCCP): Likewise.
15909         (SOL_NETLINK): Likewise.
15910         (SOL_TIPC): Likewise.
15911         (SOL_RXRPC): Likewise.
15912         (SOL_PPPOL2TP): Likewise.
15913         (SOL_BLUETOOTH): Likewise.
15914         (SOL_PNPIPE): Likewise.
15915         (SOL_RDS): Likewise.
15916         (SOL_IUCV): Likewise.
15917         (SOL_CAIF): Likewise.
15918         (SOL_ALG): Likewise.
15919         (SOL_NFC): Likewise.
15920         (SOL_KCM): Likewise.
15921         (MSG_BATCH): New enum value and macro.
15922
15923 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
15924
15925         [BZ #18185]
15926         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
15927         sharing L2 cache to 2 for Knights Landing.
15928
15929 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
15930
15931         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
15932         (FTW_DP): Do not expect for [XPG3 || XPG4].
15933         (FTW_SL): Do not expect for [XPG3].
15934         (FTW_SLN): Likewise.
15935         (FTW_PHYS): Likewise.
15936         (FTW_MOUNT): Likewise.
15937         (FTW_DEPTH): Likewise.
15938         (FTW_CHDIR): Likewise.
15939         (nftw): Likewise.
15940         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
15941         variable.
15942
15943 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
15944
15945         * manual/errno.texi: Fix various typos & grammar errors.
15946
15947 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
15948
15949         * manual/intro.texi: Fix duplicated typo.
15950
15951 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
15952
15953         [BZ #13304]
15954         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
15955         <float.h>, <math_private.h> and <stdlib.h>.
15956         (add_split): New function.
15957         (mul_split): Likewise.
15958         (ext_val): New typedef.
15959         (store_ext_val): New function.
15960         (mul_ext_val): New function.
15961         (compare): New function.
15962         (add_split_ext): New function.
15963         (__fmal): After checking for Inf, NaN and zero, compute result as
15964         an exact sum of scaled double values in round-to-nearest before
15965         adding those up and adjusting for other rounding modes.
15966         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
15967         tests of fma.
15968         * math/auto-libm-test-out: Regenerated.
15969
15970 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15971
15972         [BZ #20119]
15973         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
15974         processor level type mask for CPUID with EAX == 11.
15975
15976 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15977
15978         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
15979         logical threads if the HTT bit is 0.
15980         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
15981         (index_cpu_HTT): Likewise.
15982         (reg_HTT): Likewise.
15983
15984 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15985
15986         [BZ #20115]
15987         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
15988         Remove alignments on jump targets.
15989
15990 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
15991
15992         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
15993         (getpwent): Likewise.
15994         (setpwent): Likewise.
15995         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
15996         variable.
15997
15998         * conform/data/search.h-data (insque): Do not expect for [XPG3].
15999         (remque): Likewise.
16000         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
16001         variable.
16002
16003 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
16004
16005         * math/libm-test.inc: Update comment not to refer to signs of NaNs
16006         not being tested.
16007
16008 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
16009
16010         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
16011         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
16012         call.
16013         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
16014         (__condvar_cleanup1): Likewise.
16015
16016 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
16017
16018         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
16019         New
16020         (__pthread_unwind): Renamed to ...
16021         (PTHREAD_UNWIND): This.
16022         (__pthread_enable_asynccancel): Replace
16023         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
16024
16025 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
16026
16027         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
16028         (CLONE_NEWCGROUP): New macro.
16029
16030         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
16031         (Q_GETNEXTQUOTA): New macro.
16032
16033 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
16034
16035         [BZ #19907]
16036         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
16037         buffer updated by the previous run.
16038         * string/test-memcpy.c (do_one_test): Likewise.
16039         * benchtests/bench-memmove.c (do_one_test): Add a comment.
16040         * string/test-memmove.c (do_one_test): Likewise.
16041
16042 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
16043
16044         [BZ #20094]
16045         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
16046         not [__USE_XOPEN].
16047         (unlockpt): Likewise.
16048         (ptsname): Likewise.
16049         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
16050         variable.
16051
16052         [BZ #20076]
16053         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
16054         instead of [__USE_UNIX98].
16055         (S_ISSOCK): Likewise.
16056         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
16057         variable.
16058
16059         [BZ #20074]
16060         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
16061         [__USE_POSIX].
16062         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
16063         variable.
16064
16065         [BZ #20051]
16066         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
16067         (ttyslot): Do not declare.
16068         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
16069         (ttyslot): New prototype.
16070         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
16071         variable.
16072         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
16073
16074 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
16075
16076         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
16077
16078 2016-05-13  Florian Weimer  <fweimer@redhat.com>
16079
16080         Fix race condition in tst-mallocfork2, use fewer resources.
16081         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
16082         to current process group.
16083         (signal_sender): Yield in the non-sleeping case.
16084
16085 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
16086
16087         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
16088         (ecvt): Likewise.
16089         (fcvt): Likewise.
16090         (gcvt): Likewise.
16091         (getsubopt): Likewise.
16092         (grantpt): Likewise.
16093         (initstate): Likewise.
16094         (l64a): Likewise.
16095         (mktemp): Likewise.
16096         (mkstemp): Likewise.
16097         (ptsname): Likewise.
16098         (random): Likewise.
16099         (realpath): Likewise.
16100         (setstate): Likewise.
16101         (srandom): Likewise.
16102         (ttyslot): Likewise.
16103         (unlockpt): Likewise.
16104         (valloc): Likewise.
16105
16106         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
16107         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
16108         variable.
16109
16110 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
16111
16112         [BZ #20072]
16113         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
16114         init_cpu_features only if SHARED is defined.
16115         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
16116
16117 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
16118
16119         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
16120         non-inclusive caches on Intel processors.
16121
16122 2016-05-13  Florian Weimer  <fweimer@redhat.com>
16123
16124         * malloc/malloc.c (dumped_main_arena_start)
16125         (dumped_main_arena_end): New variables.
16126         (DUMPED_MAIN_ARENA_CHUNK): New macro.
16127         (do_check_chunk): Skip dumped fake mmapped chunks.
16128         (munmap_chunk): Likewise.
16129         (__libc_free): Do not adjust statistics for fake mmapped chunks.
16130         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
16131         mmapped chunks.
16132         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
16133         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
16134         and dumped_main_arena_end to cover the dumped heap.
16135
16136 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
16137
16138         * conform/data/time.h-data (getdate_err): Do not expect for
16139         [XPG3].
16140         (getdate): Likewise.
16141         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
16142         variable.
16143
16144         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
16145         (F_ULOCK): Likewise.
16146         (F_TEST): Likewise.
16147         (F_TLOCK): Likewise.
16148         (useconds_t): Likewise.
16149         (intptr_t): Do not expect for [XPG3] or [XPG4].
16150         (brk): Do not expect for [XPG3]
16151         (fchown): Likewise.
16152         (fchdir): Likewise.
16153         (ftruncate): Likewise.
16154         (getdtablesize): Likewise.
16155         (gethostid): Likewise.
16156         (getpagesize): Likewise.
16157         (getpgid): Likewise.
16158         (getsid): Likewise.
16159         (getwd): Likewise.
16160         (lchown): Likewise.
16161         (lockf): Likewise.
16162         (readlink): Likewise.
16163         (sbrk): Likewise.
16164         (setpgrp): Likewise.
16165         (setregid): Likewise.
16166         (setreuid): Likewise.
16167         (symlink): Likewise.
16168         (sync): Likewise.
16169         (truncate): Likewise.
16170         (ualarm): Likewise.
16171         (usleep): Likewise.
16172         (vfork): Likewise.
16173         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
16174         variable.
16175
16176         [BZ #20054]
16177         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
16178         not [__USE_UNIX98].
16179         * conform/data/unistd.h-data (gethostname): Do not expect for
16180         [XPG3].
16181
16182         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
16183         [!POSIX] (S_IFBLK): Likewise.
16184         [!POSIX] (S_IFCHR): Likewise.
16185         [!POSIX] (S_IFIFO): Likewise.
16186         [!POSIX] (S_IFREG): Likewise.
16187         [!POSIX] (S_IFDIR): Likewise.
16188         [!POSIX] (S_IFLNK): Likewise.
16189         [!POSIX] (S_IFSOCK): Likewise.
16190         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
16191         variable.
16192         (test-xfail-XPG4/fcntl.h/conform): Likewise.
16193
16194 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
16195
16196         * sysdeps/aarch64/memset.S (__memset):
16197         Rewrite of optimized memset.
16198
16199 2016-05-12  Florian Weimer  <fweimer@redhat.com>
16200
16201         [BZ #19703]
16202         Partially async-signal-safe fork for single-threaded processes.
16203         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
16204         variable.  Do not acquire and reset/release malloc and libio locks
16205         in single-threaded processes.
16206         * malloc/tst-mallocfork2.c: New file.
16207         * malloc/Makefile (tests): Add it.
16208
16209 2016-05-12  Florian Weimer  <fweimer@redhat.com>
16210
16211         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
16212         argument.  Use scratch buffer instead of extend_alloca.
16213         (gethosts): Use scratch buffer instead of extend_alloca.
16214         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
16215         extend_alloca.
16216         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
16217
16218 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
16219
16220         [BZ #20055]
16221         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
16222         instead of [__USE_UNIX98].
16223         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
16224         [__USE_UNIX98].
16225         * conform/data/termios.h-data (tcgetsid): Do not expect for
16226         [XPG3].
16227         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
16228         variable.
16229         (test-xfail-XPG4/termios.h/conform): Likewise.
16230
16231 2016-05-11  Florian Weimer  <fweimer@redhat.com>
16232
16233         Do not use mcheck in localedef.
16234         * locale/programs/localedef.c (turn_on_mcheck)
16235         (__malloc_initialize_hook): Remove.
16236
16237 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
16238
16239         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
16240         * sysdeps/s390/s390-64/Makefile: Likewise.
16241
16242 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
16243
16244         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
16245         Remove ifunc-defines.sym.
16246         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
16247         Likewise.
16248         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
16249         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
16250         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
16251         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
16252         rtld-global-offsets.sym.
16253         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
16254         * sysdeps/x86/cpu-features-offsets.sym: This.
16255         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
16256         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
16257
16258 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
16259
16260         [BZ #20073]
16261         * io/sys/stat.h (fchmod): Declare for
16262         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
16263         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
16264         variable.
16265
16266         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
16267         [XPG3] (S_IFSOCK): Likewise.
16268         [XPG3] (S_ISVTX): Likewise.
16269         [XPG3] (S_ISLNK): Likewise.
16270         [XPG3] (S_ISSOCK): Likewise.
16271         [XPG3] (fchmod): Likewise.
16272         [XPG3] (lstat): Likewise.
16273         [XPG3] (mknod): Likewise.
16274
16275         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
16276         [XPG3].  Expect type long and XFAIL for [XPG4].
16277         (st_blocks): Likewise.
16278
16279         [BZ #20044]
16280         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
16281         (pthread_atfork): New prototype.
16282         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
16283         variable.
16284
16285         [BZ #20043]
16286         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
16287         prototype.
16288
16289 2016-05-10  Florian Weimer  <fweimer@redhat.com>
16290
16291         [BZ #20017]
16292         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
16293         gmtime.
16294
16295 2016-05-10  Florian Weimer  <fweimer@redhat.com>
16296
16297         [BZ #19994]
16298         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
16299         flag in _res.options.
16300
16301 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
16302
16303         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
16304         [XPG3 || XPG4].
16305         (blksize_t): Likewise.
16306         (clockid_t): Likewise.
16307         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
16308         variable.
16309         (test-xfail-XPG4/sys/types.h/conform): Likewise.
16310
16311 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
16312
16313         * sysdeps/unix/sysv/linux/s390/init-first.c:
16314         Add VDSO_SYMBOL(getcpu).
16315         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
16316         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
16317         Add VDSO_SYMBOL(getcpu).
16318         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
16319         New define HAVE_GETCPU_VSYSCALL.
16320         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16321
16322 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
16323
16324         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
16325         instead of <sysdeps/x86_64/cacheinfo.c>.
16326         * sysdeps/x86_64/cacheinfo.c: Moved to ...
16327         * sysdeps/x86/cacheinfo.c: Here.
16328
16329 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16330
16331         * malloc/malloc-internal.h: Adjust header file guard.
16332
16333 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16334
16335         [BZ #19787]
16336         * inet/getnameinfo.c (check_sprintf_result): New function.
16337         (CHECKED_SNPRINTF): New macro.
16338         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
16339         to the host buffer.
16340         (gni_host_local): Use checked_copy to copy the host name.
16341         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
16342         (gni_serv_local): Use checked_copy to copy the service name.
16343         (getnameinfo): Remove unnecessary truncation of result buffers.
16344
16345 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16346
16347         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
16348         in case of inet_ntop failure.
16349
16350 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16351
16352         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
16353         avoid long lines.
16354         (gni_host_inet_numeric): Likewise.  Reduce scope of local
16355         variables.
16356         (gni_host_inet, gni_host_local): Add comment.
16357         (gni_host): Add comment.  Use temporary to avoid long lines.
16358
16359 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16360
16361         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
16362         registers specifiers where general purpose registers specifiers should
16363         have been used.
16364
16365 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16366
16367         [BZ #19779]
16368         CVE-2016-1234
16369         Avoid copying names of directory entries.
16370         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
16371         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
16372         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
16373         (struct readdir_result): New type.
16374         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
16375         (GL_READDIR): New macros.
16376         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
16377         (convert_dirent, convert_dirent64): New functions.
16378         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
16379         convert_dirent64.  Adjust references to the readdir result.
16380         * sysdeps/unix/sysv/linux/i386/glob64.c:
16381         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
16382         * posix/bug-glob2.c (LONG_NAME): Define.
16383         (filesystem): Add LONG_NAME.
16384         (my_DIR): Increase the size of room_for_dirent.
16385
16386 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
16387
16388         [BZ #20041]
16389         * misc/sys/select.h (__need_timespec): Only define if
16390         [__USE_XOPEN2K].
16391         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
16392         variable.
16393         (test-xfail-XPG4/utmpx.h/conform): Likewise.
16394         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
16395         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
16396
16397 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16398             Segher Boessenkool  <segher@gcc.gnu.org>
16399
16400         [BZ #20004]
16401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
16402         (__novec_swapcontext): Add missing load.
16403
16404 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
16405
16406         [BZ #20023]
16407         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
16408         <time.h>.
16409         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
16410         variable.
16411         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
16412
16413 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16414
16415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
16416         flags CLONE_VM compare.
16417
16418 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16419
16420         [BZ #20031]
16421         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
16422         completely empty.
16423
16424 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16425
16426         [BZ #19573]
16427         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
16428         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
16429         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
16430         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
16431         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
16432         (hesiod_free_list): Mark as hidden.
16433         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
16434         res_set, res_get.
16435         * hesiod/hesiod.c: Remove unnecessary forward declarations.
16436         (init, __hesiod_res_get, __hesiod_res_set): Remove.
16437         (hesiod_init): Remove obsolete res_ninit call.
16438         (hesiod_end): Do not free resolver state.  Do not invoke callback.
16439         (hesiod_bind): Do not call init.
16440         (get_txt_records): Use res_mkquery, res_send instead of
16441         res_nmkquery, res_nsend.
16442         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
16443         instead of _nss_hesiod_init.
16444         (_nss_hesiod_initgroups_dyn): Likewise.
16445         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
16446         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
16447         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
16448
16449 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16450
16451         * hesiod/hesiod_p.h (DEF_RHS): Remove.
16452         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
16453
16454 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16455
16456         * hesiod/hesiod.h: Remove RCS keyword.
16457         * hesiod/hesiod_p.h: Likewise.
16458
16459         * hesiod/hesiod.c: Likewise.
16460
16461 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
16462
16463         [BZ #12450]
16464         * locale/iso-639.def: Add Samogitian/sgs.
16465
16466 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
16467
16468         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
16469
16470         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
16471
16472 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
16473             Carlos O'Donell  <carlos@redhat.com>
16474
16475         [BZ #19072]
16476         * grp/Makefile (headers): Add grp-merge.h
16477         (routines): Add grp-merge.
16478         * grp/getgrgid_r.c: Include grp-merge.h.
16479         (DEEPCOPY_FN): Define.
16480         (MERGE_FN): Define.
16481         * grp/getgrname_r.c: Include grp-merge.h.
16482         (DEEPCOPY_FN): Define.
16483         (MERGE_FN): Define.
16484         * grp/grp-merge.c: New file.
16485         * grp/grp-merge.h: New file.
16486         * include/grp-merge.h: New file.
16487         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
16488         __copy_grp@GLIBC_PRIVATE.
16489         * manual/nss.texi (Actions in the NSS configuration): Describe
16490         return, continue, and merge.
16491         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
16492         (DEEPCOPY_FN): Define.
16493         (MERGE_FN): Define.
16494         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
16495         (DEEPCOPY_FN): Define.
16496         (MERGE_FN): Define.
16497         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
16498         [!MERGE_FN]: Define __merge_einval.
16499         (CHECK_MERGE): Define.
16500         (REENTRANT_NAME): Process merge if do_merge is true.
16501         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
16502         (__nss_getent_r): Likewise.
16503         * nss/nsswitch.c (nss_parse_service_list): Likewise.
16504         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
16505
16506 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16507
16508         [BZ #20012]
16509         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
16510         length to calculate the buffer to read.
16511         (fmemopen_write): Set the buffer position based on bytes written.
16512         (fmemopen_seek): Return EINVAL for invalid whence modes.
16513
16514         [BZ #19957]
16515         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
16516         tst-getpid2.
16517         (test): Add tst-clone2.
16518         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
16519         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
16520         pid/tid fields for CLONE_VM.
16521         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
16522         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
16523         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
16524         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
16525         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
16526         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
16527         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
16528         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
16529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
16530         Likewise.
16531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
16532         Likewise.
16533         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
16534         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
16535         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
16536         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
16537         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
16538         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
16539         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
16540         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
16541
16542 2016-04-29  Florian Weimer  <fweimer@redhat.com>
16543
16544         [BZ #19642]
16545         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
16546         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
16547         (gni_serv_local, gni_serv): New functions extracted from
16548         getnameinfo.
16549         (getnameinfo): Call gni_host and gni_serv to perform the
16550         processing.  Always free scratch buffer.
16551
16552 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16553
16554         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
16555         remaining bytes in the dest string, with zeros.
16556
16557 2016-04-29  Florian Weimer  <fweimer@redhat.com>
16558
16559         [BZ #20010]
16560         CVE-2016-3706
16561         * sysdeps/posix/getaddrinfo.c
16562         (convert_hostent_to_gaih_addrtuple): New function.
16563         (gethosts): Call convert_hostent_to_gaih_addrtuple.
16564         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
16565         AF_INET data.
16566
16567 2016-04-29  Florian Weimer  <fweimer@redhat.com>
16568
16569         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
16570         callback function gl_readdir.
16571         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
16572         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
16573         (glob_in_dir): Remove len.  Use strdup instead of malloc and
16574         memcpy to copy the name.
16575         * manual/pattern.texi (Calling Glob): Document requirements for
16576         implementations of the gl_readdir callback function.
16577         * manual/examples/mkdirent.c: New example.
16578         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
16579         per the manual guidance.
16580         * posix/tst-gnuglob.c (my_readdir): Likewise.
16581
16582 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
16583
16584         [BZ #20014]
16585         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
16586         not [__USE_POSIX].
16587         (getchar_unlocked): Likewise.
16588         (putc_unlocked): Likewise.
16589         (putchar_unlocked): Likewise.
16590         (flockfile): Likewise.
16591         (ftrylockfile): Likewise.
16592         (funlockfile): Likewise.
16593         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
16594         variable.
16595         (test-xfail-XPG4/stdio.h/conform): Likewise.
16596
16597         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
16598         Expect constant.
16599         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
16600         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
16601         variable.
16602         (test-xfail-XPG4/langinfo.h/conform): Likewise.
16603         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
16604
16605         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
16606         [__USE_LARGEFILE64] (off64_t): Likewise.
16607         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
16608         variable.
16609
16610 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16611
16612         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
16613
16614 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16615
16616         * resolv/inet_addr.c: Reindent preprocessor conditionals.
16617         * resolv/res_init.c: Likewise.
16618         * resolv/res_mkquery.c: Likewise.
16619
16620 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16621
16622         * resolv/res_init.c (isascii): Do not define.  Use definition in
16623         <ctype.h>.
16624         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
16625         (LOG_AUTH): Remove.
16626         (SPRINTF): Remove, adjust caller.
16627         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
16628
16629 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16630
16631         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
16632         SUNSECURITY conditional.
16633         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
16634
16635 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16636
16637         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
16638         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
16639         Remove BSD-related preprocessor conditionals.
16640         * conf/portability.h: Remove.
16641
16642 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16643
16644         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
16645         * resolv/res_data.c: Likewise.
16646
16647 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16648
16649         * resolv/res_comp.c: Remove code conditional on __ultrix__.
16650         * resolv/res_data.c: Remove code conditional on ultrix.
16651
16652 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16653
16654         * resolv/res_init.c (RFC1535): Do not define.  Remove
16655         RFC1535 preprocessor conditionals.
16656         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
16657         because there configuration options which make the resolver
16658         behavior different.
16659
16660 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16661
16662         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
16663         RESOLVSORT preprocessor conditionals.
16664         * resolv/nss_dns/dns-host.c: Likewise.
16665         * resolv/res_init.c: Likewise.
16666
16667 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16668
16669         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
16670         is never defined.
16671
16672 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16673
16674         * inet/inet_lnaof.c: Remove SCSS keyword.
16675         * inet/inet_mkadr.c: Likewise.
16676         * inet/inet_net.c: Likewise.
16677         * inet/inet_netof.c: Likewise.
16678         * inet/rcmd.c: Likewise.
16679         * inet/rexec.c: Likewise.
16680         * inet/ruserpass.c: Likewise.
16681
16682 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16683
16684         * resolv/inet_addr.c: Remove _LIBC conditionals.
16685         * resolv/res_data.c: Likewise.
16686         * resolv/res_init.c: Likewise.
16687         * resolv/res_mkquery.c: Likewise.
16688         * resolv/res_libc.c: Update comment.
16689         * resolv/README: Update.
16690
16691 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16692
16693         * resolv/gethnamaddr.c: Remove SCSS keyword.
16694         * resolv/herror.c: Likewise.
16695         * resolv/inet_addr.c: Likewise.
16696         * resolv/inet_net_ntop.c: Likewise.
16697         * resolv/inet_net_pton.c: Likewise.
16698         * resolv/inet_neta.c: Likewise.
16699         * resolv/inet_ntop.c: Likewise.
16700         * resolv/inet_pton.c: Likewise.
16701         * resolv/ns_date.c: Remove RCS keyword.
16702         * resolv/ns_name.c: Likewise.
16703         * resolv/ns_netint.c: Likewise.
16704         * resolv/ns_parse.c: Likewise.
16705         * resolv/ns_print.c: Likewise.
16706         * resolv/ns_samedomain.c: Likewise.
16707         * resolv/ns_ttl.c: Likewise.
16708         * resolv/nsap_addr.c: Likewise.
16709         * resolv/res_comp.c: Remove SCSS and RCS keyword.
16710         * resolv/res_data.c: Remove RCS keyword.
16711         * resolv/res_debug.c: Remove SCSS and RCS keyword.
16712         * resolv/res_init.c: Likewise.
16713         * resolv/res_mkquery.c: Likewise.
16714         * resolv/res_query.c: Likewise.
16715         * resolv/res_send.c: Likewise.
16716
16717 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
16718
16719         * conform/data/stdio.h-data (fdopen): Expect also for
16720         [XPG3 || XPG4].
16721
16722         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
16723         (fseeko): Likewise.
16724         (ftello): Likewise.
16725         (ftrylockfile): Likewise.
16726         (funlockfile): Likewise.
16727         (getc_unlocked): Likewise.
16728         (getchar_unlocked): Likewise.
16729         (putc_unlocked): Likewise.
16730         (putchar_unlocked): Likewise.
16731
16732 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16733
16734         [BZ #19868]
16735         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
16736         DNS packet syntax checks (which were not needed before).  Skip
16737         over non-PTR records.
16738
16739 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16740
16741         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
16742         definition.  Include <stddef.h> instead.
16743
16744 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16745
16746         [BZ #19831]
16747         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
16748         function.
16749         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
16750         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
16751
16752 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16753
16754         [BZ #19862]
16755         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
16756         (getanswer_r): Do not call syslog.
16757         (gaih_getanswer_slice): Likewise.
16758         * resolv/gethnamaddr.c (AskedForGot): Remove.
16759         (getanswer): Do not call syslog.
16760         (gethostbyaddr): Likewise.
16761
16762 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
16763
16764         * conform/data/signal.h-data (union sigval): Expect also if
16765         [XOPEN2K].
16766         (struct sigevent): Likewise.
16767         (SIGEV_NONE): Likewise.
16768         (SIGEV_SIGNAL): Likewise.
16769         (SIGEV_THREAD): Likewise.
16770         (SIGRTMIN): Likewise.
16771         (SIGRTMAX): Likewise.
16772         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
16773         variable.
16774         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
16775
16776 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16777
16778         [BZ #19830]
16779         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
16780         (gaih_getanswer_slice): Likewise.
16781         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
16782         Also check for availability of RR metadata.
16783
16784 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16785
16786         [BZ #19825]
16787         * resolv/res_send.c (send_vc): Remove early *resplen2
16788         initialization.  Set *resplen2 on socket error.  Call
16789         close_and_return_error for other errors.
16790
16791 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
16792
16793         * sysdeps/unix/sysv/linux/netiucv/iucv.h
16794         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
16795         (SCM_IUCV_TRGCLS): New define.
16796
16797 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16798
16799         [BZ #20005]
16800         * libio/fmemopen.c (fmemopen_write): Update internal position after
16801         write.
16802         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
16803         * stdio-common/tst-fmemopen4.c: New file..
16804
16805 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
16806
16807         [BZ #19996]
16808         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
16809         not [__USE_XOPEN2K].
16810         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
16811         variable.
16812
16813         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
16814         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
16815         variable.
16816
16817         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
16818         [__USE_XOPEN2K8].
16819         [__USE_LARGEFILE64] (off64_t): Likewise.
16820         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
16821         variable.
16822
16823 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
16824
16825         [BZ #19989]
16826         * libio/stdio.h (cuserid): Do not declare if
16827         [__USE_XOPEN2K && !__USE_GNU].
16828         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
16829         variable.
16830
16831 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16832
16833         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
16834         (sysdep_routines): Add P8 and PPC64 strcspn targets.
16835         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
16836         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
16837         ifunc'ed strcspn.
16838         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
16839         [EALIGN]: Removed.
16840         [END]: Likewise
16841         [STRSPN]: Define instead of the above to control symbol name.
16842         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
16843         New file.
16844         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
16845         Likewise.
16846         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
16847         Likewise.
16848         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
16849         Likewise.
16850         * sysdeps/powerpc/powerpc64/power8/strspn.S:
16851         [INITIAL_MASK]: New macro.
16852         [STRCSPN]: Likewise.
16853         [UPDATE_MASK]: Likewise.
16854         [USE_AS_STRCSPN]: Likewise.
16855
16856 2016-04-25  Florian Weimer  <fweimer@redhat.com>
16857
16858         [BZ #19931]
16859         * stdio-common/tst-vfprintf-width-prec.c: New file.
16860         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
16861         (tests-special): Add tst-vfprintf-width-prec-mem.out.
16862         (generated): Add mtrace-related files.
16863         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
16864         (tst-%-mem.out): New pattern rule, replaces
16865         tst-printf-bz18872-mem.out.
16866         * stdio-common/vfprintf.c (vfprintf): When handling a precision
16867         specifier, deallocate any previously allocated work buffer.
16868
16869 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
16870
16871         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
16872         Add nop before __startcontext, add explaining comments.
16873
16874 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
16875
16876         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
16877         any more. Notably since IPV6_PKTINFO has been reintroduced with a
16878         completely different API.
16879
16880         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
16881         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
16882         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
16883         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
16884         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
16885         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
16886         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
16887         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
16888         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
16889         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
16890
16891 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
16892
16893         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
16894
16895 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
16896
16897         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
16898         when it is the default of 0.
16899
16900 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
16901
16902         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
16903         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
16904         (sysdep_routines): Add new strcasestr targets.
16905         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
16906         (__libc_ifunc_impl_list): Likewise.
16907         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
16908         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
16909         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
16910         * sysdeps/powerpc/powerpc64/power8/Makefile:
16911         New file to add strcasestr-ppc64 to sysdep_routines.
16912         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
16913         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
16914
16915 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
16916
16917         * benchtests/Makefile (wcsmbs-benchset): Include only for
16918         native builds and runs.
16919         (LOCALES): Likewise.
16920         (bench-build): Build timing-type here instead of the bench
16921         target.  Generate locale only for native builds.
16922         * benchtests/README: Add note for cross-building.
16923
16924         * benchtests/Makefile (bench-clean): Clean up extra-objs.
16925
16926         * benchtests/README: Update README to include instructions on
16927         using bench-build.
16928
16929         * Makefile.in (bench-build): New target.
16930         * Rules (PHONY): Add bench-build target.
16931         * benchtests/Makefile (bench): Depend on bench-build.
16932         (bench-build): New target.
16933
16934 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16935
16936         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
16937         profil_reply_port.
16938         (profile_waiter): Do not initialize profil_reply_port.
16939         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
16940         frequency instead of tick length in us.
16941
16942 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
16943
16944         [BZ #18712]
16945         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
16946         (__old_mempcpy_small): Likewise.
16947         (__old_strcpy_small): Likewise.
16948         (__old_stpcpy_small): Likewise.
16949         (__old_strpbrk_c2): Fix compat symbol name.
16950         (__old_strpbrk_c3): Likewise.
16951         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
16952         (__mempcpy_small): Remove.
16953         (__strcpy_small): Remove.
16954         (__stpcpy_small): Remove.
16955
16956 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
16957
16958         [BZ #19400]
16959         * locale/iso-639.def: Add the Talossan/tzl language.
16960
16961 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
16962
16963         [BZ #16983]
16964         * locale/programs/ld-address.c (address_finish): Update postal_fmt
16965         comment.  Add "ln" to strchr check on postal_fmt.
16966
16967 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
16968
16969         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
16970         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
16971         tel_dom_fmt.
16972
16973 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
16974
16975         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
16976         (sysdep_routines): Added __strlen_power8.
16977         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
16978         __strlen_power8 entry.
16979         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
16980         Implementation for POWER8.
16981         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
16982         for __strlen_power8.
16983         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
16984         Implementation for POWER8.
16985
16986 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
16987
16988         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
16989
16990 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
16991
16992         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
16993         Goldmont and Airmont processors.
16994
16995 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
16996
16997         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
16998         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
16999         (__STRING2_SMALL_GET32): Remove.
17000         (memset): Remove.
17001         (__memset_1): Remove.
17002         (__memset_gc): Remove.
17003         (__mempcpy): Remove.
17004         (mempcpy): Remove.
17005         (__mempcpy_args): Remove.
17006         (strchr): Remove.
17007         (strcpy): Remove.
17008         (strcpy_args): Remove.
17009         (__stpcpy_args): Remove.
17010         (__strcmp_cc): Remove.
17011         (__strcmp_gc): Remove.
17012         (strstr): Remove.
17013
17014 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
17015
17016         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
17017         * nis/nis_call.c (nis_server_cache_add): Likewise.
17018
17019 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17020
17021         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
17022
17023 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17024
17025         * malloc/arena.c (__malloc_fork_lock_parent)
17026         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
17027         internal_function attribute.
17028
17029 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
17030
17031         * stdio-common/printf_fp.c (__printf_fp_l):
17032         Rename ___printf_fp_l to __printf_fp_l and
17033         remove strong alias. Use libc_hidden_def instead
17034         of ldbl_hidden_def macro.
17035
17036 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17037
17038         Remove malloc hooks from fork handler.  They are no longer needed
17039         because malloc runs right before fork, and no malloc calls from
17040         other fork handlers are not possible anymore.
17041         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
17042         declarations.
17043         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
17044         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
17045         (atfork_recursive_cntr): Remove.
17046         (__malloc_fork_lock_parent): Do not override malloc hooks and
17047         thread_arena.
17048         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
17049         thread_arena.
17050         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
17051         thread_arena instead of save_arena.
17052
17053 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17054
17055         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
17056         (thread_atfork, thread_atfork_static): Remove.
17057         * sysdeps/mach/hurd/malloc-machine.h:
17058         (thread_atfork, thread_atfork_static): Remove.
17059
17060 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17061
17062         [BZ #19431]
17063         Run the malloc fork handler as late as possible to avoid deadlocks.
17064         * malloc/malloc-internal.h: New file.
17065         * malloc/malloc.c: Include it.
17066         * malloc/arena.c (ATFORK_MEM): Remove.
17067         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
17068         Update comment.
17069         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
17070         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
17071         Remove outdated comment.
17072         (ptmalloc_init): Do not call thread_atfork.  Remove
17073         thread_atfork_static.
17074         * malloc/tst-malloc-fork-deadlock.c: New file.
17075         * Makefile (tests): Add tst-malloc-fork-deadlock.
17076         (tst-malloc-fork-deadlock): Link against libpthread.
17077         * manual/memory.texi (Aligned Memory Blocks): Update safety
17078         annotation comments.
17079         * sysdeps/nptl/fork.c (__libc_fork): Call
17080         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
17081         __malloc_fork_unlock_child.
17082         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
17083
17084 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17085
17086         [BZ #19613]
17087         Remove union wait.
17088         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
17089         (w_stopsig, w_stopval): Remove.
17090         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
17091         stat_loc argument.
17092         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
17093         (__WAIT_STATUS_DEFN): Remove.
17094         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
17095         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
17096         (wait, wait3, wait4): Use int * for the stat_loc argument.
17097         * posix/wait.c (__wait): Likewise.
17098         * posix/wait3.c (__wait3): Likewise.
17099         * posix/wait4.c (__wait4): Likewise.
17100         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
17101         (__WAIT_STATUS_DEFN): Remove.
17102         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
17103         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
17104         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
17105         argument.
17106         * sysdeps/posix/wait.c (__libc_wait): Likewise.
17107         * sysdeps/posix/wait3.c (__wait3): Likewise.
17108         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
17109         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
17110         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
17111         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
17112         stat_loc argument.
17113         * manual/process.texi (BSD Wait Functions): Remove union wait.
17114
17115 2016-04-13  Andreas Schwab  <schwab@suse.de>
17116
17117         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
17118         (test-extras): Add tst-tlsalign-vars.
17119         * math/Makefile: Wrap long lines.
17120         (libm-vec-test-wrappers): Define.
17121         (test-extras): Add $(libm-vec-test-wrappers).
17122         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
17123         * nss/Makefile (extra-test-objs): Add nss_test1.os.
17124         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
17125         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
17126         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
17127         (extra-test-objs): Add corresponding objects.
17128
17129 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
17130
17131         [BZ #19928]
17132         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
17133         New.
17134         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
17135         times of shared cache size.
17136         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
17137         (VMOVNT): New.
17138         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
17139         (VMOVNT): Likewise.
17140         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
17141         (VMOVNT): Likewise.
17142         (VMOVU): Changed to movups for smaller code sizes.
17143         (VMOVA): Changed to movaps for smaller code sizes.
17144         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
17145         comments.
17146         (PREFETCH): New.
17147         (PREFETCH_SIZE): Likewise.
17148         (PREFETCHED_LOAD_SIZE): Likewise.
17149         (PREFETCH_ONE_SET): Likewise.
17150         Rewrite to use forward and backward loops, which move 4 vector
17151         registers at a time, to support overlapping addresses and use
17152         non temporal store if size is above the threshold and there is
17153         no overlap between destination and source.
17154
17155 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
17156
17157         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
17158         Include dl-vdso.
17159         * sysdeps/unix/sysv/linux/mips/Versions: Add
17160         __vdso_clock_gettime.
17161         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
17162         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
17163         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
17164         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
17165         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
17166         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
17167         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17168         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
17169         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
17170
17171 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17172
17173         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
17174         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
17175         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
17176         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
17177         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
17178         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
17179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
17180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
17181         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
17182         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
17183         syscalls generation.
17184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17185         [__NR_pwrite64] (__NR_write): Remove define.
17186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17187         [__NR_pwrite64] (__NR_write): Remove define.
17188         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
17189         Remove define.
17190         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
17191         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
17192         Remove define.
17193         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
17194         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
17195         Linux implementation as base.
17196         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
17197
17198         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
17199         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
17200         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
17201         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
17202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
17203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
17204         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
17205         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
17206         syscall generation.
17207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17208         [__NR_pread64] (__NR_pread): Remove define.
17209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17210         [__NR_pread64] (__NR_pread): Likewise.
17211         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
17212         define.
17213         (__libc_pread): Use SYSCALL_LL macro on offset argument.
17214         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
17215         Remove define.
17216         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
17217         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
17218         Linux implementation as base.
17219         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
17220         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
17221         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
17222
17223         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
17224         definition.
17225         (__ALIGNMENT_COUNT): Likewise.
17226         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
17227         (__ALIGNMENT_COUNT): Likewise.
17228         (SYSCALL_LL): New define.
17229         (SYSCALL_LL64): Likewise.
17230         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
17231         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
17232         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
17233         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
17234
17235         * sysdeps/unix/sysv/linux/arm/kernel-features.h
17236         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
17237         * sysdeps/unix/sysv/linux/mips/kernel-features.h
17238         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
17239         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17240         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
17241
17242 2016-04-11  Florian Weimer  <fweimer@redhat.com>
17243
17244         [BZ #19865]
17245         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
17246         original buffer before retry.
17247
17248 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17249
17250         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
17251         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
17252         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
17253         GLRO(dl_auxv) list.
17254         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
17255         including <ldsodefs.h>.
17256         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
17257
17258 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
17259
17260         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
17261         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
17262         $(CPPFLAGS).
17263
17264 2016-04-09  Khem Raj  <raj.khem@gmail.com>
17265
17266         [BZ #17950]
17267         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
17268         Add -mfpmath=387.
17269
17270 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
17271
17272         * sysdeps/i386/configure.ac: Change == to = when calling test.
17273         * sysdeps/x86_64/configure.ac: Likewise.
17274         * sysdeps/i386/configure: Regenerated.
17275         * sysdeps/x86_64/configure: Likewise.
17276
17277 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
17278
17279         [BZ #16137]
17280         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
17281         * benchtests/bench-strcoll.c (input_files): Likewise.
17282         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
17283         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
17284         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
17285
17286 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
17287
17288         [BZ #19929]
17289         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
17290         [__USE_XOPEN2K8 && !__USE_GNU].
17291         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
17292         variable.
17293
17294         [BZ #19925]
17295         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
17296         define if [!__USE_MISC && __USE_XOPEN2K].
17297         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
17298         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
17299         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
17300         Likewise.
17301         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
17302         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
17303         variable.
17304         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
17305
17306 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
17307
17308         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
17309         (sysdep_routines): Add new strspn targets.
17310         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
17311         (__libc_ifunc_impl_list): Add strspn.
17312         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
17313         New file.
17314         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
17315         Likewise.
17316         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
17317         Likewise.
17318         * sysdeps/powerpc/powerpc64/power8/strspn.S:
17319         Likewise.
17320
17321 2016-04-07  Florian Weimer  <fweimer@redhat.com>
17322
17323         * misc/hsearch_r.c: Include <limits.h>.
17324
17325 2016-04-07  Florian Weimer  <fweimer@redhat.com>
17326
17327         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
17328
17329 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
17330
17331         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17332         (MEMCPY_SYMBOL): New.
17333         (MEMPCPY_SYMBOL): Likewise.
17334         (MEMMOVE_CHK_SYMBOL): Likewise.
17335         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
17336         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
17337         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
17338         Provide alias for memcpy in libc.a and ld.so.
17339
17340 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
17341
17342         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17343         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
17344         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
17345         Disabled fro now.
17346         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
17347         symbols.  Properly check USE_MULTIARCH on __memset symbols.
17348
17349 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
17350
17351         * benchtests/Makefile (string-benchset): Add memcpy-large,
17352         memmove-large and memset-large.
17353         * benchtests/bench-memcpy-large.c: New file.
17354         * benchtests/bench-memmove-large.c: Likewise.
17355         * benchtests/bench-memmove-large.c: Likewise.
17356         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
17357
17358 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
17359
17360         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
17361         32-bit displacement to avoid long nop between instructions.
17362
17363 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
17364
17365         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
17366         a comment on VMOVU and VMOVA.
17367
17368 2016-04-04  Florian Weimer  <fweimer@redhat.com>
17369
17370         [BZ #19633]
17371         Use specified locale for number formatting in strfmon_l.
17372         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
17373         (__nl_lookup_word): New inline functions.
17374         * include/printf.h (__print_fp_l): Declare.
17375         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
17376         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
17377         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
17378         (___printf_fp): New function.
17379         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
17380         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
17381         * stdlib/tst-strfmon_l.c (do_test): New test.
17382         * stdlib/Makefile (tests): Add kt.
17383         (LOCALES): Build additional locales.
17384         (tst-strfmon_l.out): Require locales.
17385
17386 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
17387
17388         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
17389         if not in libc.
17390         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
17391         Likewise.
17392         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
17393         Likewise.
17394         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
17395         Likewise.
17396
17397 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
17398
17399         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
17400         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
17401         with unaligned_erms.
17402         (__memmove_erms): Skip if source == destination.
17403         (__memmove_unaligned_erms): Don't check source == destination
17404         first.
17405
17406 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17407
17408         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
17409         bit_arch_Fast_Copy_Backward for Intel Core proessors.
17410
17411 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17412
17413         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
17414         * string/strspn.c (strspn): Likewise.
17415
17416 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17417
17418         * benchtests/bench-memset.c (do_test): Support 64-byte
17419         alignment.
17420         (test_main): Test 64-byte alignment.
17421
17422 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17423
17424         * benchtests/bench-memmove.c (test_main): Test 64-byte
17425         alignment.
17426
17427 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17428
17429         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
17430
17431 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17432
17433         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
17434         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
17435         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
17436
17437         * string/strpbrk.c (strpbrk): Rewrite function.
17438         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
17439         (__strpbrk_c2): Likewise.
17440         (__strpbrk_c3): Likewise.
17441         * string/string-inlines.c
17442         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
17443         Likewise.
17444         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
17445         Likewise.
17446
17447         * string/strspn.c (strcspn): Rewrite function.
17448         * string/bits/string2.h (strspn): Use __builtin_strcspn.
17449         (__strspn_c1): Remove inline function.
17450         (__strspn_c2): Likewise.
17451         (__strspn_c3): Likewise.
17452         * string/string-inlines.c
17453         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
17454         compatibility symbol.
17455         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
17456         Likewise.
17457         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
17458         Likewise.
17459         * string/string-inlines.c: Include generic version.
17460
17461 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
17462             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17463
17464         * string/Version (libc): Add GLIBC_2.24.
17465         * string/strcspn.c (strcspn): Rewrite function.
17466         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
17467         (__strcspn_c1): Remove inline function.
17468         (__strcspn_c2): Likewise.
17469         (__strcspn_c3): Likewise.
17470         * string/string-inline.c
17471         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
17472         compatibility symbol.
17473         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
17474         Likewise.
17475         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
17476         Likewise.
17477         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
17478
17479 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
17480
17481         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
17482         Use ahi instead of aghi to adjust stack pointer.
17483
17484 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
17485
17486         [BZ #19853]
17487         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
17488         TEST to take significant digits as second parameter.
17489         [TEST]: Redefine in terms of TEST_N taking 30
17490         significant digits.
17491         (do_test): Add test case to demonstrate precision
17492         failure in the ldbl-128ibm printf.
17493         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
17494         (__mpn_extract_long_double): Carry 7 extra intermediate
17495         bits of precision to aide computing difference when
17496         signs differ.
17497
17498 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
17499
17500         [BZ #19881]
17501         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17502         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
17503         memset-avx512-unaligned-erms.
17504         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
17505         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
17506         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
17507         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
17508         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
17509         __memset_sse2_unaligned_erms, __memset_erms,
17510         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
17511         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
17512         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
17513         file.
17514         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
17515         Likewise.
17516         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
17517         Likewise.
17518         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
17519         Likewise.
17520
17521 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
17522
17523         [BZ #19776]
17524         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17525         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
17526         memmove-avx512-unaligned-erms.
17527         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
17528         (__libc_ifunc_impl_list): Test
17529         __memmove_chk_avx512_unaligned_2,
17530         __memmove_chk_avx512_unaligned_erms,
17531         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
17532         __memmove_chk_sse2_unaligned_2,
17533         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
17534         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
17535         __memmove_avx512_unaligned_erms, __memmove_erms,
17536         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
17537         __memcpy_chk_avx512_unaligned_2,
17538         __memcpy_chk_avx512_unaligned_erms,
17539         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
17540         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
17541         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
17542         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
17543         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
17544         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
17545         __mempcpy_chk_avx512_unaligned_erms,
17546         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
17547         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
17548         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
17549         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
17550         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
17551         __mempcpy_erms.
17552         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
17553         file.
17554         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
17555         Likewise.
17556         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
17557         Likewise.
17558         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
17559         Likewise.
17560
17561 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
17562
17563         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
17564         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
17565         (La_s390_64_regs): Likewise.
17566         (La_s390_32_retval): Append vector register lrv_v24.
17567         (La_s390_64_retval): Likeweise.
17568         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
17569         Handle extended structs La_s390_32_regs and La_s390_32_retval.
17570         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
17571         Handle extended structs La_s390_64_regs and La_s390_64_retval.
17572
17573 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
17574
17575         [BZ #19916]
17576         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
17577         to create a non-vector/vector version for _dl_runtime_resolve and
17578         _dl_runtime_profile. Move implementation to ...
17579         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
17580         (_dl_runtime_resolve) Save and restore fpr/vrs.
17581         (_dl_runtime_profile) Save and restore vrs and fix some issues
17582         if _dl_call_pltexit is called.
17583         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
17584         Choose the correct resolver function if running on a machine with vx.
17585         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
17586         to create a non-vector/vector version for _dl_runtime_resolve and
17587         _dl_runtime_profile. Move implementation to ...
17588         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
17589         (_dl_runtime_resolve) Save and restore fpr/vrs.
17590         (_dl_runtime_profile) Save and restore vrs and fix some issues
17591         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
17592         Choose the correct resolver function if running on a machine with vx.
17593
17594 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17595
17596         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
17597
17598 2016-03-31  Florian Weimer  <fweimer@redhat.com>
17599
17600         [BZ #19509]
17601         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
17602         skip_map != NULL.
17603         * elf/tst-dlsym-error.c: New file.
17604         * elf/Makefile (tests): Add tst-dlsym-error.
17605         (tst-dlsym-error): Link against libdl.
17606
17607 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
17608
17609         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17610         (__ASSUME_FUTIMESAT): Remove macro.
17611         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
17612
17613 2016-03-29  Florian Weimer  <fweimer@redhat.com>
17614
17615         [BZ #19879]
17616         CVE-2016-3075
17617         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
17618         copy name.
17619
17620 2016-03-29  Florian Weimer  <fweimer@redhat.com>
17621
17622         [BZ #19837]
17623         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
17624         error if parse_line fails.
17625
17626 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17627
17628         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
17629         (index_cpu_ERMS): Likewise.
17630         (reg_ERMS): Likewise.
17631
17632 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
17633
17634         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
17635         PER_LINUX_FDPIC): Add.
17636
17637 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17638
17639         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
17640         memcpy-avx512-no-vzeroupper.
17641         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
17642         to ...
17643         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
17644         (MEMCPY): Don't define.
17645         (MEMCPY_CHK): Likewise.
17646         (MEMPCPY): Likewise.
17647         (MEMPCPY_CHK): Likewise.
17648         (MEMPCPY_CHK): Renamed to ...
17649         (__mempcpy_chk_avx512_no_vzeroupper): This.
17650         (MEMPCPY_CHK): Renamed to ...
17651         (__mempcpy_chk_avx512_no_vzeroupper): This.
17652         (MEMCPY_CHK): Renamed to ...
17653         (__memmove_chk_avx512_no_vzeroupper): This.
17654         (MEMCPY): Renamed to ...
17655         (__memmove_avx512_no_vzeroupper): This.
17656         (__memcpy_avx512_no_vzeroupper): New alias.
17657         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
17658
17659 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17660
17661         [BZ #18858]
17662         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
17663         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
17664         and mempcpy-avx512-no-vzeroupper.
17665         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
17666         New.
17667         (MEMPCPY): Likewise.
17668         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
17669         (MEMPCPY_CHK): New.
17670         (MEMPCPY): Likewise.
17671         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
17672         (MEMPCPY): Likewise.
17673         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
17674         (MEMPCPY): Likewise.
17675         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
17676         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
17677         Likewise.
17678         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
17679         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
17680
17681 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17682              Amit Pawar  <Amit.Pawar@amd.com>
17683
17684         [BZ #19583]
17685         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
17686         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
17687         processors.  Set Fast_Copy_Backward for AMD Excavator
17688         processors.
17689         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
17690         New.
17691         (index_arch_Fast_Unaligned_Copy): Likewise.
17692         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
17693         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
17694
17695 2016-03-25  Florian Weimer  <fweimer@redhat.com>
17696
17697         [BZ #19791]
17698         * resolv/res_send.c (close_and_return_error): New function.
17699         (send_dg): Initialize *resplen2 after reopen failure.  Call
17700         close_and_return_error for error returns.  On error paths without
17701         __res_iclose, initialze *resplen2 explicitly.  Update comment for
17702         successful return.
17703
17704 2016-03-25  Florian Weimer  <fweimer@redhat.com>
17705
17706         [BZ #19860]
17707         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
17708         zero if the compiler does not provide the AVX512F bit.
17709
17710 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
17711
17712         [BZ #19848]
17713         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
17714         from 8 to 4.
17715         (__ieee754_powl): Compare integer exponent against 4 not 8.
17716         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
17717         from 8 to 4.
17718         (__ieee754_powl): Compare integer exponent against 4 not 8.
17719         * math/auto-libm-test-in: Add more tests of pow.
17720         * math/auto-libm-test-out: Regenerated.
17721         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
17722         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17723
17724 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
17725
17726         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
17727         Make code unconditional.
17728         [!__NR_utimensat]: Remove conditional code.
17729         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
17730         Make code unconditional.
17731         [!__NR_utimensat]: Remove conditional code.
17732         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
17733         Make code unconditional.
17734         [!__NR_utimensat]: Remove conditional code.
17735
17736 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
17737
17738         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
17739         Make code unconditional.
17740
17741 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
17742
17743         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
17744         call-clobbered %eax on retry path.
17745         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
17746
17747 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17748
17749         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
17750         Don't set %rcx twice before "rep movsb".
17751
17752 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17753
17754         [BZ #19583]
17755         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
17756         inline.  Check family before setting family, model and
17757         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
17758         bits here.
17759         (init_cpu_features): Replace HAS_CPU_FEATURE and
17760         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
17761         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
17762         for Intel processors with usable AVX2.  Call get_common_indeces
17763         for other processors with family == NULL.
17764         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
17765         (CPU_FEATURES_ARCH_P): Likewise.
17766         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
17767         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
17768
17769 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17770
17771         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
17772         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
17773         $(shared-thread-library) instead of hardcoding the path to libpthread.
17774
17775 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
17776
17777         * sysdeps/unix/sysv/linux/kernel-features.h
17778         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
17779         * sysdeps/unix/sysv/linux/getdents.c
17780         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
17781         [!have_no_getdents64_defined]: Likewise.
17782         (__GETDENTS): Remove __have_no_getdents64 conditional.
17783
17784 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
17785
17786         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
17787         Remove macro.
17788         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
17789         <kernel-features.h>.
17790         (signalfd) [__NR_signalfd4]: Make code unconditional.
17791         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
17792
17793 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17794
17795         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
17796         style.
17797
17798 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
17799
17800         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
17801         (__pthread_enable_asynccancel): Use JUMPTARGET to call
17802         __pthread_unwind.
17803         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
17804         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
17805         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
17806         (__condvar_cleanup1): Likewise.
17807
17808 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
17809
17810         [BZ #19822]
17811         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
17812         move it to the final $@ location.
17813
17814 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17815
17816         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
17817         access where posix_spawn success and pid argument is null.
17818         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
17819         success case.
17820
17821 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
17822
17823         * sysdeps/mach/hurd/i386/c++-types.data: New file.
17824
17825         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
17826
17827         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
17828         and __fcntl.
17829         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
17830         __fcntl only.
17831         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
17832         adding attribute_hidden to __open and __fcntl.
17833
17834         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
17835         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
17836         depend on libc-modules.h,
17837         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
17838
17839 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
17840
17841         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
17842         Remove macro.
17843         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
17844         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
17845         entry.
17846
17847         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
17848         Remove macro.
17849         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
17850         include <kernel-features.h>.
17851         [!__ASSUME_FALLOCATE]: Remove conditional code.
17852         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
17853
17854 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17855
17856         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
17857         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
17858         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
17859         (_ZGVdN4v_cos_avx2): Likewise.
17860         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
17861         (_ZGVdN4v_cos): Likewise.
17862         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
17863         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
17864         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
17865         (_ZGVdN4v_exp_avx2): Likewise.
17866         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
17867         (_ZGVdN4v_exp): Likewise.
17868         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
17869         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
17870         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
17871         (_ZGVdN4v_log_avx2): Likewise.
17872         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
17873         (_ZGVdN4v_log): Likewise.
17874         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
17875         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
17876         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
17877         (_ZGVdN4vv_pow_avx2): Likewise.
17878         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
17879         (_ZGVdN4vv_pow): Likewise.
17880         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
17881         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
17882         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
17883         (_ZGVdN4v_sin_avx2): Likewise.
17884         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
17885         (_ZGVdN4v_sin): Likewise.
17886         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
17887         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
17888         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
17889         (_ZGVdN4vvv_sincos_avx2): Likewise.
17890         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
17891         (_ZGVdN4vvv_sincos): Likewise.
17892         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
17893         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
17894         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
17895         (_ZGVbN4v_cosf_sse4): Likewise.
17896         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
17897         (_ZGVdN8v_cosf_avx2): Likewise.
17898         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
17899         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
17900         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
17901         (_ZGVbN4v_expf_sse4): Likewise.
17902         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
17903         (_ZGVdN8v_expf_avx2): Likewise.
17904         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
17905         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
17906         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
17907         (_ZGVbN4v_logf_sse4): Likewise.
17908         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
17909         (_ZGVdN8v_logf_avx2): Likewise.
17910         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
17911         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
17912         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
17913         (_ZGVbN4vv_powf_sse4): Likewise.
17914         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
17915         (_ZGVdN8vv_powf_avx2): Likewise.
17916         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
17917         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
17918         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
17919         (_ZGVbN4vvv_sincosf_sse4): Likewise.
17920         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
17921         (_ZGVdN8vvv_sincosf_avx2): Likewise.
17922         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
17923         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
17924         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
17925         (_ZGVbN4v_sinf_sse4): Likewise.
17926         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
17927         (_ZGVdN8v_sinf_avx2): Likewise.
17928         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
17929         Use JUMPTARGET to call callee.
17930         (WRAPPER_IMPL_SSE2_ff): Likewise.
17931         (WRAPPER_IMPL_SSE2_fFF): Likewise.
17932         (WRAPPER_IMPL_AVX): Likewise.
17933         (WRAPPER_IMPL_AVX_ff): Likewise.
17934         (WRAPPER_IMPL_AVX_fFF): Likewise.
17935         (WRAPPER_IMPL_AVX512): Likewise.
17936         (WRAPPER_IMPL_AVX512_ff): Likewise.
17937         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
17938         Likewise.
17939         (WRAPPER_IMPL_SSE2_ff): Likewise.
17940         (WRAPPER_IMPL_SSE2_fFF): Likewise.
17941         (WRAPPER_IMPL_AVX): Likewise.
17942         (WRAPPER_IMPL_AVX_ff): Likewise.
17943         (WRAPPER_IMPL_AVX_fFF): Likewise.
17944         (WRAPPER_IMPL_AVX512): Likewise.
17945         (WRAPPER_IMPL_AVX512_ff): Likewise.
17946         (WRAPPER_IMPL_AVX512_fFF): Likewise.
17947
17948 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17949
17950         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
17951         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
17952         qualifier.
17953         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
17954         internal_function qualifiers.
17955
17956 2016-03-15  Carlos O'Donell <carlos@redhat.com>
17957
17958         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
17959         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
17960         * math/atest-exp.c (exp_mpn): Mark chk unused.
17961         * math/atest-exp2.c (exp_mpn): Likewise.
17962         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
17963         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
17964
17965 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
17966
17967         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
17968         Remove macro.
17969         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
17970         <kernel-features.h>.
17971         [__NR_ppoll]: Make code unconditional.
17972         [!__ASSUME_PPOLL]: Remove conditional code.
17973
17974         * sysdeps/unix/sysv/linux/kernel-features.h
17975         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
17976         (__ASSUME_ACCEPT4): Likewise.
17977         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
17978         Define.
17979         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
17980         Likewise.
17981         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
17982         Likewise.
17983         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
17984         Likewise.
17985         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
17986         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
17987         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
17988         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
17989         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17990         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17991         * sysdeps/unix/sysv/linux/arm/kernel-features.h
17992         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17993         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17994         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17995         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
17996         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17997         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17998         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17999         * sysdeps/unix/sysv/linux/i386/kernel-features.h
18000         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
18001         Likewise.
18002         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
18003         Likewise.
18004         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18005         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
18006         0x040300].
18007         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
18008         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
18009         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18010         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18011         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
18012         0x030300].
18013         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
18014         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
18015         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18016         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
18017         0x040300].
18018         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18019         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18020         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18021         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
18022         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18023         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18024         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
18025         0x030300].
18026         * sysdeps/unix/sysv/linux/mips/kernel-features.h
18027         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
18028         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18029         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18030         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
18031         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18032         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18033         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18034         * sysdeps/unix/sysv/linux/s390/kernel-features.h
18035         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18036         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
18037         0x040300].
18038         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18039         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18040         * sysdeps/unix/sysv/linux/sh/kernel-features.h
18041         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
18042         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18043         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18044         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
18045         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18046         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18047         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18048         * sysdeps/unix/sysv/linux/tile/kernel-features.h
18049         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18050         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18051         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18052         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
18053         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18054         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
18055         Likewise.
18056         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
18057         Likewise.
18058
18059 2016-03-15  Andreas Schwab  <schwab@suse.de>
18060
18061         [BZ #19257]
18062         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
18063         statp->_u._ext.nscount as loop count.
18064
18065 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
18066
18067         * math/test-signgam-finite-c99.c: Also #undef
18068         __LIBC_INTERNAL_MATH_INLINES.
18069         * math/test-signgam-main.c: Likewise.
18070
18071 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
18072
18073         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
18074         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18075         (MADV_FREE): Likewise.
18076         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
18077         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
18078         EPOLLEXCLUSIVE.
18079
18080 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
18081
18082         * timezone/README: Remove mention of checktab.awk. Mention wiki
18083         SharedSourceFiles.
18084
18085 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
18086
18087         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
18088         WUNTRACED.
18089
18090 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18091
18092         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
18093         order to match the type of p when calling atomic_exchange_acq().
18094
18095 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18096
18097         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
18098         cfi_offset calls.
18099         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
18100         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
18101         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
18102         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
18103         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
18104
18105 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
18106
18107         * timezone/checktab.awk: Removed.
18108
18109 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
18110
18111         * manual/math.texi (Errors in Math Functions): Document relaxed
18112         accuracy goals for IBM long double.
18113         * math/libm-test.inc (test_exceptions): Always allow spurious
18114         "underflow" and "inexact" exceptions for IBM long double.
18115
18116 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
18117
18118         [BZ #19762]
18119         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
18120         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
18121         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
18122         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
18123         (bit_arch_*): This for feature array.
18124         (bit_*): Renamed to ...
18125         (bit_cpu_*): This for cpu array.
18126         (index_*): Renamed to ...
18127         (index_arch_*): This for feature array.
18128         (index_*): Renamed to ...
18129         (index_cpu_*): This for cpu array.
18130         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
18131         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
18132         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
18133         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
18134         bit_##name with index_cpu_##name and bit_cpu_##name.
18135         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
18136         bit_##name with index_arch_##name and bit_arch_##name.
18137
18138 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
18139
18140         [BZ #19792]
18141         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
18142         Terminate FDE before return label.
18143
18144 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
18145
18146         [BZ #19790]
18147         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
18148         (rintl): Define as macro.
18149         [USE_AS_NEARBYINTL] (__rintl): Likewise.
18150         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
18151         of fesetround.  Ensure results are evaluated before end of scope.
18152         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
18153         USE_AS_NEARBYINTL and include s_rintl.c.
18154         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
18155         Disable exception traps in new environment.
18156         (libc_feholdsetround_ppc_ctx): Likewise.
18157
18158 2016-03-08  Roland McGrath  <roland@hack.frob.com>
18159
18160         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
18161         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
18162         (tst_audit10_aux) [__AVX512F__]: ... here.
18163
18164 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
18165
18166         * include/sys/auxv.h: New file.
18167
18168 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
18169
18170         [BZ #19759]
18171         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
18172
18173 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
18174
18175         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
18176         operand modifier.
18177         (feclearexcept): Likewise.
18178
18179 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
18180
18181         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
18182         to reflect the entire 32-bit HWCAP.
18183         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
18184         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
18185
18186 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
18187
18188         [BZ #19783]
18189         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
18190         $(test-via-rtld-prefix).
18191         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
18192
18193 2016-03-08  Florian Weimer  <fweimer@redhat.com>
18194
18195         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
18196         union wait.  Report any non-zero exit status as error.
18197
18198 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18199
18200         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
18201         configured with --enable-hardcoded-path-in-tests.
18202
18203 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
18204
18205         [BZ #19677]
18206         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
18207         (__ieee754_remainderl): Put zero low parts in canonical form.
18208         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
18209         file.  Based on
18210         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
18211         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
18212         with wrapper round test-fmodrem-ldbl-128ibm.c.
18213         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
18214         file.
18215         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
18216         Likewise.
18217         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
18218         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
18219
18220 2016-03-07  Florian Weimer  <fweimer@redhat.com>
18221
18222         [BZ #19610]
18223         * elf/ldconfig.c (opt_link): Update comment.
18224         (options): Update help string for option -X.
18225         (search_dir): Unlink stale symbolic link only if updating symbolic
18226         links.
18227         * elf/tst-ldconfig-X.sh: New file.
18228         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
18229         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
18230
18231 2016-03-07  Andreas Schwab  <schwab@suse.de>
18232
18233         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
18234         needed arguments.
18235
18236 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
18237
18238         [BZ #15333]
18239         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
18240         to lstat64.
18241
18242 2016-03-07  Florian Weimer  <fweimer@redhat.com>
18243
18244         * libio/filedoalloc.c (isatty): Remove.
18245         (local_isatty): Add comment.  Call __isatty directly.
18246         (_IO_file_doallocate): Update comment.  Assume _LIBC.
18247         * libio/wfiledoalloc.c (isatty): Remove.
18248         (_IO_wfile_doallocate): Update comment.
18249
18250 2016-03-07  Florian Weimer  <fweimer@redhat.com>
18251
18252         [BZ #19269]
18253         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
18254         tst-audit4-aux.o.
18255         (tst-audit10): Depend on tst-audit10-aux.o.
18256         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
18257         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
18258         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
18259         instead of inline AVX code.
18260         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
18261         instead of inline AVX512 code.
18262         * sysdeps/x86_64/tst-audit4-aux.c: New file
18263         * sysdeps/x86_64/tst-audit10-aux.c: New file
18264
18265         [BZ #19648]
18266         * test-skeleton.c (main): Do not set RLIMIT_DATA.
18267
18268 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18269
18270         [BZ #14750]
18271         [BZ #10354]
18272         [BZ #18433]
18273         * include/sched.h (__clone): Add hidden prototype.
18274         (__clone2): Likewise.
18275         * include/unistd.h (__dup): Likewise.
18276         * posix/Makefile (tests): Add tst-spawn2.
18277         * posix/tst-spawn2.c: New file.
18278         * sysdeps/posix/dup.c (__dup): Add hidden definition.
18279         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
18280         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
18281         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
18282         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
18283         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
18284         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
18285         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
18286         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
18287         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
18288         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
18289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
18290         Likewise.
18291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
18292         Likewise.
18293         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
18294         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
18295         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
18296         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
18297         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
18298         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
18299         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
18300         * sysdeps/unix/sysv/linux/nptl-signals.h
18301         (____nptl_is_internal_signal): New function.
18302         * sysdeps/unix/sysv/linux/spawni.c: New file.
18303
18304         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
18305         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
18306         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
18307         * posix/tst-execvp2.c (do_test): Likewise.
18308         * posix/tst-execvp3.c (do_test): Likewise.
18309         * posix/tst-execvp4.c (do_test): Likewise.
18310         * posix/tst-execvpe1.c: New file.
18311         * posix/tst-execvpe2.c: Likewise.
18312         * posix/tst-execvpe3.c: Likewise.
18313         * posix/tst-execvpe4.c: Likewise.
18314         * posix/tst-execvpe5.c: Likewise.
18315         * posix/tst-execvpe6.c: Likewise.
18316
18317         [BZ #19534]
18318         * posix/execl.c (execl): Remove dynamic memory allocation.
18319         * posix/execle.c (execle): Likewise.
18320         * posix/execlp.c (execlp): Likewise.
18321
18322 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
18323
18324         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
18325         Replace .text with .text.avx512.
18326         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
18327         Likewise.
18328
18329 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
18330
18331         * sysdeps/generic/libnsl.abilist: New file.
18332         * sysdeps/generic/libutil.abilist: New file.
18333
18334 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
18335
18336         [BZ #19762]
18337         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
18338         HAS_ARCH_FEATURE with Fast_Rep_String.
18339         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
18340         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
18341         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
18342         Likewise.
18343         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
18344         Likewise.
18345         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
18346         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
18347         Likewise.
18348         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
18349         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
18350         Likewise.
18351
18352 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18353
18354         [BZ #19745]
18355         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
18356         with *%rax in call.
18357
18358 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18359
18360         [BZ #19745]
18361         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
18362         with *__libc_start_main@GOTPCREL(%rip) in call.
18363
18364 2016-03-04  Roland McGrath  <roland@hack.frob.com>
18365
18366         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
18367         inside conditional for nonempty $(CXX).
18368
18369         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
18370         nonempty.
18371
18372         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
18373         to test for empty $(CXX) rather than $(CXX) of "no".
18374
18375 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18376
18377         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
18378
18379 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
18380             H.J. Lu  <hongjiu.lu@intel.com>
18381
18382         [BZ #18880]
18383         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
18384         instead of Slow_BSF, and also check for Fast_Copy_Backward to
18385         enable __memcpy_ssse3_back.
18386
18387 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
18388
18389         [BZ #19758]
18390         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
18391         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
18392
18393 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
18394
18395         [BZ #19490]
18396         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
18397         (__fentry__): Likewise.
18398
18399 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
18400
18401         * gmon/Makefile (noprof): Add $(sysdep_noprof).
18402         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
18403
18404 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
18405
18406         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
18407         __mcount_internal directly.
18408         (C_LABEL(__fentry__)): Likewise.
18409         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
18410         directly.
18411
18412 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
18413
18414         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
18415         (__start_context): Call __setcontext directly.
18416
18417 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
18418
18419         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
18420         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18421         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
18422         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
18423         * sysdeps/unix/sysv/linux/arm/kernel-features.h
18424         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18425         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
18426         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18427         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
18428         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
18429         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
18430         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
18431         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
18432         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18433         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18434         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
18435         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
18436         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18437         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18438         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
18439         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
18440         * sysdeps/unix/sysv/linux/mips/kernel-features.h
18441         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18442         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
18443         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
18444         Remove conditional code.
18445         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
18446         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
18447         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18448         * sysdeps/unix/sysv/linux/sh/kernel-features.h
18449         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
18450         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18451         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
18452         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
18453         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18454         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18455         * sysdeps/unix/sysv/linux/tile/kernel-features.h
18456         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18457
18458 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
18459
18460         * NEWS (2.23): Fix typo in bug 19048 text.
18461
18462 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
18463
18464         [BZ #14259]
18465         * Makeconfig: Rename msgcatdir to localedir.
18466         Rename inst_msgcatdir to inst_localedir.
18467         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
18468         * config.make.in: Add localedir.
18469         * elf/Makefile ($(objpfx)sotruss): Use localedir.
18470         (ldd-rewrite): Likewise.
18471         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
18472         (install-others): Use inst_localedir.
18473         (CPPFLAGS): Use localedir.
18474         * locale/Makefile (locale-CPPFLAGS): Likewise.
18475         * po/Makefile (mo-installed): Use inst_localedir.
18476
18477         [BZ #19575]
18478         * localedata/charmaps/GB18030: Update comments regarding PAU to
18479         non-PUA mappings.
18480
18481 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
18482
18483         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
18484         test for header.
18485         * sysdeps/unix/sysv/linux/configure: Regenerated.
18486         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
18487         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
18488         Remove conditional code.
18489         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
18490
18491         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
18492         Define to 3.2.0.
18493         (arch_minimum_kernel): Likewise.
18494         * sysdeps/unix/sysv/linux/configure: Regenerated.
18495         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
18496         Define to 2.6.32.
18497         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
18498         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
18499         (arch_minimum_kernel): Define to 2.6.32.
18500         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
18501         * README: Document Linux 3.2 requirement.
18502         * manual/install.texi (Linux): Document Linux 3.2 headers
18503         requirement.
18504         * INSTALL: Regenerated.
18505
18506 2016-02-24  Andreas Schwab  <schwab@suse.de>
18507
18508         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
18509         if !NO_LONG_DOUBLE.
18510
18511 2016-02-22  Roland McGrath  <roland@hack.frob.com>
18512
18513         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
18514         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
18515
18516 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
18517
18518         [BZ #19512]
18519         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
18520
18521 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
18522
18523         * posix/tst-dir.c: Include libc-internal.h.
18524
18525 2016-02-20  Florian Weimer  <fweimer@redhat.com>
18526
18527         [BZ #19056]
18528         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
18529         * manual/filesys.texi (Reading/Closing Directory): Mention
18530         deprecaion.
18531         * posix/tst-dir.c (main): Disable deprecation warning in test.
18532
18533 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
18534
18535         [BZ #19679]
18536         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
18537         Renamed to ...
18538         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
18539         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
18540         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
18541         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
18542         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
18543         * sysdeps/x86_64/dl-trampoline.h
18544         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
18545         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
18546
18547 2016-02-19  Mark Wielaard  <mjw@redhat.com>
18548
18549         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
18550
18551 2016-02-19  Mark Wielaard  <mjw@redhat.com>
18552
18553         * elf/elf.h (R_386_GOT32X): New.
18554         (R_386_NUM): Update.
18555         (R_X86_64_GOTPCRELX: New.
18556         (R_X86_64_REX_GOTPCRELX): New.
18557         (R_X86_64_NUM): Update.
18558
18559 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
18560
18561         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
18562
18563 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
18564
18565         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
18566         assign attr->stackaddr to it, and adjust it down when
18567         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
18568         [_STACK_GROWS_UP]: Delete assert.
18569         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
18570         Implement stack grows up logic.
18571         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
18572         stack grows up logic.
18573
18574 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18575
18576         * NEWS: Update with 2.24 template.
18577
18578 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
18579
18580         [BZ #19678]
18581         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
18582         Ensure +0.0 is returned when taking the next value below the least
18583         positive value.
18584
18585 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18586
18587         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
18588         available.  Do not define NO_THREADS.
18589         * malloc/malloc.c: Do not check NO_THREADS.
18590         * malloc/arena.c: Likewise.
18591
18592 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18593
18594         * malloc/malloc.c (__libc_mallinfo): Update comment.
18595         (struct malloc_par): Remove max_total_mem member, it was always 0.
18596         (int_mallinfo): Store 0 into usmblks (no functional change).
18597         * malloc/hooks.c (struct malloc_state): Document that
18598         max_total_mem is always 0.
18599         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
18600         always 0.
18601         * manual/memory.texi (Statistics of Malloc): Likewise.
18602
18603 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18604
18605         * malloc/malloc.c (sysmalloc): Do not update arena_max.
18606         * malloc/arena.c (arena_max): Remove.
18607         (heap_trim, _int_new_arena): Do not update arena_max.
18608
18609 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18610
18611         * resolv/res_init.c (res_ninit): Update comment.
18612
18613 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18614
18615         [BZ #19505]
18616         * posix/spawn_int.h: Add headers and include guard.
18617         (__spawn_valid_fd): New function.
18618         * posix/spawn_faction_addopen.c
18619         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
18620         * posix/spawn_faction_addclose.c
18621         (posix_spawn_file_actions_addclose): Likewise.
18622         * posix/spawn_faction_adddup2.c
18623         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
18624         second file descriptor.
18625         * posix/spawn_valid_fd.c: New file.
18626         * posix/tst-posix_spawn-fd.c: New file.
18627         * posix/Makefile (routines): Add spawn_valid_fd.
18628         (tests): Add tst-posix_spawn-fd.
18629
18630 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18631
18632         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
18633         (do_test): Limit the number of arenas, so that we can use fewer
18634         outer threads.  Limit timeout to 3 seconds, in preparation for a
18635         larger TIMEOUT value.
18636
18637 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
18638
18639         [BZ #19674]
18640         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
18641         sign in overflowing and underflowing results when overflow or
18642         underflow is detected early.  Include sign in result before rather
18643         than after scaling.
18644
18645         [BZ #19603]
18646         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
18647         (__ieee754_remainderl): Adjust sign of integer version of low part
18648         when taking absolute value of high part.
18649         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
18650         * math/libm-test.inc (remainder_test_data): Add another test.
18651         (remquo_test_data): Likewise.
18652
18653 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
18654
18655         [BZ #19602]
18656         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
18657         equal high parts and both low parts zero specially.
18658         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
18659         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
18660         Add test-fmodl-ldbl-128ibm.
18661
18662         [BZ #19595]
18663         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
18664         common logic for all cases of shifting subnormal results.  Do not
18665         insert sign bit in shifted mantissa.  Always pass -1023 as biased
18666         exponent to ldbl_insert_mantissa in subnormal case.
18667
18668         [BZ #19594]
18669         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
18670         on high and low parts then adjust result and use
18671         ldbl_canonicalize_int if needed.
18672
18673         [BZ #19593]
18674         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
18675         on high part and __floor or __ceil on low part then use
18676         ldbl_canonicalize_int if needed.
18677
18678         [BZ #19592]
18679         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
18680         high and low parts then use ldbl_canonicalize_int if needed.
18681
18682         [BZ #17899]
18683         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
18684         New function.
18685         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
18686         on high and low parts then use ldbl_canonicalize_int if needed.
18687
18688 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18689
18690         * configure: Regenerated.
18691
18692         * po/libc.pot: Regenerated.
18693
18694         * po/be.po: Updated translation.
18695         * po/bg.po: Likewise.
18696         * po/ca.po: Likewise.
18697         * po/cs.po: Likewise.
18698         * po/da.po: Likewise.
18699         * po/el.po: Likewise.
18700         * po/eo.po: Likewise.
18701         * po/es.po: Likewise.
18702         * po/fi.po: Likewise.
18703         * po/fr.po: Likewise.
18704         * po/gl.po: Likewise.
18705         * po/hr.po: Likewise.
18706         * po/hu.po: Likewise.
18707         * po/ia.po: Likewise.
18708         * po/id.po: Likewise.
18709         * po/it.po: Likewise.
18710         * po/ja.po: Likewise.
18711         * po/lt.po: Likewise.
18712         * po/nb.po: Likewise.
18713         * po/nl.po: Likewise.
18714         * po/pt_BR.po: Likewise.
18715         * po/rw.po: Likewise.
18716         * po/sk.po: Likewise.
18717         * po/sl.po: Likewise.
18718         * po/sv.po: Likewise.
18719         * po/tr.po: Likewise.
18720         * po/zh_CN.po: Likewise.
18721         * po/zh_TW.po: Likewise.
18722
18723         * version.h (RELEAES): Set to "development".
18724         (VERSION): Set to 2.23.90.
18725
18726         * version.h (RELEASE): Set to "stable".
18727         (VERSION): Set to 2.23.
18728         * include/feature.h (__GLIBC_MINOR__): Set to 23.
18729
18730         * NEWS: Updated fixed bugs.
18731
18732 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
18733             Wilco Dijkstra  <wdijkstr@arm.com>
18734
18735         [BZ #19462]
18736         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
18737         (_STRING_INLINE_unaligned): This.
18738         * include/string.h: Include <string_private.h>.
18739         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
18740         _STRING_INLINE_unaligned.
18741         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
18742         (_STRING_INLINE_unaligned): New.
18743         * sysdeps/aarch64/string_private.h: New file.
18744         * sysdeps/generic/string_private.h: Likewise.
18745         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
18746         * sysdeps/s390/string_private.h: Likewise.
18747         * sysdeps/x86/string_private.h: Likewise.
18748         * sysdeps/m68k/m680x0/m68020/bits/string.h
18749         (_STRING_ARCH_unaligned): Renamed to ...
18750         (_STRING_INLINE_unaligned): This.
18751         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
18752         to ...
18753         (_STRING_INLINE_unaligned): This.
18754         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
18755         to ...
18756         (_STRING_INLINE_unaligned): This.
18757         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
18758         to ...
18759         (_STRING_INLINE_unaligned): This.
18760
18761 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
18762             H.J. Lu  <hongjiu.lu@intel.com>
18763
18764         [BZ #19590]
18765         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
18766         relocation.
18767
18768 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
18769
18770         [BZ #18665]
18771         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
18772         *herrno_p.
18773         (gaih_getanswer): Document functional behviour. Return tryagain
18774         if any result is tryagain.
18775         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
18776         when freed.
18777         * resolv/res_send.c: Add copyright text.
18778         (__libc_res_nsend): Document that MAXPACKET is expected.
18779         (send_vc): Document. Remove buffer reuse.
18780         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
18781         size of the buffer. Add Dprint for truncated UDP buffer.
18782
18783 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
18784
18785         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
18786         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
18787         * INSTALL: Regenerate.
18788
18789 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
18790             Jonathan Wakely  <jwakely@redhat.com>
18791             Carlos O'Donell  <carlos@redhat.com>
18792
18793         [BZ 19439]
18794         * math/Makefile (tests): Add test-math-isinff.
18795         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
18796         * math/bits/mathcalls.h [__USE_MISC]: Use
18797         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
18798         functions not in C++11 and which don't conflict e.g. isinff,
18799         isinfl etc.
18800         * math/test-math-isinff.cc: New file.
18801
18802 2016-02-12  Florian Weimer  <fweimer@redhat.com>
18803
18804         * misc/bug18240.c (do_test): Set RLIMIT_AS.
18805
18806 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18807
18808         [BZ #19529]
18809         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
18810
18811 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18812
18813         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
18814
18815 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
18816
18817         [BZ #19550]
18818         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
18819         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
18820         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
18821         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
18822         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
18823         New syscall entry.
18824         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
18825         New syscall entry.
18826         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
18827         syscall entry.
18828
18829 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
18830
18831         [BZ #18240]
18832         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
18833         unsigned int wraparound.
18834
18835 2016-01-27  Florian Weimer  <fweimer@redhat.com>
18836
18837         [BZ #18240]
18838         * misc/bug18240.c: New test.
18839         * misc/Makefile (tests): Add it.
18840
18841 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
18842             Joseph Myers  <joseph@codesourcery.com>
18843
18844         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
18845         load in branch delay slot when less than a word of input left.
18846
18847 2016-01-27  Andreas Schwab  <schwab@suse.de>
18848
18849         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
18850         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
18851         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
18852         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
18853
18854 2016-01-26  David S. Miller  <davem@davemloft.net>
18855
18856         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
18857
18858 2016-01-25  David S. Miller  <davem@davemloft.net>
18859
18860         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
18861         __sqrtl_finite.
18862         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
18863         instead using versioned_symbol.
18864         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
18865         of entries.
18866
18867         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
18868         __sqrtl_finite to GLIBC_2.23
18869
18870 2016-01-25  Ricchard Henderson  <rth@redhat.com>
18871
18872         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18873
18874 2016-01-25  Andreas Schwab  <schwab@suse.de>
18875
18876         [BZ #17514]
18877         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
18878         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
18879         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
18880         * nptl/tst-mutex-errorcheck.c: New file.
18881
18882 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18883
18884         [BZ #18560]
18885         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
18886         (IPCOP_semop): Likewise.
18887         (IPCOP_semget): Likewise.
18888         (IPCOP_semctl): Likewise.
18889         (IPCOP_msgsnd): Likewise.
18890         (IPCOP_msgrcv): Likewise.
18891         (IPCOP_msgget): Likewise.
18892         (IPCOP_msgctl): Likewise.
18893         (IPCOP_shmat): Likewise.
18894         (IPCOP_shmdt): Likewise.
18895         (IPCOP_shmget): Likewise.
18896         (IPCOP_shmctl): Likewise.
18897
18898 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
18899
18900         * string/tst-endian.c: Include <libc-internal.h>.
18901         (do_test): Ignore tautological-compare warnings around
18902         "htobeXX (beXXtoh (i)) != i" and
18903         "htoleXX (leXXtoh (i)) != i" if-statements.
18904
18905 2016-01-24  David S. Miller  <davem@davemloft.net>
18906
18907         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
18908         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
18909         alias.
18910         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
18911         __sqrtl_finite.
18912
18913         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18914
18915 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
18916
18917         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
18918         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
18919         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
18920
18921 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18922
18923         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
18924         (thread_func): Use new function to simplify barrier check.
18925         (do_test): Use new function to simplify checking barrier exit
18926         code, and actually join the child thread.
18927
18928 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18929
18930         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
18931         semicolon.
18932         (__libc_tend): Likewise.
18933         (__libc_tabort): Likewise.
18934
18935 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
18936
18937         * sysdeps/nios2/libm-test-ulps: Update.
18938         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
18939         (__gtsf2): Likewise.
18940         (__unorddf2): Likewise.
18941         (__unordsf2): Likewise.
18942         (__ledf2): Likewise.
18943
18944 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
18945
18946         * nis/nis_table.c (__follow_path): Disable diagnostic for
18947         uninitialized variable that is a false positive for gcc 4.7.
18948         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
18949
18950 2016-01-20  Roland McGrath  <roland@hack.frob.com>
18951
18952         * sysdeps/nacl/lowlevellock-futex.h
18953         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
18954         Always evaluate PRIVATE argument.
18955
18956 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
18957
18958         [BZ #19490]
18959         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
18960         (pthread_cond_broadcast): Use ENTRY/END
18961         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
18962         (pthread_cond_signal): Likewise.
18963         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
18964         Likewise.
18965         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
18966         Likewise.
18967         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
18968         Likewise.
18969
18970 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
18971
18972         * sysdeps/ieee754/dbl-64/s_finite.c
18973         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
18974         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
18975         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
18976         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
18977         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
18978
18979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
18980         (__gtsf2): Add as optional for libc.so.
18981         (__unordsf2): Likewise.
18982         (__signbit): Remove for libc.so.
18983         (__signbitl): Likewise.
18984
18985 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
18986
18987         * iconvdata/bug-iconv11.c (test_ibm93x):
18988         Use %zu printf format specifier for size_t argument.
18989
18990 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
18991
18992         * math/gen-libm-test.pl (parse_ulps): Do not reduce
18993         already-recorded ulps.
18994         * sysdeps/arm/libm-test-ulps: Regenerated.
18995         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
18996         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18997         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
18998
18999 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
19000             Paul Pluzhnikov  <ppluzhnikov@google.com>
19001
19002         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
19003         assembler not supporting AVX-512.
19004
19005 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
19006
19007         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
19008
19009 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
19010
19011         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
19012         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19013
19014         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
19015
19016         * sysdeps/arm/libm-test-ulps: Regenerated.
19017
19018 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
19019
19020         [BZ #19451]
19021         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
19022
19023 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
19024
19025         [BZ #19486]
19026         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
19027         * sysdeps/generic/fix-fp-int-convert-overflow.h
19028         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
19029         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
19030         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
19031         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
19032         Likewise.
19033         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
19034         Avoid conversions to long int where inexact exceptions
19035         could be raised.
19036         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
19037         Likewise.
19038         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
19039         Avoid conversions to long long int where inexact exceptions
19040         could be raised.
19041         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
19042         Likewise.
19043
19044 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
19045
19046         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
19047         * configure: Regenerated.
19048
19049 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
19050
19051         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
19052
19053 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
19054
19055         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
19056         outside of comment.
19057
19058 2016-01-15  Torvald Riegel  <triegel@redhat.com>
19059
19060         * nptl/tst-barrier1.c: Add description on first line.
19061         * nptl/tst-barrier2.c: Likewise.
19062         * nptl/tst-barrier3.c: Likewise.
19063         * nptl/tst-barrier4.c: Likewise.
19064         * nptl/tst-barrier5.c: Likewise.
19065
19066 2016-01-15  Torvald Riegel  <triegel@redhat.com>
19067
19068         [BZ #18868]
19069         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
19070
19071 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
19072
19073         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
19074         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
19075         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
19076         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
19077         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
19078         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
19079         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
19080         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
19081         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19082         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
19083         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
19084
19085 2016-01-15  Torvald Riegel  <triegel@redhat.com>
19086
19087         [BZ #13065]
19088         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
19089         new implementation.
19090         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
19091         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
19092         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
19093         (BARRIER_IN_THRESHOLD): New macro.
19094         * nptl/pthread_barrierattr_setpshared.c
19095         (pthread_barrierattr_setpshared): Clean up.
19096         * nptl/tst-barrier4.c: Correct comment.
19097         * nptl/tst-barrier5.c: New file.
19098         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
19099         (gen-as-const-headers): Remove lowlevelbarrier.sym.
19100         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
19101         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
19102         * nptl/lowlevelbarrier.sym: Remove.
19103         * nptl/DESIGN-barrier.txt: Remove.
19104         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
19105         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
19106         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
19107         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
19108         error.
19109         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
19110         implementation.
19111
19112 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19113
19114         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
19115         (do_child): Mask SIGRTMIN while thr is running.
19116
19117 2016-01-15  Martin Sebor  <msebor@redhat.com>
19118
19119         [BZ #19432]
19120         * iconvdata/Makefile: Add bug-iconv11.
19121         * iconvdata/bug-iconv11.c: New test.
19122         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
19123         * iconvdata/ibm933.c: Same.
19124         * iconvdata/ibm935.c: Same.
19125         * iconvdata/ibm937.c: Same.
19126         * iconvdata/ibm939.c: Same.
19127
19128 2016-01-15  Martin Sebor  <msebor@redhat.com>
19129
19130         [BZ #19443]
19131         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
19132         [DEBUG] (_ufc_set_bits): Declare used.
19133         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
19134         [DEBUG] (print_all): Declare used.
19135         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
19136         operands of the ternary ?: expression to target type.
19137         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
19138         calling the undeclared abort.
19139         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
19140
19141 2016-01-15  Martin Sebor  <msebor@redhat.com>
19142
19143         [BZ #18755]
19144         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
19145         warnings.
19146         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
19147         (__gai_create_helper_thread): Same.
19148         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
19149         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
19150         to suppress -Wmaybe-uninitialized warnings.
19151
19152 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
19153
19154         [BZ #19465]
19155         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
19156         inside if.
19157         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
19158         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
19159         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
19160
19161 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
19162
19163         [BZ #19466]
19164         * time/tst-mktime2.c (time_t_max): Removed.
19165         (time_t_min): Likewise.
19166         (TYPE_SIGNED): New.
19167         (TYPE_MINIMUM): Likewise.
19168         (TYPE_MAXIMUM): Likewise.
19169         (TIME_T_MIN): Likewise.
19170         (TIME_T_MAX): Likewise.
19171         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
19172         and TIME_T_MIN.
19173         (do_test): Likewise.
19174
19175 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
19176
19177         [BZ #19467]
19178         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
19179         index_Fast_Unaligned_Load flag for Excavator family CPUs.
19180
19181 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
19182
19183         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
19184
19185 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
19186
19187         * benchtests/Makefile (PYTHON): Define.
19188         (bench-func): Use $(PYTHON) to run python scripts.
19189         ($(objpfx)bench-%.c): Likewise.
19190
19191 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
19192
19193         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
19194         leading slash when `file_name' is "/".
19195
19196 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
19197
19198         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
19199         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
19200         Likewise.
19201         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
19202         Likewise.
19203         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
19204         Likewise.
19205         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
19206         enum constant and macro.
19207         (PTRACE_SETSIGMASK): Likewise.
19208         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19209         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
19210         (PTRACE_GETSIGMASK): Likewise.
19211         (PTRACE_SETSIGMASK): Likewise.
19212         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19213         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
19214         Likewise.
19215         (PTRACE_SETSIGMASK): Likewise.
19216         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19217         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
19218         (PTRACE_GETSIGMASK): Likewise.
19219         (PTRACE_SETSIGMASK): Likewise.
19220         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19221         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
19222         Likewise.
19223         (PTRACE_SETSIGMASK): Likewise.
19224         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19225         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
19226         Likewise.
19227         (PTRACE_SETSIGMASK): Likewise.
19228         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19229         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
19230         Likewise.
19231         (PTRACE_SETSIGMASK): Likewise.
19232         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19233
19234 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
19235             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19236
19237         [BZ #19439]
19238         * math/bits/mathcalls.h
19239         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
19240         prototype.
19241         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
19242
19243 2016-01-11  Andreas Schwab  <schwab@suse.de>
19244
19245         [BZ #19253]
19246         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
19247         cache when TZDEFRULES was used.
19248         * time/tst-tzname.c: New file.
19249         * time/Makefile (test): Add tst-tzname.
19250         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
19251         * timezone/Makefile (test-zones): Add $(posixrules-file).
19252         ($(testdata)/$(posixrules-file)): New rule.
19253
19254 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19255
19256         Fix doc quoting problems with Texinfo 5
19257         Without this change, in the info file output, Texinfo 5 quotes code
19258         in text with undirected single quotes 'like this' and generates
19259         code examples that with many PDF readers cannot be cut out of PDFs
19260         and pasted into code.
19261         * manual/libc.texinfo: Configure the libc manual like the GNU
19262         Emacs manual, by using @documentencoding and setting
19263         txicodequoteundirected and txicodequotebacktick.  This way,
19264         Texinfo 5 quotes code in text with directed single quotes ‘like
19265         this’ and produces examples that can be cut out of PDFs.  This
19266         change causes Texinfo 5 to generate info files that contain UTF-8
19267         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
19268         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
19269
19270 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19271
19272         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
19273         __libc_tabort, __libc_tend): New wrappers that enforce compiler
19274         barriers to their respective compiler built-ins.
19275         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
19276         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
19277         * sysdeps/powerpc/sysdep.h: Likewise.
19278         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
19279         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
19280         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
19281
19282 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
19283
19284         * scripts/config.guess: Revert previous shebang change.
19285         * scripts/config.sub: Likewise.
19286         * scripts/mkinstalldirs: Likewise.
19287
19288 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19289
19290         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
19291         PPC_FEATURE2_HAS_IEEE128.
19292         * sysdeps/powerpc/dl-procinfo.c:
19293         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
19294
19295 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
19296
19297         [BZ #19415]
19298         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
19299         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
19300         (_dl_lookup_address): Rewrite using function resolver trampoline.
19301         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
19302         two bits in address.
19303
19304 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
19305
19306         * longlong.h: Change !__SHMEDIA__ to
19307         (!defined (__SHMEDIA__) || !__SHMEDIA__).
19308         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
19309
19310 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
19311             Joseph Myers  <joseph@codesourcery.com>
19312             Mark Shinwell  <shinwell@codesourcery.com>
19313             Andrew Stubbs  <ams@codesourcery.com>
19314             Rich Felker <dalias@libc.org>
19315
19316         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
19317
19318 2016-01-07  Richard Henderson  <rth@redhat.com>
19319
19320         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
19321
19322 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
19323
19324         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
19325         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
19326         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
19327         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
19328         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
19329
19330 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
19331             Joseph Myers  <joseph@codesourcery.com>
19332
19333         * timezone/private.h: Update from tzcode 2015g.
19334         * timezone/tzfile.h: Likewise.
19335         * timezone/tzselect.ksh: Likewise.
19336         * timezone/zdump.c: Likewise.
19337         * timezone/zic.c: Likewise.
19338         * timezone/ialloc.c: Remove file.
19339         * timezone/scheck.c: Likewise.
19340         * timezone/Makefile (extra-objs): Remove variable.
19341         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
19342         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
19343         -Wno-maybe-uninitialized.
19344         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
19345         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
19346         (CFLAGS-ialloc.c): Remove variable.
19347         (CFLAGS-scheck.c): Likewise.
19348         * timezone/README: Update list of files from tzcode.
19349
19350 2016-01-07  Khem Raj  <raj.khem@gmail.com>
19351
19352         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
19353         instead of __fxprintf when _LIBC is undefined.
19354
19355 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
19356
19357         * catgets/test-gencat.sh: Remove space after shebang.
19358         * conform/GlibcConform.pm: Likewise.
19359         * conform/check-header-lists.sh: Likewise.
19360         * conform/conformtest.pl: Likewise.
19361         * conform/linknamespace.pl: Likewise.
19362         * conform/list-header-symbols.pl: Likewise.
19363         * debug/catchsegv.sh: Likewise.
19364         * elf/genrtldtbl.awk: Likewise.
19365         * elf/tst-pathopt.sh: Likewise.
19366         * elf/tst-rtld-load-self.sh: Likewise.
19367         * grp/tst_fgetgrent.sh: Likewise.
19368         * iconvdata/gen-8bit-gap-1.sh: Likewise.
19369         * iconvdata/gen-8bit-gap.sh: Likewise.
19370         * iconvdata/gen-8bit.sh: Likewise.
19371         * iconvdata/run-iconv-test.sh: Likewise.
19372         * intl/tst-gettext.sh: Likewise.
19373         * intl/tst-gettext2.sh: Likewise.
19374         * intl/tst-gettext4.sh: Likewise.
19375         * intl/tst-gettext6.sh: Likewise.
19376         * intl/tst-translit.sh: Likewise.
19377         * io/ftwtest-sh: Likewise.
19378         * libio/test-freopen.sh: Likewise.
19379         * locale/gen-translit.pl: Likewise.
19380         * malloc/tst-mtrace.sh: Likewise.
19381         * manual/check-safety.sh: Likewise.
19382         * manual/libc-texinfo.sh: Likewise.
19383         * manual/tsort.awk: Likewise.
19384         * manual/xtract-typefun.awk: Likewise.
19385         * nptl/tst-cancel-wrappers.sh: Likewise.
19386         * nptl/tst-tls6.sh: Likewise.
19387         * posix/globtest.sh: Likewise.
19388         * posix/tst-getconf.sh: Likewise.
19389         * posix/wordexp-tst.sh: Likewise.
19390         * scripts/check-c++-types.sh: Likewise.
19391         * scripts/check-local-headers.sh: Likewise.
19392         * scripts/config.guess: Likewise.
19393         * scripts/config.sub: Likewise.
19394         * scripts/cpp: Likewise.
19395         * scripts/cross-test-ssh.sh: Likewise.
19396         * scripts/documented.sh: Likewise.
19397         * scripts/evaluate-test.sh: Likewise.
19398         * scripts/gen-libc-abis: Likewise.
19399         * scripts/gen-sorted.awk: Likewise.
19400         * scripts/list-fixed-bugs.py: Likewise.
19401         * scripts/merge-test-results.sh: Likewise.
19402         * scripts/mkinstalldirs: Likewise.
19403         * scripts/rellns-sh: Likewise.
19404         * scripts/test-installation.pl: Likewise.
19405         * scripts/update-copyrights: Likewise.
19406         * stdio-common/tst-printf.sh: Likewise.
19407         * stdio-common/tst-unbputc.sh: Likewise.
19408         * stdlib/tst-fmtmsg.sh: Likewise.
19409         * stdlib/tst-setcontext3.sh: Likewise.
19410         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
19411         * sysdeps/unix/make-syscalls.sh: Likewise.
19412
19413 2016-01-06  John David Anglin  <dave.anglin@bell.net>
19414
19415         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
19416         asm stw with atomic_exchange_rel.  Add explanatory comment.
19417         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
19418         Likewise.
19419
19420 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19421
19422         [BZ #19122]
19423         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
19424         * sysdeps/generic/dl-unistd.h: New file.
19425         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
19426
19427 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19428
19429          [BZ #19122]
19430          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
19431          * sysdeps/generic/dl-mman.h: New file.
19432          * sysdeps/mach/hurd/dl-mman.h: Likewise.
19433
19434 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
19435
19436         * manual/texinfo.tex: Update to version 2016-01-04.21 with
19437         trailing whitespace removed.
19438         * scripts/config.guess: Update to version 2016-01-01.
19439         * scripts/config.sub: Update to version 2016-01-01.
19440         * scripts/move-if-change: Update from gnulib.
19441
19442 2016-01-04  Anton Blanchard  <anton@samba.org>
19443
19444         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
19445         for array indices.
19446         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
19447
19448 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
19449
19450         * NEWS: Update copyright dates.
19451         * catgets/gencat.c (print_version): Likewise.
19452         * csu/version.c (banner): Likewise.
19453         * debug/catchsegv.sh: Likewise.
19454         * debug/pcprofiledump.c (print_version): Likewise.
19455         * debug/xtrace.sh (do_version): Likewise.
19456         * elf/ldconfig.c (print_version): Likewise.
19457         * elf/ldd.bash.in: Likewise.
19458         * elf/pldd.c (print_version): Likewise.
19459         * elf/sotruss.sh: Likewise.
19460         * elf/sprof.c (print_version): Likewise.
19461         * iconv/iconv_prog.c (print_version): Likewise.
19462         * iconv/iconvconfig.c (print_version): Likewise.
19463         * locale/programs/locale.c (print_version): Likewise.
19464         * locale/programs/localedef.c (print_version): Likewise.
19465         * login/programs/pt_chown.c (print_version): Likewise.
19466         * malloc/memusage.sh (do_version): Likewise.
19467         * malloc/memusagestat.c (print_version): Likewise.
19468         * malloc/mtrace.pl: Likewise.
19469         * manual/libc.texinfo: Likewise.
19470         * nptl/version.c (banner): Likewise.
19471         * nscd/nscd.c (print_version): Likewise.
19472         * nss/getent.c (print_version): Likewise.
19473         * nss/makedb.c (print_version): Likewise.
19474         * posix/getconf.c (main): Likewise.
19475         * scripts/test-installation.pl: Likewise.
19476         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
19477
19478         * All files with FSF copyright notices: Update copyright dates
19479         using scripts/update-copyrights.
19480         * intl/plural.c: Regenerated.
19481         * locale/programs/charmap-kw.h: Likewise.
19482         * locale/programs/locfile-kw.h: Likewise.
19483
19484 2016-01-02  Helge Deller  <deller@gmx.de>
19485
19486         [BZ #19285]
19487         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
19488         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
19489         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
19490         (MADV_xxK_PAGES): Remove.
19491
19492 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
19493
19494         [BZ #15421]
19495         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
19496         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
19497         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
19498         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
19499
19500 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
19501
19502         [BZ #19408]
19503         * sysdeps/unix/sysv/linux/personality.c: New file.
19504         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
19505         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
19506         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
19507         (sysdep_routines): Add personality.
19508         (tests): Add tst-personality.
19509         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
19510         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
19511         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
19512         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
19513         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
19514         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
19515         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
19516         Likewise.
19517         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
19518         Likewise.
19519         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
19520         Likewise.
19521         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
19522         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
19523         Likewise.
19524
19525 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
19526
19527         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
19528         (PATH_ARM_SYSTYPE): Remove.
19529         (PATH_CPUINFO): Likewise.
19530         (IO_BASE_FOOTBRIDGE): Likewise.
19531         (IO_SHIFT_FOOTBRIDGE): Likewise.
19532         (struct platform): Likewise.
19533         (init_iosys): Remove compatibility code for 2.4 kernels.
19534         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
19535
19536 2015-12-29  Florian Weimer  <fweimer@redhat.com>
19537
19538         * malloc/tst-malloc-thread-fail.c: New file.
19539         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
19540         (tst-malloc-thread-fail): Link against libpthread.
19541
19542 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
19543
19544         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
19545         (get_parser): New function.
19546         (main): New function.
19547
19548 2015-12-29  Rob Wu  <rob@robwu.nl>
19549
19550         [BZ #19369]
19551         * resolv/res_init.c (__res_vinit): Reset defdname before use.
19552
19553 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
19554
19555         [BZ #19270]
19556         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
19557
19558 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
19559
19560         [BZ #15421]
19561         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
19562
19563 2015-12-23  Torvald Riegel  <triegel@redhat.com>
19564
19565         [BZ #13690]
19566         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
19567         after releasing it.
19568         (__lll_robust_unlock): Likewise.
19569         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
19570         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
19571         (lll_robust_unlock): Likewise.
19572         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
19573         Prevent warnings in callers.
19574
19575 2015-12-23  Florian Weimer  <fweimer@redhat.com>
19576
19577         * malloc/arena.c (list_lock): Update comment.
19578
19579 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19580
19581         * sysdeps/powerpc/hwcapinfo.c: Export symbol
19582         __parse_hwcap_and_convert_at_platform to libc.a.
19583
19584 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19585
19586         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
19587         platform and feature support for POWER9.
19588         * sysdeps/powerpc/dl-procinfo.h: Likewise.
19589         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
19590         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
19591         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
19592         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
19593         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
19594         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
19595         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
19596
19597 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19598
19599         Harmonize generic stdio-lock support with nptl
19600
19601         This fixes build when _IO_funlockfile is a macro, fixes build where
19602         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
19603         stack unwind.
19604
19605         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
19606         _IO_release_lock ): Use cleanup attribute on new
19607         _IO_acquire_lock_file variable instead of assuming that
19608         _IO_release_lock will be called.
19609         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
19610         _IO_acquire_lock_needs_exceptions_enabled.
19611         (_IO_acquire_lock_clear_flags2): New macro.
19612
19613 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19614
19615         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
19616
19617 2015-12-21  Florian Weimer  <fweimer@redhat.com>
19618
19619         [BZ #19182]
19620         * malloc/arena.c (list_lock): Document lock ordering requirements.
19621         (free_list_lock): New lock.
19622         (ptmalloc_lock_all): Comment on free_list_lock.
19623         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
19624         (detach_arena): Update comment.  free_list_lock is now needed.
19625         (_int_new_arena): Use free_list_lock around detach_arena call.
19626         Acquire arena lock after list_lock.  Add comment, including FIXME
19627         about incorrect synchronization.
19628         (get_free_list): Switch to free_list_lock.
19629         (reused_arena): Acquire free_list_lock around detach_arena call
19630         and attached threads counter update.  Add two FIXMEs about
19631         incorrect synchronization.
19632         (arena_thread_freeres): Switch to free_list_lock.
19633         * malloc/malloc.c (struct malloc_state): Update comments to
19634         mention free_list_lock.
19635
19636 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
19637
19638         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
19639         Remove functions.
19640         (sloww, sloww1): Accept argument to offset quadrant.
19641         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
19642         quadrant.
19643         (__sin, __cos): Consolidate common code into new functions.
19644         (reduce_sincos_1, do_sincos_1): New functions.
19645         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
19646
19647         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
19648         code to new functions.
19649         (reduce_sincos_2, do_sincos_2): New functions.
19650         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
19651
19652         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
19653         common code for sincos.
19654         (__cos) [!IN_SINCOS]: Likewise.
19655         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
19656         New function.
19657         (__sincos): Use it.
19658
19659 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
19660
19661         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
19662         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
19663         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
19664
19665 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
19666
19667         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
19668         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
19669         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
19670         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
19671         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
19672         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
19673         index_Prefer_No_VZEROUPPER): New feature.
19674         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
19675         Prefer_No_VZEROUPPER for Knights Landing.
19676
19677 015-12-18  Torvald Riegel  <triegel@redhat.com>
19678
19679         * math/atest-exp2.c (mp_exp_m1): Remove.
19680
19681 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19682
19683         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
19684         syscalls.
19685         (__SYSCALL0): New macro.
19686         (__SYSCALL1): Likewise.
19687         (__SYSCALL2): Likewise.
19688         (__SYSCALL3): Likewise.
19689         (__SYSCALL4): Likewise.
19690         (__SYSCALL5): Likewise.
19691         (__SYSCALL6): Likewise.
19692         (__SYSCALL_CONCAT_X): Likewise.
19693         (__SYSCALL_CONCAT): Likewise.
19694         (__SYSCALL_DIST): Likewise.
19695         (__SYSCALL_CALL): Likewise.
19696
19697 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
19698
19699         [BZ #19363]
19700         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
19701
19702 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19703
19704         [BZ #19375]
19705         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
19706         negative subnormals.
19707
19708 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
19709
19710         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
19711         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
19712         (INTERNAL_SYSCALL_NCS): Use it.
19713         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
19714
19715 2015-12-16  Florian Weimer  <fweimer@redhat.com>
19716
19717         [BZ #19243]
19718         * malloc/arena.c (get_free_list): Remove assert and adjust
19719         reference count handling.  Add comment about reused_arena
19720         interaction.
19721         (reused_arena): Add comments abount get_free_list interaction.
19722         * malloc/tst-malloc-thread-exit.c: New file.
19723         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
19724         (tst-malloc-thread-exit): Link against libpthread.
19725
19726 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19727
19728         [BZ #19367]
19729         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
19730         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
19731         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
19732         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
19733         (index_Prefer_MAP_32BIT_EXEC): Likewise.
19734
19735 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19736
19737         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
19738         Silvermont optimizations for Knights Landing.
19739
19740 2015-12-15  Andreas Schwab  <schwab@suse.de>
19741
19742         [BZ #17197]
19743         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
19744         immediately after emitting SI.
19745         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
19746         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
19747         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
19748         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
19749         * iconvdata/bug-iconv10.c: New file.
19750         * iconvdata/Makefile (tests): Add bug-iconv10.
19751         ($(objpfx)bug-iconv10.out): New rule.
19752
19753 2015-12-15  Florian Weimer  <fweimer@redhat.com>
19754
19755         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
19756         aliasing violation.
19757
19758 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
19759
19760         [BZ #18472]
19761         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
19762         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
19763         conditionals for them.
19764         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
19765         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
19766         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
19767         sys/kdaemon.h.
19768         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
19769         compat-only syscall, obsoleted in glibc 2.23.
19770         (create_module): Likewise.
19771         (get_kernel_syms): Likewise.
19772         (query_module): Likewise.
19773         (uselib): Likewise.
19774         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
19775
19776 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
19777
19778         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
19779         <linux/version.h>.
19780         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
19781         conditional code.
19782         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
19783         and ioshift_name initialization.
19784
19785 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
19786
19787         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
19788         Fix indentation.
19789
19790 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
19791
19792         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
19793
19794 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
19795
19796         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
19797
19798 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
19799             Jakub Wilk  <jwilk@debian.org>
19800
19801         [BZ #19347]
19802         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
19803         to change the group of the device to the tty group.
19804
19805 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
19806
19807         Split large string section; add truncation advice
19808         * manual/examples/strncat.c: Remove.
19809         This example was misleading, as the code would have undefined
19810         behavior if "hello" was longer than SIZE.  Anyway, the manual
19811         shouldn't encourage strncpy+strncat for this sort of thing.
19812         * manual/string.texi (Copying Strings and Arrays): Split into
19813         three sections Copying Strings and Arrays, Concatenating Strings,
19814         and Truncating Strings, as this section was way too long.  All
19815         cross-referenced changed.  Add advice about string-truncation
19816         functions.  Remove misleading strncat example.
19817
19818 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
19819
19820         * manual/nss.texi (NSS Modules Interface): Document
19821         NSS_STATUS_NOTFOUND and SUCCESS.
19822
19823 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
19824
19825         [BZ 18568]
19826         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
19827         201505L, for Unicode 8.
19828
19829 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
19830
19831         * locale/C-translit.h: Regenerate.
19832
19833 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
19834
19835         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
19836         and U+0153.
19837
19838 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
19839
19840         [BZ #19351]
19841         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
19842         expanding log(1+z), compare z rather than its square with epsilon
19843         to determine when to avoid evaluating the expansion.
19844
19845         [BZ #19350]
19846         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
19847         Increase overflow threshold.
19848
19849         [BZ #19349]
19850         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
19851         when small.
19852
19853         * sysdeps/unix/sysv/linux/i386/kernel-features.h
19854         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
19855         New macro.
19856         [__LINUX_KERNEL_VERSION >= 0x040300]
19857         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
19858         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
19859         Likewise.
19860         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
19861         Likewise.
19862         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
19863         Likewise.
19864         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
19865         Likewise.
19866         [__LINUX_KERNEL_VERSION >= 0x040300]
19867         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
19868         [__LINUX_KERNEL_VERSION >= 0x040300]
19869         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
19870         [__LINUX_KERNEL_VERSION >= 0x040300]
19871         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
19872         [__LINUX_KERNEL_VERSION >= 0x040300]
19873         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
19874         [__LINUX_KERNEL_VERSION >= 0x040300]
19875         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
19876         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
19877         Likewise.
19878         [__LINUX_KERNEL_VERSION >= 0x040300]
19879         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
19880         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
19881         Likewise.
19882         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
19883         Likewise.
19884         [__LINUX_KERNEL_VERSION >= 0x040300]
19885         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
19886         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
19887         Likewise.
19888         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
19889         Likewise.
19890         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
19891         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
19892         Likewise.
19893         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
19894         Likewise.
19895         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
19896         Likewise.
19897         [__LINUX_KERNEL_VERSION >= 0x040300]
19898         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
19899         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
19900         Likewise.
19901         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
19902         Likewise.
19903         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
19904         Likewise.
19905         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
19906         Likewise.
19907         [__LINUX_KERNEL_VERSION >= 0x040300]
19908         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
19909         [__LINUX_KERNEL_VERSION >= 0x040300]
19910         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
19911         [__LINUX_KERNEL_VERSION >= 0x040300]
19912         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
19913         [__LINUX_KERNEL_VERSION >= 0x040300]
19914         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
19915         [__LINUX_KERNEL_VERSION >= 0x040300]
19916         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
19917         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
19918         Likewise.
19919         [__LINUX_KERNEL_VERSION >= 0x040300]
19920         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
19921         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
19922         Likewise.
19923         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
19924         Likewise.
19925         [__LINUX_KERNEL_VERSION >= 0x040300]
19926         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
19927         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
19928         Likewise.
19929         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
19930         Likewise.
19931         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19932         (__ASSUME_SOCKET_SYSCALL): Likewise.
19933         (__ASSUME_BIND_SYSCALL): Likewise.
19934         (__ASSUME_CONNECT_SYSCALL): Likewise.
19935         (__ASSUME_LISTEN_SYSCALL): Likewise.
19936         (__ASSUME_ACCEPT_SYSCALL): Likewise.
19937         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
19938         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
19939         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
19940         (__ASSUME_SEND_SYSCALL): Likewise.
19941         (__ASSUME_SENDTO_SYSCALL): Likewise.
19942         (__ASSUME_RECV_SYSCALL): Likewise.
19943         (__ASSUME_RECVFROM_SYSCALL): Likewise.
19944         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
19945         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
19946         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
19947         (__ASSUME_SENDMSG_SYSCALL): Likewise.
19948         (__ASSUME_RECVMSG_SYSCALL): Likewise.
19949         * sysdeps/unix/sysv/linux/sh/kernel-features.h
19950         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
19951         Likewise.
19952         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
19953         Likewise.
19954         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
19955         Likewise.
19956         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
19957         Likewise.
19958         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
19959         Likewise.
19960         [__LINUX_KERNEL_VERSION >= 0x020625]
19961         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
19962         [__LINUX_KERNEL_VERSION >= 0x020625]
19963         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
19964         [__LINUX_KERNEL_VERSION >= 0x020625]
19965         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
19966         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
19967         Likewise.
19968         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
19969         Likewise.
19970         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
19971         Likewise.
19972         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
19973         Likewise.
19974         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
19975         Likewise.
19976         [__LINUX_KERNEL_VERSION >= 0x020625]
19977         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
19978         [__LINUX_KERNEL_VERSION >= 0x020625]
19979         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
19980         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
19981         Likewise.
19982         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
19983         Likewise.
19984
19985 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
19986
19987         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
19988         record the current if the current ABI and CPU support the FP64
19989         extension.
19990         (has-modd-spreg): Define to record the current if the current ABI and
19991         CPU support 32-bit floating point values in odd FPU registers.
19992         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19993         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
19994         $(has-modd-spreg) equals yes.
19995         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
19996         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
19997         $(has-modd-spreg) equal yes.
19998
19999 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
20000
20001         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
20002         basename.
20003
20004 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
20005
20006         * benchtests/Makefile (bench-math): Move ffs and ffsll...
20007         (bench-string): ... here.
20008         (bench): Add bench-string.
20009         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
20010         to *-benchset to reflect what they are.
20011         (benchset): Adjust.
20012
20013         * benchtests/sincos-inputs: Add inputs from sin-inputs and
20014         cos-inputs.
20015
20016 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
20017
20018         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
20019         __attribute__ ((__simd__)) for vector math function declarations.
20020
20021 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20022
20023         Fix typo in strncat, wcsncat manual entries
20024         * manual/string.texi (Copying and Concatenation): Fix typos in
20025         sample implementations of strncat and wcsncat, by having them use
20026         the old value of the destination length, not the new one.
20027
20028 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
20029
20030         [BZ #16961]
20031         [BZ #16962]
20032         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
20033         string on the stack for strtod.
20034         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
20035         a string on the stack for strtof.
20036         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
20037         constructing a string on the stack for strtold.
20038         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
20039         __strtold_nan to GLIBC_PRIVATE.
20040         * math/test-nan-overflow.c: New file.
20041         * math/test-nan-payload.c: Likewise.
20042         * math/Makefile (tests): Add test-nan-overflow and
20043         test-nan-payload.
20044
20045 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20046
20047         Consistency about byte vs character in string.texi
20048         * manual/string.texi (String and Array Utilities):
20049         Distinguish more carefully among bytes, multibyte characters,
20050         and wide characters.  Use "byte" when talking about C 'char',
20051         to distinguish it more clearly from multibyte characters.
20052         Say "wide character" or "multibyte character" instead of
20053         "character", when a wide or multibyte character is intended.
20054         Similarly for "multibyte string" versus "string".
20055         Define these terms more carefully.
20056
20057 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
20058
20059         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
20060         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
20061         Likewise.
20062         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
20063         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
20064         * sysdeps/sh/math_private.h: New file.
20065         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
20066         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
20067         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
20068         long double function name.
20069         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
20070         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
20071         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
20072         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
20073         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
20074         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
20075         Remove __finitel, __isinfl, and __isnanl.
20076         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20077         Likewise.
20078         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20079         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20080         Remove __finitel.
20081         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20082         Likewise.
20083         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20084
20085 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
20086
20087         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
20088         installed libmvec_nonshared.a.
20089
20090 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
20091
20092         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
20093         (sysdep_routines): Likewise.
20094         (sysdep-rtld-routines): Likewise.
20095         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
20096         [$(subdir) = nptl](tests-static): test-get_hwcap-static
20097         * sysdeps/powerpc/Versions: Added new
20098         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
20099         * sysdeps/powerpc/hwcapinfo.c: New file.
20100         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
20101         and parse hwcap, hwcap2 and platform number information.
20102         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
20103         to store HWCAP+HWCAP2 and platform number.
20104         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
20105         for HWCAP+HWCAP2 and platform number in the TCB.
20106         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
20107         the HWCAP, HWCAP2 and platform number in the TCB.
20108         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
20109         (TLS_INIT_TP): Included calls to add the hwcap and
20110         at_platform values in the TCB in TP initialization.
20111         (TLS_DEFINE_INIT_TP): Likewise.
20112         (THREAD_GET_HWCAP): New macro.
20113         (THREAD_SET_HWCAP): Likewise.
20114         (THREAD_GET_AT_PLATFORM): Likewise.
20115         (THREAD_SET_AT_PLATFORM): Likewise.
20116         * sysdeps/powerpc/powerpc32/dl-machine.h:
20117         (dl_platform_init): New function that calls
20118         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
20119         powerpc32.
20120         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
20121         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
20122         this functionality, static linking case.
20123         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
20124         linking case.
20125         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
20126         __parse_hwcap_and_convert_at_platform for the static linking case.
20127         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
20128         Included the new __parse_hwcap_and_convert_at_platform symbol in the
20129         ABI list for GLIBC 2.23.
20130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
20131         Likewise.
20132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
20133         Likewise.
20134
20135 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
20136
20137         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
20138         * configure: Regenerate.
20139         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
20140         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
20141
20142 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
20143
20144         * iconvdata/ibm930.c: Add comment explaining encoding uses.
20145         * iconvdata/ibm933.c: Likewise.
20146         * iconvdata/ibm935.c: Likewise.
20147         * iconvdata/ibm937.c: Likewise.
20148         * iconvdata/ibm939.c: Likewise.
20149
20150 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20151
20152         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
20153         pthread_join.
20154         * nptl/tst-cancel21.c (tf): Likewise.
20155
20156 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20157
20158         [BZ #19313]
20159         * bits/typesizes.h (__CPU_MASK_TYPE): New.
20160         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
20161         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
20162         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
20163         Likewise.
20164         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
20165         Likewise.
20166         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
20167         Likewise.
20168         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
20169         Likewise.
20170         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
20171         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
20172         unsigned long int with __CPU_MASK_TYPE.
20173
20174 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20175
20176         * sysdeps/aarch64/libm-test-ulps: Regenerated.
20177
20178 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
20179
20180         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
20181         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
20182         t512.x.
20183         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
20184
20185 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
20186
20187         [BZ #19214]
20188         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
20189         argument to return extended model.  Update family and model
20190         with extended family and model when family == 0x0f.
20191         (init_cpu_features): Updated.
20192
20193 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20194
20195         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
20196         signed off_t, so 32bit bigger than 2GiB values are fine actually.
20197
20198         * sysdeps/mach/hurd/mmap64.c: New file.
20199
20200 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
20201
20202         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
20203         rights for its main user thread in NEWTASK.
20204
20205 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
20206
20207         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
20208         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
20209
20210 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
20211
20212         [BZ #14259]
20213         * Makeconfig: Rename localedir to complocaledir.
20214         Rename inst_localedir to inst_complocaledir.
20215         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
20216         * config.make.in: Use complocaledir and libc_cv_complocaledir.
20217         * configure.ac: Use libc_cv_complocaledir.
20218         * configure: Regenerate.
20219         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
20220         -DCOMPLOCALEDIR.
20221         * locale/findlocale.c: Use COMPLOCALEDIR.
20222         * locale/loadarchive.c: Likewise.
20223         * locale/programs/locale.c: Likewise.
20224         * locale/programs/localedef.c: Likewise.
20225         * locale/programs/locarchive.c: Likewise.
20226         * localedata/Makefile: Use inst_complocaledir.
20227         * sysdeps/gnu/configure: Regenerate.
20228         * sysdeps/hppa/configure: Regenerate.
20229         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
20230         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
20231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
20232         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
20233         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
20234         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
20235         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
20236
20237 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
20238
20239         [BZ #19058]
20240         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
20241         AS_NEEDED.
20242         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
20243         workaround.
20244         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
20245         libmvec-static-only-routines): Added new file.
20246         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
20247
20248 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20249
20250         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
20251         of interrupted RPC instead of restoring it.
20252
20253         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
20254         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
20255         libc_hidden_def.
20256         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
20257         into initialized data instead of common. Define rtld_hidden_data_def.
20258         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
20259         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
20260         libc_hidden_def.
20261         (if_freenameindex): Add libc_hidden_weak.
20262         (if_nameindex): Add libc_hidden_weak.
20263         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
20264         __open64.
20265         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
20266         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
20267         * sysdeps/mach/nanosleep.c: Include <time.h>
20268         (__nanosleep): Rename to __libc_nanosleep.
20269         (__nanosleep): Add weak_alias.
20270         (nanosleep): Update alias.
20271
20272 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
20273
20274         * stdlib/strtod_nan.c: New file.
20275         * stdlib/strtod_nan_double.h: Likewise.
20276         * stdlib/strtod_nan_float.h: Likewise.
20277         * stdlib/strtod_nan_main.c: Likewise.
20278         * stdlib/strtod_nan_narrow.h: Likewise.
20279         * stdlib/strtod_nan_wide.h: Likewise.
20280         * stdlib/strtof_nan.c: Likewise.
20281         * stdlib/strtold_nan.c: Likewise.
20282         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
20283         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
20284         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
20285         * wcsmbs/wcstod_nan.c: Likewise.
20286         * wcsmbs/wcstof_nan.c: Likewise.
20287         * wcsmbs/wcstold_nan.c: Likewise.
20288         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
20289         strtold_nan.
20290         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
20291         wcstof_nan.
20292         * include/stdlib.h (__strtof_nan): Declare and use
20293         libc_hidden_proto.
20294         (__strtod_nan): Likewise.
20295         (__strtold_nan): Likewise.
20296         (__wcstof_nan): Likewise.
20297         (__wcstod_nan): Likewise.
20298         (__wcstold_nan): Likewise.
20299         * include/wchar.h (____wcstoull_l_internal): Declare.
20300         * stdlib/strtod_l.c: Do not include <ieee754.h>.
20301         (____strtoull_l_internal): Remove declaration.
20302         (STRTOF_NAN): Define macro.
20303         (SET_MANTISSA): Remove macro.
20304         (STRTOULL): Likewise.
20305         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
20306         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
20307         (STRTOF_NAN): Define macro.
20308         (SET_MANTISSA): Remove macro.
20309         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
20310         (SET_MANTISSA): Remove macro.
20311         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
20312         macro.
20313         (SET_MANTISSA): Remove macro.
20314         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
20315         macro.
20316         (SET_MANTISSA): Remove macro.
20317         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
20318         (SET_MANTISSA): Remove macro.
20319         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
20320         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
20321         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
20322
20323         [BZ #19266]
20324         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
20325         upper case and lower case letters inside NAN(), not using TOLOWER.
20326         * stdlib/tst-strtod-nan-locale-main.c: New file.
20327         * stdlib/tst-strtod-nan-locale.c: Likewise.
20328         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
20329         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
20330         Depend on $(gen-locales).
20331         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
20332         * wcsmbs/tst-wcstod-nan-locale.c: New file.
20333         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
20334         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
20335         Depend on $(gen-locales).
20336         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
20337
20338 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
20339
20340         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
20341
20342         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
20343         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
20344         __finitel, __isinfl, and __isnanl.
20345         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20346         Likewise.
20347         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20348         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
20349         __finitel.
20350         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20351         Likewise.
20352         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20353
20354 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
20355
20356         * malloc/memusage.c (me): Remove redundant getenv call.
20357
20358 2015-10-24  Florian Weimer  <fweimer@redhat.com>
20359
20360         [BZ #19143]
20361         [BZ #19164]
20362         * nptl/check-cpuset.h: Remove.
20363         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
20364         Remove CPU set size check.
20365         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
20366         Likewise.
20367         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
20368         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
20369         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
20370         (__pthread_setaffinity_new): Remove CPU set size check.
20371         * sysdeps/unix/sysv/linux/sched_setaffinity.c
20372         (__kernel_cpumask_size): Remove.
20373         (__sched_setaffinity_new): Remove CPU set size check.
20374         * manual/threads.texi (Default Thread Attributes): Remove stale
20375         reference to check_cpuset_attr, determine_cpumask_size in comment.
20376         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
20377         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
20378         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
20379         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
20380         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
20381         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
20382         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
20383         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
20384         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
20385         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
20386         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
20387         skeleton test file.
20388         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
20389         tst-affinity-pid.
20390
20391 2015-11-24  Florian Weimer  <fweimer@redhat.com>
20392
20393         * scripts/update-abilist.sh: New file.
20394         * Makefile (+subdir_targets): Add subdir_update-all-abi.
20395         * Makerules (update-all-abi-%, update-all-abi)
20396         (subdir_update-all-abi): New targets.
20397         * elf/Makefile (update-all-abi): New target.
20398
20399 2015-11-24  Florian Weimer  <fweimer@redhat.com>
20400
20401         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
20402         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
20403         (__libc_lock_define_initialized): Use it.
20404         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
20405         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
20406         * malloc/malloc.c (main_arena): Likewise.
20407         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
20408         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
20409
20410 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
20411
20412         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
20413         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
20414         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
20415         (PTRACE_O_MASK): Update value.
20416         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
20417         New value in enum __ptrace_setoptions.
20418         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
20419         (PTRACE_O_MASK): Update value.
20420         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
20421         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
20422         (PTRACE_O_MASK): Update value.
20423         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
20424         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
20425         (PTRACE_O_MASK): Update value.
20426         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
20427         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
20428         (PTRACE_O_MASK): Update value.
20429         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
20430         New value in enum __ptrace_setoptions.
20431         (PTRACE_O_MASK): Update value.
20432         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
20433         New value in enum __ptrace_setoptions.
20434         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
20435         (PTRACE_O_MASK): Update value.
20436
20437         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
20438         New macro.
20439         (PACKET_AUXDATA): Likewise.
20440         (PACKET_ORIGDEV): Likewise.
20441         (PACKET_VERSION): Likewise.
20442         (PACKET_HDRLEN): Likewise.
20443         (PACKET_RESERVE): Likewise.
20444         (PACKET_TX_RING): Likewise.
20445         (PACKET_LOSS): Likewise.
20446         (PACKET_VNET_HDR): Likewise.
20447         (PACKET_TX_TIMESTAMP): Likewise.
20448         (PACKET_TIMESTAMP): Likewise.
20449         (PACKET_FANOUT): Likewise.
20450         (PACKET_TX_HAS_OFF): Likewise.
20451         (PACKET_QDISC_BYPASS): Likewise.
20452         (PACKET_ROLLOVER_STATS): Likewise.
20453         (PACKET_FANOUT_DATA): Likewise.
20454         (PACKET_MR_UNICAST): Likewise.
20455
20456         [BZ #19242]
20457         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
20458         (TOUPPER): Likewise.
20459         * stdlib/tst-strtol-locale-main.c: New file.
20460         * stdlib/tst-strtol-locale.c: Likewise.
20461         * stdlib/Makefile (tests): Add tst-strtol-locale.
20462         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
20463         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
20464         Depend on $(gen-locales).
20465         * wcsmbs/tst-wcstol-locale.c: New file.
20466         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
20467         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
20468         tr_TR.ISO-8859-9.
20469         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
20470         Depend on $(gen-locales).
20471
20472 2015-11-20  Roland McGrath  <roland@hack.frob.com>
20473
20474         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
20475         __glibc_likely instead of __builtin_expect.  After falling back to
20476         dyncode_create in a non-ET_DYN case, use the allocate_code_data
20477         system interface to register the code pages as occupied.
20478
20479 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
20480
20481         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20482         [!ARM_MATH_PRIVATE_H].
20483         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
20484         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20485         [!HPPA_MATH_PRIVATE_H].
20486         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
20487         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
20488         to [!I386_MATH_PRIVATE_H].
20489         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
20490         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
20491         Change guard to [!M68K_MATH_PRIVATE_H].
20492         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
20493         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
20494         guard to [!MICROBLAZE_MATH_PRIVATE_H].
20495         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
20496         macro.
20497         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20498         [!MIPS_MATH_PRIVATE_H].
20499         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
20500         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20501         [!NIO2_MATH_PRIVATE_H].
20502         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
20503         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20504         [!TILE_MATH_PRIVATE_H].
20505         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
20506
20507         [BZ #15421]
20508         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
20509         initialize with 0 and define as weak alias of __signgam.
20510         * include/math.h [!_ISOMAC] (__signgam): Declare.
20511         * math/Makefile (libm-calls): Add w_lgamma_compat.
20512         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
20513         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
20514         test-signgam-ullong-init.
20515         (tests-static): Add test-signgam-uchar-static,
20516         test-signgam-uchar-init-static, test-signgam-uint-static,
20517         test-signgam-uint-init-static, test-signgam-ullong-static and
20518         test-signgam-ullong-init-static.
20519         (CFLAGS-test-signgam-uchar.c): New variable.
20520         (CFLAGS-test-signgam-uchar-init.c): Likewise.
20521         (CFLAGS-test-signgam-uchar-static.c): Likewise.
20522         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
20523         (CFLAGS-test-signgam-uint.c): Likewise.
20524         (CFLAGS-test-signgam-uint-init.c): Likewise.
20525         (CFLAGS-test-signgam-uint-static.c): Likewise.
20526         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
20527         (CFLAGS-test-signgam-ullong.c): Likewise.
20528         (CFLAGS-test-signgam-ullong-init.c): Likewise.
20529         (CFLAGS-test-signgam-ullong-static.c): Likewise.
20530         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
20531         * math/Versions (libm): Add GLIBC_2.23.
20532         * math/lgamma-compat.h: New file.
20533         * math/test-signgam-main.c: Likewise.
20534         * math/test-signgam-uchar-init-static.c: Likewise.
20535         * math/test-signgam-uchar-init.c: Likewise.
20536         * math/test-signgam-uchar-static.c: Likewise.
20537         * math/test-signgam-uchar.c: Likewise.
20538         * math/test-signgam-uint-init-static.c: Likewise.
20539         * math/test-signgam-uint-init.c: Likewise.
20540         * math/test-signgam-uint-static.c: Likewise.
20541         * math/test-signgam-uint.c: Likewise.
20542         * math/test-signgam-ullong-init-static.c: Likewise.
20543         * math/test-signgam-ullong-init.c: Likewise.
20544         * math/test-signgam-ullong-static.c: Likewise.
20545         * math/test-signgam-ullong.c: Likewise.
20546         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
20547         wrapper of w_lgamma_main.c.
20548         * math/w_lgamma_compat.c: New file.
20549         * math/w_lgamma_compatf.c: Likewise.
20550         * math/w_lgamma_compatl.c: Likewise.
20551         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
20552         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
20553         defining compatibility symbols.
20554         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
20555         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
20556         wrapper of w_lgammaf_main.c.
20557         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
20558         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
20559         defining compatibility symbols.
20560         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
20561         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
20562         wrapper of w_lgammal_main.c.
20563         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
20564         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
20565         defining compatibility symbols.
20566         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
20567         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
20568         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
20569         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
20570         <lgamma-compat.h>.
20571         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
20572         (__ieee754_gamma): Define as alias.
20573         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
20574         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
20575         <lgamma-compat.h>.
20576         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
20577         (__ieee754_gammaf): Define as alias.
20578         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
20579         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
20580         <lgamma-compat.h>.
20581         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
20582         (__ieee754_gammal): Define as alias.
20583         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
20584         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
20585         <math/w_lgamma_compat.c>.
20586         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
20587         Define as alias of __lgamma_compat and use in defining lgammal.
20588         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
20589         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
20590         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
20591         (USE_AS_COMPAT): New macro.
20592         (LGAMMA_OLD_VER): Undefine and redefine.
20593         (lgammal): Do not define here.
20594         (gammal): Only define here if [GAMMA_ALIAS].
20595         * conform/linknamespace.pl (@whitelist): Remove signgam.
20596         * sysdeps/nacl/libm.abilist: Update.
20597         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20598         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20599         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20600         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20601         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20602         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20603         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20604         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20605         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20606         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20607         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20608         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20610         Likewise.
20611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20612         Likewise.
20613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20614         Likewise.
20615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20616         Likewise.
20617         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20618         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20619         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20620         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20621         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20622         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20623         Likewise.
20624         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20625         Likewise.
20626         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20627         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20628         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20629
20630 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20631
20632         [BZ #16364]
20633         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
20634         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
20635
20636 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
20637
20638         * sysdeps/s390/fpu/bits/mathinline.h:
20639         Use __asm__ [__volatile__] instead of asm [volatile].
20640         * sysdeps/s390/abort-instr.h: Likewise.
20641         * sysdeps/s390/atomic-machine.h: Likewise.
20642         * sysdeps/s390/bits/string.h: Likewise.
20643         * sysdeps/s390/dl-tls.h: Likewise.
20644         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
20645         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
20646         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
20647         * sysdeps/s390/fpu/fesetround.c: Likewise.
20648         * sysdeps/s390/fpu/fpu_control.h: Likewise.
20649         * sysdeps/s390/fpu/s_fma.c: Likewise.
20650         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
20651         * sysdeps/s390/memusage.h: Likewise.
20652         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
20653         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
20654         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
20655         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
20656         * sysdeps/s390/nptl/tls.h: Likewise.
20657         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
20658         * sysdeps/s390/s390-32/backtrace.c: Likewise.
20659         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
20660         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
20661         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
20662         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
20663         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
20664         * sysdeps/s390/s390-64/backtrace.c: Likewise.
20665         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
20666         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
20667         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
20668         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
20669         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
20670         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
20671         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
20672         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
20673         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
20674         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
20675         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
20676         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20677         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
20678         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
20679         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
20680
20681 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20682             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20683
20684         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
20685         Add lwarx hint, and use macro for acquire instruction.
20686         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
20687         Likewise.
20688         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
20689         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
20690         update to use new atomic macros.
20691
20692 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20693
20694         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
20695         (__lll_trylock_elision): Fix setting of adapt_count.
20696         * sysdeps/unix/sysv/linux/powerpc/htm.h
20697         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
20698         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
20699         (_ABORT_SYSCALL): Renumber, and clarify definition.
20700         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
20701
20702 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20703
20704         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
20705         after system headers to prevent MIN/MAX redefinition.  Define
20706         HAVE_ALLOCA to preserve builtin alloca usage.
20707
20708 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
20709
20710         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
20711         static and don't set or restore rounding.
20712         (__cos)[IN_SINCOS]: Likewise.
20713         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
20714         (__sincos): Set and restore rounding mode.  Remove check for infinite
20715         or NaN input.
20716
20717         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
20718
20719         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
20720         as used.
20721
20722 2015-11-16  Florian Weimer  <fweimer@redhat.com>
20723
20724         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
20725
20726 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
20727
20728         * config.make.in (have-glob-dat-reloc): New.
20729         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
20730         target supports GLOB_DAT relocaton. AC_SUBST.
20731         * configure: Regenerated.
20732         * elf/Makefile (tests): Add tst-prelink.
20733         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
20734         (tst-prelink-ENV): New.
20735         ($(objpfx)tst-prelink-conflict.out): Likewise.
20736         ($(objpfx)tst-prelink-cmp.out): Likewise.
20737         * sysdeps/x86/tst-prelink.c: Moved to ...
20738         * elf/tst-prelink.c: Here.
20739         * sysdeps/x86/tst-prelink.exp: Moved to ...
20740         * elf/tst-prelink.exp: Here.
20741         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
20742         (tst-prelink-ENV): Removed.
20743         ($(objpfx)tst-prelink-conflict.out): Likewise.
20744         ($(objpfx)tst-prelink-cmp.out): Likewise.
20745         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
20746
20747 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
20748
20749         [BZ #14551]
20750         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
20751         (__mpn_construct_long_double): If high part overflows to infinity,
20752         set errno and recompute overflowed result of the correct sign.
20753         * sysdeps/ieee754/ldbl-128ibm/Makefile
20754         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
20755         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
20756         $(libm).
20757         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
20758
20759 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
20760
20761         [BZ #15479]
20762         [BZ #19238]
20763         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
20764         floating-point state after first operation on input.  Restore full
20765         state rather than just rounding mode.
20766         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
20767         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
20768         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
20769
20770         [BZ #19235]
20771         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
20772         add 0.5 to integer arguments.
20773         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
20774         Likewise.
20775         (.LC2): New object.
20776
20777 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
20778
20779         * scripts/pylintrc (reports): Set to no.
20780
20781 2015-11-10  Roland McGrath  <roland@hack.frob.com>
20782
20783         * elf/dl-load.c (open_verify): Take new argument FD.
20784         Skip __open call if passed FD is not -1.
20785         (_dl_map_object, open_path): Update callers.
20786         * elf/dl-sysdep-open.h: New file.
20787         * elf/dl-load.c: Include it.
20788         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
20789         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
20790         * sysdeps/nacl/dl-sysdep-open.h: New file.
20791         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
20792         from libc to rtld.
20793
20794 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
20795
20796         [BZ #19228]
20797         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
20798         and restore full floating-point state.
20799         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
20800         Likewise.
20801         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
20802         Likewise.
20803         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
20804         Likewise.
20805         * math/test-nearbyint-except-2.c: New file.
20806         * math/Makefile (tests): Add test-nearbyint-except-2.
20807
20808 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
20809
20810         [BZ #19178]
20811         * sysdeps/x86/Makefile (tests): Add tst-prelink.
20812         (tst-prelink-ENV): New.
20813         ($(objpfx)tst-prelink-conflict.out): Likewise.
20814         ($(objpfx)tst-prelink-cmp.out): Likewise.
20815         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
20816         * sysdeps/x86/tst-prelink.c: New file.
20817         * sysdeps/x86/tst-prelink.exp: Likewise.
20818
20819 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
20820
20821         * math/auto-libm-test-in: Add another test of pow.
20822         * math/auto-libm-test-out: Regenerated.
20823         * math/libm-test.inc (pow_test_data): Add another test.
20824
20825 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20826
20827         [BZ #19219]
20828         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
20829         weak_alias to nearbyintl.
20830
20831 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
20832
20833         * sysdeps/aarch64/bits/string.h: New file.
20834         (_STRING_ARCH_unaligned): Define.
20835
20836 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
20837
20838         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
20839         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
20840         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
20841         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
20842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
20843
20844 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
20845
20846         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
20847         for original name of the DSO.  Add it to the name list of the DSO
20848         if it is actually given.
20849         (_dl_map_object): Keep track of whether an audit module rewrote
20850         the file name.  If yes, pass the original name to
20851         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
20852         debugging is enabled, log the change of the file name.
20853         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
20854         _dl_map_object_from_fd.
20855         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
20856         * elf/tst-audit11.c: New file
20857         * elf/tst-auditmod11.c: New file.
20858         * elf/tst-audit11mod1.c: New file.
20859         * elf/tst-audit11mod2.c: New file.
20860         * elf/tst-audit11mod2.map: New file.
20861         * elf/tst-audit12.c: New file
20862         * elf/tst-auditmod12.c: New file.
20863         * elf/tst-audit12mod1.c: New file.
20864         * elf/tst-audit12mod2.c: New file.
20865         * elf/tst-audit12mod2.map: New file.
20866         * elf/tst-audit12mod3.c: New file.
20867
20868 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
20869
20870         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
20871         Don't create weak aliases,
20872         because versioned symbols are created later.
20873         * sysdeps/s390/s390-32/setjmp.S
20874         (setjmp, _setjmp): Remove weak and rename to an unique name
20875         in SHARED case due to existing versioned symbols.
20876         * sysdeps/s390/s390-64/setjmp.S: Likewise.
20877         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
20878         (getcontext): Create weak alias only in non SHARED case.
20879         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
20880
20881 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
20882
20883         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
20884         (__ASSUME_*_SYSCALL) Define new macros.
20885         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
20886         Remove socketcall syscalls.
20887         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
20888         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
20889         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
20890         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
20891         * sysdeps/unix/sysv/linux/send.c (__libc_send):
20892         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
20893
20894 2015-11-09  Florian Weimer  <fweimer@redhat.com>
20895
20896         [BZ #12926]
20897         Terminate process on invalid netlink response.
20898         * sysdeps/unix/sysv/linux/netlinkaccess.h
20899         (__netlink_assert_response): Declare.
20900         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
20901         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
20902         (sysdep_routines): Add netlink_assert_response.
20903         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
20904         __netlink_assert_response.
20905         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
20906         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
20907         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
20908         __netlink_assert_response.
20909
20910 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
20911
20912         [BZ #19178]
20913         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
20914         (RTYPE_CLASS_PLT): Likewise.
20915         (RTYPE_CLASS_COPY): Likewise.
20916         (RTYPE_CLASS_TLS): Likewise.
20917         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
20918         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
20919         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
20920         DL_DEBUG_PRELINK.
20921
20922 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
20923
20924         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
20925         calls with argument -0.5.
20926         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
20927
20928         * configure.ac (libc_cv_z_nodelete): Remove configure test.
20929         (libc_cv_z_nodlopen): Likewise.
20930         (libc_cv_z_initfirst): Likewise.
20931         * configure: Regenerated.
20932
20933 2015-11-06  Florian Weimer  <fweimer@redhat.com>
20934
20935         Simplify abilist format to be line-based.
20936         * scripts/abilist.awk: Collect descriptors in the descs variable.
20937         (emit): Write descs variable and sort it
20938         externally, with sort.
20939         * sysdeps/**/*.abilist: Convert to new format.
20940
20941 2015-11-06  Mark Wielaard  <mjw@redhat.com>
20942
20943         [BZ #11460]
20944         * io/Makefile (routines): Add fts64.
20945         (tests): Add tst-fts and tst-fts-lfs.
20946         (CFLAGS-fts64.c): New.
20947         * io/Versions (GLIBC_2.23): New.
20948         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
20949         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
20950         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
20951         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
20952         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
20953         (FTSENT64): Likewise.
20954         (fts64_children): Likewise.
20955         (fts64_close): Likewise.
20956         (fts64_open): Likewise.
20957         (fts64_read): Likewise.
20958         (fts64_set): Likewise.
20959         * io/fts64.c: New file.
20960         * io/tst-fts.c: New test.
20961         * io/tst-fts-lfs.c: Likewise.
20962         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
20963         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
20964         fts64_set.
20965         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20966         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
20967         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
20968         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20969         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20970         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
20971         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
20972         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
20973         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
20974         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
20975         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20976         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20977         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
20978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
20979         Likewise.
20980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
20981         Likewise.
20982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
20983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
20984         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20985         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20986         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
20987         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20988         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20989         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
20990         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
20991         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20992         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20993         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20994         * sysdeps/wordsize-64/fts.c: New file.
20995         * sysdeps/wordsize-64/fts64.c: Likewise.
20996         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
20997         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
20998         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
20999         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
21000
21001 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
21002
21003         * math/libm-test.inc (NON_FINITE): New macro.
21004         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
21005         * math/gen-libm-test.pl (show_exceptions): Add argument
21006         $non_finite.
21007         (parse_args): Update call to show_exceptions.
21008         * math/test-math-finite.h: New file.
21009         * math/test-math-no-finite.h: Likewise.
21010         * math/test-double-finite.c: Likewise.
21011         * math/test-float-finite.c: Likewise.
21012         * math/test-ldouble-finite.c: Likewise.
21013         * math/test-double.c: Include "test-math-no-finite.h".
21014         * math/test-float.c: Include "test-math-no-finite.h".
21015         * math/test-ldouble.c: Include "test-math-no-finite.h".
21016         * math/test-math-inline.h (TEST_FINITE): New macro.
21017         * math/test-math-vector.h (TEST_FINITE): Likewise.
21018         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
21019         (libm-tests): Add test-float-finite and test-double-finite.
21020         ($(objpfx)test-float-finite.o): New dependency on
21021         $(objpfx)libm-test.stmp.
21022         ($(objpfx)test-double-finite.o): Likewise.
21023         ($(objpfx)test-ldouble-finite.o): Likewise.
21024         (libm-test-no-inline-cflags): New variable.
21025         (libm-test-finite-cflags): Likewise.
21026         (CFLAGS-test-float-finite.c): Likewise.
21027         (CFLAGS-test-double-finite.c): Likewise.
21028         (CFLAGS-test-ldouble-finite.c): Likewise.
21029         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
21030         (CFLAGS-test-double.c): Likewise.
21031         (CFLAGS-test-ldouble.c): Likewise.
21032
21033 2015-11-05  Roland McGrath  <roland@hack.frob.com>
21034
21035         * io/fcntl.c (__fcntl): Add ... to prototype.
21036         * misc/ioctl.c (__ioctl): Likewise.
21037         * misc/syscall.c (syscall): Likewise.
21038
21039 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
21040
21041         * scripts/list-fixed-bugs.py: New file.
21042
21043         [BZ #19213]
21044         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
21045         returned for argument 1.
21046         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
21047         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
21048         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
21049         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
21050         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
21051         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
21052
21053         [BZ #19211]
21054         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
21055         __USE_XOPEN], not if [!__USE_ISOC99].
21056         (lgammaf): Likewise.
21057         (lgammal): Likewise.
21058         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
21059         (gammaf): Likewise.
21060         (gammal): Likewise.
21061         * math/test-signgam-finite-c11.c: New file.
21062         * math/test-signgam-finite-c99.c: Likewise.
21063         * math/test-signgam-finite.c: Likewise.
21064         * math/Makefile (tests): Add test-signgam-finite,
21065         test-signgam-finite-c99 and test-signgam-finite-c11.
21066         (CFLAGS-test-signgam-finite.c): New variable.
21067         (CFLAGS-test-signgam-finite-c99.c): Likewise.
21068         (CFLAGS-test-signgam-finite-c11.c): Likewise.
21069
21070         [BZ #19212]
21071         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
21072         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
21073         500].
21074         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
21075         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
21076         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
21077         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
21078         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
21079         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
21080         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
21081         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
21082         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
21083         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
21084
21085         [BZ #19209]
21086         * math/bits/math-finite.h (ldexp): Remove declaration.
21087         (ldexpf): Likewise.
21088         (ldexpl): Likewise.
21089
21090         [BZ #19205]
21091         * math/bits/math-finite.h (acosf): Condition declaration on
21092         [__USE_ISOC99].
21093         (acosl): Likewise.
21094         (acoshf): Likewise.
21095         (acoshl): Likewise.
21096         (asinf): Likewise.
21097         (asinl): Likewise.
21098         (atan2f): Likewise.
21099         (atan2l): Likewise.
21100         (atanhf): Likewise.
21101         (atanhl): Likewise.
21102         (coshf): Likewise.
21103         (coshl): Likewise.
21104         (expf): Likewise.
21105         (expl): Likewise.
21106         (fmodf): Likewise.
21107         (fmodl): Likewise.
21108         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
21109         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
21110         (j0l): Likewise.
21111         (y0f): Likewise.
21112         (y0l): Likewise.
21113         (j1f): Likewise.
21114         (j1l): Likewise.
21115         (y1f): Likewise.
21116         (y1l): Likewise.
21117         (jnf): Likewise.
21118         (jnl): Likewise.
21119         (ynf): Likewise.
21120         (ynl): Likewise.
21121         (lgammaf_r): Condition declaration on [__USE_ISOC99].
21122         (lgammal_r): Likewise.
21123         (__lgamma_r_finite): New declaration.
21124         (__lgammaf_r_finite): Likewise.
21125         (__lgammal_r_finite): Likewise.
21126         (lgamma): Use __lgamma_r_finite.
21127         (lgammaf): Condition definition on [__USE_ISOC99].  Use
21128         __lgammaf_r_finite.
21129         (lgammal): Condition definition on [__USE_ISOC99].  Use
21130         __lgammal_r_finite.
21131         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
21132         __lgamma_r_finite.
21133         (gammaf): Condition definition on [__USE_ISOC99].  Use
21134         __lgammaf_r_finite.
21135         (gammal): Condition definition on [__USE_ISOC99].  Use
21136         __lgammal_r_finite.
21137         (logf): Condition declaration on [__USE_ISOC99].
21138         (logl): Likewise.
21139         (log10f): Likewise.
21140         (log10l): Likewise.
21141         (ldexpf): Likewise.
21142         (ldexpl): Likewise.
21143         (powf): Likewise.
21144         (powl): Likewise.
21145         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
21146         __USE_ISOC99].
21147         (remainderf): Condition declaration on [__USE_ISOC99].
21148         (remainderl): Likewise.
21149         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
21150         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
21151         (scalbl): Likewise.
21152         (sinhf): Condition declaration on [__USE_ISOC99].
21153         (sinhl): Likewise.
21154         (sqrtf): Likewise.
21155         (sqrtl): Likewise.
21156
21157 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
21158
21159         * sysdeps/arm/atomic-machine.h
21160         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
21161         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
21162         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
21163         Remove conditional code.
21164         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
21165         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
21166         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
21167         Change conditional to [__ASSEMBLER__].
21168         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
21169         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
21170         [!__ASSEMBLER__].
21171         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
21172         code.
21173         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
21174         conditional macro definitions.
21175         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
21176         (__arch_compare_and_exchange_val_16_acq): Likewise.
21177         (__arch_compare_and_exchange_val_32_acq): Likewise.
21178         (atomic_exchange_and_add): Likewise.
21179         (atomic_add): Likewise.
21180         (atomic_add_negative): Likewise.
21181         (atomic_add_zero): Likewise.
21182         (atomic_bit_set): Likewise.
21183         (atomic_bit_test_set): Likewise.
21184         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
21185         code unconditional.
21186         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21187
21188         * math/test-math-errno.h: New file.
21189         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
21190         empty.
21191         (TEST_ERRNO): New macro.
21192         (TEST_EXCEPTIONS): Likewise.
21193         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
21194         (TEST_EXCEPTIONS): Likewise.
21195         * math/test-math-vector.h (TEST_ERRNO): Likewise.
21196         * math/test-double.c: Include "test-math-errno.h".
21197         * math/test-float.c: Likewise.
21198         * math/test-ldouble.c: Likewise.
21199         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
21200         code unconditional.
21201         (test_exceptions): Only run code if TEST_EXCEPTIONS.
21202         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
21203         unconditional.
21204         (test_errno): Only run code if TEST_ERRNO.
21205         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
21206
21207 2015-11-04  Florian Weimer  <fweimer@redhat.com>
21208
21209         * nptl/tst-once5.cc: Remove attribution.
21210
21211 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
21212
21213         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
21214         sqrt, tan, tanh, y0, y1 and yn.
21215         * math/auto-libm-test-out: Regenerated.
21216         * math/libm-test.inc (scalb_test_data): Add more tests.
21217         (scalbn_test_data): Likewise.
21218         (scalbln_test_data): Likewise.
21219         (signbit_test_data): Likewise.
21220         (sin_test_data): Likewise.
21221         (sincos_test_data): Likewise.
21222         (sinh_test_data): Likewise.
21223         (sqrt_test_data): Likewise.
21224         (tan_test_data): Likewise.
21225         (tanh_test_data): Likewise.
21226         (tgamma_test_data): Likewise.
21227         (y0_test_data): Likewise.
21228         (y1_test_data): Likewise.
21229         (yn_test_data): Likewise.
21230         (significand_test_data): Likewise.
21231         * sysdeps/i386/fpu/libm-test-ulps: Update.
21232
21233 2015-11-03  David Kastrup  <dak@gnu.org>
21234
21235         [BZ #18604]
21236         * assert/assert.h (assert): Don't macro-expand failed assertion
21237         expression in error message.
21238         * malloc/malloc.c (assert): Likewise.
21239
21240 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
21241
21242         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
21243         test.
21244         * configure: Regenerated.
21245
21246 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
21247
21248         * math/libm-test.inc (modf_test_data): Add more tests.
21249         (nearbyint_test_data): Likewise.
21250         (nextafter_test_data): Likewise.
21251         (nexttoward_test_data): Likewise.
21252         (pow_test_data): Likewise.
21253         (remainder_test_data): Likewise.
21254         (remquo_test_data): Likewise.
21255         (rint_test_data): Likewise.
21256
21257         [BZ #19201]
21258         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
21259         Check for zero remainder in case of large exponents and ensure
21260         correct sign of result in that case.
21261         * math/libm-test.inc (remainder_test_data): Add more tests.
21262
21263         [BZ #6799]
21264         * math/s_nextafter.c: Include <errno.h>.
21265         (__nextafter): Set errno on overflow and underflow.
21266         * math/s_nexttowardf.c: Include <errno.h>.
21267         (__nexttowardf): Set errno on overflow and underflow.
21268         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
21269         (__nextafterl): Set errno on overflow and underflow.
21270         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
21271         (__nexttoward): Set errno on overflow and underflow.
21272         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
21273         (__nexttowardf): Set errno on overflow and underflow.
21274         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
21275         (__nextafterf): Set errno on overflow and underflow.
21276         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
21277         (__nextafterl): Set errno on overflow and underflow.
21278         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
21279         (__nexttoward): Set errno on overflow and underflow.
21280         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
21281         (__nexttowardf): Set errno on overflow and underflow.
21282         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
21283         (__nextafterl): Set errno on overflow and underflow.
21284         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
21285         (__nexttoward): Set errno on overflow and underflow.
21286         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
21287         (__nexttowardf): Set errno on overflow and underflow.
21288         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
21289         (__nexttoward): Set errno on overflow and underflow.
21290         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
21291         (__nexttowardf): Set errno on overflow and underflow.
21292         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
21293         (__nldbl_nexttowardf): Set errno on overflow and underflow.
21294         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
21295         (__nextafterl): Set errno on overflow and underflow.
21296         * math/libm-test.inc (nextafter_test_data): Do not allow errno
21297         setting to be missing on overflow.  Add more tests.
21298         (nexttoward_test_data): Likewise.
21299
21300         * configure.ac (libc_cv_initfini_array): Remove configure test.
21301         * configure: Regenerated.
21302
21303 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
21304
21305         [BZ #19189]
21306         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
21307         non-finite argument handle arguments with negative sign.
21308
21309         * math/libm-test.inc (j0_test_data): Do not test sign of zero
21310         result from infinite argument.
21311         (j1_test_data): Likewise.
21312         (jn_test_data): Likewise.
21313         (y0_test_data): Likewise.
21314         (y1_test_data): Likewise.
21315         (yn_test_data): Likewise.
21316
21317         [BZ #16171]
21318         * math/w_remainder.c (drem): Define as weak alias of __remainder.
21319         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
21320         * math/w_remainderf.c (dremf): Define as weak alias of
21321         __remainderf.
21322         * math/w_remainderl.c (dreml): Define as weak alias of
21323         __remainderl.
21324         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
21325         __remainder.
21326         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
21327         __remainderf.
21328         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
21329         __remainderl.
21330         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
21331         weak alias of remainderl.
21332         * sysdeps/ieee754/ldbl-opt/w_remainder.c
21333         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
21334         alias of __remainder.
21335         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
21336         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
21337         strong alias of __remainderl.
21338         (dreml): Use long_double_symbol.
21339         * math/Makefile (libm-calls): Remove w_drem.
21340         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
21341         (CFLAGS-nldbl-drem.c): Remove variable.
21342         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
21343         * math/w_drem.c: Remove file.
21344         * math/w_dremf.c: Likewise.
21345         * math/w_dreml.c: Likewise.
21346         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
21347         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
21348         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
21349
21350         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
21351         * sysdeps/i386/configure: Regenerated.
21352         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
21353         * sysdeps/x86_64/configure: Regenerated.
21354
21355         * configure.ac (libc_cv_asm_protected_directive): Remove configure
21356         test.
21357         (libc_cv_visibility_attribute): Likewise.
21358         (libc_cv_protected_data): Test unconditionally.
21359         (libc_cv_broken_visibility_attribute): Remove configure test.
21360         (libc_cv_have_sdata_section): Test unconditionally.
21361         * configure: Regenerated.
21362
21363         * include/libc-internal.h (libc_max_align_t): Remove typedef.
21364         * include/scratch_buffer.h: Include <stddef.h> instead of
21365         <libc-internal.h>.
21366         (struct scratch_buffer): Use max_align_t instead of
21367         libc_max_align_t.
21368
21369 2015-10-29  Florian Weimer  <fweimer@redhat.com>
21370
21371         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
21372         instead of extend_alloca.  Change control flow to avoid a goto.
21373         Remove assert which is trivially always true.
21374
21375 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
21376
21377         [BZ #16068]
21378         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
21379         (FE_ALL_EXCEPT_X86): New macro.
21380         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
21381         FE_ALL_EXCEPT.  Ensure precision control is included in
21382         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
21383         handle "denormal operand exception" and clear FZ and DAZ bits.
21384         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
21385         (FE_ALL_EXCEPT_X86): New macro.
21386         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
21387         FE_ALL_EXCEPT.  Ensure precision control is included in
21388         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
21389         handle "denormal operand exception" and clear FZ and DAZ bits.
21390         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
21391         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
21392         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
21393         test-fenv-x87 and test-fenv-sse-2.
21394         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
21395
21396         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
21397         * math/test-double.h (BUILD_COMPLEX): New macro.
21398         * math/test-float.h (BUILD_COMPLEX): Likewise.
21399         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
21400
21401         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
21402         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
21403         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
21404         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
21405         instead of DBL_DENORM_MIN in comment.
21406         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
21407         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
21408         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
21409         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
21410         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
21411         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
21412
21413 2015-10-28  Florian Weimer  <fweimer@redhat.com>
21414
21415         [BZ #19048]
21416         * malloc/malloc.c (struct malloc_state): Update comment.  Add
21417         attached_threads member.
21418         (main_arena): Initialize attached_threads.
21419         * malloc/arena.c (list_lock): Update comment.
21420         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
21421         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
21422         (deattach_arena): New function.
21423         (_int_new_arena): Initialize arena reference count and deattach
21424         replaced arena.
21425         (get_free_list, reused_arena): Update reference count and deattach
21426         replaced arena.
21427         (arena_thread_freeres): Update arena reference count and only put
21428         unreferenced arenas on the free list.
21429
21430 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
21431
21432         [BZ #19181]
21433         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
21434         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
21435         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
21436         * math/test-fenv-clear-main.c: New file.
21437         * math/test-fenv-clear.c: Likewise.
21438         * math/Makefile (tests): Add test-fenv-clear.
21439         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
21440         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
21441         test-fenv-clear-sse.
21442         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
21443
21444         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
21445         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
21446         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
21447
21448 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
21449
21450         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
21451         static libc.
21452
21453 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
21454
21455         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
21456         test.
21457         * sysdeps/i386/configure: Regenerated.
21458         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
21459         test.
21460         * sysdeps/x86_64/configure: Regenerated.
21461         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
21462         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21463         memset-avx2 unconditionally instead of conditionally on
21464         [$(config-cflags-avx2) = yes].
21465         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
21466         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
21467         unconditional.
21468         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
21469         * sysdeps/x86_64/multiarch/memset_chk.S
21470         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
21471         to [IS_IN (libc) && SHARED].
21472
21473 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
21474
21475         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
21476         configure test.
21477         * sysdeps/arm/configure: Regenerated.
21478         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
21479         Define variable if not already defined.
21480
21481         [BZ #17404]
21482         * sysdeps/mips/atomic-machine.h
21483         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
21484         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
21485         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
21486
21487         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
21488         unconditional.
21489         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
21490         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21491         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
21492         unconditional.
21493         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21494         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
21495         unconditional.
21496         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21497         * stdlib/setenv.c
21498         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
21499         code unconditional.
21500         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
21501         Remove conditional code.
21502         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
21503         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
21504         unconditional.
21505         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
21506         code.
21507         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
21508         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
21509         unconditional.
21510         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
21511         code.
21512         * sysdeps/ieee754/ldbl-128/k_tanl.c
21513         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
21514         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21515         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
21516         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
21517         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21518         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
21519         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
21520         unconditional.
21521         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
21522         code.
21523         * sysdeps/ieee754/ldbl-96/k_tanl.c
21524         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
21525         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21526
21527         * nptl/tst-initializers1-c11.c: New file.
21528         * nptl/tst-initializers1-gnu11.c: Likewise.
21529         * nptl/Makefile (tests): Add these new tests.
21530         (CFLAGS-tst-initializers1-c11.c): New variable.
21531         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21532
21533         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
21534         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
21535         instead of -std=gnu99.
21536         * configure.ac (systemtap): Test with -std=gnu11 instead of
21537         -std=gnu99.
21538         * configure: Regenerated.
21539         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
21540         in compilation command in comment.
21541
21542         * sysdeps/nptl/configure.ac: Remove file.
21543         * sysdeps/nptl/configure: Remove generated file.
21544         * configure.ac (libc_cv_forced_unwind): Do not substitute.
21545         * configure: Regenerated.
21546         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
21547         * config.make.in (have-forced-unwind): Remove variable.
21548         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
21549         unconditional.
21550         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
21551         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
21552         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
21553         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
21554         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
21555         unconditional.
21556
21557 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
21558
21559         [BZ #19174]
21560         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
21561         .skip_lock_out_of_tbegin_retries.
21562         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
21563         (__lll_lock_elision): Likewise, and respect a value of
21564         try_tbegin <= 0.
21565
21566 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
21567
21568         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
21569         statement.
21570
21571 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
21572
21573         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
21574         variable.
21575         (test-xfail-ISO11/stdalign.h/conform): Likewise.
21576         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
21577
21578         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
21579         of -std=c1x -D_ISOC11_SOURCE.
21580
21581         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
21582         * configure: Regenerated.
21583         * manual/install.texi (Tools for Compilation): Document
21584         requirement for GCC 4.7 or later.
21585         * INSTALL: Regenerated.
21586
21587 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
21588
21589         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
21590         on CNT to a conditional jump to 'puntdata'.
21591
21592 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
21593
21594         * configure.ac (libc_cv_gcc___thread): Remove configure test.
21595         (libc_cv_gcc_tls_model_attr): Likewise.
21596         * configure: Regenerated.
21597
21598         * configure.ac (libc_cv_need_minus_P): Remove configure test.
21599         * configure: Regenerated.
21600         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
21601
21602 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
21603
21604         * configure.ac (old_glibc_headers): Remove configure test.
21605         * configure: Regenerated.
21606         * config.make.in (old-glibc-headers): Remove variable.
21607         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
21608         (install): Remove dependency on remove-old-headers.
21609         (headers2_0): Remove variable.
21610         (remove-old-headers): Remove rule.
21611
21612         * configure.ac (libc_cv_dot_text): Remove configure test.
21613         (libc_cv_asm_set_directive): Use .text instead of
21614         ${libc_cv_dot_text} in configure test.
21615         * configure: Regenerated.
21616
21617 2015-10-26  Florian Weimer  <fweimer@redhat.com>
21618
21619         [BZ #19168]
21620         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
21621
21622 2015-10-26  Florian Weimer  <fweimer@redhat.com>
21623
21624         * configure.ac (CXX): Clear the variable if the C++ toolchain does
21625         not support static linking.
21626         * configure: Regenerate.
21627
21628 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
21629
21630         * math/libm-test.inc (check_float_internal): Do not special-case
21631         errors up to 0.5 ulp.
21632
21633         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
21634         log2.
21635         * math/auto-libm-test-out: Regenerated.
21636         * math/libm-test.inc (MAX_EXP): New macro.
21637         (ilogb_test_data): Add more tests.
21638         (isfinite_test_data): Likewise.
21639         (isgreater_test_data): Likewise.
21640         (isgreaterequal_test_data): Likewise.
21641         (isinf_test_data): Likewise.
21642         (isless_test_data): Likewise.
21643         (islessequal_test_data): Likewise.
21644         (islessgreater_test_data): Likewise.
21645         (isnan_test_data): Likewise.
21646         (isnormal_test_data): Likewise.
21647         (issignaling_test_data): Likewise.
21648         (isunordered_test_data): Likewise.
21649         (j0_test_data): Likewise.
21650         (j1_test_data): Likewise.
21651         (jn_test_data): Likewise.
21652         (lgamma_test_data): Likewise.
21653         (log_test_data): Likewise.
21654         (log10_test_data): Likewise.
21655         (log1p_test_data): Likewise.
21656         (log2_test_data): Likewise.
21657         (logb_test_data): Likewise.
21658         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21659
21660         [BZ #18611]
21661         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
21662         avoid excess range and precision on underflow.
21663         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
21664         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
21665         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
21666         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
21667         underflow.
21668         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
21669         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
21670         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
21671         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
21672         * math/auto-libm-test-in: Do not allow missing errno setting for
21673         tests of j1 and jn.
21674         * math/auto-libm-test-out: Regenerated.
21675
21676 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
21677
21678         [BZ #15491]
21679         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
21680         floating-point environment instead of clearing all exceptions.
21681         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
21682         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
21683         merging in "invalid" exceptions from frndint.
21684         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
21685         * math/test-nearbyint-except.c: New file.
21686         * math/Makefile (tests): Add test-nearbyint-except.
21687
21688 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
21689
21690         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
21691
21692         * sysdeps/tile/libm-test-ulps: Regenerated.
21693
21694 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21695
21696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
21697         (__NR_sync_file_range2): Assume it is always defined.
21698         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
21699         (__NR_sync_file_range): Assume it is always defined.
21700
21701 2015-10-22  Andreas Schwab  <schwab@suse.de>
21702
21703         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
21704         INTERNAL_SYSCALL_ERRNO.
21705         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
21706         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
21707         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
21708         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
21709         Likewise.
21710         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
21711
21712 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
21713
21714         * io/tst-fcntl.c (fd): New static variable.
21715         (do_prepare): Open temporary file here....
21716         (do_test): ...not here.
21717
21718         * io/ftwtest-sh: Also trap on exit to remove temporary files.
21719
21720 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
21721
21722         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
21723         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
21724         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
21725         Moved before "#ifdef __ASSEMBLER__".
21726
21727 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
21728
21729         [BZ #19156]
21730         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
21731         arguments very close to 0.
21732
21733 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
21734
21735         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
21736         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
21737
21738 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
21739
21740         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
21741         New.  Defined for GCC 5 and above when not compiling for
21742         profiling.
21743         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
21744
21745         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
21746         Renamed to ...
21747         (CFLAGS-epoll_pwait.o): This.
21748         (CFLAGS-mmap.c): Renamed to ...
21749         (CFLAGS-mmap.o): This.
21750         (CFLAGS-mmap64.c): Renamed to ...
21751         (CFLAGS-mmap64.o): This.
21752         (CFLAGS-epoll_pwait.os): New.
21753         (CFLAGS-mmap.os): Likewise.
21754         (CFLAGS-mmap64.os): Likewise.
21755         (CFLAGS-semtimedop.os): Likewise.
21756         (CFLAGS-semtimedop.c): Renamed to ...
21757         (CFLAGS-semtimedop.o): This.
21758
21759 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21760
21761         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
21762         warning message.
21763
21764 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
21765
21766         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
21767         * Makefile ($(objpfx)c++-types-check.out): Filter out
21768         $(+gccwarn-c) instead of -Wstrict-prototypes.
21769
21770         * io/fts.c (fts_open): Convert to prototype-style function
21771         definition.
21772         * malloc/mcheck.c (mcheck): Likewise.
21773         (mcheck_pedantic): Likewise.
21774         * posix/regexec.c (re_search_2_stub): Likewise.  Use
21775         internal_function.
21776         (re_search_internal): Likewise.
21777         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
21778         prototype-style function definition.
21779         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
21780         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
21781         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
21782         (xdr_utmpptr): Likewise.
21783         (xdr_utmparr): Likewise.
21784         (xdr_utmpidle): Likewise.
21785         (xdr_utmpidleptr): Likewise.
21786         (xdr_utmpidlearr): Likewise.
21787
21788         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
21789         log, log10 and log2.
21790         * math/auto-libm-test-out: Regenerated.
21791         * math/libm-test.inc (fmod_test_data): Add more tests.
21792         (fpclassify_test_data): Likewise.
21793         (frexp_test_data): Likewise.
21794         (hypot_test_data): Likewise.
21795         (ilogb_test_data): Likewise.
21796
21797 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
21798
21799         * debug/fortify_fail.c (__fortify_fail): Convert to
21800         prototype-style function definition.  Use internal_function.
21801         * libio/genops.c (save_for_backup): Convert to prototype-style
21802         function definition.
21803         * libio/wgenops.c (save_for_wbackup): Likewise.
21804         * login/grantpt.c (grantpt): Likewise.
21805         * login/ptsname.c (ptsname): Likewise.
21806         (__ptsname_r): Likewise.
21807         * login/unlockpt.c (unlockpt): Likewise.
21808         * mach/msgserver.c (__mach_msg_server): Likewise.
21809         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
21810         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
21811         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
21812         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
21813         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
21814         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
21815         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
21816         Likewise.
21817         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
21818         internal_function.
21819         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
21820         prototype-style function definition.
21821         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
21822         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
21823         (__pthread_create_2_0): Likewise.
21824         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
21825         * nptl/register-atfork.c (__register_atfork): Likewise.
21826         * posix/glob.c (glob): Likewise.
21827         * posix/regcomp.c (re_comp): Likewise.
21828         * posix/regexec.c (re_exec): Likewise.
21829         * stdlib/add_n.c [__STDC__]: Make code unconditional.
21830         [!__STDC__]: Remove conditional code.
21831         * stdlib/cmp.c [__STDC__]: Make code unconditional.
21832         [!__STDC__]: Remove conditional code.
21833         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
21834         [!__STDC__]: Remove conditional code.
21835         * stdlib/divrem.c [__STDC__]: Make code unconditional.
21836         [!__STDC__]: Remove conditional code.
21837         * stdlib/lshift.c [__STDC__]: Make code unconditional.
21838         [!__STDC__]: Remove conditional code.
21839         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
21840         [!__STDC__]: Remove conditional code.
21841         * stdlib/mul.c [__STDC__]: Make code unconditional.
21842         [!__STDC__]: Remove conditional code.
21843         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
21844         [!__STDC__]: Remove conditional code.
21845         * stdlib/rshift.c [__STDC__]: Make code unconditional.
21846         [!__STDC__]: Remove conditional code.
21847         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
21848         function definition.
21849         (STRTOF): Likewise.
21850         * stdlib/strtod_l.c (__STRTOF): Likewise.
21851         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
21852         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
21853         (__strtol_l): Likewise.
21854         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
21855         [!__STDC__]: Remove conditional code.
21856         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
21857         definition.
21858         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
21859         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21860         type.
21861         (__strcasecmp): Convert to prototype-style function definition.
21862         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
21863         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21864         type.
21865         (__strncasecmp): Convert to prototype-style function definition.
21866         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
21867         * sunrpc/xdr.c (xdr_union): Likewise.
21868         * sunrpc/xdr_array.c (xdr_array): Likewise.
21869         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
21870         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
21871         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
21872         Likewise.
21873         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
21874         Likewise.
21875         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
21876         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
21877         Likewise.
21878         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
21879         (LOCALE_PARAM_PROTO): Likewise.
21880         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
21881         argument type.
21882         (ut_argument_spec): Remove macro.
21883         (ut_argument_spec_iso): Rename to ut_argument_spec.
21884         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
21885         prototype-style function definition.
21886         (memcpy_uppcase): Likewise.
21887         (__strftime_internal): Likewise.
21888         (my_strftime): Likewise.
21889         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
21890         (LOCALE_PARAM_DECL): Likewise.
21891         [_LIBC] (LOCALE_PARAM): Include argument type.
21892         (__strptime_internal): Convert to prototype-style function
21893         definition.
21894         (strptime): Likewise.
21895         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
21896         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21897         type.
21898         (__wcscasecmp): Convert to prototype-style function definition.
21899         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
21900         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21901         type.
21902         (__wcsncasecmp): Convert to prototype-style function definition.
21903
21904         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
21905         function definition.
21906         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
21907         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
21908         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
21909         * elf/dl-minimal.c (_itoa): Likewise.
21910         * hurd/hurdmalloc.c (malloc): Likewise.
21911         (free): Likewise.
21912         (realloc): Likewise.
21913         * inet/inet6_option.c (inet6_option_space): Likewise.
21914         (inet6_option_init): Likewise.
21915         (inet6_option_append): Likewise.
21916         (inet6_option_alloc): Likewise.
21917         (inet6_option_next): Likewise.
21918         (inet6_option_find): Likewise.
21919         * io/ftw.c (FTW_NAME): Likewise.
21920         (NFTW_NAME): Likewise.
21921         (NFTW_NEW_NAME): Likewise.
21922         (NFTW_OLD_NAME): Likewise.
21923         * libio/iofwide.c (_IO_fwide): Likewise.
21924         * libio/strops.c (_IO_str_init_static_internal): Likewise.
21925         (_IO_str_init_static): Likewise.
21926         (_IO_str_init_readonly): Likewise.
21927         (_IO_str_overflow): Likewise.
21928         (_IO_str_underflow): Likewise.
21929         (_IO_str_count): Likewise.
21930         (_IO_str_seekoff): Likewise.
21931         (_IO_str_pbackfail): Likewise.
21932         (_IO_str_finish): Likewise.
21933         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
21934         (_IO_wstr_overflow): Likewise.
21935         (_IO_wstr_underflow): Likewise.
21936         (_IO_wstr_count): Likewise.
21937         (_IO_wstr_seekoff): Likewise.
21938         (_IO_wstr_pbackfail): Likewise.
21939         (_IO_wstr_finish): Likewise.
21940         * locale/programs/localedef.c (normalize_codeset): Likewise.
21941         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
21942         (add_locales_to_archive): Likewise.
21943         (delete_locales_from_archive): Likewise.
21944         * malloc/malloc.c (__libc_mallinfo): Likewise.
21945         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
21946         * misc/tsearch.c (__tfind): Likewise.
21947         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
21948         * nptl/pthread_attr_getdetachstate.c
21949         (__pthread_attr_getdetachstate): Likewise.
21950         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
21951         Likewise.
21952         * nptl/pthread_attr_getinheritsched.c
21953         (__pthread_attr_getinheritsched): Likewise.
21954         * nptl/pthread_attr_getschedparam.c
21955         (__pthread_attr_getschedparam): Likewise.
21956         * nptl/pthread_attr_getschedpolicy.c
21957         (__pthread_attr_getschedpolicy): Likewise.
21958         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
21959         Likewise.
21960         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
21961         Likewise.
21962         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
21963         Likewise.
21964         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
21965         Likewise.
21966         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
21967         (__pthread_attr_init_2_0): Likewise.
21968         * nptl/pthread_attr_setdetachstate.c
21969         (__pthread_attr_setdetachstate): Likewise.
21970         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
21971         Likewise.
21972         * nptl/pthread_attr_setinheritsched.c
21973         (__pthread_attr_setinheritsched): Likewise.
21974         * nptl/pthread_attr_setschedparam.c
21975         (__pthread_attr_setschedparam): Likewise.
21976         * nptl/pthread_attr_setschedpolicy.c
21977         (__pthread_attr_setschedpolicy): Likewise.
21978         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
21979         Likewise.
21980         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
21981         Likewise.
21982         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
21983         Likewise.
21984         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
21985         Likewise.
21986         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
21987         Likewise.
21988         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
21989         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
21990         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
21991         use internal_function.
21992         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
21993         prototype-style function definition.
21994         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
21995         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
21996         internal_function.
21997         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
21998         Convert to prototype-style function definition.
21999         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
22000         Likewise.
22001         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
22002         Likewise.
22003         (__pthread_mutex_unlock): Likewise.
22004         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
22005         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
22006         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
22007         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
22008         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
22009         * nss/makedb.c (process_input): Likewise.
22010         * posix/fnmatch.c (__strchrnul): Likewise.
22011         (__wcschrnul): Likewise.
22012         (fnmatch): Likewise.
22013         * posix/fnmatch_loop.c (FCT): Likewise.
22014         * posix/glob.c (globfree): Likewise.
22015         (__glob_pattern_type): Likewise.
22016         (__glob_pattern_p): Likewise.
22017         * posix/regcomp.c (re_compile_pattern): Likewise.
22018         (re_set_syntax): Likewise.
22019         (re_compile_fastmap): Likewise.
22020         (regcomp): Likewise.
22021         (regerror): Likewise.
22022         (regfree): Likewise.
22023         * posix/regexec.c (regexec): Likewise.
22024         (re_match): Likewise.
22025         (re_search): Likewise.
22026         (re_match_2): Likewise.
22027         (re_search_2): Likewise.
22028         (re_search_stub): Likewise.  Use internal_function
22029         (re_copy_regs): Likewise.
22030         (re_set_registers): Convert to prototype-style function
22031         definition.
22032         (prune_impossible_nodes): Likewise.  Use internal_function.
22033         * resolv/inet_net_pton.c (inet_net_pton): Convert to
22034         prototype-style function definition.
22035         (inet_net_pton_ipv4): Likewise.
22036         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
22037         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
22038         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
22039         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
22040         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
22041         Make variadic.
22042         * time/strptime_l.c (localtime_r): Convert to prototype-style
22043         function definition.
22044         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
22045         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
22046         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
22047         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
22048
22049         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
22050         definition.
22051         (_ufc_doit_r): Likewise.
22052         * crypt/crypt_util.c (_ufc_copymem): Likewise.
22053         (_ufc_output_conversion_r): Likewise.
22054         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
22055         * inet/rcmd.c (rcmd_af): Likewise.
22056         (rcmd): Likewise.
22057         (ruserok_af): Likewise.
22058         (ruserok): Likewise.
22059         (ruserok2_sa): Likewise.
22060         (ruserok_sa): Likewise.
22061         (iruserok_af): Likewise.
22062         (iruserok): Likewise.
22063         (__ivaliduser): Likewise.
22064         (__validuser2_sa): Likewise.
22065         * inet/rexec.c (rexec_af): Likewise.
22066         (rexec): Likewise.
22067         * inet/ruserpass.c (ruserpass): Likewise.
22068         * locale/programs/xmalloc.c (xcalloc): Likewise.
22069         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
22070         * math/w_drem.c (__drem): Likewise.
22071         * math/w_dremf.c (__dremf): Likewise.
22072         * math/w_dreml.c (__dreml): Likewise.
22073         * misc/daemon.c (daemon): Likewise.
22074         * resolv/res_debug.c (p_fqnname): Likewise.
22075         * stdlib/div.c (div): Likewise.
22076         * string/memcmp.c (memcmp_bytes): Likewise.
22077         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
22078         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
22079
22080         * crypt/cert.c (main): Convert to prototype-style function
22081         definition.
22082         * io/pipe.c (__pipe): Likewise.
22083         * io/pipe2.c (__pipe2): Likewise.
22084         * misc/futimesat.c (futimesat): Likewise.
22085         * misc/utimes.c (__utimes): Likewise.
22086         * posix/execve.c (__execve): Likewise.
22087         * posix/execvp.c (execvp): Likewise.
22088         * posix/execvpe.c (__execvpe): Likewise.
22089         * posix/fexecve.c (fexecve): Likewise.
22090         * socket/socketpair.c (socketpair): Likewise.
22091         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
22092         * stdlib/erand48.c (erand48): Likewise.
22093         * stdlib/erand48_r.c (__erand48_r): Likewise.
22094         * stdlib/jrand48.c (jrand48): Likewise.
22095         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
22096         * stdlib/lcong48.c (lcong48): Likewise.
22097         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
22098         * stdlib/nrand48.c (nrand48): Likewise.
22099         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
22100         * stdlib/seed48.c (seed48): Likewise.
22101         * stdlib/seed48_r.c (__seed48_r): Likewise.
22102         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
22103         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
22104         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
22105
22106 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
22107
22108         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
22109         * configure: Regenerated.
22110         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
22111         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
22112         unconditional.
22113         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22114         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22115         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22116         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
22117         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
22118         unconditional.
22119         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22120
22121         * posix/Makefile (CFLAGS-regex.c): Remove variable.
22122         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
22123
22124         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
22125         function definition.
22126         * crypt/crypt_util.c (__encrypt_r): Likewise.
22127         * libio/genops.c (_IO_no_init): Likewise.
22128         * libio/iofopncook.c (_IO_fopencookie): Likewise.
22129         (_IO_old_fopencookie): Likewise.
22130         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
22131         * libio/iogetline.c (_IO_getline): Likewise.
22132         (_IO_getline_info): Likewise.
22133         * libio/iogetwline.c (_IO_getwline): Likewise.
22134         (_IO_getwline_info): Likewise.
22135         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
22136         * libio/vswprintf.c (_IO_vswprintf): Likewise.
22137         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
22138         (find_entry): Likewise.
22139         (iterate_table): Likewise.
22140         (lookup): Likewise.
22141         * login/forkpty.c (forkpty): Likewise.
22142         * misc/hsearch_r.c (__hsearch_r): Likewise.
22143         * misc/select.c (__select): Likewise.
22144         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
22145         Likewise.
22146         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
22147         Likewise.
22148         * nptl/old_pthread_cond_timedwait.c
22149         (__pthread_cond_timedwait_2_0): Likewise.
22150         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22151         * nptl/pthread_barrierattr_getpshared.c
22152         (pthread_barrierattr_getpshared): Likewise.
22153         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
22154         Likewise.
22155         * nptl/pthread_mutex_setprioceiling.c
22156         (pthread_mutex_setprioceiling): Likewise.
22157         * nptl/pthread_mutexattr_getprioceiling.c
22158         (pthread_mutexattr_getprioceiling): Likewise.
22159         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22160         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
22161         Likewise.
22162         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
22163         Likewise.
22164         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
22165         Likewise.
22166         * socket/recvfrom.c (__recvfrom): Likewise.
22167         * socket/sendto.c (__sendto): Likewise.
22168         * socket/setsockopt.c (__setsockopt): Likewise.
22169         * stdio-common/_itoa.c (_itoa): Likewise.
22170         * stdio-common/_itowa.c (_itowa): Likewise.
22171         * stdio-common/reg-printf.c (__register_printf_specifier):
22172         Likewise.
22173         (__register_printf_function): Likewise.
22174         * stdio-common/tempname.c (__path_search): Likewise.
22175         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
22176         * stdlib/mul_1.c (mpn_mul_1): Likewise.
22177         * stdlib/random_r.c (__initstate_r): Likewise.
22178         * stdlib/setenv.c (__add_to_environ): Likewise.
22179         * stdlib/submul_1.c (mpn_submul_1): Likewise.
22180         * streams/getpmsg.c (getpmsg): Likewise.
22181         * streams/putmsg.c (putmsg): Likewise.
22182         * streams/putpmsg.c (putpmsg): Likewise.
22183         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
22184         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
22185         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
22186         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
22187         * sunrpc/pm_getport.c (pmap_getport): Likewise.
22188         * sunrpc/svc_udp.c (cache_get): Likewise.
22189         * sunrpc/xdr_array.c (xdr_vector): Likewise.
22190         * sysdeps/mach/hurd/getcwd.c
22191         (__canonicalize_directory_name_internal): Likewise.
22192         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
22193         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
22194         * sysdeps/mach/hurd/select.c (__select): Likewise.
22195         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
22196         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
22197         * sysdeps/sparc/nptl/pthread_barrier_init.c
22198         (__pthread_barrier_init): Likewise.
22199         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
22200         (__pthread_cond_timedwait): Likewise.
22201         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
22202         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
22203         Likewise.
22204         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
22205         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
22206         Likewise.
22207         * sysvipc/semtimedop.c (semtimedop): Likewise.
22208         * time/setitimer.c (__setitimer): Likewise.
22209         * time/strftime_l.c (emacs_strftime): Likewise.
22210
22211 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
22212
22213         * config.make.in (have-ssp): Delete.
22214         (stack-protector): New variable.
22215         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
22216         cache test for -fstack-protector-strong.  Export stack_protector to
22217         the best ssp flag.
22218         * configure: Regenerated.
22219         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
22220         * nscd/Makefile (CFLAGS-nscd): Likewise.
22221         * resolv/Makefile (CFLAGS-libresolv): Likewise.
22222
22223 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
22224
22225         [BZ #19122]
22226         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
22227         attribute_hidden.
22228
22229 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22230
22231         [BZ #18743]
22232         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
22233         code to...
22234         (ELIDE_LOCK): ...here.
22235         (__get_new_count): New function with part of the code from
22236         __elide_lock that updates the value of adapt_count after a
22237         transaction abort.
22238         (__elided_trylock): Moved this code to...
22239         (ELIDE_TRYLOCK): ...here.
22240
22241 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
22242
22243         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
22244         * configure: Regenerate.
22245         * INSTALL: Regenerate.
22246         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
22247         and tweak grammar.
22248
22249 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
22250
22251         * login/programs/pt_chown.c: Include signal.h
22252         (main): Clear any signal mask from the parent process.
22253
22254 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
22255
22256         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
22257         * configure: Regenerated.
22258         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
22259         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
22260         $(gnu89-inline-CFLAGS).
22261
22262         * configure.ac (libc_cv_asm_weak_directive): Remove configure
22263         test.
22264         (libc_cv_asm_weakext_directive): Likewise.
22265         * configure: Regenerated.
22266         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
22267         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
22268         * include/libc-symbols.h
22269         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
22270         #error.
22271         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
22272         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
22273
22274         * sysdeps/arm/backtrace.c (__backtrace): Convert to
22275         prototype-style function definition.
22276         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
22277         * sysdeps/i386/ffs.c (__ffs): Likewise.
22278         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
22279         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
22280         Likewise.
22281         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
22282         Likewise.
22283         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
22284         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
22285         Likewise.
22286         * sysdeps/m68k/ffs.c (__ffs): Likewise.
22287         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
22288         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
22289         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
22290         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
22291         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
22292         * sysdeps/mach/hurd/access.c (__access): Likewise.
22293         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
22294         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
22295         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
22296         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
22297         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
22298         (cthread_getspecific): Likewise.
22299         (cthread_setspecific): Likewise.
22300         (__libc_getspecific): Likewise.
22301         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
22302         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
22303         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
22304         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
22305         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
22306         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
22307         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
22308         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
22309         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
22310         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
22311         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
22312         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
22313         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
22314         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
22315         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
22316         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
22317         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
22318         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
22319         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
22320         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
22321         * sysdeps/mach/hurd/link.c (__link): Likewise.
22322         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
22323         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
22324         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
22325         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
22326         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
22327         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
22328         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
22329         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
22330         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
22331         * sysdeps/mach/hurd/rename.c (rename): Likewise.
22332         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
22333         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
22334         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
22335         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
22336         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
22337         * sysdeps/mach/hurd/send.c (__send): Likewise.
22338         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
22339         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
22340         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
22341         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
22342         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
22343         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
22344         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
22345         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
22346         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
22347         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
22348         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
22349         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
22350         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
22351         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
22352         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
22353         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
22354         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
22355         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
22356         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
22357         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
22358         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
22359         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
22360         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
22361         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
22362         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
22363         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
22364         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
22365         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
22366         * sysdeps/posix/alarm.c (alarm): Likewise.
22367         * sysdeps/posix/cuserid.c (cuserid): Likewise.
22368         * sysdeps/posix/dirfd.c (dirfd): Likewise.
22369         * sysdeps/posix/dup.c (__dup): Likewise.
22370         * sysdeps/posix/dup2.c (__dup2): Likewise.
22371         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
22372         (main): Likewise.
22373         * sysdeps/posix/flock.c (__flock): Likewise.
22374         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
22375         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
22376         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
22377         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
22378         * sysdeps/posix/isatty.c (__isatty): Likewise.
22379         * sysdeps/posix/killpg.c (killpg): Likewise.
22380         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
22381         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
22382         * sysdeps/posix/raise.c (raise): Likewise.
22383         * sysdeps/posix/remove.c (remove): Likewise.
22384         * sysdeps/posix/rename.c (rename): Likewise.
22385         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
22386         * sysdeps/posix/seekdir.c (seekdir): Likewise.
22387         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
22388         * sysdeps/posix/sigignore.c (sigignore): Likewise.
22389         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
22390         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
22391         * sysdeps/posix/sigset.c (sigset): Likewise.
22392         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
22393         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
22394         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
22395         * sysdeps/posix/time.c (time): Likewise.
22396         * sysdeps/posix/ttyname.c (getttyname): Likewise.
22397         (ttyname): Likewise.
22398         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
22399         * sysdeps/posix/utime.c (utime): Likewise.
22400         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
22401         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
22402         Likewise.
22403         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
22404         (pthread_spin_trylock): Likewise.
22405         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
22406         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
22407         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
22408         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
22409         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
22410         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
22411         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
22412         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
22413         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
22414         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
22415         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
22416         * sysdeps/s390/ffs.c (__ffs): Likewise.
22417         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
22418         Likewise.
22419         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
22420         Likewise.
22421         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
22422         Likewise.
22423         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
22424         (pthread_barrier_destroy): Likewise.
22425         * sysdeps/sparc/nptl/pthread_barrier_wait.c
22426         (__pthread_barrier_wait): Likewise.
22427         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
22428         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
22429         (__pthread_barrier_wait): Likewise.
22430         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
22431         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
22432         (memcmp_not_common_alignment): Likewise.
22433         (MEMCMP): Likewise.
22434         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
22435         (_wordcopy_fwd_dest_aligned): Likewise.
22436         (_wordcopy_bwd_aligned): Likewise.
22437         (_wordcopy_bwd_dest_aligned): Likewise.
22438         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
22439         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
22440         * sysdeps/unix/bsd/stty.c (stty): Likewise.
22441         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
22442         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
22443         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
22444         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
22445         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
22446         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
22447         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
22448         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
22449         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
22450         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
22451         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
22452         * sysdeps/unix/stime.c (stime): Likewise.
22453         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
22454         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
22455         Likewise.  Use internal_function.
22456         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
22457         Convert to prototype-style function definition.
22458         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
22459         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
22460         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
22461         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
22462         Likewise.  Use internal_function.
22463         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
22464         prototype-style function definition
22465         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22466         Likewise.
22467         (__getlogin_r): Likewise.
22468         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
22469         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
22470         (__pthread_cond_broadcast): Likewise.
22471         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
22472         (__pthread_cond_destroy): Likewise.
22473         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
22474         (__pthread_cond_init): Likewise.
22475         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
22476         (__pthread_cond_signal): Likewise.
22477         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
22478         (__pthread_cond_wait): Likewise.
22479         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
22480         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
22481         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
22482         Likewise.
22483         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
22484         Likewise.
22485         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
22486         Likewise.
22487         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
22488         Likewise.
22489         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
22490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
22491         (__ftruncate64): Likewise.
22492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
22493         (truncate64): Likewise.
22494         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
22495         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
22496         (pthread_getcpuclockid): Likewise.
22497         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
22498         Likewise.
22499         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
22500         Likewise.
22501         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
22502         Likewise.
22503         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
22504         Likewise.
22505         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
22506         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
22507         (__libc_sigaction): Likewise.
22508         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
22509         Likewise.
22510         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
22511         (__sigprocmask): Likewise.
22512         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
22513         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
22514         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
22515         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
22516         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
22517         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
22518         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
22519         Likewise.
22520         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
22521         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
22522         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
22523         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
22524         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
22525         Likewise.
22526         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
22527         (__sigprocmask): Likewise.
22528         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
22529         (cfgetispeed): Likewise.
22530         (cfsetospeed): Likewise.
22531         (cfsetispeed): Likewise.
22532         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
22533         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
22534         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
22535         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
22536         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
22537         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
22538         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
22539         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
22540         Likewise.
22541         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
22542         Likewise.
22543         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
22544         Likewise.
22545         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
22546         Likewise.
22547         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
22548
22549 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22550
22551         sunrpc: Rewrite with explicit TLS access using __thread.
22552         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
22553         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
22554         directly.
22555         (__rpc_thread_variables): Access thread_rpc_vars directly.
22556         Eliminate redundant assignment of the tvp variable.
22557
22558 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22559
22560         malloc: Rewrite with explicit TLS access using __thread.
22561         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
22562         (tsd_setspecific, tsd_getspecific): Remove.
22563         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
22564         (tsd_setspecific, tsd_getspecific): Likewise.
22565         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
22566         (tsd_setspecific, tsd_getspecific): Likewise.
22567         * malloc/arena.c (thread_arena): New TLS variable.
22568         (arena_key): Remove variable.
22569         (arena_get): Use thread_arena.
22570         (arena_lookup): Remove macro.
22571         (malloc_atfork, free_atfork, ptmalloc_lock_all)
22572         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
22573         (_int_new_arena, get_free_list, reused_arena)
22574         (arena_thread_freeres): Use thread_arena.
22575         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
22576         tsd_getspecific, tsd_setspecific from safety annotations.
22577         (Allocating Cleared Space): Remove arena_lookup from safety
22578         annotations.
22579
22580 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22581
22582         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
22583         struct scratch_buffer instead of extend_alloca.
22584
22585 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22586
22587         * sysdeps/unix/sysv/linux/kernel-features.h
22588         (__ASSUME_SOCK_CLOEXEC): Remove.
22589         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
22590         (__have_paccept): Remove unused macro.
22591         * include/unistd.h (__have_sock_cloexec): Remove declaration.
22592         * misc/syslog.c (openlog_internal): Remove fallback code for
22593         !__ASSUME_SOCK_CLOEXEC.
22594         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
22595         missing SOCK_CLOEXEC.
22596         * nscd/connections.c (have_sock_cloexec): Remove definition.
22597         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
22598         * nscd/nscd_helper.c (open_socket): Remove fallback code for
22599         !__ASSUME_SOCK_CLOEXEC.
22600         * resolv/res_send.c (__have_o_nonblock): Remove definition.
22601         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
22602         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
22603         definition.
22604         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
22605         code for !__ASSUME_SOCK_CLOEXEC.
22606
22607 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22608
22609         [BZ #18982]
22610         * manual/stdio.texi (Variable Arguments Output): Add portability
22611         note, explaining that vfprintf clobbers the va_list pointer.
22612
22613 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
22614
22615         * math/libm-test.inc (fabs_test_data): Add more tests.
22616         (fdim_test_data): Likewise.
22617         (fma_test_data): Likewise.
22618         (fmax_test_data): Likewise.
22619         (fmin_test_data): Likewise.
22620         (fmod_test_data): Likewise.
22621
22622 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
22623
22624         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
22625         data.
22626
22627 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
22628
22629         * math/libm-test.inc (ceil_test_data): Add more tests and more
22630         expectations for "inexact".
22631         (floor_test_data): Add more tests.
22632         (round_test_data): Likewise.
22633         (trunc_test_data): Likewise.
22634
22635         * crypt/cert.c (good_bye): Convert to prototype-style function
22636         definition.
22637         (get8): Likewise.
22638         (put8): Likewise.
22639         * crypt/crypt-entry.c (crypt): Likewise.
22640         (__fcrypt): Likewise.
22641         * crypt/crypt_util.c (_ufc_prbits): Likewise.
22642         (_ufc_set_bits): Likewise.
22643         (_ufc_clearmem): Likewise.
22644         (__init_des_r): Likewise.
22645         (shuffle_sb): Likewise.
22646         (shuffle_sb): Likewise.
22647         (_ufc_setup_salt_r): Likewise.
22648         (_ufc_mk_keytab_r): Likewise.
22649         (_ufc_dofinalperm_r): Likewise.
22650         (encrypt): Likewise.
22651         (__setkey_r): Likewise.
22652         (setkey): Likewise.
22653         * crypt/md5.c (md5_init_ctx): Likewise.
22654         (md5_read_ctx): Likewise.
22655         (md5_finish_ctx): Likewise.
22656         (md5_stream): Likewise.
22657         (md5_buffer): Likewise.
22658         (md5_process_bytes): Likewise.
22659         * crypt/sha256.c (__sha256_init_ctx): Likewise.
22660         (__sha256_finish_ctx): Likewise.
22661         (__sha256_process_bytes): Likewise.
22662         * crypt/sha512.c (__sha512_init_ctx): Likewise.
22663         (__sha512_finish_ctx): Likewise.
22664         (__sha512_process_bytes): Likewise.
22665         * ctype/isctype.c (__isctype): Likewise.
22666         * debug/backtrace.c (__backtrace): Likewise.
22667         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
22668         * debug/fgets_chk.c (__fgets_chk): Likewise.
22669         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
22670         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
22671         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
22672         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
22673         * debug/memset_chk.c (__memset_chk): Likewise.
22674         * debug/strcat_chk.c (__strcat_chk): Likewise.
22675         * debug/strncat_chk.c (__strncat_chk): Likewise.
22676         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
22677         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
22678         * dirent/dirfd.c (dirfd): Likewise.
22679         * dirent/getdents.c (__getdirentries): Likewise.
22680         * dirent/getdents64.c (getdirentries64): Likewise.
22681         * dirent/rewinddir.c (__rewinddir): Likewise.
22682         * dirent/seekdir.c (seekdir): Likewise.
22683         * dirent/telldir.c (telldir): Likewise.
22684         * elf/sln.c (makesymlinks): Likewise.
22685         (makesymlink): Likewise.
22686         * gmon/gmon.c (__moncontrol): Likewise.
22687         (__monstartup): Likewise.
22688         (write_hist): Likewise.
22689         (write_call_graph): Likewise.
22690         (write_bb_counts): Likewise.
22691         * grp/setgroups.c (setgroups): Likewise.
22692         * inet/inet_lnaof.c (inet_lnaof): Likewise.
22693         * inet/inet_net.c (inet_network): Likewise.
22694         * inet/inet_netof.c (inet_netof): Likewise.
22695         * inet/rcmd.c (rresvport_af): Likewise.
22696         (rresvport): Likewise.
22697         * io/access.c (__access): Likewise.
22698         * io/chdir.c (__chdir): Likewise.
22699         * io/chmod.c (__chmod): Likewise.
22700         * io/chown.c (__chown): Likewise.
22701         * io/close.c (__close): Likewise.
22702         * io/creat.c (creat): Likewise.
22703         * io/creat64.c (creat64): Likewise.
22704         * io/dup.c (__dup): Likewise.
22705         * io/dup2.c (__dup2): Likewise.
22706         * io/dup3.c (__dup3): Likewise.
22707         * io/euidaccess.c (__euidaccess): Likewise.
22708         * io/faccessat.c (faccessat): Likewise.
22709         * io/fchmod.c (__fchmod): Likewise.
22710         * io/fchmodat.c (fchmodat): Likewise.
22711         * io/fchown.c (__fchown): Likewise.
22712         * io/fchownat.c (fchownat): Likewise.
22713         * io/fcntl.c (__fcntl): Likewise.
22714         * io/flock.c (__flock): Likewise.
22715         * io/fts.c (fts_load): Likewise.
22716         (fts_close): Likewise.
22717         (fts_read): Likewise.
22718         (fts_set): Likewise.
22719         (fts_children): Likewise.
22720         (fts_build): Likewise.
22721         (fts_stat): Likewise.
22722         (fts_sort): Likewise.
22723         (fts_alloc): Likewise.
22724         (fts_lfree): Likewise.
22725         (fts_palloc): Likewise.
22726         (fts_padjust): Likewise.
22727         (fts_maxarglen): Likewise.
22728         (fts_safe_changedir): Likewise.
22729         * io/getwd.c (getwd): Likewise.
22730         * io/isatty.c (__isatty): Likewise.
22731         * io/lchown.c (__lchown): Likewise.
22732         * io/link.c (__link): Likewise.
22733         * io/linkat.c (linkat): Likewise.
22734         * io/lseek.c (__libc_lseek): Likewise.
22735         * io/mkdir.c (__mkdir): Likewise.
22736         * io/mkdirat.c (mkdirat): Likewise.
22737         * io/mkfifo.c (mkfifo): Likewise.
22738         * io/mkfifoat.c (mkfifoat): Likewise.
22739         * io/open.c (__libc_open): Likewise.
22740         * io/open64.c (__libc_open64): Likewise.
22741         * io/readlink.c (__readlink): Likewise.
22742         * io/readlinkat.c (readlinkat): Likewise.
22743         * io/rmdir.c (__rmdir): Likewise.
22744         * io/symlink.c (__symlink): Likewise.
22745         * io/symlinkat.c (symlinkat): Likewise.
22746         * io/ttyname.c (ttyname): Likewise.
22747         * io/ttyname_r.c (__ttyname_r): Likewise.
22748         * io/umask.c (__umask): Likewise.
22749         * io/unlink.c (__unlink): Likewise.
22750         * io/unlinkat.c (unlinkat): Likewise.
22751         * io/utime.c (utime): Likewise.
22752         * libio/clearerr.c (clearerr): Likewise.
22753         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
22754         * libio/feof.c (_IO_feof): Likewise.
22755         * libio/feof_u.c (feof_unlocked): Likewise.
22756         * libio/ferror.c (_IO_ferror): Likewise.
22757         * libio/ferror_u.c (ferror_unlocked): Likewise.
22758         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
22759         * libio/fileno.c (__fileno): Likewise.
22760         * libio/fputc.c (fputc): Likewise.
22761         * libio/fputc_u.c (fputc_unlocked): Likewise.
22762         * libio/fputwc.c (fputwc): Likewise.
22763         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
22764         * libio/freopen.c (freopen): Likewise.
22765         * libio/freopen64.c (freopen64): Likewise.
22766         * libio/fseek.c (fseek): Likewise.
22767         * libio/fseeko.c (fseeko): Likewise.
22768         * libio/fseeko64.c (fseeko64): Likewise.
22769         * libio/ftello.c (__ftello): Likewise.
22770         * libio/ftello64.c (ftello64): Likewise.
22771         * libio/fwide.c (fwide): Likewise.
22772         * libio/genops.c (_IO_un_link): Likewise.
22773         (_IO_link_in): Likewise.
22774         (_IO_least_marker): Likewise.
22775         (_IO_switch_to_main_get_area): Likewise.
22776         (_IO_switch_to_backup_area): Likewise.
22777         (_IO_switch_to_get_mode): Likewise.
22778         (_IO_free_backup_area): Likewise.
22779         (_IO_switch_to_put_mode): Likewise.
22780         (__overflow): Likewise.
22781         (__underflow): Likewise.
22782         (__uflow): Likewise.
22783         (_IO_setb): Likewise.
22784         (_IO_doallocbuf): Likewise.
22785         (_IO_default_underflow): Likewise.
22786         (_IO_default_uflow): Likewise.
22787         (_IO_default_xsputn): Likewise.
22788         (_IO_sgetn): Likewise.
22789         (_IO_default_xsgetn): Likewise.
22790         (_IO_sync): Likewise.
22791         (_IO_default_setbuf): Likewise.
22792         (_IO_default_seekpos): Likewise.
22793         (_IO_default_doallocate): Likewise.
22794         (_IO_init): Likewise.
22795         (_IO_old_init): Likewise.
22796         (_IO_default_sync): Likewise.
22797         (_IO_default_finish): Likewise.
22798         (_IO_default_seekoff): Likewise.
22799         (_IO_sputbackc): Likewise.
22800         (_IO_sungetc): Likewise.
22801         (_IO_set_column): Likewise.
22802         (_IO_set_column): Likewise.
22803         (_IO_adjust_column): Likewise.
22804         (_IO_get_column): Likewise.
22805         (_IO_init_marker): Likewise.
22806         (_IO_remove_marker): Likewise.
22807         (_IO_marker_difference): Likewise.
22808         (_IO_marker_delta): Likewise.
22809         (_IO_seekmark): Likewise.
22810         (_IO_unsave_markers): Likewise.
22811         (_IO_nobackup_pbackfail): Likewise.
22812         (_IO_default_pbackfail): Likewise.
22813         (_IO_default_seek): Likewise.
22814         (_IO_default_stat): Likewise.
22815         (_IO_default_read): Likewise.
22816         (_IO_default_write): Likewise.
22817         (_IO_default_showmanyc): Likewise.
22818         (_IO_default_imbue): Likewise.
22819         (_IO_iter_next): Likewise.
22820         (_IO_iter_file): Likewise.
22821         * libio/getc.c (_IO_getc): Likewise.
22822         * libio/getwc.c (_IO_getwc): Likewise.
22823         * libio/iofclose.c (_IO_new_fclose): Likewise.
22824         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
22825         * libio/iofflush.c (_IO_fflush): Likewise.
22826         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
22827         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
22828         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
22829         * libio/iofgets.c (_IO_fgets): Likewise.
22830         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
22831         * libio/iofgetws.c (fgetws): Likewise.
22832         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
22833         * libio/iofopen64.c (_IO_fopen64): Likewise.
22834         * libio/iofopncook.c (_IO_cookie_read): Likewise.
22835         (_IO_cookie_write): Likewise.
22836         (_IO_cookie_seek): Likewise.
22837         (_IO_cookie_close): Likewise.
22838         (_IO_cookie_seekoff): Likewise.
22839         (_IO_old_cookie_seek): Likewise.
22840         * libio/iofputs.c (_IO_fputs): Likewise.
22841         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
22842         * libio/iofputws.c (fputws): Likewise.
22843         * libio/iofputws_u.c (fputws_unlocked): Likewise.
22844         * libio/iofread.c (_IO_fread): Likewise.
22845         * libio/iofread_u.c (__fread_unlocked): Likewise.
22846         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
22847         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
22848         * libio/ioftell.c (_IO_ftell): Likewise.
22849         * libio/iofwrite.c (_IO_fwrite): Likewise.
22850         * libio/iogetdelim.c (_IO_getdelim): Likewise.
22851         * libio/iogets.c (_IO_gets): Likewise.
22852         * libio/iopadn.c (_IO_padn): Likewise.
22853         * libio/iopopen.c (_IO_new_proc_open): Likewise.
22854         (_IO_new_popen): Likewise.
22855         (_IO_new_proc_close): Likewise.
22856         * libio/ioputs.c (_IO_puts): Likewise.
22857         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
22858         (_IO_seekoff): Likewise.
22859         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
22860         (_IO_seekpos): Likewise.
22861         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
22862         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
22863         * libio/ioungetc.c (_IO_ungetc): Likewise.
22864         * libio/ioungetwc.c (ungetwc): Likewise.
22865         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
22866         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
22867         * libio/iowpadn.c (_IO_wpadn): Likewise.
22868         * libio/libc_fatal.c (__libc_fatal): Likewise.
22869         * libio/memstream.c (__open_memstream): Likewise.
22870         (_IO_mem_sync): Likewise.
22871         (_IO_mem_finish): Likewise.
22872         * libio/oldfileops.c (_IO_old_file_init): Likewise.
22873         (_IO_old_file_close_it): Likewise.
22874         (_IO_old_file_finish): Likewise.
22875         (_IO_old_file_fopen): Likewise.
22876         (_IO_old_file_attach): Likewise.
22877         (_IO_old_file_setbuf): Likewise.
22878         (_IO_old_do_write): Likewise.
22879         (old_do_write): Likewise.
22880         (_IO_old_file_underflow): Likewise.
22881         (_IO_old_file_overflow): Likewise.
22882         (_IO_old_file_sync): Likewise.
22883         (_IO_old_file_seekoff): Likewise.
22884         (_IO_old_file_write): Likewise.
22885         (_IO_old_file_xsputn): Likewise.
22886         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
22887         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
22888         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
22889         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
22890         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
22891         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
22892         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
22893         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
22894         (_IO_old_popen): Likewise.
22895         (_IO_old_proc_close): Likewise.
22896         * libio/oldpclose.c (__old_pclose): Likewise.
22897         * libio/pclose.c (__new_pclose): Likewise.
22898         * libio/peekc.c (_IO_peekc_locked): Likewise.
22899         * libio/putc.c (_IO_putc): Likewise.
22900         * libio/putc_u.c (putc_unlocked): Likewise.
22901         * libio/putchar.c (putchar): Likewise.
22902         * libio/putchar_u.c (putchar_unlocked): Likewise.
22903         * libio/putwc.c (putwc): Likewise.
22904         * libio/putwc_u.c (putwc_unlocked): Likewise.
22905         * libio/putwchar.c (putwchar): Likewise.
22906         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
22907         * libio/rewind.c (rewind): Likewise.
22908         * libio/setbuf.c (setbuf): Likewise.
22909         * libio/setlinebuf.c (setlinebuf): Likewise.
22910         * libio/vasprintf.c (_IO_vasprintf): Likewise.
22911         * libio/vscanf.c (_IO_vscanf): Likewise.
22912         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
22913         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
22914         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
22915         * libio/wgenops.c (_IO_least_wmarker): Likewise.
22916         (_IO_switch_to_main_wget_area): Likewise.
22917         (_IO_switch_to_wbackup_area): Likewise.
22918         (_IO_wsetb): Likewise.
22919         (_IO_wdefault_pbackfail): Likewise.
22920         (_IO_wdefault_finish): Likewise.
22921         (_IO_wdefault_uflow): Likewise.
22922         (__woverflow): Likewise.
22923         (__wuflow): Likewise.
22924         (__wunderflow): Likewise.
22925         (_IO_wdefault_xsputn): Likewise.
22926         (_IO_wdefault_xsgetn): Likewise.
22927         (_IO_wdoallocbuf): Likewise.
22928         (_IO_wdefault_doallocate): Likewise.
22929         (_IO_switch_to_wget_mode): Likewise.
22930         (_IO_free_wbackup_area): Likewise.
22931         (_IO_switch_to_wput_mode): Likewise.
22932         (_IO_sputbackwc): Likewise.
22933         (_IO_sungetwc): Likewise.
22934         (_IO_adjust_wcolumn): Likewise.
22935         (_IO_init_wmarker): Likewise.
22936         (_IO_wmarker_delta): Likewise.
22937         (_IO_seekwmark): Likewise.
22938         (_IO_unsave_wmarkers): Likewise.
22939         * libio/wmemstream.c (open_wmemstream): Likewise.
22940         (_IO_wmem_sync): Likewise.
22941         (_IO_wmem_finish): Likewise.
22942         * locale/nl_langinfo.c (nl_langinfo): Likewise.
22943         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
22944         * locale/programs/simple-hash.c (init_hash): Likewise.
22945         (delete_hash): Likewise.
22946         (insert_entry): Likewise.
22947         (set_entry): Likewise.
22948         (next_prime): Likewise.
22949         (is_prime): Likewise.
22950         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
22951         (xmalloc): Likewise.
22952         (xrealloc): Likewise.
22953         * locale/programs/xstrdup.c (xstrdup): Likewise.
22954         * localedata/collate-test.c (xstrcoll): Likewise.
22955         * localedata/xfrm-test.c (xstrcmp): Likewise.
22956         * login/getlogin_r.c (__getlogin_r): Likewise.
22957         * login/getpt.c (__posix_openpt): Likewise.
22958         * login/login_tty.c (login_tty): Likewise.
22959         * login/setlogin.c (setlogin): Likewise.
22960         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
22961         (mach_msg_destroy_port): Likewise.
22962         (mach_msg_destroy_memory): Likewise.
22963         * malloc/mcheck.c (flood): Likewise.
22964         * misc/acct.c (acct): Likewise.
22965         * misc/brk.c (__brk): Likewise.
22966         * misc/chflags.c (chflags): Likewise.
22967         * misc/chroot.c (chroot): Likewise.
22968         * misc/fchflags.c (fchflags): Likewise.
22969         * misc/fstab.c (getfsspec): Likewise.
22970         (getfsfile): Likewise.
22971         * misc/fsync.c (fsync): Likewise.
22972         * misc/ftruncate.c (__ftruncate): Likewise.
22973         * misc/ftruncate64.c (__ftruncate64): Likewise.
22974         * misc/getdomain.c (getdomainname): Likewise.
22975         (getdomainname): Likewise.
22976         * misc/gethostname.c (__gethostname): Likewise.
22977         * misc/getpass.c (getpass): Likewise.
22978         * misc/getttyent.c (skip): Likewise.
22979         (value): Likewise.
22980         * misc/gtty.c (gtty): Likewise.
22981         * misc/hsearch.c (hsearch): Likewise.
22982         (hcreate): Likewise.
22983         * misc/hsearch_r.c (__hcreate_r): Likewise.
22984         (__hdestroy_r): Likewise.
22985         * misc/ioctl.c (__ioctl): Likewise.
22986         * misc/mkdtemp.c (mkdtemp): Likewise.
22987         * misc/mkostemp.c (mkostemp): Likewise.
22988         * misc/mkostemp64.c (mkostemp64): Likewise.
22989         * misc/mkostemps.c (mkostemps): Likewise.
22990         * misc/mkostemps64.c (mkostemps64): Likewise.
22991         * misc/mkstemp.c (mkstemp): Likewise.
22992         * misc/mkstemp64.c (mkstemp64): Likewise.
22993         * misc/mkstemps.c (mkstemps): Likewise.
22994         * misc/mkstemps64.c (mkstemps64): Likewise.
22995         * misc/mktemp.c (__mktemp): Likewise.
22996         * misc/preadv.c (preadv): Likewise.
22997         * misc/preadv64.c (preadv64): Likewise.
22998         * misc/pwritev.c (pwritev): Likewise.
22999         * misc/pwritev64.c (pwritev64): Likewise.
23000         * misc/readv.c (__readv): Likewise.
23001         * misc/revoke.c (revoke): Likewise.
23002         * misc/setdomain.c (setdomainname): Likewise.
23003         * misc/setegid.c (setegid): Likewise.
23004         * misc/seteuid.c (seteuid): Likewise.
23005         * misc/sethostid.c (sethostid): Likewise.
23006         * misc/sethostname.c (sethostname): Likewise.
23007         * misc/setregid.c (__setregid): Likewise.
23008         * misc/setreuid.c (__setreuid): Likewise.
23009         * misc/sstk.c (sstk): Likewise.
23010         * misc/stty.c (stty): Likewise.
23011         * misc/syscall.c (syscall): Likewise.
23012         * misc/syslog.c (setlogmask): Likewise.
23013         * misc/truncate.c (__truncate): Likewise.
23014         * misc/truncate64.c (truncate64): Likewise.
23015         * misc/ualarm.c (ualarm): Likewise.
23016         * misc/usleep.c (usleep): Likewise.
23017         * misc/ustat.c (ustat): Likewise.
23018         * misc/writev.c (__writev): Likewise.
23019         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
23020         * nptl/old_pthread_cond_broadcast.c
23021         (__pthread_cond_broadcast_2_0): Likewise.
23022         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
23023         Likewise.
23024         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
23025         Likewise.
23026         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
23027         Likewise.
23028         * nptl/pt-raise.c (raise): Likewise.
23029         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
23030         Likewise.
23031         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
23032         * nptl/pthread_barrierattr_destroy.c
23033         (pthread_barrierattr_destroy): Likewise.
23034         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23035         Likewise.
23036         * nptl/pthread_barrierattr_setpshared.c
23037         (pthread_barrierattr_setpshared): Likewise.
23038         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
23039         Likewise.
23040         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
23041         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23042         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
23043         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
23044         Likewise.
23045         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
23046         Likewise.
23047         * nptl/pthread_condattr_getpshared.c
23048         (pthread_condattr_getpshared): Likewise.
23049         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
23050         Likewise.
23051         * nptl/pthread_condattr_setpshared.c
23052         (pthread_condattr_setpshared): Likewise.
23053         * nptl/pthread_detach.c (pthread_detach): Likewise.
23054         * nptl/pthread_equal.c (__pthread_equal): Likewise.
23055         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
23056         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
23057         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
23058         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
23059         Likewise.
23060         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
23061         Likewise.
23062         * nptl/pthread_mutex_getprioceiling.c
23063         (pthread_mutex_getprioceiling): Likewise.
23064         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
23065         Likewise.
23066         * nptl/pthread_mutexattr_getprotocol.c
23067         (pthread_mutexattr_getprotocol): Likewise.
23068         * nptl/pthread_mutexattr_getpshared.c
23069         (pthread_mutexattr_getpshared): Likewise.
23070         * nptl/pthread_mutexattr_getrobust.c
23071         (pthread_mutexattr_getrobust): Likewise.
23072         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
23073         Likewise.
23074         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
23075         Likewise.
23076         * nptl/pthread_mutexattr_setprioceiling.c
23077         (pthread_mutexattr_setprioceiling): Likewise.
23078         * nptl/pthread_mutexattr_setprotocol.c
23079         (pthread_mutexattr_setprotocol): Likewise.
23080         * nptl/pthread_mutexattr_setpshared.c
23081         (pthread_mutexattr_setpshared): Likewise.
23082         * nptl/pthread_mutexattr_setrobust.c
23083         (pthread_mutexattr_setrobust): Likewise.
23084         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
23085         Likewise.
23086         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
23087         Likewise.
23088         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
23089         Likewise.
23090         * nptl/pthread_rwlockattr_getkind_np.c
23091         (pthread_rwlockattr_getkind_np): Likewise.
23092         * nptl/pthread_rwlockattr_getpshared.c
23093         (pthread_rwlockattr_getpshared): Likewise.
23094         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
23095         Likewise.
23096         * nptl/pthread_rwlockattr_setkind_np.c
23097         (pthread_rwlockattr_setkind_np): Likewise.
23098         * nptl/pthread_rwlockattr_setpshared.c
23099         (pthread_rwlockattr_setpshared): Likewise.
23100         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
23101         Likewise.
23102         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
23103         Likewise.
23104         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
23105         Likewise.
23106         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
23107         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
23108         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
23109         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
23110         * nptl/sem_close.c (sem_close): Likewise.
23111         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
23112         * nptl/sem_init.c (__old_sem_init): Likewise.
23113         * nptl/sigaction.c (__sigaction): Likewise.
23114         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
23115         * posix/_exit.c (_exit): Likewise.
23116         * posix/alarm.c (alarm): Likewise.
23117         * posix/confstr.c (confstr): Likewise.
23118         * posix/fpathconf.c (__fpathconf): Likewise.
23119         * posix/getgroups.c (__getgroups): Likewise.
23120         * posix/getpgid.c (__getpgid): Likewise.
23121         * posix/group_member.c (__group_member): Likewise.
23122         * posix/pathconf.c (__pathconf): Likewise.
23123         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
23124         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
23125         * posix/setgid.c (__setgid): Likewise.
23126         * posix/setpgid.c (__setpgid): Likewise.
23127         * posix/setuid.c (__setuid): Likewise.
23128         * posix/sleep.c (__sleep): Likewise.
23129         * posix/sysconf.c (__sysconf): Likewise.
23130         * posix/times.c (__times): Likewise.
23131         * posix/uname.c (__uname): Likewise.
23132         * posix/waitid.c (__waitid): Likewise.
23133         * pwd/getpw.c (__getpw): Likewise.
23134         * resolv/base64.c (b64_pton): Likewise.
23135         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
23136         * resolv/gethnamaddr.c (Dprintf): Likewise.
23137         (gethostbyname): Likewise.
23138         (gethostbyname2): Likewise.
23139         (gethostbyaddr): Likewise.
23140         (_sethtent): Likewise.
23141         (_gethtbyname): Likewise.
23142         (_gethtbyname2): Likewise.
23143         (_gethtbyaddr): Likewise.
23144         (map_v4v6_address): Likewise.
23145         (map_v4v6_hostent): Likewise.
23146         (addrsort): Likewise.
23147         (ht_sethostent): Likewise.
23148         (ht_gethostbyname): Likewise.
23149         (ht_gethostbyaddr): Likewise.
23150         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
23151         (inet_net_ntop_ipv4): Likewise.
23152         * resolv/inet_neta.c (inet_neta): Likewise.
23153         * resolv/inet_ntop.c (inet_ntop): Likewise.
23154         (inet_ntop4): Likewise.
23155         (inet_ntop6): Likewise.
23156         * resolv/inet_pton.c (__inet_pton): Likewise.
23157         (inet_pton4): Likewise.
23158         (inet_pton6): Likewise.
23159         * resolv/res_debug.c (loc_aton): Likewise.
23160         (loc_ntoa): Likewise.
23161         * resource/getpriority.c (__getpriority): Likewise.
23162         * resource/getrusage.c (__getrusage): Likewise.
23163         * resource/nice.c (nice): Likewise.
23164         * resource/setpriority.c (__setpriority): Likewise.
23165         * resource/setrlimit64.c (setrlimit64): Likewise.
23166         * resource/vlimit.c (vlimit): Likewise.
23167         * resource/vtimes.c (vtimes): Likewise.
23168         * rt/aio_error.c (aio_error): Likewise.
23169         * rt/aio_return.c (aio_return): Likewise.
23170         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
23171         * signal/kill.c (__kill): Likewise.
23172         * signal/killpg.c (killpg): Likewise.
23173         * signal/raise.c (raise): Likewise.
23174         * signal/sigaction.c (__sigaction): Likewise.
23175         * signal/sigaddset.c (sigaddset): Likewise.
23176         * signal/sigaltstack.c (sigaltstack): Likewise.
23177         * signal/sigandset.c (sigandset): Likewise.
23178         * signal/sigblock.c (__sigblock): Likewise.
23179         * signal/sigdelset.c (sigdelset): Likewise.
23180         * signal/sigempty.c (sigemptyset): Likewise.
23181         * signal/sigfillset.c (sigfillset): Likewise.
23182         * signal/sighold.c (sighold): Likewise.
23183         * signal/sigignore.c (sigignore): Likewise.
23184         * signal/sigintr.c (siginterrupt): Likewise.
23185         * signal/sigisempty.c (sigisemptyset): Likewise.
23186         * signal/sigismem.c (sigismember): Likewise.
23187         * signal/signal.c (signal): Likewise.
23188         * signal/sigorset.c (sigorset): Likewise.
23189         * signal/sigpause.c (__sigpause): Likewise.
23190         * signal/sigpending.c (sigpending): Likewise.
23191         * signal/sigprocmask.c (__sigprocmask): Likewise.
23192         * signal/sigrelse.c (sigrelse): Likewise.
23193         * signal/sigreturn.c (__sigreturn): Likewise.
23194         * signal/sigset.c (sigset): Likewise.
23195         * signal/sigsetmask.c (__sigsetmask): Likewise.
23196         * signal/sigstack.c (sigstack): Likewise.
23197         * signal/sigsuspend.c (__sigsuspend): Likewise.
23198         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
23199         * signal/sysv_signal.c (__sysv_signal): Likewise.
23200         * socket/accept.c (accept): Likewise.
23201         * socket/accept4.c (__libc_accept4): Likewise.
23202         * socket/bind.c (__bind): Likewise.
23203         * socket/connect.c (__connect): Likewise.
23204         * socket/getpeername.c (getpeername): Likewise.
23205         * socket/getsockname.c (__getsockname): Likewise.
23206         * socket/getsockopt.c (getsockopt): Likewise.
23207         * socket/listen.c (__listen): Likewise.
23208         * socket/recv.c (__recv): Likewise.
23209         * socket/recvmsg.c (__recvmsg): Likewise.
23210         * socket/send.c (__send): Likewise.
23211         * socket/sendmsg.c (__sendmsg): Likewise.
23212         * socket/shutdown.c (shutdown): Likewise.
23213         * socket/sockatmark.c (sockatmark): Likewise.
23214         * socket/socket.c (__socket): Likewise.
23215         * stdio-common/ctermid.c (ctermid): Likewise.
23216         * stdio-common/cuserid.c (cuserid): Likewise.
23217         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
23218         * stdio-common/remove.c (remove): Likewise.
23219         * stdio-common/rename.c (rename): Likewise.
23220         * stdio-common/renameat.c (renameat): Likewise.
23221         * stdio-common/tempname.c (__gen_tempname): Likewise.
23222         * stdio-common/xbug.c (InitBuffer): Likewise.
23223         (AppendToBuffer): Likewise.
23224         (ReadFile): Likewise.
23225         * stdlib/a64l.c (a64l): Likewise.
23226         * stdlib/drand48_r.c (drand48_r): Likewise.
23227         * stdlib/getcontext.c (getcontext): Likewise.
23228         * stdlib/getenv.c (getenv): Likewise.
23229         * stdlib/l64a.c (l64a): Likewise.
23230         * stdlib/llabs.c (llabs): Likewise.
23231         * stdlib/lldiv.c (lldiv): Likewise.
23232         * stdlib/lrand48_r.c (lrand48_r): Likewise.
23233         * stdlib/mrand48_r.c (mrand48_r): Likewise.
23234         * stdlib/putenv.c (putenv): Likewise.
23235         * stdlib/random.c (__srandom): Likewise.
23236         (__initstate): Likewise.
23237         (__setstate): Likewise.
23238         * stdlib/random_r.c (__srandom_r): Likewise.
23239         (__setstate_r): Likewise.
23240         (__random_r): Likewise.
23241         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
23242         * stdlib/setcontext.c (setcontext): Likewise.
23243         * stdlib/setenv.c (setenv): Likewise.
23244         (unsetenv): Likewise.
23245         * stdlib/srand48.c (srand48): Likewise.
23246         * stdlib/srand48_r.c (__srand48_r): Likewise.
23247         * stdlib/swapcontext.c (swapcontext): Likewise.
23248         * stdlib/system.c (__libc_system): Likewise.
23249         * stdlib/tst-strtod.c (expand): Likewise.
23250         * stdlib/tst-strtol.c (expand): Likewise.
23251         * stdlib/tst-strtoll.c (expand): Likewise.
23252         * streams/fattach.c (fattach): Likewise.
23253         * streams/fdetach.c (fdetach): Likewise.
23254         * streams/getmsg.c (getmsg): Likewise.
23255         * streams/isastream.c (isastream): Likewise.
23256         * string/ffs.c (__ffs): Likewise.
23257         * string/ffsll.c (ffsll): Likewise.
23258         * string/memcmp.c (memcmp_common_alignment): Likewise.
23259         (memcmp_not_common_alignment): Likewise.
23260         (MEMCMP): Likewise.
23261         * string/memcpy.c (memcpy): Likewise.
23262         * string/memmove.c (MEMMOVE): Likewise.
23263         * string/memset.c (memset): Likewise.
23264         * string/rawmemchr.c (RAWMEMCHR): Likewise.
23265         * string/strchrnul.c (STRCHRNUL): Likewise.
23266         * string/strerror.c (strerror): Likewise.
23267         * string/strndup.c (__strndup): Likewise.
23268         * string/strverscmp.c (__strverscmp): Likewise.
23269         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
23270         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
23271         (clnttcp_freeres): Likewise.
23272         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
23273         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
23274         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
23275         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
23276         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
23277         (xdr_callhdr): Likewise.
23278         * sunrpc/rpcinfo.c (udpping): Likewise.
23279         (tcpping): Likewise.
23280         (pstatus): Likewise.
23281         (pmapdump): Likewise.
23282         (brdcst): Likewise.
23283         (deletereg): Likewise.
23284         (getprognum): Likewise.
23285         (getvers): Likewise.
23286         (get_inet_address): Likewise.
23287         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
23288         * sunrpc/svc_udp.c (svcudp_create): Likewise.
23289         (svcudp_stat): Likewise.
23290         (svcudp_recv): Likewise.
23291         (svcudp_reply): Likewise.
23292         (svcudp_getargs): Likewise.
23293         (svcudp_freeargs): Likewise.
23294         (svcudp_destroy): Likewise.
23295         * sunrpc/xdr.c (xdr_bytes): Likewise.
23296         (xdr_netobj): Likewise.
23297         (xdr_string): Likewise.
23298         (xdr_wrapstring): Likewise.
23299         * sunrpc/xdr_float.c (xdr_float): Likewise.
23300         (xdr_double): Likewise.
23301         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
23302         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
23303         * sysvipc/ftok.c (ftok): Likewise.
23304         * sysvipc/msgctl.c (msgctl): Likewise.
23305         * sysvipc/msgget.c (msgget): Likewise.
23306         * sysvipc/msgrcv.c (msgrcv): Likewise.
23307         * sysvipc/msgsnd.c (msgsnd): Likewise.
23308         * sysvipc/semget.c (semget): Likewise.
23309         * sysvipc/semop.c (semop): Likewise.
23310         * sysvipc/shmat.c (shmat): Likewise.
23311         * sysvipc/shmctl.c (shmctl): Likewise.
23312         * sysvipc/shmdt.c (shmdt): Likewise.
23313         * sysvipc/shmget.c (shmget): Likewise.
23314         * termios/cfmakeraw.c (cfmakeraw): Likewise.
23315         * termios/speed.c (cfgetospeed): Likewise.
23316         (cfgetispeed): Likewise.
23317         (cfsetospeed): Likewise.
23318         (cfsetispeed): Likewise.
23319         * termios/tcflow.c (tcflow): Likewise.
23320         * termios/tcflush.c (tcflush): Likewise.
23321         * termios/tcgetattr.c (__tcgetattr): Likewise.
23322         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
23323         * termios/tcgetsid.c (tcgetsid): Likewise.
23324         * termios/tcsendbrk.c (tcsendbreak): Likewise.
23325         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
23326         * time/adjtime.c (__adjtime): Likewise.
23327         * time/dysize.c (dysize): Likewise.
23328         * time/ftime.c (ftime): Likewise.
23329         * time/getitimer.c (__getitimer): Likewise.
23330         * time/gettimeofday.c (__gettimeofday): Likewise.
23331         * time/gmtime.c (__gmtime_r): Likewise.
23332         (gmtime): Likewise.
23333         * time/localtime.c (__localtime_r): Likewise.
23334         (localtime): Likewise.
23335         * time/offtime.c (__offtime): Likewise.
23336         * time/settimeofday.c (__settimeofday): Likewise.
23337         * time/stime.c (stime): Likewise.
23338         * time/strftime_l.c (tm_diff): Likewise.
23339         (iso_week_days): Likewise.
23340         * time/strptime.c (strptime): Likewise.
23341         * time/time.c (time): Likewise.
23342         * time/timespec_get.c (timespec_get): Likewise.
23343         * time/tzset.c (tzset_internal): Likewise.
23344         (compute_change): Likewise.
23345         (__tz_compute): Likewise.
23346         * wcsmbs/btowc.c (__btowc): Likewise.
23347         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
23348         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
23349         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
23350         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
23351         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
23352         * wcsmbs/wcscat.c (__wcscat): Likewise.
23353         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
23354         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
23355         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
23356         * wcsmbs/wcscspn.c (wcscspn): Likewise.
23357         * wcsmbs/wcsdup.c (wcsdup): Likewise.
23358         * wcsmbs/wcslen.c (__wcslen): Likewise.
23359         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
23360         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
23361         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
23362         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
23363         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
23364         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
23365         * wcsmbs/wcsspn.c (wcsspn): Likewise.
23366         * wcsmbs/wcsstr.c (wcsstr): Likewise.
23367         * wcsmbs/wcstok.c (wcstok): Likewise.
23368         * wcsmbs/wctob.c (wctob): Likewise.
23369         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
23370         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
23371         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
23372         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
23373         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
23374         * wcsmbs/wmemset.c (__wmemset): Likewise.
23375         * wctype/wcfuncs.c (__towlower): Likewise.
23376         (__towupper): Likewise.
23377
23378         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
23379         (lll_unlock_elision): Add adapt_count parameter.
23380
23381 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
23382
23383         * sysdeps/nptl/configure.ac: Do not give errors based on the
23384         results of top-level configure tests.
23385         * sysdeps/nptl/configure: Regenerated.
23386
23387         * configure.ac (libc_cv_Bgroup): Remove configure test.
23388         * configure: Regenerated.
23389         * config.make.in (have-Bgroup): Remove variable.
23390
23391         * configure.ac (sizeof_long_double): Remove configure test.
23392         * configure: Regenerated.
23393         * config.make.in (sizeof-long-double): Remove variable.
23394
23395         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
23396         * configure: Regenerated.
23397         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
23398         variable.
23399         (exceptions): Likewise.
23400         * sysdeps/arm/configure: Regenerated.
23401         * config.make.in (exceptions): Remove variable.
23402         * Makeconfig (uses-callbacks): Use -fexceptions instead of
23403         $(exceptions).
23404         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
23405         (CFLAGS-vdprintf_chk.c): Likewise.
23406         (CFLAGS-printf_chk.c): Likewise.
23407         (CFLAGS-fprintf_chk.c): Likewise.
23408         (CFLAGS-vprintf_chk.c): Likewise.
23409         (CFLAGS-vfprintf_chk.c): Likewise.
23410         (CFLAGS-gets_chk.c): Likewise.
23411         (CFLAGS-fgets_chk.c): Likewise.
23412         (CFLAGS-fgets_u_chk.c): Likewise.
23413         (CFLAGS-fread_chk.c): Likewise.
23414         (CFLAGS-fread_u_chk.c): Likewise.
23415         (CFLAGS-wprintf_chk.c): Likewise.
23416         (CFLAGS-fwprintf_chk.c): Likewise.
23417         (CFLAGS-vwprintf_chk.c): Likewise.
23418         (CFLAGS-vfwprintf_chk.c): Likewise.
23419         (CFLAGS-fgetws_chk.c): Likewise.
23420         (CFLAGS-fgetws_u_chk.c): Likewise.
23421         * libio/Makefile (CFLAGS-fileops.c): Likewise.
23422         (CFLAGS-fputc.c): Likewise.
23423         (CFLAGS-fputwc.c): Likewise.
23424         (CFLAGS-freopen64.c): Likewise.
23425         (CFLAGS-freopen.c): Likewise.
23426         (CFLAGS-fseek.c): Likewise.
23427         (CFLAGS-fseeko64.c): Likewise.
23428         (CFLAGS-fseeko.c): Likewise.
23429         (CFLAGS-ftello64.c): Likewise.
23430         (CFLAGS-ftello.c): Likewise.
23431         (CFLAGS-fwide.c): Likewise.
23432         (CFLAGS-genops.c): Likewise.
23433         (CFLAGS-getc.c): Likewise.
23434         (CFLAGS-getchar.c): Likewise.
23435         (CFLAGS-getwc.c): Likewise.
23436         (CFLAGS-getwchar.c): Likewise.
23437         (CFLAGS-iofclose.c): Likewise.
23438         (CFLAGS-iofflush.c): Likewise.
23439         (CFLAGS-iofgetpos64.c): Likewise.
23440         (CFLAGS-iofgetpos.c): Likewise.
23441         (CFLAGS-iofgets.c): Likewise.
23442         (CFLAGS-iofgetws.c): Likewise.
23443         (CFLAGS-iofputs.c): Likewise.
23444         (CFLAGS-iofputws.c): Likewise.
23445         (CFLAGS-iofread.c): Likewise.
23446         (CFLAGS-iofsetpos64.c): Likewise.
23447         (CFLAGS-iofsetpos.c): Likewise.
23448         (CFLAGS-ioftell.c): Likewise.
23449         (CFLAGS-iofwrite.c): Likewise.
23450         (CFLAGS-iogetdelim.c): Likewise.
23451         (CFLAGS-iogetline.c): Likewise.
23452         (CFLAGS-iogets.c): Likewise.
23453         (CFLAGS-iogetwline.c): Likewise.
23454         (CFLAGS-ioputs.c): Likewise.
23455         (CFLAGS-ioseekoff.c): Likewise.
23456         (CFLAGS-ioseekpos.c): Likewise.
23457         (CFLAGS-iosetbuffer.c): Likewise.
23458         (CFLAGS-iosetvbuf.c): Likewise.
23459         (CFLAGS-ioungetc.c): Likewise.
23460         (CFLAGS-ioungetwc.c): Likewise.
23461         (CFLAGS-oldfileops.c): Likewise.
23462         (CFLAGS-oldiofclose.c): Likewise.
23463         (CFLAGS-oldiofgetpos64.c): Likewise.
23464         (CFLAGS-oldiofgetpos.c): Likewise.
23465         (CFLAGS-oldiofsetpos64.c): Likewise.
23466         (CFLAGS-oldiofsetpos.c): Likewise.
23467         (CFLAGS-peekc.c): Likewise.
23468         (CFLAGS-putc.c): Likewise.
23469         (CFLAGS-putchar.c): Likewise.
23470         (CFLAGS-putwc.c): Likewise.
23471         (CFLAGS-putwchar.c): Likewise.
23472         (CFLAGS-rewind.c): Likewise.
23473         (CFLAGS-wfileops.c): Likewise.
23474         (CFLAGS-wgenops.c): Likewise.
23475         (CFLAGS-oldiofopen.c): Likewise.
23476         (CFLAGS-iofopen.c): Likewise.
23477         (CFLAGS-iofopen64.c): Likewise.
23478         (CFLAGS-oldtmpfile.c): Likewise.
23479         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
23480         (CFLAGS-fprintf.c): Likewise.
23481         (CFLAGS-printf.c): Likewise.
23482         (CFLAGS-vfwprintf.c): Likewise.
23483         (CFLAGS-vfscanf.c): Likewise.
23484         (CFLAGS-vfwscanf.c): Likewise.
23485         (CFLAGS-fscanf.c): Likewise.
23486         (CFLAGS-scanf.c): Likewise.
23487         (CFLAGS-isoc99_vfscanf.c): Likewise.
23488         (CFLAGS-isoc99_vscanf.c): Likewise.
23489         (CFLAGS-isoc99_fscanf.c): Likewise.
23490         (CFLAGS-isoc99_scanf.c): Likewise.
23491         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
23492         (CFLAGS-isoc99_fwscanf.c): Likewise.
23493         (CFLAGS-isoc99_vwscanf.c): Likewise.
23494         (CFLAGS-isoc99_vfwscanf.c): Likewise.
23495
23496         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
23497         after mkstemp64.
23498         * login/tst-utmp.c (do_prepare): Likewise.
23499         * rt/tst-aio.c (do_prepare): Likewise.
23500         * rt/tst-aio64.c (do_prepare): Likewise.
23501
23502 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
23503
23504         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
23505         (__lll_lock_elision): Remove adapt_count decrement...
23506         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
23507         (__lll_trylock_elision): Likewise.
23508         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
23509         (__lll_unlock_elision): ... to here. And utilize
23510         new adapt_count parameter.
23511         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
23512         (__lll_unlock_elision): Update to include adapt_count
23513         parameter.
23514         (lll_unlock_elision): Pass pointer to adapt_count
23515         variable.
23516
23517 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
23518
23519         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
23520         Add elision adapt_count parameter to list of arguments.
23521         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
23522         (lll_unlock_elision): Update with new parameter list
23523         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
23524         (lll_unlock_elision): Likewise.
23525         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
23526         (lll_unlock_elision): Likewise.
23527
23528 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23529
23530         [BZ #19122]
23531         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
23532         attribute_hidden.
23533
23534         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
23535         attribute_hidden.
23536         [IS_IN (rtld)] (__strdup): Likewise.
23537         [IS_IN (rtld)] (__strerror_r): Likewise.
23538         [IS_IN (rtld)] (__strsep_g): Likewise.
23539         [IS_IN (rtld)] (memchr): Likewise.
23540         [IS_IN (rtld)] (memcmp): Likewise.
23541         [IS_IN (rtld)] (memcpy): Likewise.
23542         [IS_IN (rtld)] (memmove): Likewise.
23543         [IS_IN (rtld)] (memset): Likewise.
23544         [IS_IN (rtld)] (rawmemchr): Likewise.
23545         [IS_IN (rtld)] (stpcpy): Likewise.
23546         [IS_IN (rtld)] (strchr): Likewise.
23547         [IS_IN (rtld)] (strcmp): Likewise.
23548         [IS_IN (rtld)] (strlen): Likewise.
23549         [IS_IN (rtld)] (strnlen): Likewise.
23550         [IS_IN (rtld)] (strsep): Likewise.
23551
23552         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
23553         attribute_hidden.
23554         [IS_IN (rtld)] (__strtoul_internal): Likewise.
23555
23556         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
23557         attribute_hidden.
23558         [IS_IN (rtld)] (__libc_sigaction): Likewise.
23559
23560         * include/setjmp.h (__longjmp): Add attribute_hidden.
23561         [IS_IN (rtld)] (__sigsetjmp): Likewise.
23562
23563         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
23564         Add attribute_hidden.
23565
23566         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
23567         [IS_IN (rtld)] (__open): Likewise.
23568         [IS_IN (rtld)] (__fcntl): Likewise.
23569
23570         * include/dirent.h (__opendirat): Add attribute_hidden.
23571         (__getdents): Likewise.
23572         (__getdents64): Likewise.
23573         (__alloc_dir): Likewise.
23574         [IS_IN (rtld)] (__closedir): Likewise.
23575         [IS_IN (rtld)] (__fdopendir): Likewise.
23576         [IS_IN (rtld)] (__readdir): Likewise.
23577         [IS_IN (rtld)] (__readdir64): Likewise.
23578         [IS_IN (rtld)] (__rewinddir): Likewise.
23579
23580         * include/dlfcn.h (_dl_catch_error): Moved to ...
23581         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
23582         attribute_hidden.
23583
23584         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
23585         (_itoa_word): Likewise.
23586
23587         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
23588         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
23589         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
23590         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
23591         (_dl_higher_prime_number): Likewise.
23592         (_dl_debug_printf_c): Likewise.
23593         (_dl_signal_cerror): Likewise.
23594         (_dl_receive_error): Likewise.
23595         (_dl_reloc_bad_type): Likewise.
23596         (_dl_resolve_conflicts): Likewise.
23597         (_dl_check_all_versions): Likewise.
23598         (_dl_check_map_versions): Likewise.
23599         (_dl_sort_fini): Likewise.
23600         (_dl_debug_initialize): Likewise.
23601         (_dl_init_paths): Likewise.
23602         (_dl_show_auxv): Likewise.
23603         (_dl_next_ld_env_entry): Likewise.
23604         (_dl_important_hwcaps): Likewise.
23605         (_dl_load_cache_lookup): Likewise.
23606         (_dl_update_slotinfo): Likewise.
23607         (_dl_show_scope): Likewise.
23608
23609         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
23610         attribute_hidden.
23611         (_wordcopy_fwd_dest_aligned): Likewise.
23612         (_wordcopy_bwd_aligned): Likewise.
23613         (_wordcopy_bwd_dest_aligned): Likewise.
23614
23615         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
23616         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
23617         Likewise.
23618         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
23619         Likewise.
23620         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
23621
23622 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23623
23624         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
23625         GCC 5 requirement.
23626
23627 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
23628
23629         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
23630         test.
23631         * sysdeps/i386/configure: Regenerated.
23632         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
23633         code unconditional.
23634
23635         * configure.ac (libc_cv_asm_previous_directive): Remove configure
23636         test.
23637         (libc_cv_asm_popsection_directive): Likewise.
23638         * configure: Regenerated.
23639         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
23640         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
23641         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
23642         (__make_section_unallocated): Make definition unconditional.
23643         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
23644         Remove conditional definition.
23645         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
23646         (__make_section_unallocated): Likewise.
23647
23648         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
23649         * configure: Regenerated.
23650         * config.make.in (static-libgcc): Remove variable.
23651         * Makerules (build-shlib-helper): Use -static-libgcc instead of
23652         $(static-libgcc).
23653         (build-module-helper): Likewise.
23654
23655         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
23656         * configure: Regenerated.
23657
23658 2015-10-15  Florian Weimer  <fweimer@redhat.com>
23659
23660         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
23661         (struct char_buffer): New type.
23662         (char_buffer_start, char_buffer_size, char_buffer_error)
23663         (char_buffer_rewind, char_buffer_add): New functions.
23664         (ADDW): Remove macro, replaced by the char_buffer_add function.
23665         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
23666         of extend_alloca.  Make control flow more explicit.
23667
23668 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23669
23670         [BZ #19137]
23671         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
23672         Add -fomit-frame-pointer.
23673         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
23674
23675 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23676
23677         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
23678         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
23679         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
23680         only if !__GNUC_PREREQ (5,0).
23681         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
23682         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
23683         (INTERNAL_SYSCALL_NCS): Likewise.
23684         (LOADREGS_0): New macro for GCC 5.
23685         (ASMARGS_0): Likewise.
23686         (LOADREGS_1): Likewise.
23687         (ASMARGS_1): Likewise.
23688         (LOADREGS_2): Likewise.
23689         (ASMARGS_2): Likewise.
23690         (LOADREGS_3): Likewise.
23691         (ASMARGS_3): Likewise.
23692         (LOADREGS_4): Likewise.
23693         (ASMARGS_4): Likewise.
23694         (LOADREGS_5): Likewise.
23695         (ASMARGS_5): Likewise.
23696         (LOADREGS_6): Likewise.
23697         (ASMARGS_6): Likewise.
23698
23699 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23700
23701         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
23702         -fomit-frame-pointer.
23703         (CFLAGS-mmap64.c): Likewise.
23704         (CFLAGS-semtimedop.c): Likewise.
23705         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
23706         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
23707         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
23708         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
23709
23710 2015-10-15  Florian Weimer  <fweimer@redhat.com>
23711
23712         [BZ #18928]
23713         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
23714         _dl_pointer_guard member.
23715         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
23716         initializer.
23717         (security_init): Always set up pointer guard.
23718         (process_envvars): Do not process LD_POINTER_GUARD.
23719
23720 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
23721
23722         [BZ #19134]
23723         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
23724         (.LC2): Likewise.
23725         (.LC3): Likewise.
23726         (__lround): Do not add 0.5 to integer or out-of-range arguments.
23727
23728 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23729
23730         [BZ #19129]
23731         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
23732         r0 and r1.
23733
23734 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
23735
23736         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
23737
23738 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
23739
23740         * include/stap-probe.h: Fix macro definition formatting.
23741
23742 2015-10-14  Florian Weimer  <fweimer@redhat.com>
23743
23744         [BZ #19074]
23745         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
23746         load and store num_ifs.
23747
23748 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
23749
23750         [BZ #18822]
23751         * sysdeps/unix/sysv/linux/sched_getaffinity.c
23752         (__sched_getaffinity_new): Add libc_hidden_proto and
23753         libc_hidden_def.
23754
23755 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
23756
23757         [BZ #19007]
23758         * scripts/localplt.awk: Also allow GOT references.
23759         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
23760         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
23761         with "+ REL R_386_GLOB_DAT".
23762         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
23763         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
23764
23765 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
23766
23767         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
23768         INLINE_SYSCALL_ERROR_RETURN_VALUE.
23769         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
23770         Likewise.
23771         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
23772         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
23773         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
23774         INTERNAL_SYSCALLINTERNAL_SYSCALL and
23775         INLINE_SYSCALL_ERROR_RETURN_VALUE.
23776         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
23777         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
23778         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
23779         Likewise.
23780         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
23781
23782 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
23783
23784         [BZ #19125]
23785         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
23786         <math_private.h> and <stdint.h>.
23787         (__llround): Avoid conversions to and from long long int, and
23788         subtractions, where those might raise spurious exceptions.
23789         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
23790         <math_private.h> and <stdint.h>.
23791         (__llroundf): Avoid conversions to and from long long int, and
23792         subtractions, where those might raise spurious exceptions.
23793
23794 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
23795
23796         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
23797         INLINE_SYSCALL_ERROR_RETURN_VALUE.
23798         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
23799         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
23800         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
23801         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
23802         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
23803         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
23804         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
23805         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
23806         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
23807         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
23808         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
23809         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
23810         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
23811         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
23812         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
23813         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
23814         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
23815         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
23816         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
23817         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
23818         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
23819         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
23820         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
23821         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
23822         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
23823         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
23824         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
23825         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
23826         (__xstat64_conv): Likewise.
23827         (__xstat32_conv): Likewise.
23828
23829 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
23830
23831         * sysdeps/unix/sysv/linux/sysdep.h: New file.
23832         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
23833         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
23834         <sysdeps/unix/sysv/linux/sysdep.h>.
23835         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
23836         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
23837         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
23838         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23839         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
23840         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
23841         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
23842         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
23843         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
23844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
23845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23846         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23847         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23848         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23849         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
23850         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23851         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
23852         (sysdep-dl-routines): Add sysdep.
23853         [$(subdir) == nptl] (libpthread-routines): Likewise.
23854         [$(subdir) == rt] (librt-routines): Likewise.
23855         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
23856         PIC when branching to SYSCALL_ERROR_LABEL.
23857         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
23858         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
23859         <sysdeps/unix/sysv/linux/sysdep.h>.
23860         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
23861         (SYSCALL_ERROR_ERRNO): Removed.
23862         (SYSCALL_ERROR_HANDLER): Changed to empty.
23863         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
23864         (__syscall_error): New prototype.
23865         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
23866         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
23867
23868 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
23869
23870         [BZ #19124]
23871         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
23872         (_dl_runtime_resolve_avx512): Make it a hidden alias of
23873         _dl_runtime_resolve_avx.
23874         (_dl_runtime_profile_avx512): Make it a hidden alias of
23875         _dl_runtime_profile_avx.
23876
23877 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
23878
23879         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
23880         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
23881         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
23882         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
23883
23884         [BZ #16422]
23885         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
23886         New configure test.
23887         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
23888         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
23889         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
23890         <math_private.h> and <stdint.h>.
23891         (__llrint): Avoid conversions to long long int where those might
23892         raise spurious exceptions.
23893         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
23894         <math_private.h> and <stdint.h>.
23895         (__llrintf): Avoid conversions to long long int where those might
23896         raise spurious exceptions.
23897
23898 2015-10-12  Andreas Schwab  <schwab@suse.de>
23899
23900         [BZ #18969]
23901         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
23902         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
23903         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
23904         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
23905         $(gen-locales).
23906         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
23907         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
23908         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
23909         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
23910         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
23911         $(gen-locales).
23912         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
23913         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
23914         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
23915         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
23916         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
23917         ($(objpfx)tst-ftell-active-handler.out)
23918         ($(objpfx)tst-ftell-append.out)
23919         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
23920         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
23921         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
23922         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
23923         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
23924         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
23925         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
23926         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
23927         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
23928         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
23929         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
23930         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
23931         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
23932         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
23933         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
23934         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
23935         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
23936         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
23937         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
23938         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
23939         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
23940         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
23941         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
23942         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
23943         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
23944         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
23945         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
23946         $(gen-locales).
23947         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
23948         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
23949         $(gen-locales).
23950         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
23951         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
23952         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
23953         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
23954         $(gen-locales).
23955         * libio/tst_wprintf2.c (main): Use explicit locale.
23956         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
23957
23958 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23959
23960         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
23961         __msg_sig_post.
23962         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
23963
23964 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
23965
23966         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
23967         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
23968
23969         * sysdeps/arm/libm-test-ulps: Regenerated.
23970
23971         [BZ #15470]
23972         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
23973
23974         [BZ #16399]
23975         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
23976         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
23977         and <fix-fp-int-convert-overflow.h>.
23978         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
23979         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23980         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
23981         and <fix-fp-int-convert-overflow.h>.
23982         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
23983         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23984         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
23985         <fix-fp-int-convert-overflow.h>.
23986         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
23987         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23988         * sysdeps/ieee754/dbl-64/s_lround.c: Include
23989         <fix-fp-int-convert-overflow.h>.
23990         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
23991         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23992         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
23993         and <fix-fp-int-convert-overflow.h>.
23994         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
23995         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23996         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
23997         <limits.h> and <fix-fp-int-convert-overflow.h>.
23998         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
23999         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24000         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
24001         and <fix-fp-int-convert-overflow.h>.
24002         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
24003         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24004         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
24005         and <fix-fp-int-convert-overflow.h>.
24006         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
24007         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24008         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
24009
24010 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
24011
24012         [BZ #18589]
24013         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
24014         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
24015         $(gen-locales).
24016
24017 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24018             Phil Blundell <pb@pbcl.net>
24019
24020         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
24021         * nptl/tst-cancel26.c: New file.
24022         * nptl/tst-cancel27.c: Likewise.
24023
24024 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
24025
24026         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
24027         __ILP32__ isn't defined.
24028         (lrint): Likewise.
24029         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
24030         (lrintf): Likewise.
24031         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
24032         (lrintl): Likewise.
24033         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
24034         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
24035         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
24036
24037 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24038
24039         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
24040         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
24041
24042         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
24043         file.
24044         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
24045         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
24046
24047 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
24048
24049         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
24050         configure test.
24051         * sysdeps/i386/configure: Regenerated.
24052         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
24053         configure test.
24054         * sysdeps/x86_64/configure: Regenerated.
24055         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
24056         Make code unconditional.
24057
24058         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
24059         test.
24060         * sysdeps/i386/configure: Regenerated.
24061         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
24062         test.
24063         * sysdeps/x86_64/configure: Regenerated.
24064         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
24065         Make code unconditional.
24066         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
24067         Likewise.
24068         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
24069         Likewise.
24070         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24071         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
24072         code unconditional.
24073         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24074         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
24075         code unconditional.
24076         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24077         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
24078         code unconditional.
24079         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
24080         code unconditional.
24081         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24082         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
24083         code unconditional.
24084         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24085         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
24086         code unconditional.
24087         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24088         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
24089         code unconditional.
24090         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24091         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
24092         code unconditional.
24093         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24094         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
24095
24096         [BZ #19095]
24097         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
24098         mantissa to long int before shifting left.
24099
24100 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
24101
24102         [BZ #19094]
24103         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
24104         <limits.h>.
24105         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24106         when result overflows but exception would not result from cast.
24107         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
24108         <limits.h>.
24109         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24110         when result overflows but exception would not result from cast.
24111         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
24112         <limits.h>.
24113         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24114         when result overflows but exception would not result from cast.
24115         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
24116         <limits.h>.
24117         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24118         when result overflows but exception would not result from cast.
24119         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
24120         <limits.h>.
24121         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24122         when result overflows but exception would not result from cast.
24123         * math/libm-test.inc (lrint_test_data): Add more tests.
24124         (llrint_test_data): Likewise.
24125
24126 2015-10-08  Roland McGrath  <roland@hack.frob.com>
24127
24128         [BZ #18872]
24129         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
24130         Move out from under [$(run-built-tests) = yes] conditional.
24131         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
24132         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
24133
24134 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
24135
24136         [BZ #18589]
24137         * string/Makefile (tests): Add bug-strcoll2.
24138         (LOCALES): Add cs_CZ.UTF-8.
24139         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
24140
24141         [BZ #18589]
24142         * string/bug-strcoll2.c: New file.
24143         * locale/categories.def: Revert commit
24144         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
24145         * locale/langinfo.h: Likewise.
24146         * locale/localeinfo.h: Likewise.
24147         * locale/C-collate.c: Likewise.
24148         * locale/programs/ld-collate.c (collate_output): Likewise.
24149         * string/strcoll_l.c (STRDIFF): Likewise.
24150         (STRCOLL): Likewise.
24151         * wcsmbs/wcscoll_l.c: Likewise.
24152
24153 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
24154
24155         * math/libm-test.inc (lround_test_data): Do not expect the absence
24156         of "inexact" for some tests with non-integer arguments.
24157         (llround_test_data): Likewise.
24158
24159         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
24160         test.
24161         (libc_cv_cc_sse2avx): Likewise.
24162         * sysdeps/i386/configure: Regenerated.
24163         * sysdeps/i386/i686/multiarch/Makefile
24164         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
24165         [$(subdir) = math].
24166         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
24167         code unconditional.
24168         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
24169         Likewise.
24170         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
24171         Likewise.
24172         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
24173         Likewise.
24174         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
24175         test.
24176         (libc_cv_cc_sse2avx): Likewise.
24177         * sysdeps/x86_64/configure: Regenerated.
24178         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
24179         unconditional.
24180         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
24181         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
24182         unconditional.
24183         (_dl_runtime_profile)
24184         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
24185         conditional code.
24186         * sysdeps/x86_64/fpu/multiarch/Makefile
24187         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
24188         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
24189         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24190         * sysdeps/x86_64/fpu/multiarch/e_exp.c
24191         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24192         * sysdeps/x86_64/fpu/multiarch/e_log.c
24193         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24194         * sysdeps/x86_64/fpu/multiarch/s_atan.c
24195         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24196         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
24197         Likewise.
24198         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
24199         Likewise.
24200         * sysdeps/x86_64/fpu/multiarch/s_sin.c
24201         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24202         * sysdeps/x86_64/fpu/multiarch/s_tan.c
24203         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24204         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
24205         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
24206         (HAVE_SSE2AVX_SUPPORT): Likewise.
24207
24208 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
24209
24210         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
24211         instead of #pragma optimize.
24212
24213 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
24214
24215         [BZ #17195]
24216         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
24217         as is similarly done in systrim and _int_free already.
24218
24219 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24220
24221         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
24222
24223 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
24224
24225         [BZ #19088]
24226         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
24227         <limits.h>.
24228         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
24229         overflows but exception would not result from cast.
24230         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
24231         and <limits.h>.
24232         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
24233         overflows but exception would not result from cast.
24234         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
24235         <limits.h>.
24236         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
24237         overflows but exception would not result from cast.
24238         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
24239         <limits.h>.
24240         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
24241         overflows but exception would not result from cast.
24242         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
24243         <limits.h>.
24244         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
24245         overflows but exception would not result from cast.
24246         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
24247         <limits.h>.
24248         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
24249         overflows but exception would not result from cast.
24250         * math/libm-test.inc (lround_test_data): Add more tests.
24251         (llround_test_data): Likewise.
24252
24253 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
24254
24255         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
24256         (CFLAGS-ialloc.c): Ditto.
24257         (CFLAGS-scheck.c): Ditto.
24258
24259 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
24260
24261         [BZ #19086]
24262         * manual/filesys.texi (Storage Allocation): Fix argument order for
24263         posix_fallocate64.
24264
24265 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
24266
24267         [BZ #19085]
24268         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
24269         exponent below 48 inside case for non-overflowing exponent.
24270         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
24271
24272 2015-10-07  Florian Weimer  <fweimer@redhat.com>
24273
24274         * iconvdata/cp737.h (from_idx): Add const.
24275         * iconvdata/cp775.h (from_idx): Likewise.
24276
24277 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
24278
24279         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
24280         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
24281         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
24282
24283         [BZ #19079]
24284         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
24285         file, conditioned on [!_LP64].
24286         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
24287         [!_LP64] (__lround): Do not define as function or alias.
24288         [!_LP64] (lround): Likewise.
24289         [!_LP64] (__lroundl): Likewise.
24290         [!_LP64] (lroundl): Likewise.
24291         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
24292         macro.
24293         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
24294         Likewise.
24295
24296 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
24297
24298         * math/libm-test.inc (lrint_test_data): Add more tests.
24299         (llrint_test_data): Likewise.
24300         (lround_test_data): Likewise.
24301         (llround_test_data): Likewise.
24302
24303         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
24304         (llrint_test_data): Add tests used for lrint.
24305
24306         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
24307         test.
24308         * sysdeps/i386/configure: Regenerated.
24309         * sysdeps/i386/i686/multiarch/Makefile
24310         [$(config-cflags-sse4) = yes]: Make code unconditional.
24311         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
24312         Likewise.
24313         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
24314         Likewise.
24315         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
24316         test.
24317         * sysdeps/x86_64/configure: Regenerated.
24318         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
24319         Make code unconditional.
24320         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
24321         Likewise.
24322         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
24323         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
24324
24325         * scripts/rpm2dynsym.sh: Remove file.
24326
24327 2015-10-06  Florian Weimer  <fweimer@redhat.com>
24328
24329         * configure.ac (libc_cv_cxx_thread_local): Define.
24330         * configure: Regenerate.
24331         * config.make.in (have-cxx-thread_local): Define.
24332         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
24333         (LDLIBS-tst-thread_local1): Define.
24334         (tests): Add tst-thread_local1.
24335         [have-cxx-thread_local != yes] (tests-unsupported): Add
24336         tst-thread_local1.
24337         * nptl/tst-thread_local1.cc: New file.
24338
24339 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
24340
24341         [BZ #19078]
24342         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
24343         (u_thres): Likewise.
24344         (__expl): Determine whether to call __kernel_standard_l based on
24345         value of result, not argument.
24346
24347         * math/libm-test.inc (scalb_test_data): Add more expectations for
24348         the "inexact" exception.
24349
24350         [BZ #19077]
24351         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
24352         0.0L for argument 1.0L.
24353
24354         [BZ #19076]
24355         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
24356         constant 0.0L when computing infinite result.
24357
24358 2015-10-06  Florian Weimer  <fweimer@redhat.com>
24359
24360         [BZ #10432]
24361         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
24362         malloc_usable_size.
24363
24364 2015-10-06  Florian Weimer  <fweimer@redhat.com>
24365
24366         [BZ #19018]
24367         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
24368         Mangle function pointer before storing it.
24369         (__call_tls_dtors): Demangle function pointer before calling it.
24370
24371 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
24372
24373         [BZ #19012]
24374         * iconv/gconv_db.c (gen_steps): Check for additional errors.
24375         Clean up on failure.
24376
24377 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
24378
24379         [BZ #19071]
24380         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
24381         long int variable to store possibly incremented high part of
24382         mantissa.
24383         * math/libm-test.inc (lround_test_data): Add tests used for
24384         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
24385         for tests requiring 64-bit long.  Do not condition tests on
24386         [TEST_FLOAT] unnecessarily.
24387         (llround_test_data): Add tests used for lround.  Add another
24388         expectation for the "inexact" exception.  Do not condition tests
24389         on [TEST_FLOAT] unnecessarily.
24390
24391         [BZ #887]
24392         [BZ #19049]
24393         [BZ #19050]
24394         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
24395         * sysdeps/ieee754/dbl-64/e_log10.c: Include
24396         <fix-int-fp-convert-zero.h>.
24397         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24398         * sysdeps/ieee754/dbl-64/e_log2.c: Include
24399         <fix-int-fp-convert-zero.h>.
24400         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24401         * sysdeps/ieee754/dbl-64/s_erf.c: Include
24402         <fix-int-fp-convert-zero.h>.
24403         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24404         * sysdeps/ieee754/dbl-64/s_logb.c: Include
24405         <fix-int-fp-convert-zero.h>.
24406         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24407         * sysdeps/ieee754/flt-32/e_log10f.c: Include
24408         <fix-int-fp-convert-zero.h>.
24409         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24410         * sysdeps/ieee754/flt-32/e_log2f.c: Include
24411         <fix-int-fp-convert-zero.h>.
24412         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24413         * sysdeps/ieee754/flt-32/s_erff.c: Include
24414         <fix-int-fp-convert-zero.h>.
24415         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24416         * sysdeps/ieee754/flt-32/s_logbf.c: Include
24417         <fix-int-fp-convert-zero.h>.
24418         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24419         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
24420         <fix-int-fp-convert-zero.h>.
24421         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24422         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
24423         <fix-int-fp-convert-zero.h>.
24424         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24425         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
24426         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
24427         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
24428         file.
24429         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
24430
24431 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
24432
24433         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
24434
24435 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
24436
24437         [BZ #19059]
24438         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
24439         overflowing computation.
24440         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
24441         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
24442         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
24443         Likewise.
24444         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
24445         Likewise.
24446         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
24447         Likewise.
24448         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
24449         Likewise.
24450         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
24451         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
24452         Likewise.
24453         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
24454         Likewise.
24455         * math/libm-test.inc (nexttoward_test_data): Add more tests.
24456
24457         * nss/rewrite_field.c (__nss_rewrite_field): Use
24458         internal_function.
24459         * nss/valid_field.c (__nss_valid_field): Likewise.
24460         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
24461
24462 2015-10-02  Florian Weimer  <fweimer@redhat.com>
24463
24464         [BZ #18724]
24465         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
24466         (__nss_invalid_field_characters, __nss_valid_field)
24467         (__nss_valid_list_field, __nss_rewrite_field): Declare.
24468         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
24469         tst-field.c: New file.
24470         * nss/Makefile (routines): Add valid_field, rewrite_field.
24471         (tests-static): Define unconditionally.
24472         (tests): Include tests-static.
24473         [build-static-nss] (tests-static): Use append.
24474         [build-static-nss] (tests): Remove modification.
24475         * nss/getent.c (print_group): Call putgrent.  Report error.
24476         (print_gshadow): Call putsgent.  Report error.
24477         (print_passwd): Call putpwent.  Report error.
24478         (print_shadow): Call putspent.  Report error.
24479         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
24480         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
24481         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
24482         name, password, directory, shell fields for valid syntax.  Rewrite
24483         GECOS field to match syntax.
24484         * pwd/Makefile (tests): Add tst-putpwent.
24485         * pwd/tst-putpwent.c: New file.
24486         * grp/putgrent.c (putgrent): Convert to ISO function definition.
24487         Check grName, grpasswd, gr_mem fields for valid syntax.
24488         Change loop variable i to size_t.
24489         * grp/Makefile (tests): Add tst-putgrent.
24490         * grp/tst-putgrent.c: New file.
24491         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
24492         valid syntax.
24493         * shadow/Makefile (tests): Add tst-putspent.
24494         * shadow/tst-putspent.c: New file.
24495         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
24496         sg_mem fields for valid syntax.
24497         * gshadow/Makefile (tests): Add tst-putsgent.
24498         * gshadow/tst-putsgent.c: New file.
24499
24500 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
24501
24502         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
24503         assembly instructions.
24504
24505 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
24506
24507         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
24508         prefix from operands.
24509
24510 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
24511
24512         [BZ #16347]
24513         [BZ #19046]
24514         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
24515         <libc-internal.h>.
24516         (MAXLGM): Do not use diagnostic control macros.
24517         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
24518         threshold for ldbl-128ibm.
24519         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
24520         instead of multiplying by log then subtracting.
24521         * math/auto-libm-test-in: Add more tests of lgamma.
24522         * math/auto-libm-test-out: Regenerated.
24523
24524         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
24525         (TYPE_HEX_DIG): Likewise.
24526         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
24527         precisions when printing floating-point numbers.
24528         (check_float_internal): Likewise.
24529
24530 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
24531
24532         [BZ #16620]
24533         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
24534         of log (10) rounded downward to 48 bits.
24535         (log10_low): Use corresponding low part of log (10).
24536
24537         [BZ #19032]
24538         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
24539         compute result as (x - x) / (x - x) not as 0 / 0.
24540         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
24541         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
24542
24543         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
24544         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
24545         and expm1.
24546         * math/auto-libm-test-out: Regenerated.
24547         * math/libm-test.inc (acos_test_data): Add more tests.
24548         (asin_test_data): Likewise.
24549         (asinh_test_data): Likewise.
24550         (atan_test_data): Likewise.
24551         (atanh_test_data): Likewise.
24552         (atan2_test_data): Likewise.
24553         (cbrt_test_data): Likewise.
24554         (ceil_test_data): Likewise.
24555         (copysign_test_data): Likewise.
24556         (cos_test_data): Likewise.
24557         (cosh_test_data): Likewise.
24558         (erf_test_data): Likewise.
24559         (erfc_test_data): Likewise.
24560         (exp_test_data): Likewise.
24561         (exp10_test_data): Likewise.
24562         (exp2_test_data): Likewise.
24563         (expm1_test_data): Likewise.
24564         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24565
24566 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
24567
24568         [BZ #19006]
24569         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
24570         to ...
24571         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
24572         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
24573         to ...
24574         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
24575         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
24576         to ...
24577         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
24578         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
24579         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
24580         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
24581         to ...
24582         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
24583         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
24584         Moved to ...
24585         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
24586         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
24587         Moved to ...
24588         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
24589         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
24590         to ...
24591         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
24592         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
24593         Moved to ...
24594         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
24595         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
24596         to ...
24597         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
24598         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
24599         Removed.
24600         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
24601         Likewise.
24602         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
24603         Likewise.
24604         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
24605         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
24606         Likewise.
24607         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
24608         Likewise.
24609         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
24610         Likewise.
24611         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
24612         Likewise.
24613         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
24614         Likewise.
24615         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
24616         Likewise.
24617         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
24618         Likewise.
24619         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
24620         Likewise.
24621         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
24622         Likewise.
24623         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
24624         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
24625         Likewise.
24626         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
24627         Likewise.
24628         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
24629         Likewise.
24630         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
24631         Likewise.
24632         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
24633         Likewise.
24634         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
24635         Replace ../i486/pthread_cond_timedwait.S with
24636         ../pthread_cond_timedwait.S.
24637
24638 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
24639
24640         * math/libm-test.inc (acos_test_data): Refine expectations for
24641         errno and "inexact" exceptions.
24642         (acosh_test_data): Likewise.
24643         (asin_test_data): Likewise.
24644         (asinh_test_data): Likewise.
24645         (atan_test_data): Likewise.
24646         (atanh_test_data): Likewise.
24647         (atan2_test_data): Likewise.
24648         (cbrt_test_data): Likewise.
24649         (ceil_test_data): Likewise.
24650         (copysign_test_data): Likewise.
24651         (cosh_test_data): Likewise.
24652         (erf_test_data): Likewise.
24653         (erfc_test_data): Likewise.
24654         (exp_test_data): Likewise.
24655         (exp10_test_data): Likewise.
24656         (exp2_test_data): Likewise.
24657         (expm1_test_data): Likewise.
24658         (fabs_test_data): Likewise.
24659         (floor_test_data): Likewise.
24660         (fma_test_data): Likewise.
24661         (fmax_test_data): Likewise.
24662         (fmin_test_data): Likewise.
24663         (fmod_test_data): Likewise.
24664         (fpclassify_test_data): Likewise.
24665         (frexp_test_data): Likewise.
24666         (hypot_test_data): Likewise.
24667         (ilogb_test_data): Likewise.
24668         (isgreater_test_data): Likewise.
24669         (isgreaterequal_test_data): Likewise.
24670         (isinf_test_data): Likewise.
24671         (isless_test_data): Likewise.
24672         (islessequal_test_data): Likewise.
24673         (islessgreater_test_data): Likewise.
24674         (isnan_test_data): Likewise.
24675         (isnormal_test_data): Likewise.
24676         (issignaling_test_data): Likewise.
24677         (isunordered_test_data): Likewise.
24678         (j0_test_data): Likewise.
24679         (j1_test_data): Likewise.
24680         (jn_test_data): Likewise.
24681         (lgamma_test_data): Likewise.
24682         (lrint_test_data): Likewise.
24683         (llrint_test_data): Likewise.
24684         (log_test_data): Likewise.
24685         (log10_test_data): Likewise.
24686         (log1p_test_data): Likewise.
24687         (log2_test_data): Likewise.
24688         (logb_test_data): Likewise.
24689         (lround_test_data): Likewise.
24690         (llround_test_data): Likewise.
24691         (modf_test_data): Likewise.
24692         (nearbyint_test_data): Likewise.
24693         (nextafter_test_data): Likewise.
24694         (nexttoward_test_data): Likewise.
24695         (pow_test_data): Likewise.
24696         (remainder_test_data): Likewise.
24697         (remquo_test_data): Likewise.
24698         (rint_test_data): Likewise.
24699         (round_test_data): Likewise.
24700         (signbit_test_data): Likewise.
24701         (sinh_test_data): Likewise.
24702         (sqrt_test_data): Likewise.
24703         (tanh_test_data): Likewise.
24704         (tgamma_test_data): Likewise.
24705         (trunc_test_data): Likewise.
24706         (y0_test_data): Likewise.
24707         (y1_test_data): Likewise.
24708         (yn_test_data): Likewise.
24709         (significand_test_data): Likewise.
24710
24711 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
24712
24713         * manual/filesys.texi (Storage Allocation): Document that
24714         posix_fallocate emulation fails when fd is open with O_WRONLY.
24715
24716 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
24717
24718         [BZ #19016]
24719         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
24720         allow more cases with X^2 + Y^2 >= 0.5.
24721         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
24722         normal element in sum instead of special-casing based on values of
24723         arguments.
24724         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
24725         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
24726         -1 as normal element in sum instead of special-casing based on
24727         values of arguments.
24728         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
24729         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
24730         (__x2y2m1): Update comment.
24731         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
24732         as normal element in sum instead of special-casing based on values
24733         of arguments.
24734         * math/s_clog.c (__clog): Handle more cases using log1p without
24735         hypot.
24736         * math/s_clog10.c (__clog10): Likewise.
24737         * math/s_clog10f.c (__clog10f): Likewise.
24738         * math/s_clog10l.c (__clog10l): Likewise.
24739         * math/s_clogf.c (__clogf): Likewise.
24740         * math/s_clogl.c (__clogl): Likewise.
24741         * math/auto-libm-test-in: Add more tests of clog and clog10.
24742         * math/auto-libm-test-out: Regenerated.
24743         * sysdeps/i386/fpu/libm-test-ulps: Update.
24744         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24745
24746 2015-09-28  Martin Sebor  <msebor@redhat.com>
24747
24748         [BZ #18969]
24749         * string/Makefile (LOCALES): Define.
24750         (gen-locales.mk): Include.
24751         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
24752         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
24753         * string/tst-strxfrm2.c (do_test): Print the name of the locale
24754         on setlocale failure.
24755
24756 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
24757
24758         [BZ #18985]
24759         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
24760         (__strftime_internal): Likewise.
24761         * time/tst-strftime.c (do_bz18985): New test.
24762         (do_test): Call it.
24763
24764 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
24765
24766         [BZ #18956]
24767         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
24768         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
24769         extracting high part.
24770         * math/auto-libm-test-in: Add another test of pow.
24771         * math/auto-libm-test-out: Regenerated.
24772         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24773
24774 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
24775
24776         [BZ #18825]
24777         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
24778         New macro.
24779         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
24780         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
24781         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
24782         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
24783         DBL_NARROW_EVAL, reloading the PIC register as needed.
24784         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
24785         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
24786         FLT_NARROW_EVAL.  Use separate return path for case when first
24787         argument is NaN.
24788         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
24789         DEFINE_LDBL_MIN.
24790         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
24791         PIC register.
24792         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
24793         math_check_force_underflow_nonneg.
24794         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
24795         underflow for subnormal result.
24796         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
24797         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
24798         math_check_force_underflow_nonneg.
24799         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
24800         math_check_force_underflow.
24801         * sysdeps/x86_64/fpu/x86_64-math-asm.h
24802         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
24803         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
24804         DEFINE_LDBL_MIN.
24805         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
24806         * math/auto-libm-test-in: Add more tests of pow.
24807         * math/auto-libm-test-out: Regenerated.
24808
24809 2015-09-25  Florian Weimer  <fweimer@redhat.com>
24810
24811         * nss/bug17079.c (init_test_items): Add diagnostic for
24812         inconsistent entries.
24813         (test_buffer_size): Skip inconsistent entries.
24814
24815 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
24816
24817         [BZ #13304]
24818         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
24819         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
24820         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
24821
24822         [BZ #13304]
24823         * sysdeps/microblaze/s_fma.c: New file.
24824         * sysdeps/microblaze/s_fmaf.c: Likewise.
24825         * sysdeps/microblaze/sfp-machine.h: Likewise.
24826
24827 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
24828
24829         [BZ #17250]
24830         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
24831         member.
24832
24833 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
24834
24835         [BZ #18803]
24836         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
24837         (MO): New macro.
24838         (__ieee754_hypot) [PIC]: Load PIC register.
24839         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
24840         DBL_NARROW_EVAL.
24841         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
24842         math_check_force_underflow_nonneg in case where result might be
24843         tiny.
24844         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
24845         Likewise.
24846         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
24847         Likewise.
24848         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
24849         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
24850         * math/auto-libm-test-in: Add more tests of hypot.
24851         * math/auto-libm-test-out: Regenerated.
24852
24853 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
24854
24855         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
24856
24857 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
24858
24859         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
24860         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
24861         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
24862         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
24863         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
24864         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
24865         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
24866
24867         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
24868         LOAD_PIC_REG.
24869
24870         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
24871         (FLT_CHECK_FORCE_UFLOW): Likewise.
24872         (DBL_CHECK_FORCE_UFLOW): Likewise.
24873         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
24874         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
24875         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
24876         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
24877         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
24878         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
24879         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
24880         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
24881         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
24882         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24883         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
24884         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
24885         (flt_min): Replace with use of DEFINE_FLT_MIN.
24886         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
24887         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
24888         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24889         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
24890         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
24891         (flt_min): Replace with use of DEFINE_FLT_MIN.
24892         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
24893         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
24894         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24895         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
24896         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
24897         (flt_min): Replace with use of DEFINE_FLT_MIN.
24898         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
24899         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
24900         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
24901         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
24902         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
24903         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
24904         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
24905         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
24906         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24907         (__atan): Use DBL_CHECK_FORCE_UFLOW.
24908         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
24909         (flt_min): Replace with use of DEFINE_FLT_MIN.
24910         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
24911         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
24912         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24913         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
24914         main computation.
24915         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
24916         (flt_min): Replace with use of DEFINE_FLT_MIN.
24917         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
24918         main computation.
24919         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
24920         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24921         (MO): New macro.
24922         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
24923         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
24924         (flt_min): Replace with use of DEFINE_FLT_MIN.
24925         (MO): New macro.
24926         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
24927         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
24928         (__log1pl): Use MO.
24929
24930         [BZ #19003]
24931         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
24932         $(config-cflags-nofma).
24933
24934 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24935
24936         * sysdeps/aarch64/libm-test-ulps: Regenerated.
24937
24938 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
24939
24940         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
24941         (TWO127): Likewise.
24942
24943         * sysdeps/generic/math_private.h (fabs_tg): New macro.
24944         (min_of_type): Likewise.
24945         (math_check_force_underflow): Likewise.
24946         (math_check_force_underflow_nonneg): Likewise.
24947         (math_check_force_underflow_complex): Likewise.
24948         * math/e_exp2l.c (__ieee754_exp2l): Use
24949         math_check_force_underflow_nonneg.
24950         * math/k_casinh.c (__kernel_casinh): Likewise.
24951         * math/k_casinhf.c (__kernel_casinhf): Likewise.
24952         * math/k_casinhl.c (__kernel_casinhl): Likewise.
24953         * math/s_catan.c (__catan): Use
24954         math_check_force_underflow_complex.
24955         * math/s_catanf.c (__catanf): Likewise.
24956         * math/s_catanh.c (__catanh): Likewise.
24957         * math/s_catanhf.c (__catanhf): Likewise.
24958         * math/s_catanhl.c (__catanhl): Likewise.
24959         * math/s_catanl.c (__catanl): Likewise.
24960         * math/s_ccosh.c (__ccosh): Likewise.
24961         * math/s_ccoshf.c (__ccoshf): Likewise.
24962         * math/s_ccoshl.c (__ccoshl): Likewise.
24963         * math/s_cexp.c (__cexp): Likewise.
24964         * math/s_cexpf.c (__cexpf): Likewise.
24965         * math/s_cexpl.c (__cexpl): Likewise.
24966         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
24967         * math/s_clog10.c (__clog10): Likewise.
24968         * math/s_clog10f.c (__clog10f): Likewise.
24969         * math/s_clog10l.c (__clog10l): Likewise.
24970         * math/s_clogf.c (__clogf): Likewise.
24971         * math/s_clogl.c (__clogl): Likewise.
24972         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
24973         * math/s_csinf.c (__csinf): Likewise.
24974         * math/s_csinh.c (__csinh): Likewise.
24975         * math/s_csinhf.c (__csinhf): Likewise.
24976         * math/s_csinhl.c (__csinhl): Likewise.
24977         * math/s_csinl.c (__csinl): Likewise.
24978         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
24979         * math/s_csqrtf.c (__csqrtf): Likewise.
24980         * math/s_csqrtl.c (__csqrtl): Likewise.
24981         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
24982         * math/s_ctanf.c (__ctanf): Likewise.
24983         * math/s_ctanh.c (__ctanh): Likewise.
24984         * math/s_ctanhf.c (__ctanhf): Likewise.
24985         * math/s_ctanhl.c (__ctanhl): Likewise.
24986         * math/s_ctanl.c (__ctanl): Likewise.
24987         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
24988         instead of volatile.
24989         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
24990         math_check_force_underflow.
24991         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
24992         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
24993         volatile when forcing underflow.
24994         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
24995         math_check_force_underflow_nonneg.
24996         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
24997         Likewise.
24998         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
24999         math_check_force_underflow.
25000         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
25001         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
25002         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
25003         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
25004         math_check_force_underflow_nonneg.
25005         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
25006         math_check_force_underflow.
25007         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
25008         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
25009         instead of volatile.
25010         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
25011         math_check_force_underflow.
25012         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
25013         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
25014         math_check_force_underflow_nonneg.
25015         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
25016         math_check_force_underflow.
25017         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
25018         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
25019         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
25020         math_check_force_underflow_nonneg.
25021         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
25022         Likewise.
25023         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
25024         math_check_force_underflow.
25025         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
25026         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
25027         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
25028         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
25029         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
25030         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
25031         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
25032         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
25033         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
25034         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
25035         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
25036         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
25037         Likewise.
25038         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
25039         math_check_force_underflow_nonneg.
25040         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
25041         Likewise.
25042         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
25043         math_check_force_underflow.
25044         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
25045         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
25046         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
25047         Likewise.
25048         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
25049         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
25050         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
25051         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
25052         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
25053         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
25054         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
25055         instead of volatile.
25056         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
25057         math_check_force_underflow.
25058         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
25059         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
25060         math_check_force_underflow.
25061         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
25062         Likewise.
25063         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
25064         Use math_check_force_underflow_nonneg.
25065         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
25066         math_check_force_underflow.
25067         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
25068         Likewise.
25069         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
25070         Likewise.
25071         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
25072         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
25073         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
25074         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
25075         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
25076         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
25077         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
25078         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
25079         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
25080         math_check_force_underflow_nonneg.
25081         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
25082         math_check_force_underflow.
25083         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
25084         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
25085         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
25086         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
25087         math_check_force_underflow_nonneg.
25088         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
25089         math_check_force_underflow.
25090         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
25091         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
25092         instead of volatile.
25093         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
25094         math_check_force_underflow.
25095
25096         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
25097         * stdlib/strtod_l.c: Include <math_private.h>.
25098         (overflow_value): Use math_narrow_eval.
25099         (underflow_value): Likewise.
25100         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
25101         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
25102         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
25103         (__ieee754_gamma_r): Likewise.
25104         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
25105         Likewise.
25106         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
25107         Likewise.
25108         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
25109         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
25110         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
25111         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
25112         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
25113         (__ieee754_gammaf_r): Likewise.
25114         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
25115         Likewise.
25116         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
25117         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
25118         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
25119         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
25120         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
25121         volatile.
25122         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
25123         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
25124         math_narrow_eval.
25125         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
25126         Likewise.
25127         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
25128         Likewise.
25129         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
25130         Likewise.
25131         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
25132         volatile.
25133         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
25134         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
25135         math_narrow_eval.
25136         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
25137         Likewise.
25138         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
25139         Likewise.
25140
25141 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
25142
25143         * nptl/Versions: Remove ignored symbols.
25144
25145 2015-09-22  Florian Weimer  <fweimer@redhat.com>
25146
25147         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
25148         * nss/Makefile (tests): Update.
25149
25150 2015-09-22  Florian Weimer  <fweimer@redhat.com>
25151
25152         * nss/bug18287.c: New file.
25153         * nss/Makefile (tests): Add bug18287.
25154
25155 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25156
25157         * mach/Versions (__mach_host_self_): Add symbol.
25158
25159 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25160
25161         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
25162         vm_page_size.
25163
25164 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25165
25166         Really fix sysdeps/i386/fpu/s_scalbn.S build
25167
25168         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
25169         (libc: GLIBC_2_22): Remove unused version set.
25170
25171 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
25172
25173         * config.make.in (enable-timezone-tools): New variable.
25174         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
25175         (enable_timezone_tools): Export to generated files.
25176         * configure: Regenerate.
25177         * INSTALL: Regenerate.
25178         * manual/install.texi (--disable-timezone-tools): Document new flag.
25179         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
25180         ifeq ($(enable-timezone-tools),yes) check.
25181
25182 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
25183
25184         * timezone/Makefile: Revert previous change.
25185
25186         [BZ #18980]
25187         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
25188         (DEFINE_DBL_MIN): Likewise.
25189         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
25190         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
25191         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
25192         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
25193         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
25194         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25195         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
25196         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
25197         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
25198         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25199         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
25200         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
25201         (flt_min): Replace with use of DEFINE_FLT_MIN.
25202         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
25203         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
25204         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25205         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
25206         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
25207         (flt_min): Replace with use of DEFINE_FLT_MIN.
25208         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
25209         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
25210         (flt_min): Replace with use of DEFINE_FLT_MIN.
25211         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
25212         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
25213         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
25214         (__ieee754_hypot): Use DBL_NARROW_EVAL.
25215         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
25216         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
25217         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
25218         (__ieee754_pow): Use DBL_NARROW_EVAL.
25219         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
25220         (__ieee754_powf): Use FLT_NARROW_EVAL.
25221         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
25222         (__ieee754_expf_sse2): Convert double-precision result to single
25223         precision.
25224         * sysdeps/i386/fpu/libm-test-ulps: Update.
25225
25226 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25227
25228         * timezone/Makefile: Ignore unused variable errors due to private.h
25229         (time_t_min) and (time_t_max).
25230         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
25231         Likewise.
25232
25233 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
25234
25235         [BZ #18981]
25236         * sysdeps/i386/fpu/i386-math-asm.h: New file.
25237         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
25238         (__ieee754_scalb): Use DBL_NARROW_EVAL.
25239         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
25240         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
25241         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
25242         (__scalbn): Use DBL_NARROW_EVAL.
25243         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
25244         (__scalbnf): Use FLT_NARROW_EVAL.
25245
25246 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25247
25248         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
25249         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
25250         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
25251         * stdio-common/printf_fp.c (___printf_fp):
25252         Use signbit to get the sign. Use isinf macro to allow inlining.
25253         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
25254         * stdio-common/printf_size.c (__printf_size): Likewise.
25255
25256 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
25257
25258         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
25259
25260 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
25261
25262         [BZ #18980]
25263         * sysdeps/generic/math_private.h: Include <float.h>.
25264         (math_narrow_eval): New macro.
25265         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
25266         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
25267         math_narrow_eval on overflowing return value.
25268         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
25269         Likewise.
25270         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
25271         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
25272         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
25273         Likewise.
25274         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
25275
25276 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25277
25278         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
25279         * math/Makefile: Remove isinf_ns.c.
25280         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
25281         * math/multc3.c (__multc3): Likewise.
25282         * math/s_casin.c (__casin): Likewise.
25283         * math/s_casinf.c (__casinf): Likewise.
25284         * math/s_casinl.c (__casinl): Likewise.
25285         * math/s_cproj.c (__cproj): Likewise.
25286         * math/s_cprojf.c (__cprojf): Likewise.
25287         * math/s_cprojl.c (__cprofl): Likewise.
25288         * math/s_ctan.c (__ctan): Likewise.
25289         * math/s_ctanf.c (__ctanf): Likewise.
25290         * math/s_ctanh.c (__ctanh): Likewise.
25291         * math/s_ctanhf.c (__ctanhf): Likewise.
25292         * math/s_ctanhl.c (__ctanhl): Likewise.
25293         * math/s_ctanl.c (__ctanl): Likewise.
25294         * math/w_fmod.c (__fmod): Likewise.
25295         * math/w_fmodf.c (__fmodf): Likewise.
25296         * math/w_fmodl.c (_fmodl): Likewise.
25297         * math/w_remainder.c (__remainder): Likewise.
25298         * math/w_remainderf.c (__remainderf): Likewise.
25299         * math/w_remainderl.c (__remainderl): Likewise.
25300         * math/w_scalb.c (__scalb): Likewise.
25301         * math/w_scalbf.c (__scalbf): Likewise.
25302         * math/w_scalbl.c (__scalbl): Likewise.
25303         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
25304         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
25305         with isinf.
25306         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
25307         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
25308         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
25309         __isinf_nsf with isinf.
25310         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
25311         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
25312         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
25313         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
25314         with isinf.
25315         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
25316         __isinf_nsl with isinf.
25317         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
25318         with isinf.
25319         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
25320         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
25321         __isinf_nsl with isinf.
25322         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
25323         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
25324         with isinf.
25325
25326 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25327
25328         * resolv/base64.c (rcsid): Remove unused static.
25329         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
25330         static.  (tqpi1): Likewise.
25331         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
25332         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
25333         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
25334         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
25335         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
25336         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
25337         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
25338         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
25339         Likewise.
25340
25341 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
25342
25343         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
25344         <nptl/pthreadP.h>.
25345         (_longjmp_unwind): Use __libc_ptf_call.
25346         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
25347
25348 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
25349
25350         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
25351         * sysdeps/arm/__longjmp.S: Likewise.
25352
25353 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25354
25355         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
25356         Use __builtin_signbit.
25357         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
25358         Use __builtin_signbitf.
25359         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
25360         Use __builtin_signbitl.
25361         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
25362         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
25363
25364 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25365
25366         [BZ #15367]
25367         [BZ #17441]
25368
25369         * math/Makefile: Build test-snan.c with -fsignaling-nans.
25370         * math/math.h (fpclassify): Use __builtin_fpclassify when
25371         available.  (signbit): Use __builtin_signbit(f/l).
25372         (isfinite): Use__builtin_isfinite.  (isnormal): Use
25373         __builtin_isnormal.  (isnan): Use __builtin_isnan.
25374         (isinf): Use __builtin_isinf_sign.
25375
25376 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25377
25378         * benchtests/Makefile: Add bench-math-inlines, link with libm.
25379         * benchtests/bench-math-inlines.c: New benchmark.
25380         * benchtests/bench-util.h: New file.
25381         * benchtests/bench-util.c: New file.
25382         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
25383
25384 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
25385
25386         * elf/tst-dlmopen1.c: Define TEST_SO.
25387         (do_test): Use TEST_SO.
25388
25389         * elf/dl-load.c: Include libc-internal.h.
25390         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
25391
25392 2015-09-18  Vincent Bernat  <vincent@bernat.im>
25393
25394         [BZ #17887]
25395         * time/strptime_l.c (__strptime_internal): Make %z accept
25396         [+-]HH:MM time zones.
25397
25398 2015-09-18  Vincent Bernat  <vincent@bernat.im>
25399
25400         [BZ #17886]
25401         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
25402         valid time zone.
25403
25404 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
25405
25406         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
25407         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
25408         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
25409         (__ASSUME_FDATASYNC): Delete.
25410
25411 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
25412
25413         * conform/linknamespace.pl: Require weak undefined symbols to be
25414         in the standard namespace.
25415         (%strong_syms): Rename to %seen_syms.
25416         (%strong_seen): Rename to %seen_where.
25417
25418 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
25419
25420         [BZ #18970]
25421         * misc/error.c (error): Replace pthread_setcancelstate with
25422         __pthread_setcancelstate.
25423         (error_at_line): Likewise.
25424         * posix/wordexp.c (parse_comm): Likewise.
25425         * stdlib/fmtmsg.c (fmtmsg): Likewise.
25426         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
25427         (__pthread_setcancelstate): This.
25428         (pthread_setcancelstate): Add an alias.
25429         * nptl/nptl-init.c (pthread_functions): Replace
25430         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
25431         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
25432         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
25433         hidden_proto.
25434         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
25435         it with hidden_def.
25436         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
25437         (pthread_setcancelstate): Renamed to ...
25438         (__pthread_setcancelstate): This.
25439         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
25440         __libc_ptf_call with __pthread_setcancelstate.
25441
25442 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
25443             Andreas Schwab  <schwab@suse.de>
25444
25445         [BZ #17118]
25446         * math/s_ctan.c (__ctan): Determine sign of zero real part of
25447         result when imaginary part of argument is infinite using sine and
25448         cosine.
25449         * math/s_ctanf.c (__ctanf): Likewise.
25450         * math/s_ctanl.c (__ctanl): Likewise.
25451         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
25452         of result when real part of argument is infinite using sine and
25453         cosine.
25454         * math/s_ctanhf.c (__ctanhf): Likewise.
25455         * math/s_ctanhl.c (__ctanhl): Likewise.
25456         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
25457         (ctanh_test_data): Add more tests of ctanh.
25458
25459 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
25460
25461         [BZ #15384]
25462         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
25463         bit-mask as in subtraction.
25464         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
25465         Likewise.
25466         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
25467         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
25468         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
25469
25470         [BZ #18951]
25471         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
25472         underflow exception for small results.
25473         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
25474         Likewise.
25475         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
25476         Likewise.
25477         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
25478         Likewise.
25479         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
25480         Likewise.
25481         * math/auto-libm-test-in: Add more tests of tgamma.
25482         * math/auto-libm-test-out: Regenerated.
25483
25484 2015-09-17  Andreas Schwab  <schwab@suse.de>
25485
25486         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
25487
25488 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
25489
25490         [BZ #18977]
25491         * math/bits/mathcalls.h
25492         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
25493         not declare.
25494         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
25495         Likewise.
25496         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
25497         Likewise.
25498         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
25499         Likewise.
25500         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
25501         Likewise.
25502         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
25503         Likewise.
25504         * conform/data/math.h-data
25505         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
25506         function.
25507         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
25508         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
25509         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
25510         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
25511         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
25512         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
25513         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
25514         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
25515         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
25516         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
25517         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
25518
25519         [BZ #6803]
25520         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
25521         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
25522         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
25523         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
25524         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
25525         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
25526         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
25527         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
25528         [NO_LONG_DOUBLE] (scalbnl): Likewise.
25529         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
25530         Likewise.
25531         [NO_LONG_DOUBLE] (scalbnl): Likewise.
25532         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
25533         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
25534         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
25535         long_double_symbol calls.
25536         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
25537         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
25538         strong alias of __ldexpl.
25539         (scalbnl): Define using long_double_symbol.
25540         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
25541         Remove alias.
25542         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
25543         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
25544         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
25545         (scalbln_test_data): Add more errno expectations.
25546
25547 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
25548
25549         Cache the host port like we cache the task port.  This way we do not
25550         need to call the kernel just to get the port.  Furthermore, we no
25551         longer increase the reference count on every invocation of
25552         `mach_host_self'.
25553
25554         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
25555         Protect declarations against the macro expansion.
25556         * mach/mach_init.c (__mach_host_self_): New variable.
25557         (mach_init): Initialize `__mach_host_self_'.
25558         * mach/mach_init.h (__mach_host_self_): New declaration.
25559         (__mach_host_self, mach_host_self): New macros.
25560         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
25561         Release reference.
25562
25563 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
25564
25565         [BZ #4404]
25566         * po/de.po: Update from Translation Project.
25567
25568         [BZ #16415]
25569         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
25570         (__expm1l): Remove code to handle positive infinity and overflow.
25571         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
25572         variable.
25573         (__expm1l): Remove code to handle positive infinity and overflow.
25574
25575 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
25576             Paul Pluzhnikov  <ppluzhnikov@google.com>
25577
25578         [BZ #18872]
25579         * stdio-common/Makefile (tst-printf-bz18872): New test.
25580         (tst-printf-bz18872-mem.out): Likewise.
25581         * stdio-common/tst-printf-bz18872.sh: Generate new test.
25582         * stdio-common/vfprintf.c: Fix memory leaks.
25583
25584 2015-09-16  Andreas Schwab  <schwab@suse.de>
25585
25586         [BZ #17244]
25587         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
25588         Remove extra va_start/va_end calls.
25589
25590         [BZ #17243]
25591         * posix/execl.c (execl): Add missing va_end.
25592         * posix/execle.c (execle): Likewise.
25593         * posix/execlp.c (execlp): Likewise.
25594
25595 2015-09-15  Roland McGrath  <roland@hack.frob.com>
25596
25597         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
25598         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
25599
25600 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
25601
25602         [BZ #18967]
25603         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
25604         undefine around includes of <bits/mathcalls.h>.
25605         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
25606         not declare function.
25607         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
25608         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
25609         (scalb): Likewise.
25610         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
25611         not define macro.
25612         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
25613         variable.
25614         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
25615         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
25616         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
25617
25618         [BZ #18857]
25619         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
25620         return non-finite argument without doing ordered comparisons on
25621         it.
25622
25623         [BZ #16296]
25624         * math/fenv.h (fegetround): Use __attribute_pure__.
25625         * include/fenv.h (__fegetround): Likewise.
25626
25627         [BZ #18595]
25628         * math/s_ctan.c (__ctan): Force underflow exception for results
25629         whose real or imaginary part has small absolute value.
25630         * math/s_ctanf.c (__ctanf): Likewise.
25631         * math/s_ctanh.c (__ctanh): Likewise.
25632         * math/s_ctanhf.c (__ctanhf): Likewise.
25633         * math/s_ctanhl.c (__ctanhl): Likewise.
25634         * math/s_ctanl.c (__ctanl): Likewise.
25635         * math/auto-libm-test-in: Do not allow missing underflow for ctan
25636         and ctanh.  Add more tests of ctan and ctanh.
25637
25638         [BZ #15918]
25639         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
25640         handling of cases where one argument is an infinity.
25641
25642         [BZ #18875]
25643         [BZ #18966]
25644         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
25645         (MO): New macro.
25646         (__ieee754_exp10): For small results, force underflow exception
25647         and remove excess range and precision from return value.
25648         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
25649         (MO): New macro.
25650         (__ieee754_exp10f): For small results, force underflow exception
25651         and remove excess range and precision from return value.
25652         * math/auto-libm-test-in: Add more tests of exp10.
25653         * math/auto-libm-test-out: Regenerated.
25654
25655 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
25656
25657         [BZ #18875]
25658         [BZ #18961]
25659         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
25660         (MO): New macro.
25661         (__ieee754_exp): For small results, force underflow exception and
25662         remove excess range and precision from return value.
25663         (__exp_finite): Likewise.
25664         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
25665         (MO): New macro.
25666         (__ieee754_expf): For small results, force underflow exception and
25667         remove excess range and precision from return value.
25668         (__expf_finite): Likewise.
25669         * math/auto-libm-test-in: Add more tests of exp.
25670         * math/auto-libm-test-out: Regenerated.
25671
25672         [BZ #16521]
25673         [BZ #18875]
25674         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
25675         small results.
25676         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
25677         (MO): New macro.
25678         (__ieee754_exp2): For small results, force underflow exception and
25679         remove excess range and precision from return value.
25680         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
25681         (MO): New macro.
25682         (__ieee754_exp2f): For small results, force underflow exception
25683         and remove excess range and precision from return value.
25684         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
25685         (MO): New macro.
25686         (__ieee754_exp2l): Force underflow exception for small results.
25687         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
25688         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
25689         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
25690         (MO): New macro.
25691         (__ieee754_exp2l): Force underflow exception for small results.
25692         * math/auto-libm-test-in: Add more tests or exp2.
25693         * math/auto-libm-test-out: Regenerated.
25694
25695 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
25696
25697         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
25698
25699         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
25700         /dev/null.
25701
25702 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25703
25704         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
25705         io fs process)): Drop spurious backslash.
25706
25707 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
25708
25709         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
25710         Use sysinfo system call instead of parsing /proc/meminfo.
25711         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
25712         Likewise.
25713
25714 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
25715
25716         [BZ #16985]
25717         * programs/localedef.c (main): Display argv[remaining] when
25718         output_path is NULL.
25719
25720 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
25721
25722         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
25723         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
25724         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
25725         tanh.
25726         * math/auto-libm-test-out: Regenerated.
25727         * sysdeps/i386/fpu/libm-test-ulps: Update.
25728         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
25729         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
25730         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25731
25732 2015-09-11  Roland McGrath  <roland@hack.frob.com>
25733
25734         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
25735         Use 'override' keyword to freeze the value here, preventing
25736         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
25737
25738 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
25739
25740         [BZ #14912]
25741         * sysdeps/aarch64/bits/atomic.h: Move to ...
25742         * sysdeps/aarch64/atomic-machine.h: ...here.
25743         (_AARCH64_BITS_ATOMIC_H): Rename macro to
25744         _AARCH64_ATOMIC_MACHINE_H.
25745         * sysdeps/alpha/bits/atomic.h: Move to ...
25746         * sysdeps/alpha/atomic-machine.h: ...here.
25747         * sysdeps/arm/bits/atomic.h: Move to ...
25748         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
25749         * bits/atomic.h: Move to ...
25750         * sysdeps/generic/atomic-machine.h: ...here.
25751         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25752         * sysdeps/i386/bits/atomic.h: Move to ...
25753         * sysdeps/i386/atomic-machine.h: ...here.
25754         * sysdeps/ia64/bits/atomic.h: Move to ...
25755         * sysdeps/ia64/atomic-machine.h: ...here.
25756         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
25757         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
25758         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25759         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
25760         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
25761         * sysdeps/microblaze/bits/atomic.h: Move to ...
25762         * sysdeps/microblaze/atomic-machine.h: ...here.
25763         * sysdeps/mips/bits/atomic.h: Move to ...
25764         * sysdeps/mips/atomic-machine.h: ...here.
25765         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
25766         * sysdeps/powerpc/bits/atomic.h: Move to ...
25767         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
25768         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
25769         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
25770         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
25771         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
25772         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
25773         <atomic-machine.h> instead of <bits/atomic.h>.
25774         * sysdeps/s390/bits/atomic.h: Move to ...
25775         * sysdeps/s390/atomic-machine.h: ...here.
25776         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
25777         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
25778         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25779         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
25780         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
25781         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
25782         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
25783         * sysdeps/tile/bits/atomic.h: Move to ...
25784         * sysdeps/tile/atomic-machine.h: ...here.
25785         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
25786         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
25787         <sysdeps/tile/atomic-machine.h> instead of
25788         <sysdeps/tile/bits/atomic.h>.
25789         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25790         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
25791         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
25792         <sysdeps/tile/atomic-machine.h> instead of
25793         <sysdeps/tile/bits/atomic.h>.
25794         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25795         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
25796         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
25797         <sysdeps/arm/atomic-machine.h> instead of
25798         <sysdeps/arm/bits/atomic.h>.
25799         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
25800         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
25801         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25802         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
25803         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
25804         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25805         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
25806         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
25807         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
25808         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
25809         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
25810         * sysdeps/x86_64/bits/atomic.h: Move to ...
25811         * sysdeps/x86_64/atomic-machine.h: ...here.
25812         * include/atomic.h: Include <atomic-machine.h> instead of
25813         <bits/atomic.h>.
25814
25815         * sysdeps/mips/mips32/libm-test-ulps: Update.
25816         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
25817
25818         [BZ #18952]
25819         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
25820         not convert non-integer negative arguments to int to determine the
25821         value of signgam.
25822         * math/auto-libm-test-in: Add more tests of lgamma.
25823         * math/auto-libm-test-out: Regenerated.
25824
25825         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
25826         cosh, csqrt, erfc, expm1 and lgamma.
25827         * math/auto-libm-test-out: Regenerated.
25828         * sysdeps/i386/fpu/libm-test-ulps: Update.
25829         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25830
25831 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
25832
25833         [BZ #2542]
25834         [BZ #2543]
25835         [BZ #2558]
25836         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
25837         __lgamma_neg for arguments from -28.0 to -2.0.
25838         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
25839         __lgamma_negf for arguments from -15.0 to -2.0.
25840         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
25841         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
25842         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
25843         Call __lgamma_negl for arguments from -33.0 to -2.0.
25844         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
25845         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
25846         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
25847         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
25848         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
25849         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
25850         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
25851         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
25852         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
25853         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
25854         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
25855         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
25856         (__lgamma_neg): Likewise.
25857         (__lgamma_negl): Likewise.
25858         (__lgamma_product): Likewise.
25859         (__lgamma_productl): Likewise.
25860         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
25861         * math/auto-libm-test-in: Add more tests of lgamma.
25862         * math/auto-libm-test-out: Regenerated.
25863         * sysdeps/i386/fpu/libm-test-ulps: Update.
25864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25865
25866 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
25867
25868         [BZ #18675]
25869         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
25870
25871 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
25872
25873         [BZ #14912]
25874         * bits/libc-lock.h: Move to ...
25875         * sysdeps/generic/libc-lock.h: ...here.
25876         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25877         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
25878         * sysdeps/mach/hurd/libc-lock.h: ...here.
25879         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25880         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
25881         * sysdeps/mach/bits/libc-lock.h: Move to ...
25882         * sysdeps/mach/libc-lock.h: ...here.
25883         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25884         * sysdeps/nptl/bits/libc-lock.h: Move to ...
25885         * sysdeps/nptl/libc-lock.h: ...here.
25886         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25887         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
25888         * sysdeps/nptl/libc-lockP.h: ...here.
25889         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
25890         * crypt/crypt_util.c: Include <libc-lock.h> instead of
25891         <bits/libc-lock.h>.
25892         * dirent/scandir-tail.c: Likewise.
25893         * dlfcn/dlerror.c: Likewise.
25894         * elf/dl-close.c: Likewise.
25895         * elf/dl-iteratephdr.c: Likewise.
25896         * elf/dl-lookup.c: Likewise.
25897         * elf/dl-open.c: Likewise.
25898         * elf/dl-support.c: Likewise.
25899         * elf/dl-writev.h: Likewise.
25900         * elf/rtld.c: Likewise.
25901         * grp/fgetgrent.c: Likewise.
25902         * gshadow/fgetsgent.c: Likewise.
25903         * gshadow/sgetsgent.c: Likewise.
25904         * iconv/gconv_conf.c: Likewise.
25905         * iconv/gconv_db.c: Likewise.
25906         * iconv/gconv_dl.c: Likewise.
25907         * iconv/gconv_int.h: Likewise.
25908         * iconv/gconv_trans.c: Likewise.
25909         * include/link.h: Likewise.
25910         * inet/getnameinfo.c: Likewise.
25911         * inet/getnetgrent.c: Likewise.
25912         * inet/getnetgrent_r.c: Likewise.
25913         * intl/bindtextdom.c: Likewise.
25914         * intl/dcigettext.c: Likewise.
25915         * intl/finddomain.c: Likewise.
25916         * intl/gettextP.h: Likewise.
25917         * intl/loadmsgcat.c: Likewise.
25918         * intl/localealias.c: Likewise.
25919         * intl/textdomain.c: Likewise.
25920         * libidn/idn-stub.c: Likewise.
25921         * libio/libioP.h: Likewise.
25922         * locale/duplocale.c: Likewise.
25923         * locale/freelocale.c: Likewise.
25924         * locale/newlocale.c: Likewise.
25925         * locale/setlocale.c: Likewise.
25926         * login/getutent_r.c: Likewise.
25927         * login/getutid_r.c: Likewise.
25928         * login/getutline_r.c: Likewise.
25929         * login/utmp-private.h: Likewise.
25930         * login/utmpname.c: Likewise.
25931         * malloc/mtrace.c: Likewise.
25932         * misc/efgcvt.c: Likewise.
25933         * misc/error.c: Likewise.
25934         * misc/fstab.c: Likewise.
25935         * misc/getpass.c: Likewise.
25936         * misc/mntent.c: Likewise.
25937         * misc/syslog.c: Likewise.
25938         * nis/nis_call.c: Likewise.
25939         * nis/nis_callback.c: Likewise.
25940         * nis/nss-default.c: Likewise.
25941         * nis/nss_compat/compat-grp.c: Likewise.
25942         * nis/nss_compat/compat-initgroups.c: Likewise.
25943         * nis/nss_compat/compat-pwd.c: Likewise.
25944         * nis/nss_compat/compat-spwd.c: Likewise.
25945         * nis/nss_nis/nis-alias.c: Likewise.
25946         * nis/nss_nis/nis-ethers.c: Likewise.
25947         * nis/nss_nis/nis-grp.c: Likewise.
25948         * nis/nss_nis/nis-hosts.c: Likewise.
25949         * nis/nss_nis/nis-network.c: Likewise.
25950         * nis/nss_nis/nis-proto.c: Likewise.
25951         * nis/nss_nis/nis-pwd.c: Likewise.
25952         * nis/nss_nis/nis-rpc.c: Likewise.
25953         * nis/nss_nis/nis-service.c: Likewise.
25954         * nis/nss_nis/nis-spwd.c: Likewise.
25955         * nis/nss_nisplus/nisplus-alias.c: Likewise.
25956         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
25957         * nis/nss_nisplus/nisplus-grp.c: Likewise.
25958         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
25959         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
25960         * nis/nss_nisplus/nisplus-network.c: Likewise.
25961         * nis/nss_nisplus/nisplus-proto.c: Likewise.
25962         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
25963         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
25964         * nis/nss_nisplus/nisplus-service.c: Likewise.
25965         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
25966         * nis/ypclnt.c: Likewise.
25967         * nptl/libc_pthread_init.c: Likewise.
25968         * nss/getXXbyYY.c: Likewise.
25969         * nss/getXXent.c: Likewise.
25970         * nss/getXXent_r.c: Likewise.
25971         * nss/nss_db/db-XXX.c: Likewise.
25972         * nss/nss_db/db-netgrp.c: Likewise.
25973         * nss/nss_db/nss_db.h: Likewise.
25974         * nss/nss_files/files-XXX.c: Likewise.
25975         * nss/nss_files/files-alias.c: Likewise.
25976         * nss/nsswitch.c: Likewise.
25977         * posix/regex_internal.h: Likewise.
25978         * posix/wordexp.c: Likewise.
25979         * pwd/fgetpwent.c: Likewise.
25980         * resolv/res_hconf.c: Likewise.
25981         * resolv/res_libc.c: Likewise.
25982         * shadow/fgetspent.c: Likewise.
25983         * shadow/lckpwdf.c: Likewise.
25984         * shadow/sgetspent.c: Likewise.
25985         * socket/opensock.c: Likewise.
25986         * stdio-common/reg-modifier.c: Likewise.
25987         * stdio-common/reg-printf.c: Likewise.
25988         * stdio-common/reg-type.c: Likewise.
25989         * stdio-common/vfprintf.c: Likewise.
25990         * stdio-common/vfscanf.c: Likewise.
25991         * stdlib/abort.c: Likewise.
25992         * stdlib/cxa_atexit.c: Likewise.
25993         * stdlib/fmtmsg.c: Likewise.
25994         * stdlib/random.c: Likewise.
25995         * stdlib/setenv.c: Likewise.
25996         * string/strsignal.c: Likewise.
25997         * sunrpc/auth_none.c: Likewise.
25998         * sunrpc/bindrsvprt.c: Likewise.
25999         * sunrpc/create_xid.c: Likewise.
26000         * sunrpc/key_call.c: Likewise.
26001         * sunrpc/rpc_thread.c: Likewise.
26002         * sysdeps/arm/backtrace.c: Likewise.
26003         * sysdeps/generic/ldsodefs.h: Likewise.
26004         * sysdeps/generic/stdio-lock.h: Likewise.
26005         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
26006         * sysdeps/i386/backtrace.c: Likewise.
26007         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
26008         * sysdeps/m68k/backtrace.c: Likewise.
26009         * sysdeps/mach/hurd/cthreads.c: Likewise.
26010         * sysdeps/mach/hurd/dirstream.h: Likewise.
26011         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
26012         * sysdeps/nptl/malloc-machine.h: Likewise.
26013         * sysdeps/nptl/stdio-lock.h: Likewise.
26014         * sysdeps/posix/dirstream.h: Likewise.
26015         * sysdeps/posix/getaddrinfo.c: Likewise.
26016         * sysdeps/posix/system.c: Likewise.
26017         * sysdeps/pthread/aio_suspend.c: Likewise.
26018         * sysdeps/s390/s390-32/backtrace.c: Likewise.
26019         * sysdeps/s390/s390-64/backtrace.c: Likewise.
26020         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
26021         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
26022         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
26023         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
26024         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
26025         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
26026         * sysdeps/unix/sysv/linux/system.c: Likewise.
26027         * sysdeps/x86_64/backtrace.c: Likewise.
26028         * time/alt_digit.c: Likewise.
26029         * time/era.c: Likewise.
26030         * time/tzset.c: Likewise.
26031         * wcsmbs/wcsmbsload.c: Likewise.
26032         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
26033         instead of <bits/libc-lock.h> in comment.
26034
26035 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
26036
26037         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
26038         Only use .set mips2 if the current ISA is below mips2.
26039         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
26040         Likewise.
26041         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
26042         mips32r2 if the current ISA is below mips32r2.
26043         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
26044         (TLS_IE): Updated to use the TLD_RDHWR macro.
26045         (TLS_LE): Likewise.
26046         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
26047         __ASSEMBLER__ condition.
26048
26049 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26050
26051         Fix parallel build of before-compile targets.
26052
26053         * sysdeps/mach/Makefile ($(patsubst
26054         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
26055         mach-before-compile target.
26056         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
26057         io fs process)): Move rule to dedicated hurd-before-compile target.
26058
26059 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26060
26061         Fix rules generating headers in hurd/ and mach/ when initial make call
26062         has subdir= explicitly set.
26063
26064         * sysdeps/mach/Makefile ($(patsubst
26065         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
26066         calling $(MAKE).
26067         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
26068         io fs process)): Force subdir to hurd when calling $(MAKE).
26069         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
26070         subdir to mach when calling $(MAKE).
26071
26072 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
26073
26074         Check sysheaders when looking for Mach and Hurd headers
26075
26076         * sysdeps/mach/configure.ac: Add sysheaders check.
26077         * sysdeps/mach/configure: Regenerate.
26078         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
26079         * sysdeps/mach/hurd/configure: Regenerate.
26080
26081 2015-09-04  Roland McGrath  <roland@hack.frob.com>
26082
26083         [BZ #18921]
26084         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
26085         Fix inverted sense of test of 'o_directory_works' value.
26086         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
26087         Bernhard Voelker <mail@bernhard-voelker.de>.
26088
26089 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
26090
26091         [BZ #14912]
26092         * bits/linkmap.h: Move to ...
26093         * sysdeps/generic/linkmap.h: ...here.
26094         * sysdeps/aarch64/bits/linkmap.h: Move to ...
26095         * sysdeps/aarch64/linkmap.h: ...here.
26096         * sysdeps/arm/bits/linkmap.h: Move to ...
26097         * sysdeps/arm/linkmap.h: ...here.
26098         * sysdeps/hppa/bits/linkmap.h: Move to ...
26099         * sysdeps/hppa/linkmap.h: ...here.
26100         * sysdeps/ia64/bits/linkmap.h: Move to ...
26101         * sysdeps/ia64/linkmap.h: ...here.
26102         * sysdeps/mips/bits/linkmap.h: Move to ...
26103         * sysdeps/mips/linkmap.h: ...here.
26104         * sysdeps/s390/bits/linkmap.h: Move to ...
26105         * sysdeps/s390/linkmap.h: ...here.
26106         * sysdeps/sh/bits/linkmap.h: Move to ...
26107         * sysdeps/sh/linkmap.h: ...here.
26108         * sysdeps/x86/bits/linkmap.h: Move to ...
26109         * sysdeps/x86/linkmap.h: ...here.
26110         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
26111
26112 2015-09-04  Andreas Schwab  <schwab@suse.de>
26113
26114         [BZ #18635]
26115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
26116         (__makecontext): Terminate FDE before return label.
26117         (__novec_makecontext): Likewise.
26118
26119 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26120
26121         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
26122         first member of struct sv in syscall macro.
26123
26124 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
26125
26126         [BZ #14912]
26127         * bits/stdio-lock.h: Move to ...
26128         * sysdeps/generic/stdio-lock.h: ...here.
26129         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
26130         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
26131         * sysdeps/nptl/stdio-lock.h: ...here.
26132         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
26133         * include/libio.h: Include <stdio-lock.h> instead of
26134         <bits/stdio-lock.h>.
26135         * sysdeps/nptl/fork.c: Likewise.
26136         * sysdeps/pthread/flockfile.c: Likewise.
26137         * sysdeps/pthread/ftrylockfile.c: Likewise.
26138         * sysdeps/pthread/funlockfile.c: Likewise.
26139
26140         [BZ #14912]
26141         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
26142         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
26143         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
26144         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
26145         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
26146         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
26147         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
26148
26149 2015-09-03  Roland McGrath  <roland@hack.frob.com>
26150
26151         * elf/Makefile (test-xfail-tst-protected1a): New variable.
26152         (test-xfail-tst-protected1b): New variable.
26153
26154 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
26155
26156         [BZ #14912]
26157         * bits/libc-tsd.h: Move to ...
26158         * sysdeps/generic/libc-tsd.h: ...here.
26159         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
26160         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
26161         * sysdeps/mach/hurd/libc-tsd.h: ...here.
26162         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
26163         * include/ctype.h: Include <libc-tsd.h> instead of
26164         <bits/libc-tsd.h>.
26165         * include/rpc/rpc.h: Likewise.
26166         * locale/localeinfo.h: Likewise.
26167         * sunrpc/rpc_thread.c: Likewise.
26168         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
26169         * sysdeps/nptl/malloc-machine.h: Likewise.
26170
26171         * Makefile (headers): Remove bits/libc-lock.h.
26172         * libio/Makefile (headers): Remove bits/stdio-lock.h.
26173
26174         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
26175         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
26176         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
26177         <bits/stdio-lock.h>.
26178         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
26179         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
26180
26181 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
26182
26183         [BZ #18757]
26184         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
26185         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
26186         BZ #18757.
26187
26188 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
26189
26190         * malloc/mtrace.pl: Filter out NULL entries.
26191
26192 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
26193
26194         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
26195         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
26196         macro.
26197
26198         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
26199         (TCP_CC_INFO): Likewise.
26200         (TCP_SAVE_SYN): Likewise.
26201         (TCP_SAVED_SYN): Likewise.
26202
26203 2015-08-31  Brett Neumeier <brett@neumeier.us>
26204
26205         [BZ #18870]
26206         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
26207
26208 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26209
26210         [BZ #18873]
26211         Fix broken overflow check in posix_fallocate
26212         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
26213         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
26214         Fix parenthesization typo.
26215
26216 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
26217
26218         [BZ #18887]
26219         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
26220         tst-mntent-blank-passno.
26221         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
26222         * misc/tst-mntent-blank-corrupt.c: New test.
26223         * misc/tst-mntent-blank-passno.c: New test ripped from ...
26224         * misc/tst-mntent.c (do_test): ... here.
26225
26226 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
26227
26228         [BZ #4404]
26229         * po/de.po: Fix SIGALRM typo.
26230
26231 2015-08-28  James Perkins  <james@loowit.net>
26232
26233         * time/tst-strptime2.c (tests): Replace short list of test
26234         strings for strptime %z specifier with code which exhaustively
26235         tests every combination of sign and 0 to 5 digits. Tests for
26236         rejection of invalid strings.
26237
26238 2015-08-28  James Perkins  <james@loowit.net>
26239
26240         [BZ #16141]
26241         * time/strptime_l.c (__strptime_internal): Fix %z minutes
26242         calculation, removing incorrect decimal time rounding, so that
26243         all minute values result in a valid seconds value.
26244         * time/strptime_l.c (__strptime_internal): Extend %z time zone
26245         offset range limits to UTC-99:59 through UTC+99:59 to parse
26246         current and historical use cases.
26247         * time/tst-strptime2.c (tests): Modify and add tests for the
26248         strptime %z input field descriptor, specifically conversion of
26249         minutes to seconds and validating an offset range of -9959 to
26250         +9959.
26251
26252 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26253             Dmitry V. Levin  <ldv@altlinux.org>
26254
26255         [BZ #18877]
26256         * posix/Makefile (tests): Add tst-mmap-offset.
26257         * posix/tst-mmap.c: New file.
26258         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
26259         offset calculation for negative values.
26260
26261 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26262
26263         * sysdeps/i386/init-arch.h: New file.
26264         * sysdeps/i386/i586/init-arch.h: Likewise.
26265         * sysdeps/i386/i686/init-arch.h: Likewise.
26266         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
26267         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
26268         * sysdeps/x86/cpu-features.h (bit_I586): New.
26269         (bit_I686): Likewise.
26270         (bit_CX8): Likewise.
26271         (bit_CMOV): Likewise.
26272         (index_CX8): Likewise.
26273         (index_CMOV): Likewise.
26274         (index_I586): Likewise.
26275         (index_I686): Likewise.
26276         (reg_CX8): Likewise.
26277         (reg_CMOV): Likewise.
26278         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
26279         available at compile-time.
26280         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
26281         available at compile-time.
26282         * sysdeps/x86/init-arch.h (USE_I586): New macro.
26283         (USE_I686): Likewise.
26284
26285 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26286
26287         * sysdeps/i386/bcopy.S: New file.
26288         * sysdeps/i386/bzero.S: Likewise.
26289         * sysdeps/i386/memcpy.S: Likewise.
26290         * sysdeps/i386/memmove.S: Likewise.
26291         * sysdeps/i386/mempcpy.S: Likewise.
26292         * sysdeps/i386/memset.S: Likewise.
26293         * sysdeps/i386/bzero.c: Removed.
26294         * sysdeps/i386/memset.c: Likewise.
26295         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
26296         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
26297         * sysdeps/i386/i586/memset_chk.S: Likewise.
26298         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
26299         * sysdeps/i386/memcpy_chk.S: Here.
26300         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
26301         * sysdeps/i386/memmove_chk.S: Here.
26302         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
26303         * sysdeps/i386/mempcpy_chk.S: Likewise.
26304         * sysdeps/i386/i686/memset_chk.S: Moved to ...
26305         * sysdeps/i386/memset_chk.S: Likewise.
26306
26307 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
26308
26309         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
26310         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
26311         file, move DIAG_POP_NEEDS_COMMENT to end of file.
26312         * soft-fp/fmadf4.c: Ditto.
26313         * soft-fp/fmatf4.c: Ditto.
26314
26315 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26316
26317         * sysdeps/i386/i586/Implies: Removed.
26318         * sysdeps/i386/i686/Implies: Likewise.
26319
26320 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26321
26322         * sysdeps/i386/i486/strlen.S: Moved to ...
26323         * sysdeps/i386/strlen.S: Here.
26324
26325 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26326
26327         * sysdeps/i386/i486/strcat.S: Moved to ...
26328         * sysdeps/i386/strcat.S: Here.
26329
26330 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26331
26332         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
26333         * sysdeps/i386/pthread_spin_trylock.S: Here.
26334         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
26335         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
26336
26337 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26338
26339         * sysdeps/i386/i486/string-inlines.c: Moved to ...
26340         * sysdeps/i386/string-inlines.c: Here.
26341
26342 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26343
26344         * sysdeps/i386/i486/htonl.S: Moved ...
26345         * sysdeps/i386/htonl.S: here.
26346
26347 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26348
26349         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
26350         * sysdeps/i386/bits/atomic.h: Here.
26351
26352 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26353
26354         * sysdeps/i386/i486/Versions: Removed.
26355
26356 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
26357
26358         [BZ #2898]
26359         * misc/mktemp.c: Add mkdtemp to the link_warning message.
26360         Based on patch by Aurelien Jarno.
26361
26362 2015-08-26  Stan Shebs  <stanshebs@google.com>
26363
26364         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
26365         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
26366
26367 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26368
26369         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
26370         * sysdeps/powerpc/dl-procinfo.c:
26371         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
26372         feature so it shows when LD_SHOW_AUXV=1.
26373
26374 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
26375
26376         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
26377         (__arch_compare_and_exchange_val_32_acq): Remove and use common
26378         definition.  ISA 2.07B no longer requires full sync.
26379
26380 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
26381
26382         [BZ #18863]
26383         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
26384         (si_call_addr): Define.
26385         (si_syscall): Define.
26386         (si_arch): Define.
26387
26388 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
26389
26390         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
26391         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
26392         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
26393         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
26394         (__memset_zero_constant_len_parameter): New.
26395         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
26396         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
26397         (__memset_zero_constant_len_parameter): Don't define if
26398         __memset_chk or USE_AS_BZERO are defined.
26399
26400         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
26401         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
26402         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
26403
26404         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
26405         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
26406         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
26407         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
26408         comments.
26409         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
26410         -mno-mmx for $(all-rtld-routines).
26411         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
26412         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
26413         i386.
26414
26415 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
26416
26417         * sysdeps/generic/unwind.h
26418         (_Unwind_Word): Use __mode__(__unwind_word__)
26419         instead of __mode__(__word__).
26420         (_Unwind_Sword): Likewise.
26421
26422         * sysdeps/s390/s390-64/utf8-utf16-z9.c
26423         (MAX_NEEDED_INPUT): New define.
26424         (MAX_NEEDED_OUTPUT): New define.
26425
26426         * NEWS: New item for IBM z13 string optimizations.
26427
26428         * sysdeps/s390/multiarch/memrchr-c.c: New File.
26429         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
26430         * sysdeps/s390/multiarch/memrchr.c: Likewise.
26431         * sysdeps/s390/multiarch/Makefile
26432         (sysdep_routines): Add memrchr functions.
26433         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26434         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
26435
26436         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
26437         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
26438         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
26439         * sysdeps/s390/multiarch/Makefile
26440         (sysdep_routines): Add wmemcmp functions.
26441         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26442         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
26443         * benchtests/bench-wmemcmp.c: New File.
26444         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
26445
26446         * sysdeps/s390/multiarch/wmemset-c.c: New File.
26447         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
26448         * sysdeps/s390/multiarch/wmemset.c: Likewise.
26449         * sysdeps/s390/multiarch/Makefile
26450         (sysdep_routines): Add wmemset functions.
26451         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26452         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
26453         * wcsmbs/wmemset.c: Use WMEMSET if defined.
26454         * string/test-memset.c: Add wmemset support.
26455         * wcsmbs/test-wmemset.c: New File.
26456         * wcsmbs/Makefile (strop-tests): Add wmemset.
26457         * benchtests/bench-memset.c: Add wmemset support.
26458         * benchtests/bench-wmemset.c: New File.
26459         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
26460
26461         * sysdeps/s390/multiarch/memccpy-c.c: New File.
26462         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
26463         * sysdeps/s390/multiarch/memccpy.c: Likewise.
26464         * sysdeps/s390/multiarch/Makefile
26465         (sysdep_routines): Add memccpy functions.
26466         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26467         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
26468         * string/memccpy.c: Use MEMCCPY if defined.
26469
26470         * sysdeps/s390/multiarch/memchr-vx.S: New File.
26471         * sysdeps/s390/multiarch/memchr.c: Likewise.
26472         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
26473         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
26474         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
26475         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
26476         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
26477         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
26478         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
26479         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
26480         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
26481         and rawmemchr functions.
26482         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26483         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
26484         and wmemchr.
26485         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
26486         * string/test-memchr.c: Add wmemchr support.
26487         * wcsmbs/test-wmemchr.c: New File.
26488         * wcsmbs/Makefile (strop-tests): Add wmemchr.
26489         * benchtests/bench-memchr.c: Add wmemchr support.
26490         * benchtests/bench-wmemchr.c: New File.
26491         * benchtests/Makefile (wcsmbs-bench): wmemchr.
26492
26493         * sysdeps/s390/multiarch/strcspn-c.c: New File.
26494         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
26495         * sysdeps/s390/multiarch/strcspn.c: Likewise.
26496         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
26497         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
26498         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
26499         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
26500         wcscspn functions.
26501         * sysdeps/s390/multiarch/ifunc-impl-list.c
26502         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
26503         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
26504         * string/test-strcspn.c: Add wcscspn support.
26505         * wcsmbs/test-wcscspn.c: New File.
26506         * wcsmbs/Makefile (strop-tests): Add wcscspn.
26507         * benchtests/bench-strcspn.c: Add wcscspn support.
26508         * benchtests/bench-wcscspn.c: New File.
26509         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
26510
26511         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
26512         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
26513         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
26514         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
26515         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
26516         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
26517         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
26518         wcspbrk functions.
26519         * sysdeps/s390/multiarch/ifunc-impl-list.c
26520         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
26521         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
26522         * string/test-strpbrk.c: Add wcspbrk support.
26523         * wcsmbs/test-wcspbrk.c: New File.
26524         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
26525         * benchtests/bench-strpbrk.c: Add wcspbrk support.
26526         * benchtests/bench-wcspbrk.c: New File.
26527         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
26528
26529         * sysdeps/s390/multiarch/strspn-c.c: New File.
26530         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
26531         * sysdeps/s390/multiarch/strspn.c: Likewise.
26532         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
26533         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
26534         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
26535         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
26536         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
26537         wcsspn functions.
26538         * sysdeps/s390/multiarch/ifunc-impl-list.c
26539         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
26540         * string/test-strspn.c: Add wcsspn support.
26541         * wcsmbs/test-wcsspn.c: New File.
26542         * wcsmbs/Makefile (strop-tests): Add wcsspn.
26543         * benchtests/bench-strspn.c: Add wcsspn support.
26544         * benchtests/bench-wcsspn.c: New File.
26545         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
26546
26547         * sysdeps/s390/multiarch/strrchr-c.c: New File.
26548         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
26549         * sysdeps/s390/multiarch/strrchr.c: Likewise.
26550         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
26551         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
26552         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
26553         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
26554         wcsrchr functions.
26555         * sysdeps/s390/multiarch/ifunc-impl-list.c
26556         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
26557         * benchtests/bench-wcsrchr.c: New File.
26558         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
26559
26560         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
26561         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
26562         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
26563         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
26564         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
26565         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
26566         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
26567         wcschrnul functions.
26568         * sysdeps/s390/multiarch/ifunc-impl-list.c
26569         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
26570         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
26571         * string/test-strchr.c: Add wcschrnul support.
26572         * wcsmbs/test-wcschrnul.c: New File.
26573         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
26574         * benchtests/bench-strchr.c: Add wcschrnul support.
26575         * benchtests/bench-wcschrnul.c: New File.
26576         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
26577
26578         * sysdeps/s390/multiarch/strchr-c.c: New File.
26579         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
26580         * sysdeps/s390/multiarch/strchr.c: Likewise.
26581         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
26582         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
26583         * sysdeps/s390/multiarch/wcschr.c: Likewise.
26584         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
26585         wcschr functions.
26586         * sysdeps/s390/multiarch/ifunc-impl-list.c
26587         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
26588         * string/strchr.c (STRCHR): Define and use macro.
26589         * benchtests/bench-wcschr.c: New File.
26590         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
26591
26592         * sysdeps/s390/multiarch/strncmp-c.c: New File.
26593         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
26594         * sysdeps/s390/multiarch/strncmp.c: Likewise.
26595         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
26596         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
26597         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
26598         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
26599         wcsncmp functions.
26600         * sysdeps/s390/multiarch/ifunc-impl-list.c
26601         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
26602         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
26603         * benchtests/bench-strncmp.c: Add wcsncmp support.
26604         * benchtests/bench-wcsncmp.c: New File.
26605         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
26606
26607         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
26608         * sysdeps/s390/multiarch/strcmp.c: Likewise.
26609         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
26610         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
26611         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
26612         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
26613         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
26614         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
26615         wcscmp functions.
26616         * sysdeps/s390/multiarch/ifunc-impl-list.c
26617         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
26618         * string/strcmp.c (STRCMP): Define and use macro.
26619         * benchtests/bench-wcscmp.c: New File.
26620         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
26621         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
26622         instead of _HAVE_STRING_ARCH_memchr.
26623
26624         * sysdeps/s390/multiarch/strncat-c.c: New File.
26625         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
26626         * sysdeps/s390/multiarch/strncat.c: Likewise.
26627         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
26628         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
26629         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
26630         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
26631         wcsncat functions.
26632         * sysdeps/s390/multiarch/ifunc-impl-list.c
26633         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
26634         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
26635         * string/test-strncat.c: Add wcsncat support.
26636         * wcsmbs/test-wcsncat.c: New File.
26637         * wcsmbs/Makefile (strop-tests): Add wcsncat.
26638         * benchtests/bench-strncat.c: Add wcsncat support.
26639         * benchtests/bench-wcsncat.c: New File.
26640         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
26641
26642         * sysdeps/s390/multiarch/strcat-c.c: New File.
26643         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
26644         * sysdeps/s390/multiarch/strcat.c: Likewise.
26645         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
26646         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
26647         * sysdeps/s390/multiarch/wcscat.c: Likewise.
26648         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
26649         wcscat functions.
26650         * sysdeps/s390/multiarch/ifunc-impl-list.c
26651         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
26652         * string/strcat.c (STRCAT): Define and use macro.
26653         * wcsmbs/wcscat.c: Use WCSCAT if defined.
26654         * string/test-strcat.c: Add wcscat support.
26655         * wcsmbs/test-wcscat.c: New File.
26656         * wcsmbs/Makefile (strop-tests): Add wcscat.
26657         * benchtests/bench-strcat.c: Add wcscat support.
26658         * benchtests/bench-wcscat.c: New File.
26659         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
26660
26661         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
26662         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
26663         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
26664         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
26665         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
26666         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
26667         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
26668         wcpncpy functions.
26669         * sysdeps/s390/multiarch/ifunc-impl-list.c
26670         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
26671         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
26672         * string/test-stpncpy.c: Add wcpncpy support.
26673         * wcsmbs/test-wcpncpy.c: New File.
26674         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
26675         * benchtests/bench-stpncpy.c: Add wcpncpy support.
26676         * benchtests/bench-wcpncpy.c: New File.
26677         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
26678
26679         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
26680         * sysdeps/s390/multiarch/strncpy.c: Likewise.
26681         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
26682         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
26683         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
26684         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
26685         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
26686         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
26687         wcsncpy functions.
26688         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
26689         * sysdeps/s390/multiarch/ifunc-impl-list.c
26690         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
26691         * string/test-strncpy.c: Add wcsncpy support.
26692         * wcsmbs/test-wcsncpy.c: New File.
26693         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
26694         * benchtests/bench-strncpy.c: Add wcsncpy support.
26695         * benchtests/bench-wcsncpy.c: New File.
26696         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
26697
26698         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
26699         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
26700         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
26701         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
26702         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
26703         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
26704         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
26705         wcpcpy functions.
26706         * string/stpcpy.c: Use STPCPY if defined.
26707         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
26708         * sysdeps/s390/multiarch/ifunc-impl-list.c
26709         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
26710         * string/test-stpcpy.c: Add wcpcpy support.
26711         * wcsmbs/test-wcpcpy.c: New File.
26712         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
26713         * benchtests/bench-stpcpy.c: Add wcpcpy support.
26714         * benchtests/bench-wcpcpy.c: New File.
26715         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
26716
26717         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
26718         * sysdeps/s390/multiarch/strcpy.c: Likewise.
26719         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
26720         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
26721         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
26722         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
26723         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
26724         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
26725         wcscpy functions.
26726         * sysdeps/s390/multiarch/ifunc-impl-list.c
26727         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
26728         * benchtests/bench-wcscpy.c: New File.
26729         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
26730
26731         * sysdeps/s390/multiarch/strnlen-c.c: New File.
26732         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
26733         * sysdeps/s390/multiarch/strnlen.c: Likewise.
26734         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
26735         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
26736         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
26737         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
26738         wcsnlen functions.
26739         * sysdeps/s390/multiarch/ifunc-impl-list.c
26740         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
26741         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
26742         * string/test-strnlen.c: Add wcsnlen support.
26743         * wcsmbs/test-wcsnlen.c: New File.
26744         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
26745         * benchtests/bench-strnlen.c: Add wcsnlen support.
26746         * benchtests/bench-wcsnlen.c: New File.
26747         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
26748
26749         * sysdeps/s390/multiarch/Makefile: New File.
26750         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
26751         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
26752         * sysdeps/s390/multiarch/strlen.c: Likewise.
26753         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
26754         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
26755         * sysdeps/s390/multiarch/wcslen.c: Likewise.
26756         * string/strlen.c (STRLEN): Define and use macro.
26757         * sysdeps/s390/multiarch/ifunc-impl-list.c
26758         (IFUNC_VX_IMPL): New macro function.
26759         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
26760         * benchtests/Makefile (wcsmbs-bench): New variable.
26761         (string-bench-all): Added wcsmbs-bench.
26762         * benchtests/bench-wcslen.c: New File.
26763
26764         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
26765         s390_vx_libc_ifunc2): New macro function.
26766
26767         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
26768         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
26769         assembler support.
26770         * sysdeps/s390/configure: Regenerated.
26771
26772         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
26773         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
26774
26775         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
26776         * sysdeps/s390/dl-procinfo.h: Add vector capability.
26777         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
26778
26779         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
26780         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
26781         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
26782         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
26783         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
26784         (memcmp, bcmp): Use __memcmp_default as alias source.
26785         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
26786         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
26787         Rename to __memcmp_default.
26788         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
26789         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
26790         (memcpy): Use __memcpy_default as alias source.
26791         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
26792         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
26793         Rename to __memcpy_default.
26794         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
26795         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
26796         (memset): Use __memset_default as alias source.
26797         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
26798         * sysdeps/s390/s390-32/memset.S (__memset_g5):
26799         Rename to __memset_default.
26800         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
26801         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
26802         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
26803         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
26804         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
26805         (memcmp, bcmp): Use __memcmp_default as alias source.
26806         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
26807         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
26808         Rename to __memcmp_default.
26809         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
26810         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
26811         (memcpy): Use __memcpy_default as alias source.
26812         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
26813         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
26814         Rename to __memcpy_default.
26815         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
26816         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
26817         (memset): Use __memset_default as alias source.
26818         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
26819         * sysdeps/s390/s390-64/memset.S (__memset_z900):
26820         Rename to __memset_default.
26821         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
26822         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
26823
26824         [BZ #18610]
26825         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
26826         __ieee_instruction_pointer to __unused.
26827         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
26828         __ieee_instruction_pointer.
26829         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
26830         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
26831         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
26832         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
26833         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
26834         Mark dxc-field as reserved.
26835
26836 2015-08-25  Roland McGrath  <roland@hack.frob.com>
26837
26838         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
26839         if the weak reference is not null.
26840
26841 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
26842
26843         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
26844
26845         [BZ #11214]
26846         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
26847
26848 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26849
26850         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
26851         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
26852         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
26853         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
26854         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
26855         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
26856         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
26857         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
26858         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
26859         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
26860         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
26861         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
26862         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
26863         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
26864         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
26865         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
26866         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
26867         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
26868
26869 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
26870
26871         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
26872         register other than r0 for tabort, it has special meaning.
26873         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
26874         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
26875         transaction before starting syscall.
26876
26877 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26878
26879         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
26880
26881 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
26882
26883         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
26884
26885         * sysdeps/x86_64/rtld-memcmp.c: Removed.
26886         * sysdeps/x86_64/rtld-memset.S: Likewise.
26887         * sysdeps/x86_64/rtld-strchr.S: Likewise.
26888         * sysdeps/x86_64/rtld-strlen.S: Likewise.
26889         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
26890         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
26891
26892         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
26893
26894 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
26895
26896         * debug/strcpy_chk.c: Improve performance.
26897         * debug/stpcpy_chk.c: Likewise.
26898         * sysdeps/x86_64/strcpy_chk.S: Remove.
26899         * sysdeps/x86_64/stpcpy_chk.S: Remove.
26900
26901         [BZ #18240]
26902         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
26903
26904 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
26905
26906         [BZ #15128]
26907         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
26908         ifuncmain8.
26909         (modules-names): Add ifuncmod8.
26910         ($(objpfx)ifuncmain8): New rule.
26911         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
26912         <cpuid.h>.
26913         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
26914         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
26915         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
26916         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
26917         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
26918         * sysdeps/x86_64/dl-trampoline.h: Likewise.
26919         * sysdeps/x86_64/ifuncmain8.c: New file.
26920         * sysdeps/x86_64/ifuncmod8.c: Likewise.
26921         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
26922         Removed.
26923         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
26924         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
26925         Change rtld_savespace_sse to __glibc_unused2.
26926         (RTLD_CHECK_FOREIGN_CALL): Removed.
26927         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
26928         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
26929         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
26930
26931 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
26932
26933         * sysdeps/aarch64/bzero.S (__bzero): Remove.
26934
26935 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
26936
26937         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
26938         Unconditionally set __fpcr to avoid uninialized warning.
26939         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
26940
26941 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
26942
26943         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
26944         is corrupt.
26945
26946         * malloc/arena.c (arena_get2): Drop unused argument.
26947         (arena_lock): Adjust.
26948         (arena_get_retry): Likewise.
26949
26950 2015-08-24  Andreas Schwab  <schwab@suse.de>
26951
26952         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
26953         Don't define.
26954         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
26955         (__ASSUME_IPC64): Don't undef.
26956         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
26957         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
26958         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
26959         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
26960         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
26961         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
26962         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
26963         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
26964         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
26965         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
26966         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
26967         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
26968         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
26969         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
26970         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
26971         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
26972         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
26973         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
26974         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
26975         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
26976         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
26977
26978 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
26979
26980         * manual/Makefile (install): Only build manual when perl is available.
26981
26982 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26983
26984         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
26985         '#undef memcpy' by '#undef memchr'.
26986
26987 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26988
26989         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
26990         memchr not point to the internal __GI_memchr implementation.
26991
26992 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
26993
26994         * timezone/Makefile (CFLAGS-zdump.c): Remove
26995         -Wno-strict-prototypes.
26996         (CFLAGS-zic.c): Likewise.
26997         (CFLAGS-ialloc.c): Likewise.
26998         (CFLAGS-scheck.c): Likewise.
26999
27000         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
27001         -Wno-error=undef.
27002
27003 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
27004
27005         * i386/i686/multiarch/strcasestr-c.c: Removed.
27006         * x86_64/multiarch/strcasestr.c: Likewise.
27007         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27008         Remove strcasestr.
27009
27010 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
27011
27012         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
27013
27014         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
27015         variables for high and low parts before possibly modifying them.
27016
27017 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
27018
27019         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
27020         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
27021         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
27022         of "multiarch/init-arch.h".
27023         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
27024         * sysdeps/x86/init-arch.h: This.
27025
27026 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
27027
27028         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
27029         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
27030
27031 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
27032
27033         [BZ #17787]
27034         * manual/macros.texi: Add twoexp macro.
27035         * manual/filesys.texi: Fix exponents.
27036         * manual/llio.texi: Likewise.
27037         * manual/stdio.texi: Likewise.
27038
27039 2015-08-20  Florian Weimer  <fweimer@redhat.com>
27040
27041         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
27042         incorrect use.
27043
27044 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
27045
27046         [BZ #18370]
27047         * math/s_csqrt.c (__csqrt): Force underflow exception for results
27048         whose real or imaginary part has small absolute value.
27049         * math/s_csqrtf.c (__csqrtf): Likewise.
27050         * math/s_csqrtl.c (__csqrtl): Likewise.
27051         * math/auto-libm-test-in: Add more tests of csqrt.
27052         * math/auto-libm-test-out: Regenerated.
27053         * sysdeps/i386/fpu/libm-test-ulps: Update.
27054
27055 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
27056
27057         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
27058         __ppc_set_ppr_very_low): New functions.
27059         * manual/platform.texi: Add documentation about
27060         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
27061
27062 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
27063
27064         * string/stpncpy.c (stpncpy): Improve performance using
27065         __strnlen/memcpy/memset.
27066
27067 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
27068
27069         [BZ #18796]
27070         * scripts/test-installation.pl: Don't add -lmvec to build options if
27071         libmvec wasn't built.
27072
27073 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
27074
27075         [BZ #14341]
27076         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
27077         case when there is a gap between DT_REL and DT_JMPREL sections.
27078         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
27079         (LDFLAGS-tst-split-dynreloc): New.
27080         (tst-split-dynreloc-ENV): Likewise.
27081         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
27082         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
27083
27084 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27085
27086         [BZ #18822]
27087         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
27088         attribute_hidden.
27089         (__xstat64_conv): Likewise.
27090         (__xstat32_conv): Likewise.
27091
27092 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27093
27094         [BZ #18822]
27095         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
27096         Don't load %ebx when calling __setcontext.  Call __setcontext
27097         with HIDDEN_JUMPTARGET.
27098         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
27099         libc_hidden_def.
27100
27101 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27102
27103         * sysdeps/i386/i686/Makefile
27104         [$(subdir) == string] (sysdep_routines): Moved to ...
27105         * sysdeps/i386/Makefile: Here.
27106         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
27107         * sysdeps/i386/cacheinfo.c: Here.
27108         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
27109         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
27110         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
27111         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
27112
27113 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27114
27115         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
27116         __i586__ is defined.
27117         (HAS_I686): Defined to 1 if __i686__ is defined.
27118
27119 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
27120
27121         * elf/Makefile [$(have-z-execstack) = yes]
27122         (CPPFLAGS-tst-execstack.c): New variable.
27123
27124         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
27125         conditional to [defined UTMPX || _HAVE_UT_TYPE].
27126         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
27127         UTMPX || _HAVE_UT_TV].
27128         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
27129         UTMPX || _HAVE_UT_TV - 0].
27130
27131 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
27132
27133         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
27134         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
27135         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
27136
27137 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
27138
27139         * sysdeps/powerpc/dl-procinfo.c:
27140         (_dl_powerpc_cap_flags): Added missing strings for some
27141         hwcap features.
27142         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
27143
27144 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
27145
27146         Port the 0x7efe...feff pattern to GCC 6.
27147         See Steve Ellcey's bug report in:
27148         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
27149         * string/memrchr.c (MEMRCHR):
27150         * string/rawmemchr.c (RAWMEMCHR):
27151         * string/strchr.c (strchr):
27152         * string/strchrnul.c (STRCHRNUL):
27153         Rewrite code to avoid issues with signed shift overflow.
27154
27155 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
27156
27157         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
27158         whether cpuid is available only if HAS_CPUID is 0.
27159         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
27160         (HAS_I586): Likewise.
27161         (HAS_I686): Likewise.
27162
27163 2015-08-18  Zack Weinberg  <zackw@panix.com>
27164
27165         * misc/Versions (libc): Add GLIBC_2.23.
27166
27167 2015-08-18  Alan Modra  <amodra@gmail.com>
27168
27169         [BZ #18421]
27170         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
27171         .Lp__global.
27172         (_start): Load %dp via .Lp__global.
27173         [!SHARED]: Use .section .rodata.
27174
27175 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27176
27177         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
27178         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
27179
27180 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27181
27182         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
27183         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
27184
27185 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27186
27187         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
27188         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
27189
27190 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27191
27192         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
27193         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
27194
27195 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27196
27197         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
27198         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
27199
27200 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27201
27202         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
27203         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
27204
27205 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27206
27207         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
27208
27209 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27210
27211         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
27212         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
27213         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27214         (__ASSUME_LWS_CAS): Delete.
27215
27216 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27217
27218         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
27219         * sysdeps/hppa/configure: Regenerated.
27220         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
27221         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
27222         * sysdeps/hppa/nptl/tls.h: Likewise.
27223
27224 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
27225
27226         [BZ #18823]
27227         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
27228         for scaling up small arguments.
27229         * math/s_csqrtf.c (__csqrtf): Likewise.
27230         * math/s_csqrtl.c (__csqrtl): Likewise.
27231         * math/auto-libm-test-in: Add more tests of csqrt.
27232         * math/auto-libm-test-out: Regenerated.
27233
27234 2015-08-17  Andreas Schwab  <schwab@suse.de>
27235
27236         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
27237         version set GLIBC_2.19.
27238
27239 2015-08-16  Zack Weinberg  <zackw@panix.com>
27240
27241         [BZ #18681]
27242         * misc/regexp.h: This interface is no longer supported.
27243         Remove all contents, leaving only an #error directive.
27244         * misc/regexp.c (loc1, loc2, locs, step, advance):
27245         Demote to compatibility symbols.
27246
27247 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
27248
27249         [BZ #18084]
27250         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
27251         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
27252         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
27253         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
27254         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
27255         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
27256         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
27257         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
27258         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
27259
27260 2015-08-15  Zack Weinberg  <zackw@panix.com>
27261
27262         [BZ #18795]
27263         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
27264         buffer length is known to be too large, not if it's known to be
27265         small enough.
27266         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
27267         overflow at runtime, involving a length parameter, twice: once
27268         with a compile-time constant length parameter, once without.
27269
27270 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
27271
27272         [BZ #18824]
27273         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
27274         scaling x * y up instead of down.
27275         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27276         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27277         * math/auto-libm-test-in: Add more tests of fma.
27278         * math/auto-libm-test-out: Regenerated.
27279
27280 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
27281
27282         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
27283
27284 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
27285
27286         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
27287         unnecessary movq.
27288         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
27289         Likewise.
27290
27291 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
27292
27293         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
27294         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
27295         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
27296         and tgamma.
27297         * math/auto-libm-test-out: Regenerated.
27298         * sysdeps/i386/fpu/libm-test-ulps: Update.
27299         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27300
27301         [BZ #16520]
27302         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
27303         (__tanh): Force underflow exception for arguments with small
27304         absolute value.
27305         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
27306         (__tanhf): Force underflow exception for arguments with small
27307         absolute value.
27308         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
27309         (__tanhl): Force underflow exception for arguments with small
27310         absolute value.
27311         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
27312         (__tanhl): Force underflow exception for arguments with small
27313         absolute value.
27314         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
27315         (__tanhl): Force underflow exception for arguments with small
27316         absolute value.
27317         * math/auto-libm-test-in: Add more tests of tanh.
27318         * math/auto-libm-test-out: Regenerated.
27319         * sysdeps/i386/fpu/libm-test-ulps: Update.
27320
27321 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27322
27323         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
27324         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
27325
27326 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27327
27328         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
27329         <cpuid.h>.
27330
27331 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27332
27333         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
27334         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
27335
27336 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27337
27338         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
27339         Remove $(objpfx)init-arch.o.
27340         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
27341         init-arch.
27342         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
27343         (INIT_ARCH_EXT): Defined as empty.
27344         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
27345         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
27346         __init_cpu_features call.  Replace HAS_XXX with
27347         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27348         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
27349         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
27350         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
27351         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
27352         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
27353         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
27354         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
27355         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
27356         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
27357         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
27358         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
27359         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
27360         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
27361         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
27362         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
27363         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
27364         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
27365         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
27366         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
27367         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
27368         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
27369         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
27370         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
27371         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
27372         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
27373         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
27374         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
27375         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
27376         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
27377         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
27378         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
27379         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
27380         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
27381         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
27382         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
27383
27384 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27385
27386         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
27387         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27388         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
27389         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
27390         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
27391         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
27392         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
27393         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
27394         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
27395         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
27396         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
27397         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
27398         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27399         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27400         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27401         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27402         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27403         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27404         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27405         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27406         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27407         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27408         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27409         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27410         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27411         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27412         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
27413         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27414         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
27415         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27416         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27417         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27418         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27419         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27420         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27421         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27422         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27423         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27424         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27425         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27426         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27427         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27428         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27429
27430 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27431
27432         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
27433         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27434         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
27435         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
27436         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
27437         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
27438         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
27439         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
27440         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
27441         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
27442         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
27443         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
27444         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
27445         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
27446         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
27447         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
27448         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
27449         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
27450         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
27451         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
27452         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
27453         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
27454         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
27455         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
27456         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
27457         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
27458         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
27459         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
27460         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27461         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
27462         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
27463         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
27464         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
27465         * sysdeps/x86_64/multiarch/memset.S: Likewise.
27466         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27467         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
27468         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
27469         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
27470         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
27471         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
27472         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
27473         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
27474         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
27475
27476 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27477
27478         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
27479         (dl_platform_init): Call init_cpu_features.
27480         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
27481         * sysdeps/i386/i686/cacheinfo.c
27482         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
27483         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
27484         * sysdeps/i386/i686/multiarch/Versions: Removed.
27485         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
27486         Removed.
27487         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
27488         * sysdeps/unix/sysv/linux/x86/Makefile
27489         (libpthread-sysdep_routines): Remove init-arch.
27490         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
27491         <sysdeps/x86_64/dl-procinfo.c> instead of
27492         sysdeps/generic/dl-procinfo.c>.
27493         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
27494         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
27495         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
27496         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
27497         [$(subdir) == elf] (tests-static): Add
27498         tst-get-cpu-features-static.
27499         * sysdeps/x86/Versions: New file.
27500         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
27501         * sysdeps/x86/cpu-features.c: Likewise.
27502         * sysdeps/x86/cpu-features.h: Likewise.
27503         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
27504         * sysdeps/x86/libc-start.c: Likewise.
27505         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
27506         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
27507         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
27508         * sysdeps/x86_64/dl-procinfo.c: Likewise.
27509         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
27510         Assume USE_MULTIARCH is defined and don't check it.
27511         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
27512         (is_amd): Likewise.
27513         (max_cpuid): Likewise.
27514         (intel_check_word): Likewise.
27515         (__cache_sysconf): Don't call __init_cpu_features.
27516         (__x86_preferred_memory_instruction): Removed.
27517         (init_cacheinfo): Don't call __init_cpu_features. Replace
27518         __cpu_features with GLRO(dl_x86_cpu_features).
27519         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
27520         (dl_platform_init): Call init_cpu_features.
27521         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
27522         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
27523         * sysdeps/x86_64/multiarch/Versions: Removed.
27524         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
27525         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
27526         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
27527         Removed.
27528         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
27529
27530 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
27531
27532         [BZ #18820]
27533         * libio/Makefile (test-fmemopen-mem): New test.
27534         * libio/test-fmemopen.c (do_bz18820): New test.
27535         * libio/fmemopen.c (__fmemopen): Fix memory leak.
27536         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
27537
27538 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
27539
27540         [BZ #16734]
27541         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
27542         (FREE_BUF): Delete.
27543         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
27544         * libio/genops.c (_IO_setb): Use malloc and free directly.
27545         (_IO_default_doallocate, _IO_default_finish): Likewise.
27546         ( _IO_unbuffer_all): Likewise.
27547         ( libc_freeres_fn): Likewise.
27548         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
27549         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
27550         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
27551         (_IO_wdefault_doallocate): Likewise.
27552
27553 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
27554
27555         [BZ #18086]
27556         * sysdeps/posix/nice.c (nice): Restore old errno.
27557         * posix/tst-nice.c (do_test): Add test for BZ #18086.
27558
27559 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
27560
27561         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
27562
27563 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27564
27565         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
27566         __bcopy and add a weak_alias to bcopy.
27567         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
27568         for static build.
27569
27570         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
27571         cleanup macro usage.
27572         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
27573         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
27574         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
27575         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
27576         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
27577         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
27578         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
27579         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
27580         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
27581         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
27582         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
27583         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
27584         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
27585         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
27586         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
27587         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
27588         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
27589         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
27590         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
27591
27592         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
27593         libc_hidden_def.
27594         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
27595
27596         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
27597         (sysdep_routines): Add strstr-ppc64.
27598         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
27599
27600 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
27601
27602         [BZ #18778]
27603         * elf/Makefile (tests): Add Add tst-nodelete2.
27604         (modules-names): Add tst-nodelete2mod.
27605         (tst-nodelete2mod.so-no-z-defs): New.
27606         ($(objpfx)tst-nodelete2): Likewise.
27607         ($(objpfx)tst-nodelete2.out): Likewise.
27608         (LDFLAGS-tst-nodelete2): Likewise.
27609         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
27610         out of loop through all loaded libraries.
27611         * elf/tst-nodelete2.c: New file.
27612         * elf/tst-nodelete2mod.c: Likewise.
27613         * elf/tst-znodelete-zlib.cc: Delete.
27614
27615 2015-08-11  Andreas Schwab  <schwab@suse.de>
27616
27617         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
27618         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
27619         (__openat64_nocancel): Likewise.
27620
27621 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
27622
27623         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
27624         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
27625         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
27626         * math/auto-libm-test-out: Regenerated.
27627         * sysdeps/i386/fpu/libm-test-ulps: Update.
27628         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27629
27630 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
27631
27632         [BZ #18790]
27633         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
27634         threshold for returning +/- 1.
27635         * math/auto-libm-test-in: Add more tests of tanh.
27636         * math/auto-libm-test-out: Regenerated.
27637         * sysdeps/i386/fpu/libm-test-ulps: Update.
27638
27639 2015-08-10  Andreas Schwab  <schwab@suse.de>
27640
27641         [BZ #18781]
27642         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
27643         MORE_OFLAGS to oflag.
27644         * io/test-lfs.c (do_test): Test openat64.
27645
27646 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
27647
27648         [BZ #18789]
27649         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
27650         smaller threshold for returning the argument.
27651         * math/auto-libm-test-in: Add more tests of sinh.
27652         * math/auto-libm-test-out: Regenerated.
27653         * sysdeps/i386/fpu/libm-test-ulps: Update.
27654
27655 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
27656
27657         [BZ #18674]
27658         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
27659         break.
27660
27661 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
27662
27663         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
27664         (generated): Don't add $(addprefix z.,$(tzfiles)).
27665
27666 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
27667
27668         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
27669         * scripts/sysd-rules.awk: Likewise.
27670
27671 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
27672
27673         * iconvdata/tst-tables.sh: Change echo -n to printf.
27674         * nss/db-Makefile: Likewise.
27675         * posix/tst-getconf.sh: Likewise.
27676         * stdio-common/tst-unbputc.sh: Likewise.
27677
27678 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
27679
27680         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
27681         MADV_*_PAGES defines behind this feature check.
27682
27683 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
27684
27685         [BZ #18480]
27686         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
27687         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
27688         Define.
27689         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
27690         LOAD_REGS_5, LOAD_REGS_6): Update.
27691         (INTERNAL_SYSCALL): Update using new LOAD defines.
27692         (INTERNAL_SYSCALL_NCS): Likewise.
27693         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
27694
27695 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
27696
27697         [BZ #16734]
27698         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
27699
27700 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
27701
27702         [BZ #17905]
27703         * catgets/Makefile (tst-catgets-mem): New test.
27704         * catgets/catgets.c (catopen): Don't use unbounded alloca.
27705         * catgets/open_catalog.c (__open_catalog): Likewise.
27706         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
27707
27708 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
27709
27710         [BZ #18787]
27711         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
27712         clobber registers.
27713         (atomic_compare_and_exchange_val_acq): Use register asms to assign
27714         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
27715         Cast return to __typeof (oldval).
27716
27717 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
27718
27719         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
27720         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
27721         and delete sys/syscall.h include.
27722
27723 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
27724
27725         [BZ #16517]
27726         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
27727         (tan): Force underflow exception for arguments with small absolute
27728         value.
27729         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
27730         (__kernel_tanf): Force underflow exception for arguments with
27731         small absolute value.
27732         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
27733         (__kernel_tanl): Force underflow exception for arguments with
27734         small absolute value.
27735         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
27736         (__kernel_tanl): Force underflow exception for arguments with
27737         small absolute value.
27738         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
27739         (__kernel_tanl): Force underflow exception for arguments with
27740         small absolute value.
27741         * math/auto-libm-test-in: Add more tests of tan.
27742         * math/auto-libm-test-out: Regenerated.
27743
27744 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27745
27746         Fix sysdeps/i386/fpu/s_scalbn.S build
27747
27748         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
27749
27750 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
27751
27752         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
27753
27754 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27755
27756         Fix gcrt0.o compilation
27757
27758         When static-start-installed-name is different from
27759         start-installed-name, we must not use the shared objects.
27760
27761         * csu/Makefile
27762         (extra-objs): Add gmon-start.o when building shared library and
27763         $(static-start-installed-name) is different from
27764         $(start-installed-name).
27765         $(objpfx)g$(static-start-installed-name): When building shared
27766         library and $(static-start-installed-name) is different from
27767         $(static-start-installed-name), revert to non-shared rule,
27768         i.e. using $(objpfx)% and gmon-start.o.
27769
27770 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
27771
27772         [BZ #16519]
27773         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
27774         (__ieee754_sinh): Force underflow exception for arguments with
27775         small absolute value.
27776         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
27777         (__ieee754_sinhf): Force underflow exception for arguments with
27778         small absolute value.
27779         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
27780         (__ieee754_sinhl): Force underflow exception for arguments with
27781         small absolute value.
27782         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
27783         (__ieee754_sinhl): Force underflow exception for arguments with
27784         small absolute value.
27785         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
27786         (__ieee754_sinhl): Force underflow exception for arguments with
27787         small absolute value.
27788         * math/auto-libm-test-in: Add more tests of sinh.
27789         * math/auto-libm-test-out: Regenerated.
27790         * sysdeps/i386/fpu/libm-test-ulps: Update.
27791
27792 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
27793
27794         * libio/oldfileops.c: Include unistd.h.
27795
27796 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
27797
27798         * stdlib/isomac.c: Include ctype.h.
27799
27800 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
27801
27802         * dirent/tst-seekdir.c (main): Converted to ...
27803         (do_test): ... this.
27804         (TEST_FUNCTION): New macro.
27805         Include test-skeleton.c.
27806         * elf/tst-dlmodcount.c (main): Converted to ...
27807         (do_test): ... this.
27808         (TEST_FUNCTION): New macro.
27809         Include test-skeleton.c.
27810         * elf/tst-order-main.c (main): Converted to ...
27811         (do_test): ... this.
27812         (TEST_FUNCTION): New macro.
27813         Include test-skeleton.c.
27814         * elf/tst-pie2.c (main): Converted to ...
27815         (do_test): ... this.
27816         (TEST_FUNCTION): New macro.
27817         Include test-skeleton.c.
27818         * inet/tst-ether_aton.c (main): Converted to ...
27819         (do_test): ... this.
27820         (TEST_FUNCTION): New macro.
27821         Include test-skeleton.c.
27822         * misc/tst-mntent.c (main): Converted to ...
27823         (do_test): ... this.
27824         (TEST_FUNCTION): New macro.
27825         Include test-skeleton.c.
27826         * misc/tst-tsearch.c (main): Converted to ...
27827         (do_test): ... this.
27828         (TEST_FUNCTION): New macro.
27829         Include test-skeleton.c.
27830         * posix/tst-regexloc.c (main): Converted to ...
27831         (do_test): ... this.
27832         (TEST_FUNCTION): New macro.
27833         Include test-skeleton.c.
27834         * resolv/tst-aton.c (main): Converted to ...
27835         (do_test): ... this.
27836         (TEST_FUNCTION): New macro.
27837         Include test-skeleton.c.
27838         * stdio-common/test-fwrite.c (main): Converted to ...
27839         (do_test): ... this.
27840         (TEST_FUNCTION): New macro.
27841         Include test-skeleton.c.
27842         * stdio-common/tst-ferror.c (main): Converted to ...
27843         (do_test): ... this.
27844         (TEST_FUNCTION): New macro.
27845         Include test-skeleton.c.
27846         * stdio-common/tst-printf.c (main): Converted to ...
27847         (do_test): ... this.
27848         (TEST_FUNCTION): New macro.
27849         Include test-skeleton.c.
27850         * stdio-common/tst-printfsz.c (main): Converted to ...
27851         (do_test): ... this.
27852         (TEST_FUNCTION): New macro.
27853         Include test-skeleton.c.
27854         * stdlib/tst-strtod.c (main): Converted to ...
27855         (do_test): ... this.
27856         (TEST_FUNCTION): New macro.
27857         Include test-skeleton.c.
27858         * string/tst-strlen.c (main): Converted to ...
27859         (do_test): ... this.
27860         (TEST_FUNCTION): New macro.
27861         Include test-skeleton.c.
27862         * string/tst-svc.c (main): Converted to ...
27863         (do_test): ... this.
27864         (TEST_FUNCTION): New macro.
27865         Include test-skeleton.c.
27866         * time/tst-strptime.c (main): Converted to ...
27867         (do_test): ... this.
27868         (TEST_FUNCTION): New macro.
27869         Include test-skeleton.c.
27870         * timezone/tst-timezone.c (main): Converted to ...
27871         (do_test): ... this.
27872         (TEST_FUNCTION): New macro.
27873         Include test-skeleton.c.
27874
27875 2015-08-05  Zack Weinberg  <zackw@panix.com>
27876
27877         * misc/regexp.h: Update comments.
27878
27879 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
27880
27881         [BZ #18635]
27882         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
27883         before return label.
27884
27885 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27886
27887         [BZ #18661]
27888         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
27889         when calling __errno_location.
27890         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
27891         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
27892
27893 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27894
27895         [BZ #18661]
27896         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
27897         (__lll_timedwait_tid): Align stack to 16 bytes when calling
27898         __gettimeofday.
27899
27900 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27901
27902         [BZ #18661]
27903         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
27904         (__start_context): Don't use pop to restore %rdi so that stack
27905         is aligned to 16 bytes when calling __setcontext.
27906
27907 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27908
27909         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
27910         only for libc.
27911         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
27912
27913 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27914
27915         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
27916         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
27917         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
27918
27919 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27920
27921         * string/memccpy.c (memccpy):
27922         Improve performance by using memchr/memcpy/__mempcpy.
27923
27924 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27925
27926         * string/strncpy.c (strncpy):
27927         Improve performance by using __strnlen/memcpy.
27928
27929 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27930
27931         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
27932         Optimize to avoid an unnecessary FPCR read.
27933
27934 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27935
27936         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
27937         Optimize to reduce FPCR/FPSR accesses.
27938
27939 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27940
27941         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
27942         dead->data[category] != NULL.
27943
27944 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
27945
27946         [BZ #18647]
27947         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
27948         and |x| close to 1, use absolute value of x when computing log.
27949         * math/auto-libm-test-in: Add more tests of pow.
27950         * math/auto-libm-test-out: Regenerated.
27951
27952 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27953
27954         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
27955         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
27956         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
27957
27958 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
27959
27960         [BZ #18525]
27961         * locales/km_KH: Remove timezone definition.
27962         * locales/lo_LA: Likewise.
27963         * locales/my_MM: Likewise.
27964         * locales/nan_TW@latin: Likewise.
27965         * locales/th_TH: Likewise.
27966         * locales/uk_UA: Likewise.
27967
27968 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
27969
27970         [BZ #18265]
27971         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
27972         (wcsncat): Likewise.
27973         (wcscmp): Likewise.
27974         (wcsncmp): Likewise.
27975
27976 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
27977
27978         * test-skeleton.c (usage): New function.
27979         (main): Call usage when opt is '?'.
27980
27981 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
27982
27983         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
27984         before first use.
27985
27986 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
27987
27988         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
27989         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
27990         in there too.
27991
27992 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
27993
27994         * version.h (RELEASE): Set to "development".
27995         (VERSION): Set to "2.22.90"
27996
27997         * version.h (RELEASE): Set to "stable".
27998         (VERSION): Set to "2.22"
27999         * include/features.h (__GLIBC_MINOR__): Set to 22.
28000
28001 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
28002
28003         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
28004         Restructure macro to avoid "value computed is not used" warning.
28005         (atomic_compare_and_exchange_val_acq): Likewise.
28006
28007 2015-08-04  Andreas Schwab  <schwab@suse.de>
28008
28009         [BZ #18635]
28010         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
28011         ret.
28012         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
28013
28014 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
28015
28016         * po/pl.po: Updated translation.
28017         * po/uk.po: Likewise.
28018         * po/fi.po: Likewise.
28019         * po/ko.po: Likewise.
28020         * po/ru.po: Likewise.
28021         * po/vi.po: Likewise.
28022
28023 2015-07-31  Zack Weinberg  <zackw@panix.com>
28024
28025         [BZ #18681]
28026         * regexp.h: Add unconditional #warning stating that this header
28027         will be removed soon.  Revise banner comment to match.
28028         (compile): Consistently use ERROR instead of RETURN to report
28029         errors (partial fix for BZ #18681).
28030         * regexp.c: Don't include regexp.h. Remove some unnecessary
28031         declarations.
28032
28033 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
28034
28035         * po/libc.pot: Regenerated.
28036
28037 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
28038
28039         [BZ #18740]
28040         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
28041         float-vlen4-arch-ext-cflags): Removed.
28042         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
28043         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
28044
28045 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
28046
28047         [BZ #14113]
28048         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
28049         aligned to __aligned__.
28050         (pthread_cond_t, pthread_rwlock_t): Likewise.
28051
28052 2015-07-30  Torvald Riegel  <triegel@redhat.com>
28053
28054         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
28055
28056 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
28057
28058         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
28059         (struct sigaction): Change sa_flags from a long to an int, and add
28060         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
28061
28062 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
28063
28064         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
28065         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
28066         sysdeps/generic/sysdep.h include.
28067         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
28068         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
28069         sysdeps/hppa/sysdep.h.
28070         (ENTRY, PSEUDO): Undefine before defining.
28071
28072 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
28073
28074         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
28075         from scratch to use INTERNAL_SYSCALL.
28076
28077 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
28078
28079         [BZ #18078]
28080         * scripts/check-localplt.awk: Support alternate relocations.
28081         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
28082         sections.
28083         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
28084         malloc entries with + REL R_386_GLOB_DAT.
28085         * sysdeps/x86_64/localplt.data: New file.
28086
28087 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
28088
28089         [BZ #18731]
28090         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
28091         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
28092         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
28093
28094 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28095
28096         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
28097
28098 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28099
28100         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
28101         directly in terms of __sync_fetch_and_add and delete (int) cast.
28102
28103 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28104
28105         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
28106         the -D_ASM_IA64_CURRENT_H flag.
28107
28108 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28109
28110         [BZ #18641]
28111         * pwd/pwd.h (putpwent): Delete __nonnull markings.
28112
28113 2015-07-27  Andreas Schwab  <schwab@suse.de>
28114
28115         * conform/conformtest.pl (checknamespace): Filter out string
28116         literals while tokenizing.
28117
28118 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
28119
28120         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
28121         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
28122         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
28123
28124 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
28125
28126         * nptl/tst-join7mod.c: Add #include <string.h>.
28127
28128 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
28129
28130         * sysdeps/nios2/libm-test-ulps: Update.
28131
28132 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
28133
28134         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
28135         Fix order of arguments to the rt_sigprocmask syscall.
28136         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
28137         Likewise.
28138
28139 2015-07-24  Roland McGrath  <roland@hack.frob.com>
28140
28141         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
28142
28143 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
28144
28145         [BZ #18457]
28146         * nptl/Makefile (tests): New test case tst-join7.
28147         (modules-names): New test case module tst-join7mod.
28148         * nptl/tst-join7.c: New file.
28149         * nptl/tst-join7mod.c: New file.
28150         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
28151         all translation units in libc.so, libpthread.so and rtld.
28152
28153 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28154
28155         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28156
28157 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
28158
28159         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
28160         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
28161         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
28162         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
28163         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
28164         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
28165         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
28166         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
28167         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
28168         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
28169         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
28170         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
28171         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
28172         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
28173         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
28174         implementation.
28175
28176 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28177
28178         [BZ #17711]
28179         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
28180         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
28181         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
28182         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
28183         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
28184         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
28185
28186 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
28187
28188         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
28189         instead of just saying load lock in the comments.
28190
28191 2015-07-23  Roland McGrath  <roland@hack.frob.com>
28192
28193         * sysdeps/unix/Subdirs: Moved ...
28194         * sysdeps/posix/Subdirs: ... here.
28195         * login/pty.h (struct termios, struct winsize): Add forward decls.
28196         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
28197         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
28198         * sysdeps/arm/nacl/libc.abilist: Updated.
28199         * sysdeps/nacl/libutil.abilist: New file.
28200
28201         * bits/signum.h: Update comments to mention 1003.1-2013 too.
28202         (SIGWINCH): New macro.
28203
28204         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
28205         * sysdeps/arm/nacl/libc.abilist: Add it.
28206
28207 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
28208
28209         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
28210
28211 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
28212
28213         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
28214         Swap __glibc_reserved0 and sa_flags order.
28215
28216 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
28217
28218         [BZ #18657]
28219         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
28220         are pending TLS destructor calls.
28221         * include/link.h (struct link_map): Add concurrency note for
28222         L_TLS_DTOR_COUNT.
28223         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
28224         Don't touch the link map flag.  Atomically increment
28225         l_tls_dtor_count.
28226         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
28227         Avoid taking the load lock and don't touch the link map flag.
28228         * stdlib/tst-tls-atexit-nodelete.c: New test case.
28229         * stdlib/Makefile (tests): Use it.
28230         * stdlib/tst-tls-atexit.c (do_test): dlopen
28231         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
28232         to allow tst-tls-atexit-nodelete test case to use it.
28233
28234 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28235
28236         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
28237         to bits/types.h.
28238         (msgqnum_t): New typedef.
28239         (msglen_t): Likewise.
28240         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
28241         and msg_qbytes type to msglen_t.
28242
28243 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28244
28245         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
28246         pad0 to __glibc_reserved0.
28247         (struct stat64): Likewise.
28248
28249 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28250
28251         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
28252         Change sa_flags from a long to an int and add __glibc_reserved0 before
28253         it for padding.
28254
28255 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28256
28257         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
28258         anonymous by deleting "siginfo" name.
28259
28260 2015-07-21  Roland McGrath  <roland@hack.frob.com>
28261
28262         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
28263         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
28264         rather than __nacl_irt_filename.
28265         * sysdeps/nacl/xstat.c (__xstat): Likewise.
28266
28267         * NEWS: New item for arm-nacl port.
28268         * sysdeps/arm/nacl/libc.abilist: New file.
28269         * sysdeps/nacl/ld.abilist: New file.
28270         * sysdeps/nacl/libBrokenLocale.abilist: New file.
28271         * sysdeps/nacl/libanl.abilist: New file.
28272         * sysdeps/nacl/libcrypt.abilist: New file.
28273         * sysdeps/nacl/libdl.abilist: New file.
28274         * sysdeps/nacl/libm.abilist: New file.
28275         * sysdeps/nacl/libpthread.abilist: New file.
28276         * sysdeps/nacl/libresolv.abilist: New file.
28277         * sysdeps/nacl/librt.abilist: New file.
28278
28279 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
28280
28281         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
28282         __startcontext to initialize the new context.
28283         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
28284         up CFI directive to forbid further backtracing.
28285
28286 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
28287
28288         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
28289         reference.
28290         * charmaps/ANSI_X3.4-1968: Likewise.
28291         * charmaps/BS_4730: Likewise.
28292         * charmaps/BS_VIEWDATA: Likewise.
28293         * charmaps/CP1250: Likewise.
28294         * charmaps/CP1251: Likewise.
28295         * charmaps/CP1252: Likewise.
28296         * charmaps/CP1253: Likewise.
28297         * charmaps/CP1254: Likewise.
28298         * charmaps/CP1255: Likewise.
28299         * charmaps/CP1256: Likewise.
28300         * charmaps/CSN_369103: Likewise.
28301         * charmaps/EBCDIC-DK-NO: Likewise.
28302         * charmaps/GB_1988-80: Likewise.
28303         * charmaps/GREEK-CCITT: Likewise.
28304         * charmaps/GREEK7: Likewise.
28305         * charmaps/INIS-8: Likewise.
28306         * charmaps/ISIRI-3342: Likewise.
28307         * charmaps/ISO_2033-1983: Likewise.
28308         * charmaps/ISO_5427-EXT: Likewise.
28309         * locales/POSIX: Likewise.
28310         * locales/ar_SA: Likewise.
28311         * locales/be_BY: Likewise.
28312         * locales/be_BY@latin: Likewise.
28313         * locales/ca_ES: Likewise.
28314         * locales/cs_CZ: Likewise.
28315         * locales/da_DK: Likewise.
28316         * locales/de_BE: Likewise.
28317         * locales/de_CH: Likewise.
28318         * locales/de_LU: Likewise.
28319         * locales/en_AU: Likewise.
28320         * locales/en_BW: Likewise.
28321         * locales/en_CA: Likewise.
28322         * locales/en_DK: Likewise.
28323         * locales/en_GB: Likewise.
28324         * locales/en_IE: Likewise.
28325         * locales/en_NZ: Likewise.
28326         * locales/en_ZA: Likewise.
28327         * locales/en_ZW: Likewise.
28328         * locales/es_AR: Likewise.
28329         * locales/es_BO: Likewise.
28330         * locales/es_CL: Likewise.
28331         * locales/es_CO: Likewise.
28332         * locales/es_DO: Likewise.
28333         * locales/es_EC: Likewise.
28334         * locales/es_ES: Likewise.
28335         * locales/es_HN: Likewise.
28336         * locales/es_MX: Likewise.
28337         * locales/es_PA: Likewise.
28338         * locales/es_PE: Likewise.
28339         * locales/es_PY: Likewise.
28340         * locales/es_SV: Likewise.
28341         * locales/es_US: Likewise.
28342         * locales/es_UY: Likewise.
28343         * locales/es_VE: Likewise.
28344         * locales/et_EE: Likewise.
28345         * locales/fa_IR: Likewise.
28346         * locales/fo_FO: Likewise.
28347         * locales/fr_CA: Likewise.
28348         * locales/fr_CH: Likewise.
28349         * locales/gv_GB: Likewise.
28350         * locales/he_IL: Likewise.
28351         * locales/hr_HR: Likewise.
28352         * locales/id_ID: Likewise.
28353         * locales/is_IS: Likewise.
28354         * locales/it_CH: Likewise.
28355         * locales/iw_IL: Likewise.
28356         * locales/kl_GL: Likewise.
28357         * locales/ko_KR: Likewise.
28358         * locales/kw_GB: Likewise.
28359         * locales/lg_UG: Likewise.
28360         * locales/lt_LT: Likewise.
28361         * locales/lv_LV: Likewise.
28362         * locales/mi_NZ: Likewise.
28363         * locales/nhn_MX: Likewise.
28364         * locales/nl_BE: Likewise.
28365         * locales/pl_PL: Likewise.
28366         * locales/sk_SK: Likewise.
28367         * locales/sl_SI: Likewise.
28368         * locales/sv_FI: Likewise.
28369         * locales/tl_PH: Likewise.
28370         * locales/tr_TR: Likewise.
28371         * locales/vi_VN: Likewise.
28372
28373 2015-07-21  Khem Raj  <raj.khem@gmail.com>
28374
28375         [BZ #17475]
28376         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
28377         of tu_IN and bh_IN.
28378
28379 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
28380
28381         [BZ #18694]
28382         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
28383         bits/wordsize.h.
28384         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
28385
28386 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
28387
28388         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
28389         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
28390         (spawn_thread): New function.
28391         (load): Rename to reg_dtor_and_close.  Move dlopen to...
28392         (do_test): ... here.  Use IS_LOADED to test for its
28393         availability.
28394
28395 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
28396
28397         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
28398
28399 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
28400
28401         [BZ #18696]
28402         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
28403         si_addr_bnd.
28404         (si_lower): New.
28405         (si_upper): Likewise.
28406
28407 2015-07-16  David S. Miller  <davem@davemloft.net>
28408
28409         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
28410
28411 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28412
28413         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
28414         buffer.
28415         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
28416         fail output information.
28417
28418 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28419
28420         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
28421         and strstr-ppc64..
28422         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
28423         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
28424         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
28425         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
28426         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
28427
28428 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
28429
28430         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
28431         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
28432         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
28433         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
28434
28435 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
28436
28437         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
28438         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
28439         rtld_hidden_proto.
28440         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
28441
28442 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
28443
28444         * tst-nodelete-opened.c (do_test): Add comment to clarify how
28445         the test can fail.
28446
28447         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
28448
28449         [BZ #18676]
28450         * elf/tst-nodelete-opened.c: New test case.
28451         * elf/tst-nodelete-opened-lib.c: New test case module.
28452         * elf/Makefile (tests, modules-names): Use them.
28453         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
28454         early.
28455
28456 2015-07-15  David S. Miller  <davem@davemloft.net>
28457
28458         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
28459         futex-intenal.h
28460         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
28461         * sysdeps/sparc/sparc64/Makefile: Likewise.
28462         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
28463         Remove space from macro define.
28464         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
28465
28466 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
28467
28468         [BZ #17475]
28469         * locale/iso-639.def: Update Bhili and Tulu language codes as
28470         per iso639-3.
28471
28472 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
28473
28474         * elf/tst-leaks1.c (main): Converted to ...
28475         (do_test): ... this.
28476         (TEST_FUNCTION): New macro.
28477         Include test-skeleton.c.
28478         * localedata/tst-langinfo.c (main): Converted to ...
28479         (do_test): ... this.
28480         (TEST_FUNCTION): New macro.
28481         Include test-skeleton.c.
28482         * math/test-fpucw.c (main): Converted to ...
28483         (do_test): ... this.
28484         (TEST_FUNCTION): New macro.
28485         Include test-skeleton.c.
28486         * math/test-tgmath.c (main): Converted to ...
28487         (do_test): ... this.
28488         (TEST_FUNCTION): New macro.
28489         Include test-skeleton.c.
28490         * math/test-tgmath2.c (main): Converted to ...
28491         (do_test): ... this.
28492         (TEST_FUNCTION): New macro.
28493         Include test-skeleton.c.
28494         * setjmp/tst-setjmp.c (main): Converted to ...
28495         (do_test): ... this.
28496         (TEST_FUNCTION): New macro.
28497         Include test-skeleton.c.
28498         * stdio-common/tst-sscanf.c (main): Converted to ...
28499         (do_test): ... this.
28500         (TEST_FUNCTION): New macro.
28501         Include test-skeleton.c.
28502         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
28503         (do_test): ... this.
28504         (TEST_FUNCTION): New macro.
28505         Include test-skeleton.c.
28506
28507         * elf/tst-audit9.c (main): Converted to ...
28508         (do_test): ... this.
28509         (TEST_FUNCTION): New macro.
28510         Include test-skeleton.c.
28511
28512 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
28513
28514         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
28515
28516 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
28517
28518         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
28519         New variable.
28520
28521 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
28522
28523         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28524
28525 2015-07-14  Roland McGrath  <roland@hack.frob.com>
28526
28527         * sysdeps/generic/dl-fileid.h: New file.
28528         * sysdeps/posix/dl-fileid.h: New file.
28529         * sysdeps/nacl/dl-fileid.h: New file.
28530         * include/link.h: Include <dl-fileid.h>.
28531         (struct link_map): Replace l_dev and l_ino with l_file_id.
28532         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
28533         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
28534         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
28535
28536 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
28537
28538         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
28539
28540 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28541
28542         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
28543         Add iff $CXX is set.
28544         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
28545         Likewise.
28546         (tst-nodelete-zmodiff): Likewise.
28547         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
28548
28549 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
28550
28551         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
28552
28553 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
28554
28555         * sysdeps/aarch64/fpu/math_private.h
28556         (define math_opt_barrier): Add AArch64 version.
28557         (math_force_eval): Likewise.
28558
28559 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
28560
28561         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
28562
28563 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
28564
28565         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
28566         %ld with %jd and cast to intmax_t.
28567         (do_test_length_zero): Likewise.
28568
28569 2015-07-10  Roland McGrath  <roland@hack.frob.com>
28570
28571         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
28572
28573 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
28574
28575         * sysdeps/tile/libm-test-ulps: Regenerated.
28576
28577         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
28578         Comment out the whole function, not just its body.
28579
28580 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28581
28582         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
28583         locks.
28584
28585         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
28586
28587 2015-07-10  Torvald Riegel  <triegel@redhat.com>
28588
28589         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
28590         (sem_assume_only_signals_cause_futex_EINTR): Remove.
28591
28592 2015-07-10  Torvald Riegel  <triegel@redhat.com>
28593
28594         * sysdeps/nptl/futex-internal.h: New file.
28595         * sysdeps/nacl/futex-internal.h: New file.
28596         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
28597         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
28598         error checking.
28599         (setxid_unmark_thread): Likewise.
28600         (__nptl_setxid): Likewise.
28601         (__wait_lookup_done): Likewise.
28602         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28603         * nptl/nptl-init.c (sighandler_setxid): Likewise.
28604         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
28605         * nptl/pthread_once.c (clear_once_control): Likewise.
28606         (__pthread_once_slow): Likewise.
28607         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
28608         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
28609         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
28610         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
28611         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
28612         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
28613         Likewise.
28614         (__pthread_rwlock_rdlock): Likewise.
28615         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
28616         Likewise.
28617         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
28618         Likewise.
28619         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
28620         Likewise.
28621         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
28622         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
28623         Likewise.
28624         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
28625         __ASSUME_PRIVATE_FUTEX check.
28626         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
28627         Check that shared futexes are supported.
28628         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
28629         wrappers with error checking.
28630         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
28631         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
28632         * nptl/pthread_barrierattr_setpshared.c
28633         (pthread_barrierattr_setpshared): Check that shared futexes are
28634         supported.
28635         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
28636         Likewise.
28637         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
28638         Likewise.
28639         * nptl/sem_init.c (futex_private_if_supported): Remove.
28640         (__new_sem_init): Adapt and check that shared futexes are supported.
28641         * nptl/sem_open.c (sem_open): Likewise.
28642         * nptl/sem_post.c (futex_wake): Remove.
28643         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
28644         (do_futex_wait): Use futex wrappers with error checking.
28645         * nptl/sem_wait.c: Include lowlevellock.h.
28646         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
28647         Use futex_supports_pshared.
28648         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
28649         Use futex wrappers with error checking.
28650         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
28651         Likewise.
28652         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
28653         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
28654         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
28655         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
28656         (futex_wake): Likewise.
28657         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
28658         (do_futex_wait): Use futex wrappers with error checking.
28659         (__new_sem_wait_slow): Update EINTR handling.
28660         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
28661
28662 2015-07-09  Martin Sebor  <msebor@redhat.com>
28663
28664         [BZ #18435]
28665         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
28666         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
28667         * nptl/Makefile (test-xfail-tst-once5): Define.
28668
28669 2015-07-09  Roland McGrath  <roland@hack.frob.com>
28670
28671         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
28672         * elf/dl-minimal.c: For readability, reorder some definitions and
28673         introduce more page breaks.  Include <stdio.h>.
28674         (__libc_fatal): New function.
28675
28676         * include/unistd.h: Add rtld_hidden_proto for _exit.
28677         * posix/_exit.c: Add rtld_hidden_def.
28678         * sysdeps/mach/hurd/_exit.c: Likewise.
28679         * sysdeps/nacl/_exit.c: Likewise.
28680         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
28681         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
28682
28683 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
28684
28685         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
28686         bndmov encoding with zero displacement.
28687
28688 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
28689             H.J. Lu  <hongjiu.lu@intel.com>
28690
28691         [BZ #18134]
28692         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
28693         * sysdeps/i386/configure: Regenerated.
28694         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
28695         (_dl_runtime_profile): Save and restore Intel MPX return bound
28696         registers when calling _dl_call_pltexit.  Add
28697         PRESERVE_BND_REGS_PREFIX before return.
28698         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
28699         (LRV_BND1_OFFSET): Likewise.
28700         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
28701         lrv_bnd1.
28702         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
28703         typo in bndmov encoding.
28704         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
28705         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
28706         branch instructions to preserve bounds.
28707
28708 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28709
28710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
28711         [GLIBC_2.22]: Add fmemopen.
28712
28713 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28714
28715         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
28716         returns an error, also try to use host port from __mach_host_self for
28717         the __vm_wire call.
28718         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
28719
28720 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28721
28722         [BZ #18400]
28723         [BZ #18648]
28724         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
28725         Fix pr_uid and pr_gid members.
28726         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
28727         definition to elf_greg_t.
28728
28729 2015-07-08  Roland McGrath  <roland@hack.frob.com>
28730
28731         [BZ #18383]
28732         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
28733         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
28734         * sysdeps/arm/configure: Regenerated.
28735         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
28736         (test-xfail-tst-tlsalign-static): Variable removed.
28737
28738         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
28739         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
28740         rather than explicit 'ln -s'.
28741
28742         * resolv/rpc/netdb.h: New file.
28743         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
28744
28745 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28746
28747         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
28748         length buffers.
28749         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
28750         test-skeleton.c.
28751
28752         [BZ #6544]
28753         [BZ #11216]
28754         [BZ #12836]
28755         [BZ #13151]
28756         [BZ #13152]
28757         [BZ #14292]
28758         * include/stdio.h (fmemopen): Remove hidden prototype.
28759         (__fmemopen): Add new hidden prototype.
28760         * libio/Makefile: Add oldfmemopen object.
28761         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
28762         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
28763         compliance.
28764         * libio/oldfmemopen.c: New file: old fmemopen implementation for
28765         symbol compatibility.
28766         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
28767         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
28768         fmemopen.
28769         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
28770         on append and read mode.
28771         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
28772         fmemopen.
28773         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
28774         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
28775         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
28776         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
28777         Likewise.
28778         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
28779         [GLIBC_2.22]: Likewise.
28780         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
28781         Likewise.
28782         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
28783         Likewise.
28784         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
28785         [GLIBC_2.22]: Likewise.
28786         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
28787         [GLIBC_2.22]: Likewise.
28788         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
28789         [GLIBC_2.22]: Likewise.
28790         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
28791         [GLIBC_2.22]: Likewise.
28792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
28793         [GLIBC_2.22]: Likewise.
28794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
28795         [GLIBC_2.22]: Likewise.
28796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
28797         [GLIBC_2.22]: Likewise.
28798         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
28799         Likewise.
28800         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
28801         Likewise.
28802         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
28803         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
28804         [GLIBC_2.22]: Likewise.
28805         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
28806         [GLIBC_2.22]: Likewise.
28807         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
28808         [GLIBC_2.22]: Likewise.
28809         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
28810         [GLIBC_2.22]: Likewise.
28811         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
28812         Likewise.
28813         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
28814         Likewise.
28815         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
28816         Likewise.
28817         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
28818         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
28819
28820 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
28821
28822         [BZ #18643]
28823         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
28824         IPV6_PATHMTU, and IPV6_DONTFRAG.
28825
28826 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
28827
28828         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
28829         and _IO_UNBUFFERED.
28830         * libio/oldfileops.c: Likewise.
28831         * libio/wfileops.c: Likewise.
28832
28833 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
28834
28835         * nscd/selinux.c: Delete selinux/flask.h include.
28836
28837 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
28838
28839         [BZ #18641]
28840         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
28841         (putpwent): Likewise.
28842         (getpwnam): Likewise.
28843         (getpwent_r): Likewise.
28844         (getpwuid_r): Likewise.
28845         (getpwnam_r): Likewise.
28846         (fgetpwent_r): Likewise.
28847
28848 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
28849
28850         [BZ #18557]
28851         * inet/rcmd.c (__validuser2_sa): Check user first to
28852         short-circuit host check.
28853
28854 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
28855             Mikhail Ilin  <m.ilin@samsung.com>
28856
28857         [BZ #17833]
28858         * elf/Makefile (tests): Add tst-nodelete.
28859         (modules-names): Add tst-nodelete-uniquemod.
28860         (tst-nodelete-uniquemod.so-no-z-defs): New.
28861         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
28862         (tst-nodelete-zmod.so-no-z-defs): Likewise.
28863         ($(objpfx)tst-nodelete): Likewise.
28864         ($(objpfx)tst-nodelete.out): Likewise.
28865         (LDFLAGS-tst-nodelete): Likewise.
28866         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
28867         * elf/dl-close.c (_dl_close_worker): Add a parameter to
28868         implement forced object deletion.
28869         (_dl_close): Pass false to _dl_close_worker.
28870         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
28871         * elf/tst-nodelete.cc: New file.
28872         * elf/tst-nodeletelib.cc: Likewise.
28873         * elf/tst-znodeletelib.cc: Likewise.
28874         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
28875
28876 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
28877
28878         [BZ #18508]
28879         * stdlib/Makefile ($(objpfx)tst-makecontext3):
28880         Depend on $(libdl).
28881         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
28882         is not called infinitely times.
28883         (backtrace_helper): New function.
28884         (trace_arg): New struct.
28885         (st1): Enlarge stack size.
28886         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
28887         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
28888         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
28889         Likewise.
28890
28891 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
28892
28893         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28894
28895 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
28896
28897         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
28898         Include sys/types.h instead of bits/types.h.
28899         Remove inclusion of bits/wordsize.h.
28900
28901 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
28902
28903         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
28904         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
28905         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
28906         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
28907         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
28908         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
28909
28910 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
28911
28912         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
28913         link-defines.sym.
28914         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
28915         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
28916         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
28917         and LR_SIZE.
28918         * sysdeps/i386/link-defines.sym: New file.
28919
28920 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
28921
28922         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
28923         (modules-names): Add tst-auditmod3a tst-auditmod3b.
28924         ($(objpfx)tst-audit3): New rule.
28925         ($(objpfx)tst-audit3.out): Likewise.
28926         * sysdeps/i386/tst-audit3.c: New file.
28927         * sysdeps/i386/tst-audit3.h: Likewise.
28928         * sysdeps/i386/tst-auditmod3a.c: Likewise.
28929         * sysdeps/i386/tst-auditmod3b.c: Likewise.
28930
28931 2015-07-07  Torvald Riegel  <triegel@redhat.com>
28932
28933         [BZ #18633]
28934         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
28935         pointer in C code.
28936         (__strcat_c): Likewise.
28937         (__strcat_g): Likewise.
28938
28939 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
28940
28941         [BZ #18592]
28942         * misc/sbrk.c: Set errno to ENOMEM on overflow.
28943
28944 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
28945
28946         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
28947         New function.  (__ieee754_sqrtf): New function.
28948         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
28949         New function.
28950         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
28951         New function.
28952
28953 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
28954
28955         * sysdeps/ieee754/support.c: Remove unused file.
28956
28957 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28958
28959         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
28960         registers instead of d ones so the layout is kernel abi compatible.
28961         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
28962         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
28963         Likewise.
28964
28965 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28966
28967         * sysdeps/aarch64/libm-test-ulps: Regenerated.
28968
28969 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
28970
28971         [BZ #18619]
28972         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
28973         and return argument in case of subnormal argument.
28974
28975 2015-07-01  Martin Sebor  <msebor@redhat.com>
28976
28977         [BZ #18435]
28978         * nptl/Makefile: Add tst-once5.cc.
28979         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
28980         Remove macro redefinitions.
28981         * nptl/tst-once5.cc: New test.
28982
28983 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
28984
28985         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
28986
28987         * sysdeps/arm/libm-test-ulps: Regenerated.
28988
28989         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
28990         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28991
28992 2015-06-30  Torvald Riegel  <triegel@redhat.com>
28993
28994         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
28995         lll_lock_wait_private and lll_futex_wake probes.
28996
28997         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
28998         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
28999         Likewise.
29000         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
29001         atomic_spin_nop.
29002         * sysdeps/x86_64/bits/atomic.h: Likewise.
29003         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
29004         to atomic_spin_nop and move ...
29005         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
29006         ... here and ...
29007         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
29008         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
29009         atomic_spin_nop instead of BUSY_WAIT_NOP.
29010         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
29011         Likewise.
29012         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
29013         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
29014         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
29015         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
29016         instead of atomic_delay.
29017
29018 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
29019
29020         [BZ #18613]
29021         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
29022         X_ADJ not X when adjusting exponent.
29023         (__ieee754_gamma_r): Do intermediate computations in
29024         round-to-nearest then adjust overflowing and underflowing results
29025         as needed.
29026         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
29027         of X_ADJ not X when adjusting exponent.
29028         (__ieee754_gammaf_r): Do intermediate computations in
29029         round-to-nearest then adjust overflowing and underflowing results
29030         as needed.
29031         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
29032         log of X_ADJ not X when adjusting exponent.
29033         (__ieee754_gammal_r): Do intermediate computations in
29034         round-to-nearest then adjust overflowing and underflowing results
29035         as needed.  Use 1.0L not 1.0f as numerator of division.
29036         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
29037         log of X_ADJ not X when adjusting exponent.
29038         (__ieee754_gammal_r): Do intermediate computations in
29039         round-to-nearest then adjust overflowing and underflowing results
29040         as needed.  Use 1.0L not 1.0f as numerator of division.
29041         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
29042         of X_ADJ not X when adjusting exponent.
29043         (__ieee754_gammal_r): Do intermediate computations in
29044         round-to-nearest then adjust overflowing and underflowing results
29045         as needed.  Use 1.0L not 1.0f as numerator of division.
29046         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
29047         to auto-libm-test-in.
29048         (tgamma_test): Use ALL_RM_TEST.
29049         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
29050         tests of tgamma with spurious-overflow.
29051         * math/auto-libm-test-out: Regenerated.
29052         * math/gen-libm-have-vector-test.sh: Do not check for START.
29053         * sysdeps/i386/fpu/libm-test-ulps: Update.
29054         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29055
29056         [BZ #18612]
29057         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
29058         arguments, just return 0.5 times the argument, with underflow
29059         forced as needed.
29060         * math/auto-libm-test-in: Add more tests of j1.
29061         * math/auto-libm-test-out: Regenerated.
29062
29063         [BZ #16559]
29064         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
29065         (__ieee754_j1): Force underflow exception for small results.
29066         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
29067         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
29068         (__ieee754_j1f): Force underflow exception for small results.
29069         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
29070         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
29071         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
29072         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
29073         (__ieee754_j1l): Force underflow exception for small results.
29074         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
29075         * math/auto-libm-test-in: Add more tests of j1 and jn.
29076         * math/auto-libm-test-out: Regenerated.
29077
29078         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
29079         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
29080         (PF_MPLS): Likewise.
29081         (AF_IB): Likewise.
29082         (AF_MPLS): Likewise.
29083         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
29084         value and macro.
29085         (MS_RMT_MASK): Include MS_LAZYTIME.
29086
29087 2015-06-26  Mel Gorman  <mgorman@suse.de>
29088
29089         [BZ #18502]
29090         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
29091         already minimal.
29092
29093 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
29094
29095         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
29096         (DT_MIPS_NUM): Update.
29097         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
29098         DT_MIPS_RLD_MAP_REL.
29099
29100 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
29101
29102         [BZ #16559]
29103         [BZ #18602]
29104         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
29105         round-to-nearest internally then recompute results that
29106         underflowed to zero in the original rounding mode.
29107         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
29108         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
29109         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
29110         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
29111         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
29112         * sysdeps/i386/fpu/libm-test-ulps: Update.
29113         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29114
29115 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
29116
29117         * NEWS: Fixed description of link with vector math library.
29118
29119 2015-06-25  Andreas Schwab  <schwab@suse.de>
29120
29121         [BZ #18549]
29122         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
29123         * libio/test-fmemopen.c (do_test): Add test for it.
29124
29125 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
29126
29127         [BZ #17841]
29128         * Makeconfig (no-pie-ldflag): New.
29129         (+link): Set to $(+link-pie) if default to PIE.
29130         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
29131         * config.make.in (build-pie-default): New.
29132         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
29133         is default.  AC_SUBST.
29134         * configure: Regenerated.
29135         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
29136
29137 2015-06-24  Roland McGrath  <roland@hack.frob.com>
29138
29139         * nptl/descr.h (struct pthread): Change type of field setxid_futex
29140         to 'unsigned int'.
29141
29142         * resolv/gai_misc.h (struct waitlist): Change type of field
29143         counterp to 'volatile unsigned int *'.
29144         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
29145         FUTEXADDR and OLDVAL.
29146         * resolv/getaddrinfo_a.c (getaddrinfo_a):
29147         Give local variable TOTAL type 'volatile unsigned int'.
29148         (struct async_waitlist): Change type of field counter to 'unsigned int'.
29149         * resolv/gai_suspend.c (gai_suspend):
29150         Give local variable CNTR type 'unsigned int'.
29151
29152         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
29153         counterp to 'volatile unsigned int *'.
29154         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
29155         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
29156         (aio_suspend): Give local variable CNTR type 'unsigned int'.
29157         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
29158         Give local variable TOTAL type 'volatile unsigned int'.
29159         (struct async_waitlist): Change type of field counter to 'unsigned int'.
29160
29161 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
29162
29163         [BZ #18383]
29164         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
29165         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
29166         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
29167         comment for i386/x86-64.
29168         (test-xfail-tst-tlsalign-extern-static): Removed.
29169
29170 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
29171
29172         * math/test-double.h: New file.
29173         * math/test-float.h: Likewise.
29174         * math/test-ldouble.h: Likewise.
29175         * math/test-math-inline.h: Likewise.
29176         * math/test-math-no-inline.h: Likewise.
29177         * math/test-math-scalar.h: Likewise.
29178         * math/test-math-vector.h: Likewise.
29179         * math/test-vec-loop.h: Remove file.  Contents moved into
29180         test-math-vector.h.
29181         * math/libm-test.inc (MATHCONST): Do not document macro.
29182         * math/test-double.c: Include test-double.h, test-math-no-inline.h
29183         and test-math-scalar.h.
29184         (FUNC): Remove macro.
29185         (FUNC_TEST): Likewise.
29186         (FLOAT): Likewise.
29187         (MATHCONST): Likewise.
29188         (PRINTF_EXPR): Likewise.
29189         (PRINTF_XEXPR): Likewise.
29190         (PRINTF_NEXPR): Likewise.
29191         (TEST_DOUBLE): Likewise.
29192         (TEST_MATHVEC): Likewise.
29193         (__NO_MATH_INLINES): Likewise.
29194         * math/test-float.c: Include test-float.h, test-math-no-inline.h
29195         and test-math-scalar.h.
29196         (FUNC): Remove macro.
29197         (FUNC_TEST): Likewise.
29198         (FLOAT): Likewise.
29199         (MATHCONST): Likewise.
29200         (PRINTF_EXPR): Likewise.
29201         (PRINTF_XEXPR): Likewise.
29202         (PRINTF_NEXPR): Likewise.
29203         (TEST_FLOAT): Likewise.
29204         (TEST_MATHVEC): Likewise.
29205         (__NO_MATH_INLINES): Likewise.
29206         * math/test-idouble.c: Include test-double.h, test-math-inline.h
29207         and test-math-scalar.h.
29208         (FUNC): Remove macro.
29209         (FUNC_TEST): Likewise.
29210         (FLOAT): Likewise.
29211         (MATHCONST): Likewise.
29212         (PRINTF_EXPR): Likewise.
29213         (PRINTF_XEXPR): Likewise.
29214         (PRINTF_NEXPR): Likewise.
29215         (TEST_DOUBLE): Likewise.
29216         (TEST_MATHVEC): Likewise.
29217         (TEST_INLINE): Likewise.
29218         (__NO_MATH_INLINES): Likewise.
29219         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
29220         test-math-scalar.h.
29221         (FUNC): Remove macro.
29222         (FUNC_TEST): Likewise.
29223         (FLOAT): Likewise.
29224         (MATHCONST): Likewise.
29225         (PRINTF_EXPR): Likewise.
29226         (PRINTF_XEXPR): Likewise.
29227         (PRINTF_NEXPR): Likewise.
29228         (TEST_FLOAT): Likewise.
29229         (TEST_MATHVEC): Likewise.
29230         (TEST_INLINE): Likewise.
29231         (__NO_MATH_INLINES): Likewise.
29232         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
29233         and test-math-scalar.h.
29234         (FUNC): Remove macro.
29235         (FUNC_TEST): Likewise.
29236         (FLOAT): Likewise.
29237         (MATHCONST): Likewise.
29238         (PRINTF_EXPR): Likewise.
29239         (PRINTF_XEXPR): Likewise.
29240         (PRINTF_NEXPR): Likewise.
29241         (TEST_LDOUBLE): Likewise.
29242         (TEST_MATHVEC): Likewise.
29243         (TEST_INLINE): Likewise.
29244         (__NO_MATH_INLINES): Likewise.
29245         * math/test-ldouble.c: Include test-ldouble.h,
29246         test-math-no-inline.h and test-math-scalar.h.
29247         (FUNC): Remove macro.
29248         (FUNC_TEST): Likewise.
29249         (FLOAT): Likewise.
29250         (MATHCONST): Likewise.
29251         (PRINTF_EXPR): Likewise.
29252         (PRINTF_XEXPR): Likewise.
29253         (PRINTF_NEXPR): Likewise.
29254         (TEST_LDOUBLE): Likewise.
29255         (TEST_MATHVEC): Likewise.
29256         (__NO_MATH_INLINES): Likewise.
29257         * math/test-double-vlen2.h: Include test-double.h,
29258         test-math-no-inline.h and test-math-vector.h.
29259         (FLOAT): Remove macro.
29260         (FUNC): Likewise.
29261         (MATHCONST): Likewise.
29262         (PRINTF_EXPR): Likewise.
29263         (PRINTF_XEXPR): Likewise.
29264         (PRINTF_NEXPR): Likewise.
29265         (TEST_DOUBLE): Likewise.
29266         (TEST_MATHVEC): Likewise.
29267         (__NO_MATH_INLINES): Likewise.
29268         (CNCT): Likewise.
29269         (CONCAT): Likewise.
29270         (WRAPPER_NAME): Likewise.
29271         (WRAPPER_DECL): Likewise.
29272         (WRAPPER_DECL_ff): Likewise.
29273         (WRAPPER_DECL_fFF): Likewise.
29274         (VECTOR_WRAPPER): Likewise.
29275         (VECTOR_WRAPPER_ff): Likewise.
29276         (VECTOR_WRAPPER_fFF): Likewise.
29277         (VEC_LEN): New macro.
29278         * math/test-double-vlen4.h: Include test-double.h,
29279         test-math-no-inline.h and test-math-vector.h.
29280         (FLOAT): Remove macro.
29281         (FUNC): Likewise.
29282         (MATHCONST): Likewise.
29283         (PRINTF_EXPR): Likewise.
29284         (PRINTF_XEXPR): Likewise.
29285         (PRINTF_NEXPR): Likewise.
29286         (TEST_DOUBLE): Likewise.
29287         (TEST_MATHVEC): Likewise.
29288         (__NO_MATH_INLINES): Likewise.
29289         (CNCT): Likewise.
29290         (CONCAT): Likewise.
29291         (WRAPPER_NAME): Likewise.
29292         (WRAPPER_DECL): Likewise.
29293         (WRAPPER_DECL_ff): Likewise.
29294         (WRAPPER_DECL_fFF): Likewise.
29295         (VECTOR_WRAPPER): Likewise.
29296         (VECTOR_WRAPPER_ff): Likewise.
29297         (VECTOR_WRAPPER_fFF): Likewise.
29298         (VEC_LEN): New macro.
29299         * math/test-double-vlen8.h: Include test-double.h,
29300         test-math-no-inline.h and test-math-vector.h.
29301         (FLOAT): Remove macro.
29302         (FUNC): Likewise.
29303         (MATHCONST): Likewise.
29304         (PRINTF_EXPR): Likewise.
29305         (PRINTF_XEXPR): Likewise.
29306         (PRINTF_NEXPR): Likewise.
29307         (TEST_DOUBLE): Likewise.
29308         (TEST_MATHVEC): Likewise.
29309         (__NO_MATH_INLINES): Likewise.
29310         (CNCT): Likewise.
29311         (CONCAT): Likewise.
29312         (WRAPPER_NAME): Likewise.
29313         (WRAPPER_DECL): Likewise.
29314         (WRAPPER_DECL_ff): Likewise.
29315         (WRAPPER_DECL_fFF): Likewise.
29316         (VECTOR_WRAPPER): Likewise.
29317         (VECTOR_WRAPPER_ff): Likewise.
29318         (VECTOR_WRAPPER_fFF): Likewise.
29319         (VEC_LEN): New macro.
29320         * math/test-float-vlen4.h: Include test-float.h,
29321         test-math-no-inline.h and test-math-vector.h.
29322         (FLOAT): Remove macro.
29323         (FUNC): Likewise.
29324         (MATHCONST): Likewise.
29325         (PRINTF_EXPR): Likewise.
29326         (PRINTF_XEXPR): Likewise.
29327         (PRINTF_NEXPR): Likewise.
29328         (TEST_FLOAT): Likewise.
29329         (TEST_MATHVEC): Likewise.
29330         (__NO_MATH_INLINES): Likewise.
29331         (CNCT): Likewise.
29332         (CONCAT): Likewise.
29333         (WRAPPER_NAME): Likewise.
29334         (WRAPPER_DECL): Likewise.
29335         (WRAPPER_DECL_ff): Likewise.
29336         (WRAPPER_DECL_fFF): Likewise.
29337         (VECTOR_WRAPPER): Likewise.
29338         (VECTOR_WRAPPER_ff): Likewise.
29339         (VECTOR_WRAPPER_fFF): Likewise.
29340         (VEC_LEN): New macro.
29341         * math/test-float-vlen8.h: Include test-float.h,
29342         test-math-no-inline.h and test-math-vector.h.
29343         (FLOAT): Remove macro.
29344         (FUNC): Likewise.
29345         (MATHCONST): Likewise.
29346         (PRINTF_EXPR): Likewise.
29347         (PRINTF_XEXPR): Likewise.
29348         (PRINTF_NEXPR): Likewise.
29349         (TEST_FLOAT): Likewise.
29350         (TEST_MATHVEC): Likewise.
29351         (__NO_MATH_INLINES): Likewise.
29352         (CNCT): Likewise.
29353         (CONCAT): Likewise.
29354         (WRAPPER_NAME): Likewise.
29355         (WRAPPER_DECL): Likewise.
29356         (WRAPPER_DECL_ff): Likewise.
29357         (WRAPPER_DECL_fFF): Likewise.
29358         (VECTOR_WRAPPER): Likewise.
29359         (VECTOR_WRAPPER_ff): Likewise.
29360         (VECTOR_WRAPPER_fFF): Likewise.
29361         (VEC_LEN): New macro.
29362         * math/test-float-vlen16.h: Include test-float.h,
29363         test-math-no-inline.h and test-math-vector.h.
29364         (FLOAT): Remove macro.
29365         (FUNC): Likewise.
29366         (MATHCONST): Likewise.
29367         (PRINTF_EXPR): Likewise.
29368         (PRINTF_XEXPR): Likewise.
29369         (PRINTF_NEXPR): Likewise.
29370         (TEST_FLOAT): Likewise.
29371         (TEST_MATHVEC): Likewise.
29372         (__NO_MATH_INLINES): Likewise.
29373         (CNCT): Likewise.
29374         (CONCAT): Likewise.
29375         (WRAPPER_NAME): Likewise.
29376         (WRAPPER_DECL): Likewise.
29377         (WRAPPER_DECL_ff): Likewise.
29378         (WRAPPER_DECL_fFF): Likewise.
29379         (VECTOR_WRAPPER): Likewise.
29380         (VECTOR_WRAPPER_ff): Likewise.
29381         (VECTOR_WRAPPER_fFF): Likewise.
29382         (VEC_LEN): New macro.
29383         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
29384         test-vec-loop.h.
29385         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
29386         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
29387         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
29388         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
29389         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
29390         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
29391         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
29392
29393 2015-06-24  Roland McGrath  <roland@hack.frob.com>
29394
29395         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
29396         (__getlogin_r): ... this.
29397
29398 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
29399
29400         [BZ #18594]
29401         * math/s_ccosh.c (__ccosh): Compare with least normal value
29402         instead of comparing class with FP_SUBNORMAL.
29403         * math/s_ccoshf.c (__ccoshf): Likewise.
29404         * math/s_ccoshl.c (__ccoshl): Likewise.
29405         * math/s_cexp.c (__cexp): Likewise.
29406         * math/s_cexpf.c (__cexpf): Likewise.
29407         * math/s_cexpl.c (__cexpl): Likewise.
29408         * math/s_csin.c (__csin): Likewise.
29409         * math/s_csinf.c (__csinf): Likewise.
29410         * math/s_csinh.c (__csinh): Likewise.
29411         * math/s_csinhf.c (__csinhf): Likewise.
29412         * math/s_csinhl.c (__csinhl): Likewise.
29413         * math/s_csinl.c (__csinl): Likewise.
29414         * math/s_ctan.c (__ctan): Likewise.
29415         * math/s_ctanf.c (__ctanf): Likewise.
29416         * math/s_ctanh.c (__ctanh): Likewise.
29417         * math/s_ctanhf.c (__ctanhf): Likewise.
29418         * math/s_ctanhl.c (__ctanhl): Likewise.
29419         * math/s_ctanl.c (__ctanl): Likewise.
29420         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
29421         csin, csinh, ctan and ctanh.
29422         * math/auto-libm-test-out: Regenerated.
29423         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
29424         * sysdeps/i386/fpu/libm-test-ulps: Update.
29425         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29426
29427 2015-06-24  Roland McGrath  <roland@hack.frob.com>
29428
29429         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
29430         return value is wrong, print the expected value too.
29431
29432 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
29433
29434         [BZ #18585]
29435         * elf/readlib.c (is_gdb_python_file): New.
29436         (process_file): Don't issue errors on filenames with -gdb.py
29437         suffix.
29438
29439 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
29440
29441         * math/auto-libm-test-in: Add more tests of csin and csinh.
29442         * math/auto-libm-test-out: Regenerated.
29443         * math/libm-test.inc (csin_test_data): Remove tests moved to
29444         auto-libm-test-in.
29445         (csinh_test_data): Likewise.
29446
29447         [BZ #18593]
29448         * math/s_csin.c (__csin): Negate before rather than after possibly
29449         overflowing multiplication.
29450         * math/s_csinf.c (__csinf): Likewise.
29451         * math/s_csinh.c (__csinh): Likewise.
29452         * math/s_csinhf.c (__csinhf): Likewise.
29453         * math/s_csinhl.c (__csinhl): Likewise.
29454         * math/s_csinl.c (__csinl): Likewise.
29455         * math/auto-libm-test-in: Add some tests of csin and csinh.
29456         * math/auto-libm-test-out: Regenerated.
29457         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
29458         (csinh_test_data): Likewise.
29459         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29460
29461         [BZ #18586]
29462         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
29463         underflow exception for small results.
29464
29465 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
29466
29467         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
29468         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
29469         variable and included header.
29470         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
29471         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
29472         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
29473         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
29474         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
29475         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
29476         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
29477         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
29478         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
29479         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
29480         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
29481         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
29482         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
29483         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
29484         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
29485         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
29486
29487 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
29488
29489         [BZ #16526]
29490         [BZ #16538]
29491         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
29492         (__sin): Force underflow exception for arguments with small
29493         absolute value.
29494         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
29495         (__kernel_sinf): Force underflow exception for arguments with
29496         small absolute value.
29497         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
29498         (__kernel_sincosl): Force underflow exception for arguments with
29499         small absolute value.
29500         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
29501         (__kernel_sinl): Force underflow exception for arguments with
29502         small absolute value.
29503         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
29504         (__kernel_sincosl): Force underflow exception for arguments with
29505         small absolute value.
29506         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
29507         (__kernel_sinl): Force underflow exception for arguments with
29508         small absolute value.
29509         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
29510         (__kernel_sinl): Force underflow exception for arguments with
29511         small absolute value.
29512         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
29513         (__kernel_sinf): Force underflow exception for arguments with
29514         small absolute value.
29515         * math/auto-libm-test-in: Add more tests of sin and sincos.
29516         * math/auto-libm-test-out: Regenerated.
29517
29518         [BZ #18245]
29519         [BZ #18583]
29520         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
29521         (__kernel_standard_l): Use feholdexcept and fesetenv around
29522         conversion to double instead of special-casing overflow and
29523         underflow.
29524         * math/libm-test.inc (fmod_test_data): Add more tests.
29525         (remainder_test_data): Likewise.
29526         (sqrt_test_data): Likewise.
29527
29528 2015-06-23  Torvald Riegel  <triegel@redhat.com>
29529
29530         [BZ #17403]
29531         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
29532         atomic_read_barrier, atomic_write_barrier): Define.
29533         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
29534         atomic_read_barrier, atomic_write_barrier): Define.
29535
29536 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
29537
29538         * math/Makefile [$(PERL) != no]
29539         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
29540         dependency on libm-test.stmp below the inclusion of Rules.
29541
29542 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
29543
29544         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
29545         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
29546         and included header.
29547         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
29548         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
29549         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
29550         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
29551         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
29552         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
29553         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
29554         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
29555         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
29556         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
29557         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
29558         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
29559         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
29560         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
29561         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
29562         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
29563         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
29564         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
29565         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
29566
29567 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
29568
29569         [BZ #18371]
29570         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
29571         intermediate but not final result might underflow.
29572         * math/s_csqrtf.c (__csqrtf): Likewise.
29573         * math/s_csqrtl.c (__csqrtl): Likewise.
29574         * math/auto-libm-test-in: Add more tests of csqrt.
29575         * math/auto-libm-test-out: Regenerated.
29576         * sysdeps/i386/fpu/libm-test-ulps: Update.
29577
29578         [BZ #18219]
29579         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
29580         threshold on absolute value of exponent for which scaling is used.
29581         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
29582         * math/auto-libm-test-in: Add more tests of exp2.
29583         * math/auto-libm-test-out: Regenerated.
29584
29585 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
29586
29587         [BZ #17977]
29588         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
29589         when initializing interface list, based on the bug analysis
29590         and the patch proposed by Eric Newton.
29591         * resolv/tst-res_hconf_reorder.c: New test.
29592         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
29593         tst-res_hconf_reorder.
29594         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
29595         and $(shared-thread-library).
29596         (tst-res_hconf_reorder-ENV): New variable.
29597
29598         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
29599         in comment.
29600
29601 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
29602
29603         [BZ #16353]
29604         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
29605         (__expm1): Force underflow exception for arguments with small
29606         absolute value.
29607         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
29608         (__expm1f): Force underflow exception for arguments with small
29609         absolute value.
29610         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
29611         (__expm1): Force underflow exception for arguments with small
29612         absolute value.
29613         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
29614         (__expm1f): Force underflow exception for arguments with small
29615         absolute value.
29616         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
29617         Check for small arguments before calling __expm1.
29618         * math/auto-libm-test-in: Do not mark underflow exceptions as
29619         possibly missing for bug 16353.
29620         * math/auto-libm-test-out: Regenerated.
29621
29622 2015-06-22  Andreas Schwab  <schwab@suse.de>
29623
29624         [BZ #18513]
29625         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
29626         PTR queries.
29627
29628 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
29629
29630         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
29631
29632         * string/strcoll_l.c: Remove unused struct element idxnow.
29633
29634 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
29635
29636         [BZ #18569]
29637         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
29638         underflow and return argument in case of subnormal argument.
29639         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
29640         Likewise.
29641         * math/auto-libm-test-in: Add more tests of expm1.
29642         * math/auto-libm-test-out: Regenerated.
29643
29644         [BZ #16361]
29645         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
29646         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
29647         tiny results.
29648         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
29649         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
29650         tiny results.
29651         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
29652         mark underflow exceptions as possibly missing for bug 16361.
29653         * math/auto-libm-test-out: Regenerated.
29654
29655 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
29656
29657         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
29658         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
29659         Remove variable.
29660         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
29661         (test-xfail-XOPEN2K8/utmpx.h/conform).
29662
29663         * conform/conformtest.pl ($xerrors): New variable.
29664         (note_error): New function.
29665         (compiletest): New argument $xfail.  Use not_error.
29666         (runtest): Likewise.
29667         (top level): Handle xfail- lines.  Update calls to compiletest and
29668         runtest.  Handle xfail- and optional- in headers listed with
29669         allow-header.
29670         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
29671         (O_EXEC): Likewise.
29672         (O_SEARCH): Likewise.
29673         * conform/data/stropts.h-data (ioctl): Likewise.
29674         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
29675         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
29676         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
29677         (msghdr.msg_controllen): Likewise.
29678         (cmsghdr.cmsg_len): Likewise.
29679         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
29680         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
29681         variable.
29682         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
29683         (test-xfail-XPG4/stropts.h/conform): Likewise.
29684         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
29685         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
29686         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
29687         (test-xfail-UNIX98/stropts.h/conform): Likewise.
29688         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
29689         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
29690         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
29691         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
29692         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
29693         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
29694         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
29695         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
29696         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
29697         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
29698         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
29699         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
29700         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
29701         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
29702         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
29703
29704 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
29705
29706         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
29707         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
29708         definitions for proper unfolding of __MATHDECL_VEC.
29709
29710 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
29711
29712         * benchtests/bench-strcoll.c:
29713         Include string.h.
29714         (main): Remove unused variable res.
29715
29716 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
29717
29718         * timezone/Makefile (%/UTC %/Universal):
29719         Generate test-result files for UTC and Universal.
29720
29721 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
29722
29723         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
29724
29725 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
29726
29727         [BZ #16350]
29728         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
29729         for arguments with small absolute value.
29730         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
29731         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
29732         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
29733         (__asinh): Force underflow exception for arguments with small
29734         absolute value.
29735         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
29736         (__asinhf): Force underflow exception for arguments with small
29737         absolute value.
29738         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
29739         (__asinhl): Force underflow exception for arguments with small
29740         absolute value.
29741         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
29742         (__asinhl): Force underflow exception for arguments with small
29743         absolute value.
29744         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
29745         (__asinhl): Force underflow exception for arguments with small
29746         absolute value.
29747         * math/auto-libm-test-in: Do not mark underflow exceptions as
29748         possibly missing for bug 16350.
29749         * math/auto-libm-test-out: Regenerated.
29750
29751         * include/bits/ipc.h: Remove file.
29752         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
29753         variable.
29754         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
29755         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
29756         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
29757         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
29758         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
29759         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
29760         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
29761         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
29762         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
29763
29764         * math/auto-libm-test-in: Remove spurious underflow allowance for
29765         tests of cexp.
29766         * math/auto-libm-test-out: Regenerated.
29767
29768         [BZ #18558]
29769         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
29770         unconditional definition.
29771         (MCAST_BLOCK_SOURCE): Likewise.
29772         (MCAST_UNBLOCK_SOURCE): Likewise.
29773         (MCAST_LEAVE_GROUP): Likewise.
29774         (MCAST_JOIN_SOURCE_GROUP): Likewise.
29775         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
29776         (MCAST_MSFILTER): Likewise.
29777         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
29778         Remove variable.
29779         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
29780         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
29781         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
29782         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
29783         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
29784
29785 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
29786
29787         * NEWS: Mention addition of x86_64 vector sincosf.
29788         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
29789         * math/test-float-vlen4.h: Likewise.
29790         * math/test-float-vlen8.h: Likewise.
29791         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
29792         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
29793         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29794         * sysdeps/x86_64/fpu/Versions: New versions added.
29795         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29796         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
29797         Added build of SSE, AVX2 and AVX512 IFUNC versions.
29798         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
29799         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
29800         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
29801         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
29802         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
29803         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
29804         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
29805         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
29806         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
29807         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
29808         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
29809         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
29810         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
29811         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
29812         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
29813         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
29814         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
29815         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
29816         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
29817         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
29818         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
29819
29820         * NEWS: Mention addition of x86_64 vector sincos.
29821         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
29822         * math/math.h (__MATHDECL_VEC): New macro.
29823         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
29824         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
29825         declaration under condition.
29826         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
29827         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
29828         TEST_VEC_LOOP change.
29829         * math/test-double-vlen4.h: Likewise.
29830         * math/test-double-vlen8.h: Likewise.
29831         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
29832         * math/test-float-vlen4.h: Likewise.
29833         * math/test-float-vlen8.h: Likewise.
29834         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
29835         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
29836         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29837         * sysdeps/x86_64/fpu/Versions: New versions added.
29838         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29839         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
29840         Added build of SSE, AVX2 and AVX512 IFUNC versions.
29841         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
29842         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
29843         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
29844         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
29845         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
29846         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
29847         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
29848         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
29849         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
29850         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
29851         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
29852         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
29853         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
29854         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
29855         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
29856         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
29857         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
29858         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
29859         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
29860         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
29861         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
29862
29863         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
29864         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
29865         redirections for powf.
29866         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29867         * sysdeps/x86_64/fpu/Versions: New versions added.
29868         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29869         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
29870         Added build of SSE, AVX2 and AVX512 IFUNC versions.
29871         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
29872         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
29873         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
29874         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
29875         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
29876         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
29877         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
29878         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
29879         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
29880         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
29881         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
29882         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
29883         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
29884         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
29885         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
29886         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
29887         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
29888         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
29889         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
29890         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
29891         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
29892         * math/test-float-vlen16.h: Fixed 2 argument macro.
29893         * math/test-float-vlen4.h: Likewise.
29894         * math/test-float-vlen8.h: Likewise.
29895         * NEWS: Mention addition of x86_64 vector powf.
29896
29897 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
29898
29899         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
29900         and redefine.
29901         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
29902         and redefine.
29903         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
29904         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
29905         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
29906
29907         [BZ #18553]
29908         * resource/getpriority.c (getpriority): Rename to __getpriority
29909         and define as weak alias of __getpriority.
29910         * resource/setpriority.c (setpriority): Rename to __setpriority
29911         and define as weak alias of __setpriority.
29912         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
29913         __getpriority and define as weak alias of __getpriority.
29914         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
29915         __setpriority and define as weak alias of __setpriority.
29916         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
29917         strong name.
29918         (setpriority): Use __setpriority as strong name.
29919         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
29920         __getpriority and define as weak alias of __getpriority.
29921         * include/sys/resource.h (__getpriority): Declare.  Use
29922         libc_hidden_proto.
29923         (__setpriority): Likewise.
29924         (getpriority): Don't use libc_hidden_proto.
29925         (setpriority): Likewise.
29926         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
29927         getpriority.  Call __setpriority instead of setpriority.
29928         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
29929         Remove variable.
29930
29931         [BZ #18547]
29932         * misc/getttyent.c (getttynam): Rename to __getttynam and define
29933         as weak alias of __getttynam.  Use prototype function definition.
29934         Call __setttyent, __getttyent and __endttyent instead of
29935         setttyent, getttyent and endttyent.
29936         (getttyent): Rename to __getttyent and define as weak alias of
29937         __getttyent.  Call __setttyent instead of setttyent.  Call
29938         __fgets_unlocked instead of fgets_unlocked.
29939         (setttyent): Rename to __setttyent and define as weak alias of
29940         __setttyent.
29941         (endttyent): Rename to __endttyent and define as weak alias of
29942         __endttyent.
29943         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
29944         (__setttyent): Likewise.
29945         (__endttyent): Likewise.
29946         (getttyent): Don't use libc_hidden_proto.
29947         (setttyent): Likewise.
29948         (endttyent): Likewise.
29949         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
29950         __endttyent instead of setttyent, getttyent and endttyent.
29951         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
29952         Remove variable.
29953
29954         [BZ #18546]
29955         * socket/recv.c (__recv): Use libc_hidden_def.
29956         * socket/socket.c (__socket): Likewise.
29957         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
29958         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
29959         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
29960         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
29961         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
29962         libc_hidden_def.
29963         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
29964         libc_hidden_weak.
29965         * include/sys/socket.h (__socket): Do not use attribute_hidden.
29966         Use libc_hidden_proto.
29967         (__recv): Likewise.
29968         * socket/Versions (libc): Export __recv and __socket at version
29969         GLIBC_PRIVATE.
29970         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
29971         instead of recv.
29972         (init_mq_netlink): Call __socket instead of socket.
29973         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
29974         Remove variable.
29975
29976         [BZ #18545]
29977         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
29978         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
29979         hidden_weak.
29980         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
29981         define as alias of __mq_timedsend.  Use hidden_weak.
29982         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
29983         __mq_timedsend as strong name.
29984         (mq_timedreceive): Use __mq_timedreceive as strong name.
29985         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
29986         (__mq_timedreceive): Likewise.
29987         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
29988         __mq_timedreceive instead of mq_timedreceive.
29989         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
29990         instead of mq_timedsend.
29991         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
29992         Remove variable.
29993
29994         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
29995         hidden_def and hidden_weak instead of libc_hidden_def and
29996         libc_hidden_weak.
29997         (top level): Refer to hidden_def in comment.
29998         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
29999         macro.  Use it instead of libc_hidden_def.
30000         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
30001         specify __GI_* name explicitly.
30002         (mq_timedreceive): Likewise.
30003         (mq_setattr): Likewise.
30004
30005         [BZ #18544]
30006         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
30007         __pthread_barrier_init and define as weak alias of
30008         __pthread_barrier_init.
30009         * sysdeps/sparc/nptl/pthread_barrier_init.c
30010         (pthread_barrier_init): Likewise.
30011         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
30012         __pthread_barrier_wait and define as weak alias of
30013         __pthread_barrier_wait.
30014         * sysdeps/sparc/nptl/pthread_barrier_wait.c
30015         (pthread_barrier_wait): Likewise.
30016         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
30017         (pthread_barrier_wait): Likewise.
30018         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
30019         (pthread_barrier_wait): Likewise.
30020         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
30021         (pthread_barrier_wait): Likewise.
30022         * nptl/Versions (libpthread): Export __pthread_barrier_init and
30023         __pthread_barrier_wait at version GLIBC_PRIVATE.
30024         * include/pthread.h (__pthread_barrier_init): Declare.
30025         (__pthread_barrier_wait): Likewise.
30026         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
30027         Call __pthread_barrier_wait instead of pthread_barrier_wait.
30028         (helper_thread): Likewise.
30029         (init_mq_netlink): Call __pthread_barrier_init instead of
30030         pthread_barrier_init.
30031
30032         [BZ #18542]
30033         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
30034         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
30035         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
30036         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
30037         vswscanf.
30038         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
30039         Remove variable.
30040
30041         [BZ #18540]
30042         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
30043         strong alias of _IO_fflush.  Use libc_hidden_def.
30044         * libio/iofflush_u.c (fflush_unlocked): Rename to
30045         __fflush_unlocked and define as weak alias of __fflush_unlocked.
30046         Use libc_hidden_weak.
30047         * include/stdio.h (__fflush_unlocked): Declare.  Use
30048         libc_hidden_proto.
30049         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
30050         fflush_unlocked.
30051         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
30052         Remove variable.
30053
30054         [BZ #18539]
30055         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
30056         define as weak alias of __addseverity.
30057         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
30058         Remove variable.
30059         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
30060         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
30061         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
30062
30063         [BZ #18536]
30064         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
30065         (__tfind): Likewise.
30066         (__tdelete): Likewise.
30067         (__twalk): Likewise.
30068         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
30069         __twalk to GLIBC_PRIVATE.
30070         * include/search.h (__tsearch): Use libc_hidden_proto.
30071         (__tfind): Likewise.
30072         (__tdelete): Likewise.
30073         (__twalk): Likewise.
30074         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
30075         Call __tdelete instead of tdelete.
30076         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
30077         tfind.  Call __tsearch instead of tsearch.
30078         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
30079         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
30080         Remove variable.
30081         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
30082
30083         [BZ #18534]
30084         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
30085         (dprintf): Define as a weak alias of __dprintf, not a strong
30086         alias.
30087         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
30088         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
30089         dprintf.
30090         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
30091         Remove variable.
30092         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
30093         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
30094
30095         [BZ #18533]
30096         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
30097         not a strong alias.
30098         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
30099         Remove variable.
30100
30101         [BZ #18532]
30102         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
30103         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
30104         (in6addr_loopback): Rename to __in6addr_loopback and define as
30105         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
30106         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
30107         libc_hidden_proto.
30108         (__in6addr_any): Likewise.
30109         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
30110         in6addr_any.
30111         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
30112         variable.
30113         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
30114
30115 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
30116
30117         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
30118         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
30119         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30120         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30121         redirections for pow.
30122         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30123         * sysdeps/x86_64/fpu/Versions: New versions added.
30124         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30125         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30126         build of SSE, AVX2 and AVX512 IFUNC versions.
30127         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
30128         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
30129         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
30130         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
30131         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
30132         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
30133         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
30134         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
30135         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
30136         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
30137         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
30138         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
30139         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
30140         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
30141         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30142         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30143         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30144         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30145         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30146         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30147         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30148         * NEWS: Mention addition of x86_64 vector pow.
30149
30150         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30151         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30152         redirections for expf.
30153         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30154         * sysdeps/x86_64/fpu/Versions: New versions added.
30155         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30156         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30157         build of SSE, AVX2 and AVX512 IFUNC versions.
30158         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
30159         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
30160         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
30161         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
30162         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
30163         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
30164         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
30165         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
30166         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
30167         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
30168         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
30169         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
30170         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
30171         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
30172         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30173         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30174         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30175         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30176         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30177         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30178         * NEWS: Mention addition of x86_64 vector expf.
30179
30180         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
30181         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
30182         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30183         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30184         redirections for exp.
30185         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30186         * sysdeps/x86_64/fpu/Versions: New versions added.
30187         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30188         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30189         build of SSE, AVX2 and AVX512 IFUNC versions.
30190         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
30191         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
30192         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
30193         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
30194         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
30195         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
30196         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
30197         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
30198         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
30199         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
30200         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
30201         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
30202         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
30203         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30204         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30205         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30206         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30207         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30208         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30209         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30210         * NEWS: Mention addition of x86_64 vector exp.
30211
30212         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30213         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30214         redirections for logf.
30215         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30216         * sysdeps/x86_64/fpu/Versions: New versions added.
30217         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30218         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30219         build of SSE, AVX2 and AVX512 IFUNC versions.
30220         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
30221         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
30222         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
30223         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
30224         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
30225         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
30226         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
30227         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
30228         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
30229         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
30230         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
30231         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
30232         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
30233         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
30234         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30235         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30236         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30237         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30238         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30239         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30240         * NEWS: Mention addition of x86_64 vector logf.
30241
30242         * bits/libm-simd-decl-stubs.h: Added stubs for log.
30243         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
30244         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30245         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30246         redirections for log.
30247         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30248         * sysdeps/x86_64/fpu/Versions: New versions added.
30249         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30250         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30251         build of SSE, AVX2 and AVX512 IFUNC versions.
30252         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
30253         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
30254         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
30255         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
30256         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
30257         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
30258         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
30259         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
30260         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
30261         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
30262         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
30263         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
30264         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
30265         test.
30266         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30267         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30268         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30269         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30270         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30271         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30272         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30273         * NEWS: Mention addition of x86_64 vector log.
30274
30275 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30276
30277         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
30278         cfi_adjust_cfa_offset argument.
30279         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
30280         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
30281
30282         [BZ #18034]
30283         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
30284         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
30285         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
30286         ordering using ldar.
30287         (_dl_tlsdesc_dynamic): Likewise.
30288         (_dl_tlsdesc_return_lazy): Likewise.
30289         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
30290         relaxed atomics instead of volatile and synchronize with release store.
30291         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
30292         volatile.
30293         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
30294
30295 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
30296
30297         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30298         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
30299         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30300         * sysdeps/x86_64/fpu/Versions: New versions added.
30301         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30302         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30303         build of SSE, AVX2 and AVX512 IFUNC versions.
30304         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
30305         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
30306         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
30307         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
30308         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
30309         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
30310         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
30311         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
30312         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
30313         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
30314         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
30315         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
30316         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
30317         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
30318         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30319         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30320         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30321         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30322         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30323         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30324         * NEWS: Mention addition of x86_64 vector sinf.
30325
30326 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
30327
30328         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
30329         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
30330         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
30331         Remove variable.
30332         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
30333         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
30334
30335 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
30336
30337         [BZ #18530]
30338         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
30339         strong alias of _IO_fputs.  Use libc_hidden_def.
30340         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
30341         and define as weak alias of __fputs_unlocked.  Use
30342         libc_hidden_weak.
30343         * include/stdio.h (__fputs_unlocked): Declare.  Use
30344         libc_hidden_proto.
30345         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
30346         fputs_unlocked.
30347
30348         [BZ #18529]
30349         * resolv/netdb.h [__USE_POSIX]: Change condition to
30350         [__USE_XOPEN2K].
30351         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
30352         not expect.
30353         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
30354         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
30355         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
30356         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
30357         [XPG4 || UNIX98] (AI_ALL): Likewise.
30358         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
30359         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
30360         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
30361         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
30362         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
30363         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
30364         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
30365         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
30366         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
30367         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
30368         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
30369         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
30370         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
30371         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
30372         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
30373         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
30374         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
30375         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
30376         [XPG4 || UNIX98] (gai_strerror): Likewise.
30377         [XPG4 || UNIX98] (getaddrinfo): Likewise.
30378         [XPG4 || UNIX98] (getnameinfo): Likewise.
30379
30380         [BZ #18528]
30381         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
30382         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
30383         __USE_XOPEN2K8].
30384         (getgrent): Likewise.
30385         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
30386         expect.
30387         [XPG3 || POSIX2008] (endgrent): Likewise.
30388         [XPG3] (setgrent): Likewise.
30389         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
30390         variable.
30391         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
30392
30393         [BZ #18527]
30394         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
30395         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
30396         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
30397         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
30398         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
30399         * include/unistd.h (__getlogin_r): Declare.  Use
30400         libc_hidden_proto.
30401         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
30402         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
30403         variable.
30404         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
30405         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
30406         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
30407
30408 2015-06-12  Martin Sebor  <msebor@redhat.com>
30409
30410         [BZ #18512]
30411         * Makerules (check-install-supported): New target.
30412         (install): Add check-install-supported as a dependency.
30413         * manual/install.texi (Installing the C Library): Document
30414         that overriding prefix and exec_prefix is not supported.
30415         Mention DESTDIR.
30416         * INSTALL: Regenerate from the above.
30417
30418 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
30419
30420         [BZ #18519]
30421         * posix/Versions (libc): Export __libc_pread at version
30422         GLIBC_PRIVATE.
30423         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
30424         instead of pread.
30425         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
30426         variable.
30427
30428         [BZ #18522]
30429         * misc/efgcvt_r.c
30430         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
30431         (cvt_symbol): Use weak_alias instead of strong_alias.
30432         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
30433         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
30434         Remove variable.
30435         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
30436         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
30437
30438         [BZ #18520]
30439         * inet/herrno.c (h_errno): Rename to __h_errno.
30440         (__libc_h_errno): Define as alias of __h_errno not h_errno.
30441         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
30442         to __h_errno instead of h_errno.
30443         * nptl/herrno.c (h_errno): Rename to __h_errno.
30444         (__h_errno_location): Refer to __h_errno not h_errno.
30445         * resolv/Versions (h_errno): Rename to __h_errno.
30446         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
30447         Remove variable.
30448         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
30449
30450 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
30451
30452         * configure.ac: More strict check for AVX512 assembler support.
30453         * configure: Regenerated.
30454
30455         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
30456         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
30457         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30458         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
30459         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30460         * sysdeps/x86_64/fpu/Versions: New versions added.
30461         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30462         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30463         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30464         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
30465         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
30466         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
30467         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
30468         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
30469         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
30470         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
30471         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
30472         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
30473         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
30474         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
30475         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
30476         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
30477         test.
30478         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30479         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30480         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30481         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30482         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30483         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30484         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30485         * NEWS: Mention addition of x86_64 vector sin.
30486
30487 2015-06-11  Florian Weimer  <fweimer@redhat.com>
30488
30489         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
30490         comment.
30491
30492 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
30493
30494         [BZ #18479]
30495         * nptl/pt-interp.c: New file.
30496         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
30497         Add pt-interp.
30498         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
30499         $(common-objpfx)runtime-linker.h.
30500
30501 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
30502
30503         * Makeconfig (+interp): Remove unused variable.
30504         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
30505         only.  Depend on $(common-objpfx)runtime-linker.h instead of
30506         $(elf-objpfx)runtime-linker.h.
30507         ($(elf-objpfx)runtime-linker.h): Rename to
30508         $(common-objpfx)runtime-linker.h and move ...
30509         * Makerules [$(build-shared) = yes]: ... here.
30510         * elf/interp.c: Include <runtime-linker.h> instead of
30511         <elf/runtime-linker.h>.
30512
30513 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30514
30515         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
30516         (__gettimeofday_syscall): Remove vsyscall fallback.
30517         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
30518         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
30519         Add syscall fallback function.
30520         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
30521         if vDSO is not present.
30522         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
30523         fallback function.
30524         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
30525         present.
30526         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
30527         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
30528
30529 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
30530
30531         [BZ #18497]
30532         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
30533         of wcscmp.
30534         (wcscmp): Define as weak alias of WCSCMP.
30535         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
30536         wcscoll.
30537         (USE_HIDDEN_DEF): Define.
30538         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
30539         __wcscoll.  Don't use libc_hidden_weak.
30540         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
30541         wcscmp.
30542         * sysdeps/i386/i686/multiarch/wcscmp-c.c
30543         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
30544         __GI_wcscmp.
30545         (weak_alias): Undefine and redefine.
30546         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
30547         __wcscmp and define as weak alias of __wcscmp.
30548         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
30549         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
30550         (__wcscoll): Likewise.
30551         (wcscmp): Don't use libc_hidden_proto.
30552         (wcscoll): Likewise.
30553         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
30554         wcscoll.
30555         * posix/regexec.c (check_node_accept_bytes): Likewise.
30556         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
30557         variable.
30558         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
30559         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
30560
30561         [BZ #18507]
30562         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
30563         __fstatvfs and define as weak alias of __fstatvfs.  Use
30564         libc_hidden_weak.
30565         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
30566         and define as weak alias of __statvfs.  Use libc_hidden_weak.
30567         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
30568         Define as alias of __fstatvfs, not fstatvfs.
30569         (fstatvfs64): Likewise.
30570         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
30571         Define as alias of __statvfs, not statvfs.
30572         (statvfs64): Likewise.
30573         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
30574         Remove variable.
30575
30576 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30577
30578         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
30579         (HAVE_GETCPU_VSYSCALL): Define.
30580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
30581         (HAVE_GETCPU_VSYSCALL): Likewise.
30582         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
30583         * sysdeps/unix/sysv/linux/sched_getcpu.c
30584         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
30585         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
30586         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
30587         prototype.
30588         * sysdeps/unix/sysv/linux/x86_64/init-first.c
30589         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
30590         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
30591         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
30592         Define.
30593         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
30594         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
30595         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
30596         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
30597
30598 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
30599
30600         * sysdeps/x86_64/fpu/Makefile: New file.
30601         * sysdeps/x86_64/fpu/Versions: New file.
30602         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
30603         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
30604         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
30605         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
30606         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
30607         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
30608         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
30609         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
30610         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
30611         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
30612         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
30613         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
30614         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
30615         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30616         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30617         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
30618         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
30619         * sysdeps/x86_64/configure.ac: Options for libmvec build.
30620         * sysdeps/x86_64/configure: Regenerated.
30621         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
30622         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
30623         * manual/install.texi (Configuring and compiling): Document
30624         --disable-mathvec.
30625         * INSTALL: Regenerated.
30626         * NEWS: Mention addition of libmvec and x86_64 vector cos.
30627
30628         * math/Makefile: Added rules for vector tests.
30629         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
30630         declaration under condition.
30631         * math/test-double-vlen2.h: New file.
30632         * math/test-double-vlen4.h: New file.
30633         * math/test-double-vlen8.h: New file.
30634         * math/test-vec-loop.h: Added initialization macro.
30635         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
30636         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
30637         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
30638         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
30639         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
30640         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
30641         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
30642         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
30643         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
30644         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
30645         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
30646
30647         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30648         * sysdeps/x86_64/fpu/Versions: New versions added.
30649         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
30650         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
30651         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
30652         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
30653         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
30654         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
30655         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
30656         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
30657         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
30658         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
30659         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
30660         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
30661         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
30662         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30663         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30664         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30665         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
30666         * NEWS: Mention addition of x86_64 vector cosf.
30667
30668         * math/Makefile: Added CFLAGS for new tests.
30669         * math/test-float-vlen16.h: New file.
30670         * math/test-float-vlen4.h: New file.
30671         * math/test-float-vlen8.h: New file.
30672         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
30673         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
30674         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30675         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
30676         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
30677         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
30678         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
30679         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
30680         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
30681         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
30682         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
30683
30684 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
30685
30686         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
30687         * locale/programs/ld-ctype.c: Likewise.
30688
30689 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
30690
30691         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
30692         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
30693         bit_ZMM16_31_state): New macro.
30694         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30695         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
30696
30697 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
30698
30699         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
30700
30701 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
30702
30703         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
30704
30705 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
30706
30707         [BZ #18498]
30708         * libio/memstream.c (open_memstream): Rename to __open_memstream
30709         and define as weak alias of __open_memstream.
30710         * include/stdio.h (__open_memstream): Declare.  Use
30711         libc_hidden_proto.
30712         (open_memstream): Don't use libc_hidden_proto.
30713         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
30714         open_memstream.
30715         * posix/getopt.c (_getopt_internal_r): Likewise.
30716         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
30717         variable.
30718         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
30719         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
30720         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
30721
30722         [BZ #18496]
30723         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
30724         instead of wcrtomb.
30725
30726         [BZ #18483]
30727         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
30728         [__USE_XOPEN2K8].  Remove redundant #endif.
30729         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
30730         Remove redundant #if.
30731         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
30732         Remove variable.
30733         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
30734         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
30735
30736         [BZ #18495]
30737         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
30738         (__iswlower): Likewise.
30739         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
30740         (__iswlower): Likewise.
30741         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
30742         instead of towlower.
30743         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
30744         instead of iswlower.  Call __towupper instead of towupper.
30745         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
30746         instead of iswalnum.
30747
30748 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30749
30750         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
30751         errors to stderr.
30752
30753 2015-06-05  Florian Weimer  <fweimer@redhat.com>
30754
30755         [BZ #15661]
30756         [BZ #17322]
30757         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
30758         Check for overflow properly.  Check for O_APPEND.  Ignore large
30759         file system block sizes.  Add comments about problems.
30760         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
30761         * manual/filesys.texi (Storage Allocation): New node.
30762
30763 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30764
30765         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
30766         cancellable syscalls.
30767         (SYS_ify): Add guard to no redefine it.
30768         (INLINE_SYSCALL): Likewise.
30769         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
30770         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
30771         SYSCALL_CANCEL instead.
30772         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
30773         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
30774         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
30775         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
30776         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
30777         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
30778         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
30779         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
30780         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
30781         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
30782         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
30783         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
30784         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
30785         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
30786         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
30787         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
30788         Likewise.
30789         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
30790         (__libc_pread64): Likewise.
30791         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
30792         (__libc_preadv): Likewise.
30793         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
30794         (__libc_readv64): Likewise.
30795         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
30796         (__libc_pwrite): Likewise.
30797         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
30798         (__libc_pwrite64): Likewise.
30799         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
30800         (__libc_pwritev): Likewise.
30801         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
30802         (__libc_pwritev64): Likewise.
30803         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
30804         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
30805         (sync_file_range): Likewise.
30806         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
30807         Likewise.
30808         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
30809         Likewise.
30810         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
30811         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
30812         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
30813         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
30814         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
30815         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
30816         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
30817         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
30818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
30819         Likewise.
30820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
30821         (__libc_read64): Likewise.
30822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
30823         Likewise.
30824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
30825         Likewise.
30826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
30827         Likewise.
30828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
30829         Likewise.
30830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
30831         (__libc_pread64): Likewise.
30832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
30833         Likewise.
30834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
30835         (__libc_pwrite64): Likewise.
30836         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
30837         (sync_file_range): Likewise.
30838         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
30839         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
30840         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
30841         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
30842         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
30843         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
30844         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
30845         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
30846         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
30847         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
30848         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
30849         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
30850         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
30851         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
30852         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
30853         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
30854         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
30855         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
30856         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
30857         Likewise.
30858         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
30859         Likewise.
30860         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
30861         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
30862         Likewise.
30863         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
30864         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
30865         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
30866         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
30867         Likewise.
30868         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
30869         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
30870         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
30871         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
30872         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
30873
30874 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
30875
30876         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
30877         Include dl-vdso.
30878         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
30879         Use VDSO routines for gettimeofday, clock_gettime if
30880         available.
30881         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
30882         Declare VDSO symbols.
30883         * sysdeps/unix/sysv/linux/arm/sysdep.h:
30884         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
30885         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
30886         * sysdeps/unix/sysv/linux/arm/Versions: Add
30887         __vdso_clock_gettime.
30888
30889 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30890
30891         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
30892         be an inline implementation regardless of library is built within.
30893         (open_not_cancel_2): Likewise.
30894         (__read_nocancel): Likewise.
30895         (__write_nocancel): Likewise.
30896         (openat_not_cancel): Likewise.
30897         (openat_not_cancel_3): Likewise.
30898         (openat64_not_cancel): Likewise.
30899         (openat64_not_cancel_3): Likewise.
30900         (__close_nocancel): Likewise.
30901         (pause_not_cancel): Likewise.
30902         (nanosleep_not_cancel): Likewise.
30903         (sigsuspend_not_cancel): Likewise.
30904
30905 2015-06-04  Torvald Riegel  <triegel@redhat.com>
30906
30907         [BZ #14958]
30908         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
30909         wake-up.
30910         (__pthread_rwlock_rdlock_slow): Likewise.
30911         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
30912         Likewise.
30913         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
30914         Likewise.
30915         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
30916         * nptl/tst-rwlock16.c: New file.
30917         * nptl/Makefile (tests): Add new test.
30918
30919 2015-06-04  Torvald Riegel  <triegel@redhat.com>
30920
30921         [BZ #18324]
30922         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
30923         missing wake-up of readers.
30924         * nptl/tst-rwlock15.c: New file.
30925         * nptl/Makefile (tests): Add new test.
30926
30927 2015-06-03  Roland McGrath  <roland@hack.frob.com>
30928
30929         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
30930         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
30931         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
30932         and __nacl_supply_interface_rtld.
30933         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
30934         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
30935         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
30936         Add __nacl_supply_interface_rtld.
30937         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
30938
30939 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
30940
30941         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
30942         isfinite.
30943         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
30944         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
30945
30946 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
30947
30948         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
30949         __signbit* with standard C99 macros.
30950         * math/e_exp10l.c: Likewise.
30951         * math/e_exp2l.c: Likewise.
30952         * math/e_scalb.c: Likewise.
30953         * math/e_scalbf.c: Likewise.
30954         * math/e_scalbl.c: Likewise.
30955         * math/s_ldexp.c: Likewise.
30956         * math/s_ldexpf.c: Likewise.
30957         * math/s_ldexpl.c: Likewise.
30958         * math/w_atan2.c: Likewise.
30959         * math/w_atan2f.c: Likewise.
30960         * math/w_atan2l.c: Likewise.
30961         * math/w_cosh.c: Likewise.
30962         * math/w_coshf.c: Likewise.
30963         * math/w_coshl.c: Likewise.
30964         * math/w_exp10.c: Likewise.
30965         * math/w_exp10f.c: Likewise.
30966         * math/w_exp10l.c: Likewise.
30967         * math/w_exp2.c: Likewise.
30968         * math/w_exp2f.c: Likewise.
30969         * math/w_exp2l.c: Likewise.
30970         * math/w_fmod.c: Likewise.
30971         * math/w_fmodf.c: Likewise.
30972         * math/w_fmodl.c: Likewise.
30973         * math/w_hypot.c: Likewise.
30974         * math/w_hypotf.c: Likewise.
30975         * math/w_hypotl.c: Likewise.
30976         * math/w_jnl.c: Likewise.
30977         * math/w_lgamma.c: Likewise.
30978         * math/w_lgamma_r.c: Likewise.
30979         * math/w_lgammaf.c: Likewise.
30980         * math/w_lgammaf_r.c: Likewise.
30981         * math/w_lgammal.c: Likewise.
30982         * math/w_lgammal_r.c: Likewise.
30983         * math/w_pow.c: Likewise.
30984         * math/w_powf.c: Likewise.
30985         * math/w_powl.c: Likewise.
30986         * math/w_remainder.c: Likewise.
30987         * math/w_remainderf.c: Likewise.
30988         * math/w_remainderl.c: Likewise.
30989         * math/w_scalb.c: Likewise.
30990         * math/w_scalbf.c: Likewise.
30991         * math/w_scalbl.c: Likewise.
30992         * math/w_scalbln.c: Likewise.
30993         * math/w_scalblnf.c: Likewise.
30994         * math/w_scalblnl.c: Likewise.
30995         * math/w_sinh.c: Likewise.
30996         * math/w_sinhf.c: Likewise.
30997         * math/w_sinhl.c: Likewise.
30998         * math/w_tgamma.c: Likewise.
30999         * math/w_tgammaf.c: Likewise.
31000         * math/w_tgammal.c: Likewise.
31001         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
31002         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
31003         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
31004         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
31005         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
31006         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
31007         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
31008         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
31009         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
31010         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
31011         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
31012         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
31013         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
31014         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
31015         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
31016         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
31017         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
31018         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
31019         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
31020         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
31021         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
31022         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
31023         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
31024         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
31025         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
31026         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
31027         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
31028         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
31029         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
31030         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
31031         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
31032         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
31033         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
31034         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
31035         * stdio-common/printf_fp.c: Likewise.
31036         * stdio-common/printf_fphex.c: Likewise.
31037         * stdio-common/printf_size.c: Likewise.
31038
31039 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
31040
31041         [BZ #18470]
31042         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
31043         strnlen.
31044         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
31045         Remove variable.
31046         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
31047         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
31048         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
31049         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
31050         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
31051         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
31052         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
31053         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
31054         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
31055         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
31056
31057         [BZ #18468]
31058         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
31059         weak alias of __wmemchr.  Use libc_hidden_weak.
31060         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
31061         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
31062         instead of wmemchr.
31063
31064 2015-06-02  Roland McGrath  <roland@hack.frob.com>
31065
31066         [BZ #18383]
31067         * elf/tst-tlsalign-extern.c: New file.
31068         * elf/tst-tlsalign-extern-static.c: New file.
31069         * elf/tst-tlsalign-vars.c: New file.
31070         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
31071         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
31072         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
31073         ($(objpfx)tst-tlsalign-extern-static): Likewise.
31074         (test-xfail-tst-tlsalign-extern-static): New variable.
31075
31076 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
31077
31078         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
31079         Use variable name _sc_err instead of err.
31080         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
31081         instead of ret.
31082         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
31083         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
31084         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
31085         (INLINE_SYSCALL): Likewise.
31086
31087         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
31088         * include/string.h (__strnlen): Use libc_hidden_proto.
31089         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
31090         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
31091         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
31092         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
31093         (libc_hidden_def): Undefine and redefine.
31094         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
31095         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
31096         __GI_strnlen.
31097         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
31098         libc_hidden_def.
31099         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
31100
31101         [BZ #18469]
31102         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
31103         weak alias of __towlower.  Use libc_hidden_weak.
31104         (towupper): Rename to __towupper and define as weak alias of
31105         __towupper.  Use libc_hidden_weak.
31106         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
31107         (__towupper): Likewise.
31108         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
31109         __towlower instead of towlower.
31110
31111 2015-06-02  Roland McGrath  <roland@hack.frob.com>
31112
31113         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
31114         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
31115
31116 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31117
31118         * sysdeps/aarch64/libm-test-ulps: Update.
31119
31120 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31121
31122         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
31123         Define.
31124         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31125         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
31126         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
31127         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31128         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
31129         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
31130         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
31131
31132 2015-06-01  Martin Sebor  <msebor@redhat.com>
31133
31134         [BZ #18116]
31135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
31136         (__setcontext): Use extended four-operand version of mtsf whenever
31137         possible.
31138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
31139         (__novec_swapcontext): Likewise.
31140
31141 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
31142
31143         * benchtests/scripts/compare_bench.py: New file.
31144         * benchtests/scripts/import_bench.py (mean): New function.
31145         (split_list): Likewise.
31146         (do_for_all_timings): Likewise.
31147         (compress_timings): Likewise.
31148
31149         * benchtests/scripts/import_bench.py: New file.
31150         * benchtests/scripts/validate_benchout.py: Import import_bench
31151         instead of jsonschema.
31152         (validate_bench): Remove function.
31153         (main): Use import_bench.
31154
31155 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
31156
31157         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
31158         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
31159
31160 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31161
31162         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31163
31164 2015-05-28  Roland McGrath  <roland@hack.frob.com>
31165
31166         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
31167         set THREAD_SELF->tid to a magic value and futex-wake it.
31168         Pass its address to the thread_exit system call.
31169         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
31170         bit is clear.
31171         * sysdeps/nacl/lowlevellock.h: New file.
31172         * sysdeps/nacl/lll_timedwait_tid.c: New file.
31173
31174         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
31175         Add TIMEOUT to current time, don't subtract it.
31176
31177 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
31178
31179         [BZ #2981]
31180         [BZ #18422]
31181         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
31182         ($(objpfx)tst-audit2.out): Also depend on
31183         $(objpfx)tst-auditmod9b.so.
31184         * elf/tst-audit2.c: Include <dlfcn.h>.
31185         (calloc_called): New.
31186         (calloc): Allow to be called more than once.
31187         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
31188
31189 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
31190
31191         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
31192         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
31193
31194 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
31195
31196         * stdlib/monetary.h: Fix comment.
31197
31198 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
31199
31200         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
31201         Avoid using variables in #defines that might cause shadowing.
31202         (INTERNAL_VSYSCALL_CALL): Likewise.
31203
31204 2015-05-26  Roland McGrath  <roland@hack.frob.com>
31205
31206         * sysdeps/nacl/lll_timedlock_wait.c: New file.
31207
31208         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
31209         * nptl/lll_timedlock_wait.c: ... to this new file.
31210         * nptl/Makefile (libpthread-routines): Add it.
31211         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
31212         * nptl/lll_timedwait_tid.c: ... to this new file.
31213         * nptl/Makefile (libpthread-routines): Add it.
31214         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
31215         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
31216         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
31217         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
31218         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
31219         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
31220         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
31221         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
31222         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
31223         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
31224
31225 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31226
31227         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
31228         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
31229         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
31230         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
31231         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
31232         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
31233         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31234         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
31235         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31236         * sysdeps/unix/sysv/linux/tile/sysdep.h
31237         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31238         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
31239         using vDSO syscall macro.
31240
31241 2015-05-26  Andriy Rysin  <arysin@gmail.com>
31242
31243         [BZ #17293]
31244         * uk_UA: Fix sorting order for Ukrainian locale
31245
31246 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
31247
31248         * stdlib/monetary.h: Fix comment.
31249
31250 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31251
31252         [BZ #18234]
31253         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
31254         st_mtim and st_ctim members.
31255         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
31256         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
31257         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
31258         (struct stat64): Likewise.
31259         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
31260         (struct stat64): Likewise.
31261         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
31262         (struct stat64): Likewise.
31263
31264 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31265
31266         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
31267         Define and include sysdep-vdso.h.
31268         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
31269         Likewise.
31270         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
31271         Likewise.
31272         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
31273         Define with VDSO_SYMBOL and use PTR_MANGLE.
31274         (__vdso_clock_gettime): Likewise.
31275         (__vdso_clock_getres): Likewise.
31276         (_libc_vdso_platform_setup): Likewise.
31277         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
31278         Likewise.
31279         (_libc_vdso_platform_setup): Likewise.
31280         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
31281         Likewise.
31282         (__vdso_clock_gettime): Likewise.
31283         (__vdso_clock_getres): Likewise.
31284         (__vdso_get_tbfreq): Likewise.
31285         (__vdso_getcpu): Likewise.
31286         (__vdso_time): Likewise.
31287         (__vdso_sigtramp_rt64): Likewise.
31288         (__vdso_signtramp32): Likewise.
31289         (__vdso_sigtramp_rt32): Likewise.
31290         (_libc_vdso_platform_setup): Likewise.
31291         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
31292         Likewise.
31293         (__vdso_clock_gettime): Likewise.
31294         (__vdso_clock_getres): Likewise.
31295         (_libc_vdso_platform_setup): Likewise.
31296         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
31297         Likewise.
31298         (__vdso_clock_gettime): Likewise.
31299         (_libc_vdso_platform_setup): Likewise.
31300         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
31301         Likewise.
31302         (__vdso_getcpu): Likewise.
31303         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
31304         Use VDSO_SYMBOL macro to define.
31305         (__vdso_clock_gettime): Likewise.
31306         (__vdso_clock_getres): Likewise.
31307         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
31308         Likewise.
31309         (__vdso_clock_gettime): Likewise.
31310         (__vdso_clock_getres): Likewise.
31311         (__vdso_get_tbfreq): Likewise.
31312         (__vdso_getcpu): Likewise.
31313         (__vdso_time): Likewise.
31314         (__vdso_sigtramp_rt64): Likewise.
31315         (__vdso_signtramp32): Likewise.
31316         (__vdso_sigtramp_rt32): Likewise.
31317         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
31318         Likewise.
31319         (__vdso_clock_gettime): Likewise.
31320         (__vdso_clock_getres): Likewise.
31321         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
31322         Likewise.
31323         (__vdso_clock_gettime): Likewise.
31324         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
31325         Likewise.
31326         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
31327         macro.
31328         (INTERNAL_VSYSCALL): Likewise.
31329         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
31330         Remove macro.
31331         (INTERNAL_VSYSCALL): Likewise.
31332         (INTERNAL_VSYSCALL_NCS): Likewise.
31333         (INTERNAL_VSYSCALL_CALL): New macro.
31334         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
31335         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
31336         Likewise.
31337         (INTERNAL_VSYSCALL): Likewise.
31338         (INTERNAL_VSYSCALL_NCS): Likewise.
31339         (INTERNAL_VSYSCALL_CALL): New macro.
31340         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
31341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
31342         (INLINE_VSYSCALL): Remove macro.
31343         (INTERNAL_VSYSCALL): Remove macro.
31344         (INTERNAL_VSYSCALL_NCS): Remove macro.
31345         (INTERNAL_VSYSCALL_CALL): New macro.
31346         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
31347         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
31348         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
31349         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
31350         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
31351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
31352         (INLINE_VSYSCALL): Remove macro.
31353         (INTERNAL_VSYSCALL): Likewise.
31354         (INTERNAL_VSYSCALL_NCS): Likewise.
31355         (INTERNAL_VSYSCALL_CALL): New macro.
31356         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
31357         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
31358         PTR_DEMANGLE on vDSO pointer.
31359         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
31360         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
31361         macro.
31362         (INTERNAL_SYSCALL): Likewise.
31363         (INTERNAL_VSYSCALL_NCS): Remove macro.
31364         (INTERNAL_VSYSCALL_CALL): New macro.
31365         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
31366         Remove macro.
31367         (INTERNAL_VSYSCALL): Likewise.
31368         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
31369         sysdep-vdso.h instead of libc-vdso.h.
31370         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
31371         definition.
31372         (INLINE_VSYSCALL): Likewise.
31373         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
31374         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
31375         definition.
31376         (INLINE_VSYSCALL): Likewise.
31377         (INTERNAL_VSYSCALL): Likewise.
31378         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
31379         * sysdeps/unix/sysv/linux/timespec_get.c
31380         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
31381         (timespec_get): Use ANSI prototype.
31382         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
31383         and definition for Linux.
31384
31385 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
31386
31387         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
31388         * include/libc-symbols.h: libmvec_hidden_* macro series added.
31389
31390 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31391
31392         [BZ #2981]
31393         [BZ #18410]
31394         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
31395         for missing DT_PLTRELSZ.
31396
31397 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31398
31399         Remove obsolete aliases that broke 'locale -a'
31400         [BZ #18412]
31401         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
31402         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
31403         breaking some applications that use 'locale -a' output.
31404         Change the encoding of this file from Latin-1 to ASCII to avoid
31405         other potential problems with people grepping this file.
31406
31407 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31408
31409         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
31410         -fasynchronous-unwind-tables.
31411         (CFLAGS-sendto.c): Likewise.
31412         (CFLAGS-sendmsg.c): Likewise.
31413         (CFLAGS-connect.c): Likewise.
31414         (CFLAGS-recvmsg.c): Likewise.
31415         (CFLAGS-recvfrom.c): Likewise.
31416         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
31417         (SOCKETCALL): New macro: non-cancellable socketcall.
31418         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
31419         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
31420         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
31421         * sysdeps/unix/sysv/linux/accept.c: New file.
31422         * sysdeps/unix/sysv/linux/bind.c: Likewise.
31423         * sysdeps/unix/sysv/linux/connect.c: Likewise.
31424         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
31425         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
31426         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
31427         * sysdeps/unix/sysv/linux/listen.c: Likewise.
31428         * sysdeps/unix/sysv/linux/recv.c: Likewise.
31429         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
31430         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
31431         * sysdeps/unix/sysv/linux/send.c: Likewise.
31432         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
31433         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
31434         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
31435         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
31436         * sysdeps/unix/sysv/linux/socket.c: Likewise.
31437         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
31438         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
31439         prototype.
31440         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
31441         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
31442         instead of __internal_xxx function.
31443         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
31444         prototype.
31445         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
31446         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
31447         instead of __internal_xxx function.
31448         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
31449         prototype.
31450         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
31451         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
31452         instead of __internal_xxx function.
31453         * sysdeps/unix/sysv/linux/accept.S: Remove file.
31454         * sysdeps/unix/sysv/linux/bind.S: Likewise.
31455         * sysdeps/unix/sysv/linux/connect.S: Likewise.
31456         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
31457         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
31458         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
31459         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
31460         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
31461         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
31462         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
31463         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
31464         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
31465         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
31466         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
31467         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
31468         * sysdeps/unix/sysv/linux/listen.S: Likewise.
31469         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
31470         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
31471         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
31472         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
31473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
31474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
31475         * sysdeps/unix/sysv/linux/recv.S: Likewise.
31476         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
31477         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
31478         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
31479         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
31480         * sysdeps/unix/sysv/linux/send.S: Likewise.
31481         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
31482         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
31483         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
31484         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
31485         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
31486         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
31487         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
31488         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
31489         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
31490         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
31491         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
31492         socketcall is implemented in GLIBC.
31493
31494 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
31495
31496         * soft-fp/fmadf4.c: Include <libc-internal.h>.
31497         (__fma): Ignore uninitialized warnings around packing.
31498         * soft-fp/fmasf4.c: Include <libc-internal.h>.
31499         (__fmaf): Ignore uninitialized warnings around packing.
31500         * soft-fp/fmatf4.c: Include <libc-internal.h>.
31501         (__fmal): Ignore uninitialized warnings around packing.
31502
31503         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
31504         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
31505         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
31506         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
31507
31508         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
31509         switch statement into default case.
31510         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
31511
31512         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
31513         a conditional in forcing "inexact".
31514         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
31515         Likewise.
31516
31517 2015-05-22  Roland McGrath  <roland@hack.frob.com>
31518
31519         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
31520         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
31521         for each INTERNAL_SYSCALL use.
31522
31523 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
31524
31525         [BZ #438]
31526         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
31527         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
31528         variable.
31529
31530         [BZ #18444]
31531         * string/basename.c (basename): Rename to __basename and define as
31532         weak alias of __basename.  Use libc_hidden_weak.
31533         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
31534         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
31535         __basename instead of basename.
31536         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
31537         Remove variable.
31538         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
31539
31540 2015-05-18  Florian Weimer  <fweimer@redhat.com>
31541
31542         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
31543         (_IO_JUMPS_FILE_plus): New.
31544         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
31545         _IO_CAST_FIELD_ACCESS.
31546         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
31547         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
31548         * libio/freopen.c (freopen): Likewise.
31549         * libio/freopen64.c (freopen64): Likewise.
31550         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
31551         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
31552         * libio/iofwide.c (_IO_fwide): Likewise.
31553         * libio/memstream.c (open_memstream): Likewise.
31554         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
31555         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
31556         * libio/oldiopopen.c (_IO_old_popen): Likewise.
31557
31558 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
31559
31560         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
31561         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
31562         NADJ.
31563         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
31564         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
31565         NADJ.
31566         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
31567         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
31568         NADJ.
31569
31570         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
31571         (p == 4) case.
31572
31573         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
31574         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
31575         Remove variable.
31576         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
31577         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
31578         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
31579
31580 2015-05-21  Florian Weimer  <fweimer@redhat.com>
31581
31582         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
31583         Adjust jump table label generation macros.
31584
31585 2015-05-21  Florian Weimer  <fweimer@redhat.com>
31586
31587         * stdio-common/vfprintf.c (vfprintf): Move local variables
31588         args_malloced, specs, specs_malloced, and the code after
31589         do_positional to the printf_positional function.
31590         (printf_positional): New function.
31591
31592 2015-05-21  Florian Weimer  <fweimer@redhat.com>
31593
31594         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
31595         function.
31596         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
31597         STEP4_TABLE, process_arg): Move macro definitions
31598         out of the vfprintf function.  (Cosmetic change only.)
31599
31600 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
31601
31602         * benchtests/Makefile (stdio-common-bench): Define.
31603         (benchset): Add stdio-common-bench.
31604         * sprintf-inputs: New file.
31605         * sprintf-source.c: New file.
31606
31607 2015-05-21  Andreas Schwab  <schwab@suse.de>
31608
31609         [BZ #13028]
31610         [BZ #17053]
31611         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
31612         of struct __res_state.
31613         * resolv/res_send.c (__libc_res_nsend): Likewise.
31614         (get_nsaddr): New function.
31615         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
31616         statp directly.
31617
31618 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
31619
31620         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
31621         -D_POSIX_C_SOURCE=199506L.
31622
31623         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
31624
31625         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
31626         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
31627         Do not mention otherwise.
31628         [POSIX] (_XOPEN_VERSION): Do not expect.
31629         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
31630         [POSIX] (_POSIX2_C_BIND): Likewise.
31631         [POSIX] (_POSIX2_VERSION): Likewise.
31632         [POSIX] (_XOPEN_XPG2): Likewise.
31633         [POSIX] (_XOPEN_XPG3): Likewise.
31634         [POSIX] (_XOPEN_XPG4): Likewise.
31635         [POSIX] (_XOPEN_UNIX): Likewise.
31636         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
31637         [POSIX] (_POSIX_BARRIERS): Likewise.
31638         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
31639         [POSIX] (_POSIX_CPUTIME): Likewise.
31640         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
31641         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
31642         [POSIX] (_POSIX_SHELL): Likewise.
31643         [POSIX] (_POSIX_SPAWN): Likewise.
31644         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
31645         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
31646         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
31647         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
31648         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
31649         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
31650         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
31651         [POSIX] (_XBS5_LP64_OFF64): Likewise.
31652         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
31653         [POSIX] (_POSIX_TIMEOUTS): Likewise.
31654         [POSIX] (_POSIX2_PBS): Likewise.
31655         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
31656         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
31657         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
31658         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
31659         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
31660         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
31661         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
31662         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
31663         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
31664         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
31665         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
31666         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
31667         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
31668         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
31669         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
31670         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
31671         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
31672         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
31673         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
31674         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
31675         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
31676         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
31677         [POSIX] (_SC_2_C_BIND): Likewise.
31678         [POSIX] (_SC_2_C_VERSION): Likewise.
31679         [POSIX] (_SC_2_PBS): Likewise.
31680         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
31681         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
31682         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
31683         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
31684         [POSIX] (_SC_2_PBS_TRACK): Likewise.
31685         [POSIX] (_SC_ATEXIT_MAX): Likewise.
31686         [POSIX] (_SC_BARRIERS): Likewise.
31687         [POSIX] (_SC_BASE): Likewise.
31688         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
31689         [POSIX] (_SC_DEVICE_IO): Likewise.
31690         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
31691         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
31692         [POSIX] (_SC_FD_MGMT): Likewise.
31693         [POSIX] (_SC_FIFO): Likewise.
31694         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
31695         [POSIX] (_SC_FILE_LOCKING): Likewise.
31696         [POSIX] (_SC_FILE_SYSTEM): Likewise.
31697         [POSIX] (_SC_IOV_MAX): Likewise.
31698         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
31699         [POSIX] (_SC_NETWORKING): Likewise.
31700         [POSIX] (_SC_PAGE_SIZE): Likewise.
31701         [POSIX] (_SC_PASS_MAX): Likewise.
31702         [POSIX] (_SC_PIPE): Likewise.
31703         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
31704         [POSIX] (_SC_REGEXP): Likewise.
31705         [POSIX] (_SC_SHELL): Likewise.
31706         [POSIX] (_SC_SIGNALS): Likewise.
31707         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
31708         [POSIX] (_SC_SPIN_LOCKS): Likewise.
31709         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
31710         [POSIX] (_SC_USER_GROUPS): Likewise.
31711         [POSIX] (_SC_USER_GROUPS_R): Likewise.
31712         [POSIX] (_SC_STREAMS): Likewise.
31713         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
31714         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
31715         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
31716         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
31717         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
31718         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
31719         [POSIX] (_PC_FILESIZEBITS): Likewise.
31720         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
31721         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
31722         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
31723         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
31724         [POSIX] (uid_t): Likewise.
31725         [POSIX] (gid_t): Likewise.
31726         [POSIX] (off_t): Likewise.
31727         [POSIX] (pid_t): Likewise.
31728         [POSIX] (cuserid): Allow.
31729         (_SC_2_CHAR_TERM): Require constant.
31730         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
31731         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
31732         variable.
31733
31734 2015-05-20  Roland McGrath  <roland@hack.frob.com>
31735
31736         * sysdeps/nacl/pthread-pids.h: New file.
31737         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
31738         (create_thread): Use __nacl_get_tid to initialize PD->tid.
31739
31740         * nptl/pthread-pids.h: New file.
31741         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
31742         * nptl/nptl-init.c: Include <pthread-pids.h>.
31743         (__pthread_initialize_minimal_internal):
31744         Call __pthread_initialize_pids instead of set_tid_address syscall.
31745
31746         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
31747         * sysdeps/posix/usleep.c: ... here.
31748
31749 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31750
31751         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
31752         call_pselect6 object.
31753         [$(subdir) = io]: Remove call_sync_file_range object.
31754         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
31755         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
31756         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
31757         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
31758
31759 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
31760
31761         * math/s_cproj.c: Add include "math_private.h".
31762         * math/s_cprojf.c: Likewise.
31763         * math/s_cprojl.c: Likewise.
31764
31765 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
31766
31767         [BZ #18244]
31768         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
31769         high mantissa bit when testing whether P is a NaN.
31770         * math/libm-test.inc (remainder_test_data): Add more tests.
31771         (remquo_test_data): Likewise.
31772
31773         [BZ #18049]
31774         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
31775         below -32, return the argument, with underflow if subnormal.
31776         * math/auto-libm-test-in: Add more tests of atanh.
31777         * math/auto-libm-test-out: Regenerated.
31778
31779 2015-05-19  Roland McGrath  <roland@hack.frob.com>
31780
31781         [BZ #18434]
31782         * nptl/tst-sem15.c: New file.
31783         * nptl/Makefile (tests): Add it.
31784         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
31785         s/<</>>/ to fix typo in EOVERFLOW check.
31786         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
31787
31788 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
31789
31790         * manual/strings.texi (envz_remove): Fix typo in safety
31791         annotations.
31792
31793 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31794             Steve Ellcey  <sellcey@imgtec.com>
31795
31796         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
31797         in order to avoid strict alias warnings.
31798         (iruserok_af): Ditto for ra.
31799
31800 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
31801
31802         [BZ #17581]
31803         * malloc/hooks.c
31804         (magicbyte): Convert to a function and avoid returning 0x01.
31805         (mem2mem_check): Avoid using a length byte equal to the magic byte.
31806         (mem2chunk_check): Fix unsigned comparisons to zero.
31807         Hoist defs of sz and magic.
31808
31809 2015-05-19  Richard Henderson  <rth@redhat.com>
31810
31811         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
31812
31813         * sysdeps/alpha/fpu/libm-test-ulps: Update.
31814
31815 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
31816
31817         [BZ #16159]
31818         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
31819         * malloc/arena.c (arena_lock): Check if arena is corrupt.
31820         (reused_arena): Find a non-corrupt arena.
31821         (heap_trim): Pass arena to unlink.
31822         * malloc/hooks.c (malloc_check_get_size): Pass arena to
31823         malloc_printerr.
31824         (top_check): Likewise.
31825         (free_check): Likewise.
31826         (realloc_check): Likewise.
31827         * malloc/malloc.c (malloc_printerr): Add arena argument.
31828         (unlink): Likewise.
31829         (munmap_chunk): Adjust.
31830         (ARENA_CORRUPTION_BIT): New macro.
31831         (arena_is_corrupt): Likewise.
31832         (set_arena_corrupt): Likewise.
31833         (sysmalloc): Use mmap if there are no usable arenas.
31834         (_int_malloc): Likewise.
31835         (__libc_malloc): Don't fail if arena_get returns NULL.
31836         (_mid_memalign): Likewise.
31837         (__libc_calloc): Likewise.
31838         (__libc_realloc): Adjust for additional argument to
31839         malloc_printerr.
31840         (_int_free): Likewise.
31841         (malloc_consolidate): Likewise.
31842         (_int_realloc): Likewise.
31843         (_int_memalign): Don't touch corrupt arenas.
31844         * malloc/tst-malloc-backtrace.c: New test case.
31845
31846         * Makefile (summarize-tests): Fix return value on success.
31847
31848         * manual/string.texi (Envz Functions): Add envz_remove.
31849
31850 2015-05-18  Roland McGrath  <roland@hack.frob.com>
31851
31852         * sysdeps/posix/opendir.c: Include <stdbool.h>.
31853         (invalid_name): New function, broken out of ...
31854         (__opendirat): ... here.  Call it.
31855         (need_isdir_precheck): New function, broken out of ...
31856         (__opendirat): ... here.  Call it.
31857         Use __fxstatat64, not __xstatat64.
31858         (opendir_oflags): New function, broken out of ...
31859         (__opendirat): ... here.  Call it.
31860         (opendir_tail): New function, broken out of ...
31861         (__opendirat): ... here.  Call it.
31862         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
31863         opendir_tail, rather than punting to __opendirat.
31864         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
31865
31866 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
31867
31868         * .gitignore: Ignore generated *.pyc.
31869
31870 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
31871
31872         * include/stdio.h: Define __need_wint_t.
31873         * test-skeleton.c: Avoid `for' loop initial declaration.
31874         * nptl/tst-initializers1.c: Use test-skeleton.c.
31875
31876 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31877
31878         [BZ #18418]
31879         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
31880
31881 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
31882
31883         [BZ #16352]
31884         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
31885         (__ieee754_atanh): Force underflow exception for results with
31886         small absolute value.
31887         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
31888         (__ieee754_atanhf): Force underflow exception for results with
31889         small absolute value.
31890         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
31891         (__ieee754_atanh): Force underflow exception for results with
31892         small absolute value.
31893         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
31894         (__ieee754_atanhf): Force underflow exception for results with
31895         small absolute value.
31896         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
31897         (__ieee754_atanhl): Force underflow exception for results with
31898         small absolute value.
31899         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
31900         (__ieee754_atanhl): Force underflow exception for results with
31901         small absolute value.
31902         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
31903         (__ieee754_atanhl): Force underflow exception for results with
31904         small absolute value.
31905         * math/auto-libm-test-in: Do not allow missing underflow
31906         exceptions from atanh.
31907         * math/auto-libm-test-out: Regenerated.
31908
31909         [BZ #18221]
31910         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
31911         2**-28 as threshold for returning x or +/- 1/x.
31912         * math/auto-libm-test-in: Add more tests of tan.
31913         * math/auto-libm-test-out: Regenerated.
31914
31915         [BZ #18220]
31916         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
31917         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
31918         * math/auto-libm-test-in: Add another test of lgamma.
31919         * math/auto-libm-test-out: Regenerated.
31920
31921 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
31922
31923         * stdio-common/printf_fp.c (___printf_fp): Use abs.
31924         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
31925         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
31926         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
31927         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
31928         (ADD2A): Use fabs.  (SUB2A): Use fabs.
31929         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
31930         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
31931         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
31932         (log1): Use fabs.  (my_log2): Use fabs.
31933         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
31934         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
31935         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
31936         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
31937         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
31938         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
31939         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
31940         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
31941         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
31942         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
31943         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
31944
31945 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
31946
31947         [BZ #18217]
31948         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
31949         as threshold for returning 1 - x.
31950         * math/auto-libm-test-in: Add more tests of erfc.
31951         * math/auto-libm-test-out: Regenerated.
31952
31953 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
31954
31955         [BZ #18196]
31956         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
31957         threshold for large arguments.
31958         * math/auto-libm-test-in: Add another test of atan.
31959         * math/auto-libm-test-out: Regenerated.
31960
31961         [BZ #16339]
31962         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
31963         (__log1p): Force underflow exception for results with small
31964         absolute value.
31965         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
31966         (__log1pf): Force underflow exception for results with small
31967         absolute value.
31968         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
31969         (__log1p): Force underflow exception for results with small
31970         absolute value.
31971         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
31972         (__log1pf): Force underflow exception for results with small
31973         absolute value.
31974         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
31975         (__log1pl): Force underflow exception for results with small
31976         absolute value.
31977         * math/auto-libm-test-in: Do not allow missing underflow
31978         exceptions from log1p.
31979         * math/auto-libm-test-out: Regenerated.
31980
31981 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
31982             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31983
31984         [BZ #16704]
31985         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
31986
31987 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
31988
31989         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
31990         (libmvec): New variable.
31991         * configure.ac: Added option for mathvec build.
31992         * configure: Regenerated.
31993         * mathvec/Depend: New file.
31994         * mathvec/Makefile: New file.
31995         * shlib-versions: Added libmvec.
31996         * math/Makefile: Added rule for libm.so installation.
31997
31998         * bits/math-vector.h: New file.
31999         * bits/libm-simd-decl-stubs.h: New header.
32000         * math/Makefile (headers): Added new header
32001         libm-simd-decl-stubs.h.
32002         * math/math.h (__MATHCALL_VEC): New macro.
32003
32004         * math/gen-libm-have-vector-test.sh: Script generates series of macros
32005         for conditions in testing functions.
32006         * math/Makefile: Added call of libm-have-vector-test.sh.
32007         * math/libm-test.inc (HAVE_VECTOR): New macros.
32008
32009         * math/libm-test.inc: START refactored.
32010         * math/test-double.c (TEST_MATHVEC): Add define.
32011         * math/test-float.c: Likewise.
32012         * math/test-idouble.c: Likewise.
32013         * math/test-ifloat.c: Likewise.
32014         * math/test-ildoubl.c: Likewise.
32015         * math/test-ldouble.c: Likewise.
32016         * sysdeps/generic/math-tests-arch.h
32017         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
32018         architecture check.
32019
32020         * math/test-double.c (FUNC_TEST): New macro.
32021         * math/test-float.c: Likewise.
32022         * math/test-idouble.c: Likewise.
32023         * math/test-ifloat.c: Likewise.
32024         * math/test-ildoubl.c: Likewise.
32025         * math/test-ldouble.c: Likewise.
32026         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
32027
32028 2015-05-13  Roland McGrath  <roland@hack.frob.com>
32029
32030         * sysdeps/nacl/fdopendir.c: New file.
32031
32032         * dirent/scandir-tail.c: New file.
32033         * dirent/scandir64-tail.c: New file.
32034         * dirent/Makefile (routines): Add them.
32035         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
32036         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
32037         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
32038         [!SCANDIR] (SCANDIR_TAIL): New macro.
32039         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
32040         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
32041         (SCANDIRAT): Macro removed.
32042         (SCANDIR_TAIL): New macro.
32043         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
32044         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
32045         (SCANDIRAT): Just call __opendirat and __scandir_tail.
32046         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
32047         (READDIR): Macro removed.
32048         (SCANDIR_TAIL): New macro.
32049         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
32050         (SCANDIR_TAIL): New macro.
32051
32052         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
32053         * dirent/scandir-cancel.c: ... to this new file.
32054         * dirent/Makefile (routines): Add it.
32055         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
32056         * sysdeps/unix/sysv/linux/i386/scandir64.c
32057         (SKIP_SCANDIR_CANCEL): Macro removed.
32058         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
32059
32060         * dirent/tst-scandir.c: New file.
32061         * dirent/tst-scandir64.c: New file.
32062         * dirent/Makefile (tests): Add them.
32063
32064 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
32065
32066         [BZ #18409]
32067         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
32068
32069 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32070
32071         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
32072         list.
32073
32074 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
32075
32076         * benchtests/bench-strcoll.c: New benchmark.
32077         * benchtests/Makefile: Generate locales and run benchmark.
32078         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
32079         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
32080         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
32081         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
32082         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
32083         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
32084         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
32085         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
32086         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
32087         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
32088         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
32089         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
32090         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
32091         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
32092         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
32093         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
32094         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
32095         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
32096         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
32097         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
32098         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
32099         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
32100         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
32101         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
32102
32103 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
32104
32105         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
32106         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
32107
32108 2015-05-12  Roland McGrath  <roland@hack.frob.com>
32109
32110         * posix/uname-values.h: New file.
32111         * posix/uname.c: Include that instead of <config-name.h>.
32112         * sysdeps/nacl/uname-values.h: New file.
32113         * sysdeps/arm/nacl/uname-values.h: New file.
32114
32115 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
32116
32117         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
32118         splitting into fields.
32119
32120 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
32121
32122         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
32123         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
32124         * locale/localeinfo.h: Add enum collation_encoding_type.
32125         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
32126         * programs/ld-collate.c (collate_output): Add encoding type info.
32127         * string/strcoll_l.c (STRDIFF): New function.
32128         * (STRCOLL): Use STRDIFF to skip over equal prefix.
32129         * wcsmbs/wcscoll_l.c: Define STRDIFF.
32130
32131 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
32132
32133         [BZ #18397]
32134         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
32135         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
32136         <fpu_control.h> instead of <math/fpu_control.c>.
32137         * sysdeps/mips/mips32/fpu/Makefile: New file.
32138
32139 2015-05-11  Andreas Schwab  <schwab@suse.de>
32140
32141         [BZ #18007]
32142         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
32143         nss_endgrent.
32144         (_nss_compat_endgrent): Call nss_endgrent.
32145         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
32146         nss_endpwent.
32147         (_nss_compat_endpwent): Call nss_endpwent.
32148         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
32149         needent, call nss_setspent only if non-zero.
32150         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
32151         (internal_endspent): Don't call nss_endspent.
32152         (_nss_compat_endspent): Call nss_endspent.
32153         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
32154         Remove.  All uses removed.
32155         (internal_setent): Remove parameter stayopen, add parameter
32156         stream.  Use it instead of global variable.
32157         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
32158         (internal_endent, internal_getent): Add parameter stream.  Use it
32159         instead of global variable.
32160         (CONCAT(_nss_files_end,ENTNAME))
32161         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
32162         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
32163         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
32164         uses removed.
32165         (internal_setent, internal_endent): Add parameter stream.  Use it
32166         instead of global variable.
32167         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
32168         stream.
32169         (get_next_alias): Add parameter stream.
32170         (_nss_files_getaliasent_r): Pass global stream.
32171         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
32172         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
32173         (_nss_files_gethostbyname4_r): Pass local stream to
32174         internal_setent, internal_getent and internal_endent.  Remove
32175         locking.
32176
32177 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
32178
32179         * tst-strfmon1.c (tests): Update expected currency symbol.
32180
32181 2015-05-08  Roland McGrath  <roland@hack.frob.com>
32182
32183         * sysdeps/nacl/gethostname.c: New file.
32184
32185 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
32186
32187         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
32188         and sinh.
32189         * math/auto-libm-test-out: Regenerated.
32190         * sysdeps/i386/fpu/libm-test-ulps: Update.
32191         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32192
32193 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
32194
32195         [BZ #18125]
32196         * stdlib/tst-setcontext3.c: New file.
32197         * stdlib/tst-setcontext3.sh: New file.
32198         * stdlib/Makefile (tests): Add tst-setcontext3.
32199         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
32200         to verify test program created output file.
32201         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
32202         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
32203         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
32204         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
32205
32206 2015-05-06  Roland McGrath  <roland@hack.frob.com>
32207
32208         [BZ #18383]
32209         * elf/tst-tlsalign.c: New file.
32210         * elf/tst-tlsalign-static.c: New file.
32211         * elf/tst-tlsalign-lib.c: New file.
32212         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
32213         (tests-static): Add tst-tlsalign-static.
32214         (modules-names): Add tst-tlsalign-lib.
32215         (test-xfail-tst-tlsalign): New variable.
32216         (test-xfail-tst-tlsalign-static): New variable.
32217
32218         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
32219         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
32220
32221 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
32222
32223         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
32224         csqrt, erfc, sin and sincos.
32225         * math/auto-libm-test-out: Regenerated.
32226         * sysdeps/i386/fpu/libm-test-ulps: Update.
32227         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32228
32229 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32230
32231         * sysdeps/aarch64/libm-test-ulps: Update.
32232
32233 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
32234
32235         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
32236         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
32237         * math/auto-libm-test-out: Regenerated.
32238         * sysdeps/i386/fpu/libm-test-ulps: Update.
32239         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32240
32241 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
32242
32243         [BZ #18265]
32244         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
32245         (wcsncpy): Likewise.
32246
32247 2015-05-05  Florian Weimer  <fweimer@redhat.com>
32248
32249         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
32250         Assume __ASSUME_FALLOCATE is always true.
32251         * sysdeps/unix/sysv/linux/posix_fallocate64.c
32252         (__posix_fallocate64_l64): Likewise.
32253         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
32254         (posix_fallocate): Likewise.
32255         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
32256         (__posix_fallocate64_l64): Likewise.
32257         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
32258         [!__ASSUME_FALLOCATE]: Add comment.
32259
32260 2015-05-05  Florian Weimer  <fweimer@redhat.com>
32261
32262         * sysdeps/unix/sysv/linux/i386/Makefile
32263         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
32264         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
32265         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
32266         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
32267         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
32268         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
32269         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
32270
32271 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
32272
32273         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
32274         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
32275         tgamma.
32276         * math/auto-libm-test-out: Regenerated.
32277         * sysdeps/i386/fpu/libm-test-ulps: Update.
32278         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32279
32280 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
32281
32282         * math/auto-libm-test-in: Add more tests of tgamma.
32283         * math/auto-libm-test-out: Regenerated.
32284         * sysdeps/i386/fpu/libm-test-ulps: Update.
32285         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32286
32287         * math/auto-libm-test-in: Add more tests of tanh.
32288         * math/auto-libm-test-out: Regenerated.
32289         * sysdeps/i386/fpu/libm-test-ulps: Update.
32290         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32291
32292         * math/auto-libm-test-in: Add more tests of tan.
32293         * math/auto-libm-test-out: Regenerated.
32294         * sysdeps/i386/fpu/libm-test-ulps: Update.
32295         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32296
32297         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
32298         * math/auto-libm-test-out: Regenerated.
32299         * sysdeps/i386/fpu/libm-test-ulps: Update.
32300         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32301
32302         * math/auto-libm-test-in: Add another test of pow.
32303         * math/auto-libm-test-out: Regenerated.
32304         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32305
32306         * math/auto-libm-test-in: Add more tests of lgamma.
32307         * math/auto-libm-test-out: Regenerated.
32308         * sysdeps/i386/fpu/libm-test-ulps: Update.
32309         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32310
32311         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
32312         log1p.
32313         * math/auto-libm-test-out: Regenerated.
32314         * sysdeps/i386/fpu/libm-test-ulps: Update.
32315         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32316
32317 2015-05-01  Mark Wielaard  <mjw@redhat.com>
32318
32319         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
32320         Elf64_Chdr structs and ELFCOMPRESS constants.
32321
32322 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
32323
32324         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
32325         expm1.
32326         * math/auto-libm-test-out: Regenerated.
32327         * sysdeps/i386/fpu/libm-test-ulps: Update.
32328         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32329
32330         * math/auto-libm-test-in: Add more tests of erf and erfc.
32331         * math/auto-libm-test-out: Regenerated.
32332         * sysdeps/i386/fpu/libm-test-ulps: Update.
32333         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32334
32335 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32336
32337         * config.h.in (HAVE_AARCH64_BE): Add.
32338
32339 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
32340
32341         * math/auto-libm-test-in: Add more tests of csqrt.
32342         * math/auto-libm-test-out: Regenerated.
32343         * sysdeps/i386/fpu/libm-test-ulps: Update.
32344         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32345
32346         * math/auto-libm-test-in: Add more tests of cosh and sinh.
32347         * math/auto-libm-test-out: Regenerated.
32348         * sysdeps/i386/fpu/libm-test-ulps: Update.
32349         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32350
32351         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
32352
32353 2015-04-29  Roland McGrath  <roland@hack.frob.com>
32354
32355         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
32356         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
32357
32358         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
32359         (euidaccess, eaccess): Define as weak aliases.
32360
32361         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
32362         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
32363         but __suseconds_t is often 'long int' so some sources assume that
32364         type is being used (e.g. they use %ld to print tv_usec).
32365
32366 2015-04-29  Florian Weimer  <fweimer@redhat.com>
32367
32368         [BZ #18007]
32369         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
32370         (CVE-2014-8121)
32371         * nss/tst-nss-getpwent.c: New file.
32372         * nss/Makefile (tests): Add new test.
32373
32374 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
32375
32376         [BZ #18346]
32377         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
32378         exponents less than 48 as cases where high part of mantissa needs
32379         examining to determine whether argument is integral.
32380         * math/libm-test.inc (round_test_data): Add more tests.
32381
32382 2015-04-28  Mark Wielaard  <mjw@redhat.com>
32383
32384         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
32385
32386 2015-04-27  David S. Miller  <davem@davemloft.net>
32387
32388         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
32389         __tls_get_addr.
32390         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
32391
32392 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
32393
32394         [BZ #18333]
32395         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
32396
32397 2015-04-27  Florian Weimer  <fweimer@redhat.com>
32398
32399         [BZ #18333]
32400         * time/tzset.c (parse_tzname): Return error on memory allocation
32401         failure.
32402         * test-skeleton.c (struct temp_name_list): Change type of name
32403         member to non-const.
32404         (add_temp_file): Create a copy of the file name.
32405         (delete_temp_files): Deallocate memory.
32406         (create_temp_file): Add comment.
32407
32408 2015-04-24  Florian Weimer  <fweimer@redhat.com>
32409
32410         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
32411         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
32412
32413 2015-04-24  Roland McGrath  <roland@hack.frob.com>
32414
32415         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
32416         * sysdeps/arm/configure: Regenerated.
32417
32418 2015-04-24  Florian Weimer  <fweimer@redhat.com>
32419
32420         [BZ #17715]
32421         * time/tzfile.c (__tzfile_read): Check for large values of
32422         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
32423         * time/tzset.c (__tzstring_len): New function, based on the old
32424         __tzstring function.
32425         (__tzstring): Call __tzstring_len.
32426         (parse_tzname): New helper function extracted from
32427         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
32428         the input string.
32429         (parse_offset): New helper function extracted from
32430         __tzset_parse_tz.  Replace switch with fallthrough with
32431         initialization before sscanf.
32432         (parse_rule): Likewise.
32433         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
32434         new-style function definition.
32435         * timezone/Makefile (tests): Add tst-tzset.
32436         (tst-tzset.out): Dependencies on time zone files.
32437         (tst-tzset-ENV): Set TZDIR.
32438         (testdata/XT%): Copy crafted time zone files.
32439         * timezone/README: Mention crafted time zone files.
32440         * timezone/testdata/XT1, timezone/testdata/XT2,
32441         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
32442         files.
32443         * timezone/tst-tzset.c: New test.
32444
32445 2015-04-24  Florian Weimer  <fweimer@redhat.com>
32446
32447         * Makeconfig (+gccwarn): Remove -Winline.
32448
32449 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
32450
32451         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
32452
32453 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
32454
32455         * NEWS: Mention sysconf() cache information support for s390.
32456         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
32457
32458 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
32459
32460         * math/k_casinh.c (__kernel_casinh): Use __copysign.
32461         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
32462         (__nearbyint): Likewise.
32463         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
32464         (copysignl): Likewise.
32465
32466 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
32467
32468         [BZ #18287]
32469         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
32470         based on padding.  (CVE-2015-1781)
32471
32472 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32473
32474         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
32475         libc-vdso.h.
32476         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
32477         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
32478         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
32479         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
32480         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
32481         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
32482         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
32483         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
32484         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
32485         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
32486         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
32487         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
32488         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
32489         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
32490         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
32491         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
32492         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
32493         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
32494         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
32495         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
32496         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
32497         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
32498         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
32499
32500 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
32501
32502         * stdlib/setenv.c (__add_to_environ):
32503         Dump core quickly if setenv (..., NULL, ...) is called.
32504         This time, do it the right way, and pacify GCC with a pragma.
32505
32506 2015-04-17  Roland McGrath  <roland@hack.frob.com>
32507
32508         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
32509         IMAP->l_prev cannot be null, and #if out the code for the contrary
32510         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
32511         believe that NS (&_dl_ns[NSID]) could point outside the array.
32512
32513         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
32514         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
32515         before using NSID as an index.
32516
32517 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
32518
32519         [BZ #17825]
32520         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
32521         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
32522         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
32523
32524 2015-04-17  Roland McGrath  <roland@hack.frob.com>
32525
32526         Add preliminary port to Google Native Client on ARM.
32527         * abi-tags (.*-.*-nacl.*): New entry.
32528         * sysdeps/arm/nacl: New directory.
32529         * sysdeps/nacl: New directory.
32530
32531 2015-04-16  David S. Miller  <davem@davemloft.net>
32532
32533         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
32534         lowlevellock-futex.h
32535
32536 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
32537
32538         * sysdeps/tile/configure.ac: New file.
32539         * sysdeps/tile/configure: Regenerated.
32540
32541 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32542
32543         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
32544         conditionals for weak_alias and libc_hidden_weak.
32545         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
32546         libc_hidden_weak and weak_alias.
32547         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
32548         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
32549         and weak_alias for static one.
32550
32551 2015-04-15  David S. Miller  <davem@davemloft.net>
32552
32553         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
32554
32555 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
32556
32557         [BZ #18206]
32558         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
32559           Use signed comparision instead of substraction to avoid
32560           overflow bug.
32561         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
32562           Take the sign of ret.
32563         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
32564           Do not expect precise return values. Only the sign matters.
32565         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
32566         * wcsmbs/test-wcsncmp.c: New File.
32567         * string/test-strncmp.c: Add wcsncmp support.
32568
32569 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
32570
32571         [BZ #6792]
32572         * math/w_log1p.c: New file.
32573         * math/w_log1pf.c: Likewise.
32574         * math/w_log1pl.c: Likewise.
32575         * math/Makefile (libm-calls): Add w_log1p.
32576         * math/s_log1pl.c (log1pl): Remove weak_alias.
32577         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
32578         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
32579         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
32580         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
32581         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
32582         [NO_LONG_DOUBLE] (log1pl): Likewise.
32583         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
32584         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
32585         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
32586         (log1p): Remove long_double_symbol.
32587         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
32588         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
32589         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
32590         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
32591         remove weak_alias for corresponding log1p function.
32592         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
32593         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
32594         * sysdeps/ia64/fpu/w_log1p.c: New file.
32595         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
32596         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
32597         * math/libm-test.inc (log1p_test_data): Add errno expectations.
32598
32599 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
32600
32601         [BZ #18247]
32602         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
32603         decimal exponent by 1.
32604         * stdlib/tst-strtod-round-data: Add more tests.
32605         * stdlib/tst-strtod-round.c (tests): Regenerated.
32606
32607 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
32608
32609         * math/auto-libm-test-in: Add more tests of clog and clog10.
32610         * math/auto-libm-test-out: Regenerated.
32611         * sysdeps/i386/fpu/libm-test-ulps: Update.
32612         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32613
32614 2015-04-09  Roland McGrath  <roland@hack.frob.com>
32615
32616         * Makeconfig (module-cppflags): Exclude all .v.i files.
32617         (skip-module-cppflags): Variable removed.
32618
32619         * configure.ac (libc_config_ok): Initialize before reading
32620         preconfigure scripts, not after.
32621         * configure: Regenerated.
32622
32623         * test-skeleton.c (TIMEOUT): Move #define to top level.
32624         (main): Grok environment variable TEST_DIRECT.  If set, print
32625         test expectation details into that file and then behave as if
32626         given --direct.
32627
32628 2015-04-09  Florian Weimer  <fweimer@redhat.com>
32629
32630         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
32631         warning on 32-bit.
32632
32633 2015-04-08  David S. Miller  <davem@davemloft.net>
32634
32635         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32636
32637 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
32638
32639         * math/auto-libm-test-in: Add more tests of atanh.
32640         * math/auto-libm-test-out: Regenerated.
32641         * sysdeps/i386/fpu/libm-test-ulps: Update.
32642         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32643
32644         * math/auto-libm-test-in: Add more tests of atan.
32645         * math/auto-libm-test-out: Regenerated.
32646         * sysdeps/i386/fpu/libm-test-ulps: Update.
32647         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32648
32649 2015-04-08  Florian Weimer  <fweimer@redhat.com>
32650
32651         * elf/pldd.c (main): Rewrite to use struct
32652         scratch_buffer instead of extend_alloca.
32653         * elf/pldd-xx.c (find_maps): Likewise.
32654         * grp/initgroups.c: Include <scratch_buffer.h> instead of
32655         <alloca.h>.
32656         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
32657         scratch_buffer instead of extend_alloca.
32658         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
32659         grp/compat-initgroups.c.
32660         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
32661         Rewrite to use struct scratch_buffer instead of extend_alloca.
32662         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
32663         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32664
32665 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
32666
32667         * math/auto-libm-test-in: Add more tests of cbrt.
32668         * math/auto-libm-test-out: Regenerated.
32669         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32670
32671         * math/auto-libm-test-in: Add more tests of cabs.
32672         * math/auto-libm-test-out: Regenerated.
32673         * sysdeps/i386/fpu/libm-test-ulps: Update.
32674         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32675
32676         [BZ #18210]
32677         [BZ #18211]
32678         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
32679         (__ieee754_atan2): Set FE_TONEAREST mode for internal
32680         computations.
32681         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
32682         clog10.
32683         * math/auto-libm-test-out: Regenerated.
32684         * sysdeps/i386/fpu/libm-test-ulps: Update.
32685         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32686
32687         [BZ #18197]
32688         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
32689         (atan): Set FE_TONEAREST mode for internal computations.
32690         * math/auto-libm-test-in: Add more tests of atan.
32691         * math/auto-libm-test-out: Regenerated.
32692
32693 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
32694
32695         [BZ #17930]
32696         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
32697
32698 2015-04-07  Florian Weimer  <fweimer@redhat.com>
32699
32700         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
32701
32702 2015-04-07  Florian Weimer  <fweimer@redhat.com>
32703
32704         * include/scratch_buffer.h: New file.
32705         * malloc/scratch_buffer_grow.c: Likewise.
32706         * malloc/scratch_buffer_grow_preserve.c: Likewise.
32707         * malloc/scratch_buffer_set_array_size.c: Likewise.
32708         * malloc/tst-scratch_buffer.c: Likewise.
32709         * malloc/Makefile (routines): Add scratch_buffer_grow.
32710         (tests): Add test case.
32711         * malloc/Versions (GLIBC_PRIVATE): Export
32712         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
32713         __libc_scratch_buffer_set_array_size.
32714
32715 2015-04-06  Richard Henderson  <rth@redhat.com>
32716
32717         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
32718         * sysdeps/alpha/fpu/libm-test-ulps: Update.
32719
32720         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
32721         unsigned int before printing.
32722
32723 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
32724
32725         [BZ #17596]
32726         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
32727         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
32728
32729 2015-04-02  Florian Weimer  <fweimer@redhat.com>
32730
32731         * include/libc-internal.h (libc_max_align_t): Define.
32732
32733 2015-04-02  Andreas Schwab  <schwab@suse.de>
32734
32735         [BZ #16850]
32736         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
32737
32738 2015-04-02  Mel Gorman  <mgorman@suse.de>
32739
32740         [BZ #17195]
32741         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
32742         as well as the main arena.
32743
32744 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
32745
32746         [BZ #18185]
32747         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
32748         sharing L2 cache to 2 for Silvermont/Knights Landing.
32749
32750 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
32751
32752         [BZ #17711]
32753         * config.make.in (have-protected-data): New.
32754         * configure.ac: Check linker support for protected data symbol.
32755         * configure: Regenerated.
32756         * elf/Makefile (modules-names): Add tst-protected1moda and
32757         tst-protected1modb if $(have-protected-data) is yes.
32758         (tests): Add tst-protected1a and tst-protected1b if
32759         $(have-protected-data) is yes.
32760         ($(objpfx)tst-protected1a): New.
32761         ($(objpfx)tst-protected1b): Likewise.
32762         (tst-protected1modb.so-no-z-defs): Likewise.
32763         * elf/tst-protected1a.c: New file.
32764         * elf/tst-protected1b.c: Likewise.
32765         * elf/tst-protected1mod.h: Likewise.
32766         * elf/tst-protected1moda.c: Likewise.
32767         * elf/tst-protected1modb.c: Likewise.
32768
32769 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
32770
32771         [BZ #17711]
32772         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
32773         indicates it is called from do_lookup_x on relocation against
32774         protected data, skip the data definion in the executable from
32775         copy reloc.
32776         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
32777         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
32778         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
32779         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
32780         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
32781         otherwise to 0.
32782         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
32783         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
32784         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
32785         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
32786         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
32787         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
32788
32789 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
32790
32791         * sysdeps/nptl/pthread.h: Remove duplicate definition of
32792         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
32793
32794 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
32795
32796         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
32797         THREAD_SETMEM_NC.
32798         * sysdeps/x86_64/nptl/tls.h: Ditto.
32799
32800 2015-03-27  Roland McGrath  <roland@hack.frob.com>
32801
32802         * dlfcn/tststatic.c (main): Converted to ...
32803         (do_test): ... this.
32804         (TEST_FUNCTION): New macro.
32805         Include test-skeleton.c.
32806
32807 2015-03-26  Alan Modra  <amodra@gmail.com>
32808
32809         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
32810         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
32811         zero for undefined weak.
32812         (elf_machine_plt_conflict): Similarly.
32813
32814 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
32815
32816         * math/auto-libm-test-in: Add more tests of acosh, asinh and
32817         atanh.
32818         * math/auto-libm-test-out: Regenerated.
32819         * sysdeps/i386/fpu/libm-test-ulps: Update.
32820         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32821
32822         * math/auto-libm-test-in: Add another test of asin.
32823         * math/auto-libm-test-out: Regenerated.
32824         * sysdeps/i386/fpu/libm-test-ulps: Update.
32825         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32826
32827         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
32828         Remove macro.
32829         (LLL_EBX_REG): Likewise.
32830         (LLL_ENTER_KERNEL): Likewise.
32831
32832         * math/auto-libm-test-in: Add more tests of asin.
32833         * math/auto-libm-test-out: Regenerated.
32834         * sysdeps/i386/fpu/libm-test-ulps: Update.
32835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32836
32837         [BZ #18138]
32838         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
32839         libc_do_syscall_args): New structure.
32840         (INTERNAL_SYSCALL_MAIN_0): New macro.
32841         (INTERNAL_SYSCALL_MAIN_1): Likewise.
32842         (INTERNAL_SYSCALL_MAIN_2): Likewise.
32843         (INTERNAL_SYSCALL_MAIN_3): Likewise.
32844         (INTERNAL_SYSCALL_MAIN_4): Likewise.
32845         (INTERNAL_SYSCALL_MAIN_5): Likewise.
32846         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
32847         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
32848         Replace conditional definitions by conditional definitions of ....
32849         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
32850         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
32851         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
32852         (libpthread-sysdep_routines): Add libc-do-syscall.
32853         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
32854         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
32855         to __NR_futex not 240.
32856
32857 2015-03-25  Alan Modra  <amodra@gmail.com>
32858
32859         * NEWS: Advertise TLS optimization.
32860         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
32861         (DT_PPC_NUM): Increment.
32862         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
32863         (CHECK_STATIC_TLS): Use here.
32864         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
32865         TLS descriptors.
32866         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
32867         * sysdeps/powerpc/dl-tls.c: New file.
32868         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
32869         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
32870         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
32871         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
32872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
32873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
32874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
32875
32876 2015-03-25  Alan Modra  <amodra@gmail.com>
32877
32878         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
32879         for overlapping .opd entries" to "support...".
32880         * sysdeps/powerpc/powerpc64/configure: Regenerate
32881
32882 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
32883
32884         * math/auto-libm-test-in: Add more tests of acos.
32885         * math/auto-libm-test-out: Regenerated.
32886         * sysdeps/i386/fpu/libm-test-ulps: Update.
32887         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32888
32889         * math/auto-libm-test-in: Add more tests of expm1.
32890         * math/auto-libm-test-out: Regenerated.
32891         * sysdeps/i386/fpu/libm-test-ulps: Update.
32892         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32893
32894 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
32895
32896         * math/auto-libm-test-in: Add more tests of cosh and sinh.
32897         * math/auto-libm-test-out: Regenerated.
32898         * sysdeps/i386/fpu/libm-test-ulps: Update.
32899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32900
32901         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
32902         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32903
32904         * math/auto-libm-test-in: Add more tests of log2.
32905         * math/auto-libm-test-out: Regenerated.
32906         * sysdeps/i386/fpu/libm-test-ulps: Update.
32907         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32908
32909 2015-03-23  Roland McGrath  <roland@hack.frob.com>
32910
32911         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
32912         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
32913         _IO_IS_APPENDING bit in READ_WRITE instead.
32914
32915 2015-03-23  Florian Weimer  <fweimer@redhat.com>
32916
32917         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
32918         (__determine_cpumask_size): Replace extend_alloca with a
32919         variable-length array.  Do not treat res == 0 as an error.
32920
32921 2015-03-23  Florian Weimer  <fweimer@redhat.com>
32922
32923         [BZ #18100]
32924         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
32925         and integer overflow.
32926         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
32927         (main): Add integer overflow tests.
32928         * manual/pattern.texi (Calling Wordexp): Document additional use
32929         for WRDE_SYNTAX.
32930
32931 2015-03-23  Alan Modra  <amodra@gmail.com>
32932
32933         * config.h.in: Remove HAVE_ASM_PPC_REL16.
32934         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
32935         and false branch of conditional.
32936         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
32937         Likewise.
32938
32939 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
32940
32941         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
32942         libc-modules.h
32943         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
32944         unused declaration of _hurd_intr_rpc_msg_in_trap.
32945         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
32946         defined instead of whether it is non-zero.
32947         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
32948         input constraint instead of both input and output constraint.  Use ecx
32949         clobber instead of %ecx.
32950         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
32951         mutex_unlock): Use a statement expression instead of an expression list.
32952         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
32953         type to vm_size_t instead of vm_address_t.
32954         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
32955         defined instead of whether it is non-zero.
32956         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
32957         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
32958         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
32959         comparisons with mapaddr.
32960         * nscd/nscd-client.h: Include <time.h>.
32961         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
32962         9th parameter to __vm_region instead of int.
32963         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
32964         * scripts/check-local-headers.sh (exclude): Add device/,
32965         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
32966         cthreads.h.
32967
32968 2015-03-19  Roland McGrath  <roland@hack.frob.com>
32969
32970         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
32971         to account for alignment padding.
32972         * sysdeps/arm/memmove.S: Likewise.
32973
32974 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
32975
32976         * sysdeps/unix/sysv/linux/generic/README: New file.
32977
32978 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
32979
32980         [BZ #18138]
32981         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
32982         (futex_abstimed_wait)
32983         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
32984         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
32985         of lll_futex_timed_wait.
32986
32987 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
32988
32989         [BZ #17542]
32990         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
32991
32992 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
32993
32994         [BZ #17090]
32995         [BZ #17620]
32996         [BZ #17621]
32997         [BZ #17628]
32998         * NEWS: Update.
32999         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
33000         entries with Static TLS too.  Skip entries past the end of the
33001         allocated DTV, from Alan Modra.
33002         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
33003         Static TLS DTV entry set up from...
33004         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
33005         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
33006         * nptl/allocatestack.c (init_one_static_tls): ... and here...
33007         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
33008         for Static TLS.
33009         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
33010         that the slot we find is associated with the given map before
33011         using its generation count.
33012         * nptl_db/db_info.c: Include ldsodefs.h.
33013         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
33014         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
33015         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
33016         (link_map::l_tls_offset): New struct field.
33017         (dtv_t::counter): Likewise.
33018         (rtld_global): New struct.
33019         (_rtld_global): New rtld variable.
33020         (dl_tls_dtv_slotinfo_list): New rtld global field.
33021         (dtv_slotinfo_list): New struct.
33022         (dtv_slotinfo): Likewise.
33023         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
33024         (td_lookup): Rename to...
33025         (td_mod_lookup): ... this.  Use new mod parameter instead of
33026         LIBPTHREAD_SO.
33027         * nptl_db/td_thr_tlsbase.c: Include link.h.
33028         (dtv_slotinfo_list, dtv_slotinfo): New functions.
33029         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
33030         addresses even if the DTV is out of date or missing them.
33031         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
33032         index zero-length arrays.
33033         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
33034         (td_lookup): Make it a macro implemented in terms of...
33035         (td_mod_lookup): ... this declaration.
33036         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
33037         (DB_MAIN_VARIABLE): Likewise.
33038
33039 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
33040
33041         [BZ #18134]
33042         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
33043
33044 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
33045
33046         * stdlib/setenv.c (__add_to_environ): Revert previous change.
33047
33048 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
33049
33050         [BZ #18128]
33051         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
33052         (atomic_add, atomic_increment_and_test)
33053         (atomic_decrement_and_test): Fix 64-bit arithmetic.
33054
33055 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
33056
33057         * stdlib/setenv.c (__add_to_environ):
33058         Dump core quickly if setenv (..., NULL, ...) is called.
33059
33060 2015-03-13  Roland McGrath  <roland@hack.frob.com>
33061
33062         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
33063         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
33064         all the necessary asm magic in one place.
33065         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
33066         using those.
33067
33068 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
33069
33070         [BZ #14906]
33071         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
33072         traced file mtime. Use consistent log message.
33073         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
33074         (register_traced_file): Call install_watches. Always set mtime.
33075         (invalidate_cache): Iterate over all trace files. Call install_watches.
33076         (inotify_check_files): Don't inline. Handle watching parent
33077         directories and configuration file movement in and out.
33078         (handle_inotify_events): New function.
33079         (main_loop_poll): Call handle_inotify_events.
33080         (main_loop_epoll): Likewise.
33081         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
33082         (struct traced_file): Use array of inotify fds. Add parent directory,
33083         and basename.
33084         (struct database_dyn): Remove unused file_mtime.
33085         (init_traced_file): New inline function.
33086         (define_traced_file): New macro.
33087         * nss/nss_db/db-init.c: Use define_traced_file.
33088         (_nss_db_init): Use init_traced_file.
33089         * nss/nss_files/files-init.c: Use define_traced_file.
33090         (_nss_files_init): Use init_traced_file.
33091
33092 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
33093
33094         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
33095         [_LIBC]: Do not include <stdlib.h>.
33096         [!_LIBC] (abort): Remove declaration.
33097         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
33098         _FP_STATIC_ASSERT instead of conditionally calling abort.
33099         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
33100         (_FP_EXTEND_CNAN): Likewise.
33101         (FP_TRUNC): Likewise.
33102         (__FP_CLZ): Likewise.
33103         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
33104
33105 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
33106
33107         * manual/string.texi (XPG basename): Fix prototype.
33108
33109 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
33110
33111         [BZ #18080]
33112         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
33113         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
33114         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
33115         (__setcontext): Likewise.
33116         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
33117         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
33118         Call rt_sigprocmask syscall one time to set new signal mask
33119         and retrieve the current signal mask instead of two calls.
33120         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
33121         (__swapcontext): Likewise.
33122         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
33123         * stdlib/tst-setcontext2.c: New file.
33124
33125 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
33126
33127         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
33128
33129 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
33130
33131         [BZ #18093]
33132         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
33133         the wrong size.
33134
33135 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
33136
33137         [BZ #18043]
33138         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
33139
33140 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
33141
33142         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
33143         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
33144         Remove define.
33145         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
33146         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
33147         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
33148         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
33149         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
33150         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
33151         define.
33152         * nptl_db/td_symbol_list.c (td_lookup): Remove
33153         HAVE_ASM_GLOBAL_DOT_NAME code.
33154         * sysdeps/powerpc/powerpc64/configure.ac: Remove
33155         HAVE_ASM_GLOBAL_DOT_NAME check.
33156         * sysdeps/powerpc/powerpc64/configure: Regenerate.
33157         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
33158         (DOT_LABEL): Remove define.
33159         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
33160         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
33161         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
33162         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
33163         (__TLS_GET_ADDR): Likewise.
33164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
33165         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
33166
33167 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
33168
33169         [BZ #18111]
33170         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
33171         (_FPU_SETCW): Initialize cw from fpsr before storing.
33172         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
33173         (fesetexceptflag): Rewrite using fpu_control.h.
33174         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
33175
33176 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
33177
33178         [BZ #18110]
33179         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
33180         asms.
33181         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
33182
33183 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
33184
33185         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
33186         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
33187         abort.
33188         (_FP_FMA): Likewise.
33189         (_FP_DIV): Likewise.
33190
33191 2015-03-10  Roland McGrath  <roland@hack.frob.com>
33192
33193         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
33194         with 0 in that case.
33195         * Makefile (summarize-tests): New canned sequence, factored out of
33196         commands for targets tests and xtests.  Display summary lines that
33197         don't start with PASS: or XFAIL: rather than ones that do start with
33198         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
33199         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
33200         do start with ERROR: or FAIL:.
33201         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
33202         (except for [$(build-shared) = yes]).
33203         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
33204         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
33205         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
33206         * nptl/Makefile: Revert 2015-03-04 changes.
33207         [$(CXX) empty] (tests-unsupported): New variable.
33208         * debug/Makefile: Likewise.
33209
33210         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
33211         gnulib file.  Replace __attribute with __attribute__ throughout.
33212
33213 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
33214
33215         * sysdeps/hppa/fpu/libm-test-ulps: Update.
33216
33217 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
33218
33219         [BZ #18104]
33220         * math/auto-libm-test-in: Add another test of pow.
33221         * math/auto-libm-test-out: Regenerated.
33222
33223 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33224
33225         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
33226         $(config-cflags-nofma).
33227
33228 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
33229
33230         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
33231         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
33232         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
33233         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
33234         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
33235         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
33236         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
33237         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
33238         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
33239         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
33240         Add comment on closing #endif.
33241
33242 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33243
33244         * posix/wordexp.c (CHAR_IN_SET): New macro.
33245         (parse_param): Use it.
33246
33247 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33248
33249         * sysdeps/powerpc/fpu/libm-test-ulps: update.
33250
33251 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33252
33253         [BZ #18043]
33254         * posix/wordexp.c (parse_param): Fix buffer overflow.
33255         * posix/wordexp-test.c (test_case): Add test case.
33256
33257 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33258
33259         [BZ #18042]
33260         * posix/wordexp.c (parse_backtick): Fix off-by-one.
33261         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
33262
33263 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33264
33265         [BZ #18043]
33266         * posix/wordexp-test.c (test_case): Add test for BZ #18043
33267         (do_bz18043): Delete.
33268         (at_page_end): New.
33269         (testit): Refactor to have words at the edge of unreadable page.
33270
33271 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
33272
33273         [BZ #16734]
33274         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
33275         Cleanup read-only streams as well.
33276         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
33277
33278 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33279
33280         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
33281         <bits/libc-lockP.h>
33282
33283 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
33284
33285         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
33286         on [__KERNEL__].
33287         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
33288         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
33289         * soft-fp/op-common.h (_FP_DECL): Likewise.
33290
33291 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
33292
33293         * elf/ifuncdep2.c (global): Replace
33294         __attribute__((visibility("protected"))) with
33295         asm (".protected global").
33296         * elf/ifuncmod1.c (global): Likewise.
33297         * elf/ifuncmod5.c (global): Likewise.
33298
33299 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
33300
33301         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
33302         <asm/sfp-machine.h> instead of <sfp-machine.h>.
33303
33304 2015-03-06  Roland McGrath  <roland@hack.frob.com>
33305
33306         * manual/install.texi (Configuring and compiling):
33307         Document test-wrapper-env-only.
33308         * INSTALL: Regenerated.
33309
33310 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
33311
33312         [BZ #18043]
33313         * posix/wordexp.c (parse_param): Fix buffer overflow.
33314         * posix/wordexp-test.c (do_bz18043): Add test case.
33315
33316 2015-03-06  Vincent Bernat  <vincent@bernat.im>
33317
33318         * time/tst-strptime2.c (do_test): Ensure failing tests are
33319         reported correctly.
33320         * time/tst-strptime3.c (do_test): Likewise.
33321
33322 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
33323
33324         Fix aio_error thread-safety.
33325         * sysdeps/pthread/aio_error.c: New file
33326         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
33327         synchronization.
33328
33329 2015-03-06  Florian Weimer  <fweimer@redhat.com>
33330
33331         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
33332         (group_number, vfprintf): Use it.
33333         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
33334         (JUMP, REF): Use it.
33335         (WORK_BUFFER_SIZE): New enum constant.
33336         (process_arg, vfprintf): Use it.
33337
33338 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
33339
33340         * manual/errno.texi (Error Messages): Complete example function
33341         by adding missing #define.
33342         (program_invocation_name): Add statement indicating GNU
33343         extension and reference which header file declares the variable.
33344         (program_invocation_short_name): Likewise.
33345
33346 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
33347
33348         * manual/errno.texi (Error Messages): Delete strerror ISO C89
33349         compatibility note.
33350
33351 2015-03-05  Roland McGrath  <roland@hack.frob.com>
33352
33353         * Makeconfig (test-wrapper-env-only): New variable.
33354         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
33355         then use that with $(test-wrapper-env-only) rather than using
33356         $(test-wrapper-env) $(run-program-env) $($*-ENV).
33357
33358 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
33359
33360         [BZ #18082]
33361         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
33362         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
33363         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
33364         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
33365         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
33366         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
33367         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
33368         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
33369         Likewise.
33370         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
33371         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
33372         Likewise.
33373         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
33374         Likewise.
33375         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
33376         Likewise.
33377         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
33378         Likewise.
33379         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
33380         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
33381         Likewise.
33382         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
33383         Likewise.
33384         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
33385         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
33386
33387 2015-03-04  Roland McGrath  <roland@hack.frob.com>
33388
33389         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
33390         (ETH_ALEN): New macro.
33391         (struct ether_addr): Use it for length of ether_addr_octet.
33392
33393         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
33394         (setdb): Don't call __nss_configure_lookup for "rpc".
33395         (do_test): Don't call test_rpc.
33396         (output_rpcent, test_rpc): Functions moved ...
33397         * sunrpc/test-rpcent.c: ... to this new file.
33398         * sunrpc/Makefile (tests): Add it.
33399
33400         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
33401         __xpg_sigpause.
33402         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
33403         * nptl/tst-signal6.c: Likewise.
33404         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
33405         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
33406
33407         * configure.ac (libc_cv_cxx_link_ok): New check.
33408         Reset CXX to empty if it fails to link.
33409         * configure: Regenerated.
33410         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
33411         bug-atexit3-lib only if $(CXX) is nonempty.
33412         * nptl/Makefile (tests): Likewise for tst-cancel24.
33413         (tests, tests-static): Likewise for tst-cancel24-static.
33414         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
33415         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
33416         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
33417         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
33418
33419 2015-03-04  Andreas Schwab  <schwab@suse.de>
33420
33421         [BZ #17631]
33422         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
33423         for non-GCC compilers.
33424         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
33425         Likewise.
33426
33427 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
33428
33429         [BZ #17776]
33430         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
33431         integer before bitwise and assembly operations.
33432         (feclearexcept): Likewise.
33433         * math/test-fenvinline.c: New file.
33434         * math/Makefile: Add test-fenvinline test.
33435
33436 2015-03-03  Alan Modra  <amodra@gmail.com>
33437
33438         [BZ #16512]
33439         * scripts/localplt.awk: Strip off symbol version.
33440         * NEWS: Mention bug fix.
33441
33442 2015-03-02  Roland McGrath  <roland@hack.frob.com>
33443
33444         * sysdeps/pthread/timer_routines.c
33445         (timer_free_list, thread_free_list, thread_active_list): Make static.
33446
33447 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
33448
33449         [BZ #17779]
33450         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33451         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
33452         Undefine.
33453         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33454         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
33455         Likewise.
33456         * sysdeps/unix/sysv/linux/sh/kernel-features.h
33457         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
33458         Likewise.
33459
33460 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
33461
33462         [BZ #18036]
33463         * posix/fnmatch_loop.c (END): Detect invalid pattern.
33464         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
33465
33466 2015-03-02  Andreas Schwab  <schwab@suse.de>
33467
33468         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
33469         variable name.
33470
33471 2015-03-02  Florian Weimer  <fweimer@redhat.com>
33472
33473         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
33474         Return error status.
33475
33476 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
33477
33478         [BZ #15969]
33479         * locale/findlocale.c (_nl_find_locale): Introduce const
33480         version of loc_name and drop unsafe type casts.
33481
33482 2015-02-27  Roland McGrath  <roland@hack.frob.com>
33483
33484         * dlfcn/tststatic2.c (main): Converted to ...
33485         (do_test): ... this.
33486         (TEST_FUNCTION): New macro.
33487         Include test-skeleton.c.
33488
33489 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
33490
33491         [BZ #17711]
33492         * elf/Makefile (tests): Add vismain only if PIE is enabled.
33493         (tests-pie): Add vismain.
33494         (CFLAGS-vismain.c): New.
33495         * elf/vismain.c: Add comments for PIE requirement.
33496
33497 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
33498
33499         [BZ #18046]
33500         [BZ #18047]
33501         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
33502         0x1p-56L as threshold for just returning the argument.
33503         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
33504         0x1p-32L as threshold for just returning the argument.
33505         * math/auto-libm-test-in: Add more tests of atanh.
33506         * math/auto-libm-test-out: Regenerated.
33507         * sysdeps/i386/fpu/libm-test-ulps: Update.
33508         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
33509
33510 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
33511
33512         * string/bcopy.c (bcopy): Call memmove for performance.
33513
33514 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
33515
33516         * string/bzero.c (__bzero): Call memset for performance.
33517
33518 2015-02-27  John David Anglin  <dave.anglin@bell.net>
33519
33520         [BZ #18068]
33521         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
33522         to 00100000.
33523
33524 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
33525
33526         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
33527
33528 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
33529
33530         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
33531         (__kernel_standard): Use CSTR macro when setting exc.name.
33532         * sysdeps/ieee754/Makefile [$(subdir) = math]
33533         (CFLAGS-k_standard.c): Remove variable.
33534
33535         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
33536         setting p and q from "else if" to "else".
33537         (qzero): Likewise.
33538         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
33539         (qone): Likewise.
33540         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
33541         (qzerof): Likewise.
33542         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
33543         (qonef): Likewise.
33544         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
33545         (qzero): Likewise.
33546         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
33547         (qone): Likewise.
33548
33549         [BZ #18038]
33550         [BZ #18039]
33551         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
33552         return pi/2 for arguments below 0x1p-113L.
33553         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
33554         return pi/2 for arguments below 0x1p-106L.
33555         * math/auto-libm-test-in: Add more tests of acos.
33556         * math/auto-libm-test-out: Regenerated.
33557
33558         [BZ #16351]
33559         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
33560         (MO): New macro.
33561         (__ieee754_asin): Force underflow exception for results with small
33562         absolute value.
33563         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
33564         (MO): New macro.
33565         (__ieee754_asinf): Force underflow exception for results with
33566         small absolute value.
33567         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
33568         (__ieee754_asin): Force underflow exception for results with small
33569         absolute value.
33570         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
33571         (__ieee754_asinf): Force underflow exception for results with
33572         small absolute value.
33573         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
33574         (__ieee754_asinl): Force underflow exception for results with
33575         small absolute value.
33576         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
33577         (__ieee754_asinl): Force underflow exception for results with
33578         small absolute value.
33579         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
33580         (__ieee754_asinl): Force underflow exception for results with
33581         small absolute value.
33582         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
33583         Include <math.h>.
33584         * math/auto-libm-test-in: Do not mark underflow exceptions as
33585         possibly missing for bug 16351.
33586         * math/auto-libm-test-out: Regenerated.
33587
33588         [BZ #18030]
33589         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
33590         of power of 2 down when low part has opposite sign.
33591         * math/libm-test.inc (logb_test_data): Add more tests.
33592
33593 2015-02-26  Andreas Schwab  <schwab@suse.de>
33594
33595         [BZ #18032]
33596         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
33597         over collating symbol inside a bracket expression.  Minor cleanup.
33598         * posix/tst-fnmatch3.c (do_test): Add test case.
33599
33600 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
33601
33602         [BZ #18029]
33603         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
33604         Adjust exponent of power of 2 down when low part has opposite
33605         sign.
33606         * math/libm-test.inc (ilogb_test_data): Add more tests.
33607
33608 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
33609
33610         [BZ #15969]
33611         * locale/findlocale.c (_nl_find_locale): Fix constness error in
33612         the previous change.
33613
33614         [BZ #15969]
33615         * locale/findlocale.c (_nl_find_locale): Retry archive search
33616         after alias expansion.
33617
33618 2015-02-25  Roland McGrath  <roland@hack.frob.com>
33619
33620         * iconv/tst-iconv3.c (main): Converted to ...
33621         (do_test): ... this.
33622         (TEST_FUNCTION): New macro.
33623         Include test-skeleton.c.
33624
33625         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
33626         (convert): Make function static.
33627         (test_unalign): Likewise.  Add const to argument pointee types.
33628         (main): Replace with static function do_test.
33629         Print "Succeeded." only if RET is zero.
33630         (TEST_FUNCTION): New macro.
33631         Include test-skeleton.c.
33632
33633         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
33634         returns a null pointer.
33635
33636 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33637
33638         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
33639         to __memcpy_ppc only for static builds.
33640
33641 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
33642
33643         [BZ #18020]
33644         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
33645         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
33646         * math/auto-libm-test-in: Add more tests of asinh.
33647         * math/auto-libm-test-out: Regenerated.
33648         * sysdeps/i386/fpu/libm-test-ulps: Update.
33649         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33650
33651 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
33652
33653         [BZ #15850]
33654         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
33655         and ip6_mtuinfo definitions here.
33656         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
33657         in this define too.  Update comment.
33658
33659 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
33660
33661         * elf/sprof.c (load_shobj): Tweak error message to match others.
33662
33663 2015-02-24  Kevin Easton  <kevin@guarana.org>
33664
33665         [BZ #16145] (partial fix)
33666         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
33667         to reduce lock contention.
33668
33669 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
33670
33671         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
33672         (struct timex): Update time comment.
33673         (ADJ_SETOFFSET): Define.
33674
33675 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
33676
33677         [BZ #18019]
33678         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
33679         2**56 not 2**28 as threshold for log (2x) formula.
33680         * math/auto-libm-test-in: Add more tests of acosh.
33681         * math/auto-libm-test-out: Regenerated.
33682         * sysdeps/i386/fpu/libm-test-ulps: Update.
33683         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33684
33685 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
33686
33687         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
33688         parenthesis around the buf assignment.
33689         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
33690
33691 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
33692
33693         [BZ #16783]
33694         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
33695         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
33696         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
33697         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
33698         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
33699         * math/libm-test.inc (scalb_test_data): Add more tests.
33700
33701 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
33702
33703         [BZ #17916]
33704         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
33705         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
33706
33707 2015-02-24  Eric Rannaud  <e@nanocritical.com>
33708
33709         [BZ #17523]
33710         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
33711         * io/bits/fcntl2.h (open): Use it.
33712         (openat): Likewise.
33713         * io/open.c (__libc_open): Likewise.
33714         * io/open64.c (__libc_open64): Likewise.
33715         * io/open64_2.c (__open64_2): Likewise.
33716         * io/open_2.c (__open_2): Likewise.
33717         * io/openat.c (__openat): Likewise.
33718         * io/openat64.c (__openat64): Likewise.
33719         * io/openat64_2.c (__openat64_2): Likewise.
33720         * io/openat_2.c (__openat_2): Likewise.
33721         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
33722         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
33723         * sysdeps/posix/open64.c (__libc_open64): Likewise.
33724         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
33725         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
33726         (__open_nocancel): Likewise.
33727         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
33728         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
33729         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
33730
33731 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
33732
33733         [BZ #14841]
33734         * resolv/gethnamaddr.c (getanswer): Skip logging if
33735         RES_USE_DNSSEC is set.
33736         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
33737
33738 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
33739
33740         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
33741
33742 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
33743
33744         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
33745         201304L, for Unicode 7.
33746
33747 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
33748
33749         [BZ #17836]
33750         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
33751         shared library.  Add gmon-start.os otherwise.
33752         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
33753         $(objpfx)gmon-start.os if builing shared library.
33754         ($(objpfx)g$(static-start-installed-name)): Likewise.
33755
33756 2015-02-23  Andreas Schwab  <schwab@suse.de>
33757
33758         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
33759
33760 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
33761
33762         [BZ #17269]
33763         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
33764         (enlarge_userbuf): Likewise.
33765
33766 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
33767
33768         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
33769         * math/atest-exp.c (TIMEOUT): Adjust to 200.
33770         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
33771         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
33772
33773 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
33774
33775         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
33776         expression inside statement expression.
33777
33778 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
33779
33780         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
33781         <sysdeps/nptl/lowlevellock.h> and remove macros and
33782         functions that are now defined there.
33783         (SYS_futex): Remove.
33784         (lll_compare_and_swap): Remove.
33785         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
33786
33787 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
33788
33789         [BZ #17999]
33790         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
33791         instead of scandirat.
33792         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
33793         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
33794         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
33795         __scandirat.
33796         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
33797         (__scandirat): Declare.  Use libc_hidden_proto.
33798         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
33799         Remove variable.
33800         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
33801
33802 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
33803
33804         [BZ #15319]
33805         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
33806         (MO): New macro.
33807         (__ieee754_atan2): For results with small absolute value, force
33808         underflow exception and remove excess range and precision from
33809         return value.
33810         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
33811         (MO): New macro.
33812         (__ieee754_atan2f): For results with small absolute value, force
33813         underflow exception and remove excess range and precision from
33814         return value.
33815         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
33816         (MO): New macro.
33817         (__atan): For results with small absolute value, force underflow
33818         exception and remove excess range and precision from return value.
33819         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
33820         (MO): New macro.
33821         (__atanf): For results with small absolute value, force underflow
33822         exception and remove excess range and precision from return value.
33823         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
33824         <math.h>.
33825         (__ieee754_atan2): Force underflow exception for results with
33826         small absolute value.
33827         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
33828         <math_private.h>.
33829         (atan): Force underflow exception for results with small absolute
33830         value.
33831         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
33832         (__atanf): Force underflow exception for results with small
33833         absolute value.
33834         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
33835         <math.h>.
33836         (__atanl): Force underflow exception for results with small
33837         absolute value.
33838         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
33839         (__atanl): Force underflow exception for results with small
33840         absolute value.
33841         * sysdeps/x86/fpu/bits/mathinline.h
33842         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
33843         (__ieee754_atan2): Only define inline for long double.
33844         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
33845         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
33846         * math/auto-libm-test-in: Do not mark underflow exceptions as
33847         possibly missing for bug 15319.  Add more tests of atan2.
33848         * math/auto-libm-test-out: Regenerated.
33849         * math/libm-test.inc (casin_test_data): Do not mark underflow
33850         exceptions as possibly missing for bug 15319.
33851         (casinh_test_data): Likewise.
33852         * sysdeps/i386/fpu/libm-test-ulps: Update.
33853
33854 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
33855
33856         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
33857         * sysdeps/mips/bits/endian.h: Fix comments.
33858
33859 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
33860
33861         [BZ #17996]
33862         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
33863         (hdestroy_r): Likewise.
33864         (hsearch_r): Likewise.
33865         (__hcreate_r): Declare and use libc_hidden_proto.
33866         (__hdestroy_r): Likewise.
33867         (__hsearch_r): Likewise.
33868         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
33869         (hcreate): Call __hcreate_r instead of hcreate_r.
33870         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
33871         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
33872         as weak alias of __hcreate_r.
33873         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
33874         __hdestroy_r.
33875         (hsearch_r): Rename to __hsearch_r and define as weak alias of
33876         __hsearch_r.
33877         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
33878         Remove variable.
33879         (test-xfail-XPG4/search.h/linknamespace): Likewise.
33880         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
33881         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
33882         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
33883
33884 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
33885
33886         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
33887         arena_lock into a single arena_get.
33888
33889 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
33890
33891         * dl-reloc.c: Inlucde libc-internal.h.
33892         (_dl_try_allocate_static_tls): Call ALIGN_UP.
33893         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
33894         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
33895         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
33896         (grow_heap): Likewise.
33897         * malloc/malloc.c: Include libc-internal.h.
33898         (do_check_malloc): Call powerof2.
33899         (sysmalloc): Use pagesize. Call ALIGN_UP.
33900         (systrim): Use pagesize.
33901         (mremap_chunk): Use pagesize. Call ALIGN_UP.
33902         (__libc_valloc): Use pagesize.
33903         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
33904
33905 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
33906
33907         [BZ #17991]
33908         * include/sys/resource.h (__getrlimit64): Declare.  Use
33909         libc_hidden_proto.
33910         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
33911         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
33912         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
33913         getrlimit64.
33914         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
33915         __getrlimit64.
33916         [!getrlimit64] (getrlimit64): Define as weak alias of
33917         __getrlimit64.  Use libc_hidden_weak.
33918         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
33919         using __getrlimit64 not __new_getrlimit64.
33920         (__GI_getrlimit64): Likewise.
33921         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
33922         Likewise.
33923         (__GI_getrlimit64): Likewise.
33924         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
33925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
33926         (getrlimit): Add __getrlimit64 alias.
33927         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
33928         Likewise.
33929         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
33930         Remove variable.
33931         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
33932         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
33933
33934 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
33935
33936         * libio/fileops.c: Add missing sys/mman.h
33937         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
33938
33939 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
33940
33941         * manual/math.texi (Errors in Math Functions): Clarify goals
33942         regarding inexact and underflow exceptions.
33943
33944 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
33945
33946         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
33947         * sysdeps/mips/memset.S: Ditto.
33948
33949 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
33950
33951         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
33952
33953 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
33954
33955         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
33956         (__v1longjmp): Remove versioned symbol.
33957         (__v1siglongjmp): Remove alias and versioned symbol.
33958         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
33959         (__v2siglongjmp): Likewise.
33960
33961 2015-02-16  Torvald Riegel  <triegel@redhat.com>
33962
33963         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
33964
33965 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
33966
33967         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
33968
33969 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
33970
33971         [BZ #17987]
33972         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
33973         zero result does not depend on the sign resulting from
33974         subtraction.
33975         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
33976         Likewise.
33977         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33978         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33979         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33980         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33981         * math/libm-test.inc (remquo_test_data): Add more tests.
33982
33983 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
33984
33985         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
33986         Problem reported by J William Piggott.
33987
33988 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
33989
33990         [BZ #17978]
33991         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
33992         products 4 * y and 2 * y where those would overflow.
33993         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
33994         Likewise.
33995         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33996         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33997         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33998         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33999         * math/libm-test.inc (remquo_test_data): Add more tests.
34000
34001         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
34002
34003         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
34004         [defined _COMPILING_NEWLIB].
34005         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
34006         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
34007
34008         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
34009         [!defined __mips_isa_rev || __mips_isa_rev < 6].
34010
34011 2015-02-16  Torvald Riegel  <triegel@redhat.com>
34012
34013         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
34014         acquired.
34015
34016 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
34017
34018         [BZ #17792]
34019         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
34020         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
34021         HOST_STACK_END_ADDR): Likewise.
34022
34023 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
34024
34025         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
34026         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
34027         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
34028
34029 2015-02-13  Roland McGrath  <roland@hack.frob.com>
34030
34031         * sysdeps/generic/c++-types.data: New file.
34032         * sysdeps/generic/ld.abilist: New file.
34033         * sysdeps/generic/libBrokenLocale.abilist: New file.
34034         * sysdeps/generic/libanl.abilist: New file.
34035         * sysdeps/generic/libc.abilist: New file.
34036         * sysdeps/generic/libcrypt.abilist: New file.
34037         * sysdeps/generic/libdl.abilist: New file.
34038         * sysdeps/generic/libm.abilist: New file.
34039         * sysdeps/generic/libpthread.abilist: New file.
34040         * sysdeps/generic/libresolv.abilist: New file.
34041         * sysdeps/generic/librt.abilist: New file.
34042
34043 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
34044
34045         [BZ #17569]
34046         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
34047         Compute absolute value of x as modified by fmod, not original
34048         value of x.
34049         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
34050         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
34051         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
34052         RUN_TEST_ffI_f1_mod8.
34053         (remquo_test_data): Add more tests.
34054
34055 2015-02-13  Roland McGrath  <roland@hack.frob.com>
34056
34057         * sysdeps/init_array/pt-crti.S: New file.
34058
34059 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
34060
34061         [BZ #17967]
34062         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
34063         __builtin_fmaf instead of relying on contraction of a * b + c.
34064
34065 2015-02-12  J William Piggott  <elseifthen@gmx.com>
34066
34067         [BZ #17969]
34068         * manual/time.texi: correct the zoneinfo path in the TZ Variable
34069         node.
34070
34071 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
34072
34073         [BZ #17964]
34074         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
34075         __builtin_fma instead of relying on contraction of a * b + c.
34076
34077 2015-02-12  Roland McGrath  <roland@hack.frob.com>
34078
34079         * Makeconfig (ASFLAGS): Add -Werror=undef.
34080         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
34081         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
34082         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
34083
34084         * Makeconfig (after-link): New variable.
34085         (+link-pie, +link-pie-tests): Use it.
34086         (+link-static, +link-static-tests): Likewise.
34087         (+link, +link-tests): Likewise.
34088         * Makerules (build-module, build-module-asneeded): Likewise.
34089         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
34090         Likewise.
34091         * elf/Makefile ($(objpfx)ld.so): Likewise.
34092
34093 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
34094
34095         [BZ #17965]
34096         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
34097         both struct timeval and struct timespec.
34098
34099 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
34100
34101         [BZ #16560]
34102         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
34103         and redefine.
34104         (__ieee754_exp2l): Do not multiply small fractional parts by
34105         M_LN2l.
34106         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
34107         small argument.
34108         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
34109         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
34110         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
34111         * math/auto-libm-test-in: Add more tests of exp2.
34112         * math/auto-libm-test-out: Regenerated.
34113
34114 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
34115
34116         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
34117         unaligned path.
34118
34119 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34120
34121         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
34122         little endian.
34123
34124 2015-02-12  Andreas Schwab  <schwab@suse.de>
34125
34126         [BZ #15790]
34127         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
34128         Filter out elision flags from value returned in kind.
34129         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
34130         * nptl/tst-pthread-mutexattr.c: New file.
34131
34132 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34133
34134         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
34135         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
34136         into gnu-gnu, and update comment to refer to abi-tags.
34137
34138 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
34139
34140         [BZ #15467]
34141         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
34142         (__sincos): Set errno to EDOM for infinite argument.
34143         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
34144         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
34145         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
34146         (__sincosl): Set errno to EDOM for infinite argument.
34147         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
34148         (__sincosl): Set errno to EDOM for infinite argument.
34149         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
34150         (__sincosl): Set errno to EDOM for infinite argument.
34151         * math/libm-test.inc (sincos_test_data): Test errno setting.
34152
34153 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
34154
34155         * string/strxfrm_l.c: Remove #define STRCMP.
34156         * string/strcoll_l.c: Remove #define STRLEN.
34157         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
34158         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
34159
34160 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
34161
34162         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
34163         * sysdeps/mips/mips32/sfp-machine.h: ... here.
34164         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
34165         * sysdeps/mips/mips64/Makefile: ... here.
34166         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
34167         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
34168         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
34169         * sysdeps/mips/mips64/sfp-machine.h: ... here.
34170         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
34171         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
34172         * sysdeps/mips/mips64/n64/Implies: Likewise.
34173
34174 2015-02-10  Roland McGrath  <roland@hack.frob.com>
34175
34176         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
34177         <sys/time.h>, <string.h>, and <errno.h>.
34178         (dest_offset, dest_address, value, zero): Remove unused variables.
34179         (ldouble): Remove typedef.
34180         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
34181         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
34182         1).  Fix code style.
34183         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
34184         (check): Function removed.
34185         (CHECK): New macro.
34186         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
34187         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
34188         Don't call set_sigaction_FP and remove_sigaction_FP here.
34189         (ldouble_test): Just use 'long double' as macro argument, no need for
34190         the 'ldouble' typedef.
34191         (do_test): Set up SIGFPE handler at start, using plain signal rather
34192         than sigaction.  Fix code style.
34193
34194 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
34195
34196         [BZ #17949]
34197         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
34198         jump label.
34199
34200 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
34201
34202         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
34203         * sysdeps/powerpc/powerpc32/configure: Regenerated.
34204
34205         * sysdeps/powerpc/configure.ac: Remove file.
34206         * sysdeps/powerpc/configure: Likewise.
34207
34208         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
34209         [sysdep_routines]: Remove wordcopy-power6 object.
34210         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
34211         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
34212         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
34213         (__memmove_ppc32): Likewise.
34214         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
34215         file.
34216         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
34217         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
34218         Remove preprocessor.
34219
34220         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
34221         [sysdep_routines]: Remove wide chars objects.
34222         [wcsmbs]: New rule for wide char objects.
34223
34224         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34225         Remove wordcopy-power6 obejct.
34226         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
34227         Use local call for wordcopy and memcpy symbols.
34228         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
34229         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
34230         implementation for loader.
34231         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
34232
34233         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34234         Remove wordcopy-power7 object.
34235         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
34236         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
34237         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
34238         (_wordcopy_fwd_dest_aligned): Likewise.
34239         (_wordcopy_bwd_aligned): Likewise.
34240         (_wordcopy_bwd_dest_aligned): Likewise.
34241
34242         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
34243         Rewrite to call __memmove_ppc instead of include default
34244         implementation.
34245
34246         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34247         Remove wide chars objects.
34248         [wcsmbs]: New rule for wide char objects.
34249
34250 2015-02-09  Andreas Schwab  <schwab@suse.de>
34251
34252         [BZ #17912]
34253         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
34254         in terms of __O_DIRECTORY.
34255
34256 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34257
34258         * time/getdate.c: Include <stdbool.h>.
34259         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
34260         call PTR_MANGLE.
34261         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
34262         PTR_DEMANGLE.
34263
34264 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
34265
34266         Add ersatz _Static_assert on older C hosts
34267         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
34268         pre-C11 C platform that is not known to support _Static_assert.
34269
34270 2015-02-07  Richard Braun  <rbraun@sceen.net>
34271
34272         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
34273         sigstate.
34274         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
34275
34276 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34277
34278         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
34279         priority against unexistent AIO_PRIO_DELTA_MAX.
34280         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
34281         instead of int.
34282         * misc/fchflags.c (fchflags): Likewise.
34283         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
34284         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
34285         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
34286         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
34287         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
34288         Declare macros.
34289         [__USE_MISC] (chflags, fchflags): Declare functions.
34290         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
34291         EINVAL when nfds is greater than FD_SETSIZE.
34292         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
34293         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
34294         45.
34295         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
34296         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
34297         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
34298         MACH_RCV_TIMED_OUT.
34299         * hurd/hurd/signal.h (_hurd_self_sigstate,
34300         _hurd_critical_section_lock, _hurd_critical_section_unlock):
34301         Explicit casts from void *.
34302         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
34303         * abi-tags: Rename gnu-gnu os into gnu.
34304
34305         [BZ #4719]
34306         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
34307         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
34308         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
34309         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
34310         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
34311         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
34312
34313         [BZ #17944]
34314         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
34315         duplicates ADDR->sun_path with sockaddr LEN limitation.
34316         * sysdeps/mach/hurd/connect.c: Include <string.h>
34317         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
34318         * sysdeps/mach/hurd/sendmsg.c: Likewise.
34319         * sysdeps/mach/hurd/sendto.c: Likewise.
34320         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
34321         implementing it by hand.
34322
34323 2015-02-06  Roland McGrath  <roland@hack.frob.com>
34324
34325         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
34326         Use sfi_breg on ldr.
34327         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
34328         Likewise.
34329
34330         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
34331         it's defined.
34332         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
34333         Test SIGSETXID only if it's defined.
34334
34335         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
34336
34337         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
34338         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
34339
34340         * nptl/tst-align2.c: Moved ...
34341         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
34342         * nptl/Makefile (tests): Remove tst-align2.
34343         * sysdeps/unix/sysv/linux/Makefile
34344         [$(subdir) = nptl] (tests): Add tst-align-clone.
34345         * nptl/tst-getpid1.c: Moved ...
34346         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
34347         * nptl/tst-getpid2.c: Moved ...
34348         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
34349         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
34350         * sysdeps/unix/sysv/linux/Makefile
34351         [$(subdir) = nptl] (tests): ... here.
34352         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
34353         * sysdeps/unix/sysv/linux/Makefile
34354         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
34355
34356         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
34357         Drop trailing \n from perror argument.  Use return rather than exit.
34358
34359         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
34360         on [SA_SIGINFO].
34361         * nptl/tst-cancel21.c (do_test): Likewise.
34362         * debug/tst-backtrace6.c: Include <signal.h> first thing.
34363         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
34364         [!SA_SIGINFO]: Make it a stub test.
34365
34366         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
34367         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
34368
34369         * posix/tst-getlogin.c: Move to ...
34370         * login/tst-getlogin.c: ... here.
34371         * posix/Makefile (tests): Move tst-getlogin to ...
34372         * login/Makefile (tests): ... here.
34373
34374         * libio/tst-atime.c (do_test): Move local variables SV and E
34375         inside [ST_NOATIME] conditional.
34376
34377         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
34378
34379         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
34380
34381         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
34382         (wait_code): New function replaces macro.
34383         Call nanosleep rather than syscall.
34384
34385         * nptl/pt-system.c: Rewritten.  Put everything under
34386         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
34387         Use IFUNC to redirect when possible.
34388
34389         * nptl/pt-longjmp.c: Rewritten.  Put everything under
34390         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
34391         Use IFUNC to redirect when possible.
34392
34393         * nptl/pt-fork.c: Rewritten.  Put everything under
34394         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
34395         Use IFUNC to redirect when possible.
34396         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
34397
34398         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
34399         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
34400         unconditionally nowadays.  This included the only reference to
34401         __vdso_clock_gettime that appears outside libc proper.
34402         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
34403         Remove version set (containing only __vdso_clock_gettime).
34404         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
34405         Add attribute_hidden.
34406         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
34407         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
34408         libc_hidden_data_def.
34409         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
34410         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
34411
34412         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
34413         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
34414         setrpcent, and getrpcport to ...
34415         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
34416         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
34417         getrpcbynumber_r, and getrpcent_r to ...
34418         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
34419         * inet/getrpcbyname.c: Moved ...
34420         * sunrpc/getrpcbyname.c: ... here.
34421         * inet/getrpcbyname_r.c: Moved ...
34422         * sunrpc/getrpcbyname_r.c: ... here.
34423         * inet/getrpcbynumber.c: Moved ...
34424         * sunrpc/getrpcbynumber.c: ... here.
34425         * inet/getrpcbynumber_r.c: Moved ...
34426         * sunrpc/getrpcbynumber_r.c: ... here.
34427         * inet/getrpcent.c: Moved ...
34428         * sunrpc/getrpcent.c: ... here.
34429         * inet/getrpcent_r.c: Moved ...
34430         * sunrpc/getrpcent_r.c: ... here.
34431         * inet/Makefile (routines): Move those to ...
34432         * sunrpc/Makefile (routines): ... here.
34433         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
34434         the $(subdirs) list.
34435         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
34436         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
34437         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
34438         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
34439
34440         * elf/Makefile (routines): Include $(all-dl-routines), not just
34441         $(dl-routines).
34442         (rtld-routines): Likewise.  Use = rather than :=.
34443         * sysdeps/aarch64/Makefile [$(subdir) = elf]
34444         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
34445         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
34446         * sysdeps/arm/Makefile: Likewise.
34447         * sysdeps/i386/Makefile: Likewise.
34448         * sysdeps/x86_64/Makefile: Likewise.
34449         * sysdeps/hppa/Makefile [$(subdir) = elf]
34450         (sysdep_routines, sysdep-rtld-routines): Don't add
34451         $(sysdep-dl-routines) to these.
34452         * sysdeps/ia64/Makefile: Likewise.
34453         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
34454         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
34455         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
34456         Don't add dl-static to these; sysdep-dl-routines alone is enough.
34457         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
34458         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
34459         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
34460         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
34461         * sysdeps/powerpc/Makefile [$(subdir) = elf]
34462         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
34463         these; sysdep-dl-routines alone is enough.
34464
34465 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
34466
34467         [BZ #17932]
34468         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
34469         where multiplication results in zero and third argument is finite
34470         and nonzero.
34471         * math/auto-libm-test-in: Add more tests of fma.
34472         * math/auto-libm-test-out: Regenerated.
34473
34474         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
34475         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
34476         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
34477         (_FP_CMP_EQ): Likewise.
34478         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
34479
34480         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
34481         extra argument CHECK_NAN.  Redefine as wrapper around
34482         _FP_EXTEND_CNAN.
34483
34484 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
34485
34486         * version.h (RELEASE): Set to "stable".
34487         (VERSION): Set to "2.21"
34488         * include/features.h (__GLIBC_MINOR__): Set to 21.
34489
34490         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
34491
34492 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
34493             Paul Eggert  <eggert@cs.ucla.edu>
34494
34495         [BZ #16618]
34496         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
34497         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
34498         size in bytes. Store needed elements in wpmax. Use needed size
34499         in bytes for extend_alloca.
34500
34501 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
34502
34503         * manual/install.texi: Latest tested versions are GCC 4.9.2,
34504         binutls 2.25, and texinfo 5.2.
34505         * INSTALL: Regenerate.
34506         * sysdeps/nios2/configure: Regenerate.
34507         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
34508         * manual/contrib.texi: Update.
34509         * po/be.po: Update.
34510         * po/bg.po: Update.
34511         * po/ca.po: Update.
34512         * po/cs.po: Update.
34513         * po/da.po: Update.
34514         * po/de.po: Update.
34515         * po/el.po: Update.
34516         * po/eo.po: Update.
34517         * po/es.po: Update.
34518         * po/fi.po: Update.
34519         * po/fr.po: Update.
34520         * po/gl.po: Update.
34521         * po/hr.po: Update.
34522         * po/hu.po: Update.
34523         * po/ia.po: Update.
34524         * po/id.po: Update.
34525         * po/it.po: Update.
34526         * po/ja.po: Update.
34527         * po/ko.po: Update.
34528         * po/lt.po: Update.
34529         * po/nb.po: Update.
34530         * po/nl.po: Update.
34531         * po/pl.po: Update.
34532         * po/pt_BR.po: Update.
34533         * po/ru.po: Update.
34534         * po/rw.po: Update.
34535         * po/sk.po: Update.
34536         * po/sl.po: Update.
34537         * po/sv.po: Update.
34538         * po/tr.po: Update.
34539         * po/uk.po: Update.
34540         * po/vi.po: Update.
34541         * po/zh_CN.po: Update.
34542         * po/zh_TW.po: Update.
34543
34544         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
34545         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
34546         * sysdeps/hppa/dl-irel.h: Remove #warning.
34547         * sysdeps/hppa/entry.h: Provide prototype for
34548         __canonicalize_funcptr_for_compare and cast argument.
34549         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
34550         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
34551         * sysdeps/hppa/sotruss-lib.c: New file.
34552         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
34553         (atomic_compare_and_exchange_val_acq): Use __typeof__.
34554         (atomic_compare_and_exchange_bool_acq): Likewise.
34555         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
34556         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
34557
34558         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
34559         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
34560         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
34561
34562 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
34563
34564         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
34565         called function in non-PIC case.
34566
34567 2015-01-31  David S. Miller  <davem@davemloft.net>
34568
34569         * sysdeps/sparc/sparc32/bits/atomic.h
34570         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
34571         unlock not after it.
34572         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
34573         volatile register usage warnings from the compiler.
34574
34575         * sysdeps/sparc/nptl/sem_init.c: Delete.
34576         * sysdeps/sparc/nptl/sem_post.c: Delete.
34577         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
34578         * sysdeps/sparc/nptl/sem_wait.c: Delete.
34579         * sysdeps/sparc/sparc32/sem_init.c: New file.
34580         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
34581         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
34582         padding explicitly initialized.
34583         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
34584         padding for in-semaphore spinlock.
34585         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
34586         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
34587         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
34588         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
34589         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
34590         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
34591         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
34592         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
34593         version.
34594         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
34595         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
34596
34597 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
34598
34599         [BZ #17801]
34600         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34601         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
34602         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
34603         New.
34604         (index_AVX_Fast_Unaligned_Load): Likewise.
34605         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
34606         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
34607         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
34608         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
34609         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
34610         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
34611         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
34612         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
34613         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
34614
34615 2015-01-29  Andreas Schwab  <schwab@suse.de>
34616
34617         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
34618
34619 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
34620
34621         [BZ #17892]
34622         * nscd/nscd_stat.c (send_stats): Initialize DATA.
34623
34624 2015-01-28  Martin Sebor  <msebor@redhat.com>
34625
34626         * math/README.libm-test: Clarify. Add "How to read the test output."
34627
34628 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
34629
34630         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
34631         Define to 0.
34632
34633 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
34634
34635         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
34636         (__HAVE_64B_ATOMICS): Define to 0.
34637
34638 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
34639
34640         [BZ #17885]
34641         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
34642         value to set as new flag.
34643
34644         [BZ #16576]
34645         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
34646         and use _ARCH_PPCSQ instead.
34647         (__ieee754_sqrt): Likewise.
34648         (__ieee754_sqrtf): Likewise.
34649         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
34650         _ARCH_PPCSQ is defined.
34651         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
34652         fsqrt instruction.
34653         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
34654         _ARCH_PPCSQ is defined.
34655         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
34656         fsqrts instruction.
34657         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
34658
34659 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34660
34661         * iconv/loop.c: Suppress array out of bound warning caused by GCC
34662         bug (GCC BZ #64739).
34663
34664 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
34665
34666         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
34667         Mark _retval as used.
34668         (lll_futex_wake_unlock): Likewise.
34669         (lll_futex_timed_wait_requeue_pi): Likewise.
34670
34671         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
34672         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
34673         register variables.
34674
34675         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
34676         libm_hidden_def.
34677
34678         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
34679         (__bswap_64): Mark as __always_inline.
34680
34681 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
34682
34683         [BZ #15378]
34684         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
34685         when none of the search directories exist.
34686
34687 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
34688
34689         [BZ #17869]
34690         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
34691         power8 in .machine directive.
34692
34693         [BZ #17868]
34694         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
34695         set dependency from opd value.
34696
34697 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
34698
34699         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34700         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
34701         architecture.
34702
34703 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
34704
34705         [BZ #17870]
34706         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
34707         with uint64_t.
34708         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
34709         (uint64_t) 1.
34710         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
34711         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
34712         Replace 1UL with (uint64_t) 1.
34713         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
34714         int with uint64_t.
34715
34716 2015-01-23  Roland McGrath  <roland@hack.frob.com>
34717
34718         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
34719         (if_freenameindex): Likewise.
34720
34721         * resource/getrlimit64.c: Add missing libc_hidden_def.
34722
34723 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
34724
34725         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
34726         __label__.
34727         (_FP_FMA): Likewise.
34728         (_FP_TO_INT_ROUND): Likewise.
34729         (_FP_FROM_INT): Likewise.
34730
34731 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34732
34733         [BZ #16418]
34734         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
34735         Make code racy and cancel safe.
34736
34737 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
34738
34739         * sysdeps/arm/unwind-resume.h: Fix copyright year.
34740         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
34741         attribution.
34742
34743         * pwd/tst-getpw.c: Rewrite.
34744
34745         [BZ #17702]
34746         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
34747         (modules-names): Add moddummy1 and moddummy2.
34748         ($(objpfx)tst-rec-dlopen): Define.
34749         * dlfcn/moddummy1.c: New file.
34750         * dlfcn/moddummy2.c: New file.
34751         * dlfcn/tst-rec-dlopen.c: New file.
34752         * elf/dl-cache.c (_dl_load_cache_lookup):
34753         Return char*. Copy result with alloca/strcpy/strdup.
34754         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
34755         returns char*. Free cached. If not saving realname
34756         free cached.
34757         * elf/dl-open.c (dl_open_worker): Do not assert that
34758         _r_debug->r_state is RT_CONSISTENT.
34759         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
34760         returns char*.
34761
34762 2015-01-21  Torvald Riegel  <triegel@redhat.com>
34763             Carlos O'Donell  <carlos@redhat.com>
34764
34765         [BZ #12674]
34766         * nptl/sem_waitcommon.c: New file.
34767         * nptl/sem_wait.c: Include sem_waitcommon.c.
34768         (__sem_wait_cleanup, do_futex_wait): Remove.
34769         (__new_sem_wait): Adapt.
34770         (__new_sem_trywait): New function.
34771         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
34772         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
34773         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
34774         (sem_timedwait): Adapt.
34775         * nptl/sem_post.c (__new_sem_post): Adapt.
34776         (futex_wake): New function.
34777         (__old_sem_post): Add release MO fence.
34778         * nptl/sem_open.c (sem_open): Adapt.
34779         * nptl/sem_init.c (__new_sem_init): Adapt.
34780         (futex_private_if_supported): New function.
34781         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
34782         (__old_sem_getvalue): Add using previous code.
34783         * sysdeps/nptl/internaltypes.h: Adapt.
34784         * nptl/tst-sem13.c (do_test): Adapt.
34785         * nptl/tst-sem11.c (main): Adapt.
34786         * nptl/sem_trywait.c: Remove.
34787         * nptl/DESIGN-sem.txt: Remove.
34788         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
34789         (gen-as-const-headers): Remove structsem.sym.
34790         * nptl/structsem.sym: Remove.
34791         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
34792         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
34793         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
34794         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
34795         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
34796         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
34797         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
34798         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
34799         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
34800         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
34801         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
34802         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
34803         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
34804         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
34805         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
34806         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
34807         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
34808         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
34809         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
34810         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
34811         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
34812         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
34813
34814 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
34815
34816         * INSTALL: Regenerated.
34817
34818         * po/libc.pot: Regenerated.
34819
34820 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
34821             Sandra Loosemore  <sandra@codesourcery.com>
34822             Andrew Jenner  <andrew@codesourcery.com>
34823             Joseph Myers  <joseph@codesourcery.com>
34824             Nathan Sidwell  <nathan@codesourcery.com>
34825
34826         * NEWS: Mention new Nios II port.
34827         * sysdeps/nios2/Implies: New file.
34828         * sysdeps/nios2/Makefile: New file.
34829         * sysdeps/nios2/Subdirs: New file.
34830         * sysdeps/nios2/Versions: New file.
34831         * sysdeps/nios2/__longjmp.S: New file.
34832         * sysdeps/nios2/abort-instr.h: New file.
34833         * sysdeps/nios2/backtrace.c: New file.
34834         * sysdeps/nios2/bits/endian.h: New file.
34835         * sysdeps/nios2/bits/fenv.h: New file.
34836         * sysdeps/nios2/bits/link.h: New file.
34837         * sysdeps/nios2/bits/setjmp.h: New file.
34838         * sysdeps/nios2/bsd-_setjmp.S: New file.
34839         * sysdeps/nios2/bsd-setjmp.S: New file.
34840         * sysdeps/nios2/configure: New generated file.
34841         * sysdeps/nios2/configure.ac: New file.
34842         * sysdeps/nios2/crti.S: New file.
34843         * sysdeps/nios2/crtn.S: New file.
34844         * sysdeps/nios2/dl-init.c: New file.
34845         * sysdeps/nios2/dl-machine.h: New file.
34846         * sysdeps/nios2/dl-sysdep.h: New file.
34847         * sysdeps/nios2/dl-tls.h: New file.
34848         * sysdeps/nios2/dl-trampoline.S: New file.
34849         * sysdeps/nios2/gccframe.h: New file.
34850         * sysdeps/nios2/gmp-mparam.h: New file.
34851         * sysdeps/nios2/jmpbuf-offsets.h: New file.
34852         * sysdeps/nios2/jmpbuf-unwind.h: New file.
34853         * sysdeps/nios2/ldsodefs.h: New file.
34854         * sysdeps/nios2/libc-tls.c: New file.
34855         * sysdeps/nios2/libm-test-ulps: New file.
34856         * sysdeps/nios2/machine-gmon.h: New file.
34857         * sysdeps/nios2/math-tests.h: New file.
34858         * sysdeps/nios2/math_private.h: New file.
34859         * sysdeps/nios2/memusage.h: New file.
34860         * sysdeps/nios2/nptl/Makefile: New file.
34861         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
34862         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
34863         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
34864         * sysdeps/nios2/nptl/pthreaddef.h: New file.
34865         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
34866         * sysdeps/nios2/nptl/tls.h: New file.
34867         * sysdeps/nios2/preconfigure: New file.
34868         * sysdeps/nios2/s_fma.c: New file.
34869         * sysdeps/nios2/s_fmaf.c: New file.
34870         * sysdeps/nios2/setjmp.S: New file.
34871         * sysdeps/nios2/sfp-machine.h: New file.
34872         * sysdeps/nios2/sotruss-lib.c: New file.
34873         * sysdeps/nios2/stackguard-macros.h: New file.
34874         * sysdeps/nios2/stackinfo.h: New file.
34875         * sysdeps/nios2/start.S: New file.
34876         * sysdeps/nios2/sysdep.h: New file.
34877         * sysdeps/nios2/tls-macros.h: New file.
34878         * sysdeps/nios2/tst-audit.h: New file.
34879         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
34880         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
34881         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
34882         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
34883         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
34884         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
34885         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
34886         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
34887         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
34888         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
34889         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
34890         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
34891         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
34892         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
34893         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
34894         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
34895         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
34896         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
34897         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
34898         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
34899         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
34900         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
34901         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
34902         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
34903         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
34904         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
34905         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
34906         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
34907         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
34908         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
34909         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
34910         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
34911         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
34912         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
34913         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
34914         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
34915         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
34916         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
34917         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
34918         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
34919         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
34920         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
34921         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
34922         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
34923
34924 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34925
34926         [BZ #17844]
34927         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
34928         (getutent): Use weak_alias in non SHARED case
34929         and default_symbol_version in SHARED case.
34930         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
34931         (getutent_r, pututline): Likewise.
34932         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
34933         (getutid): Likewise.
34934         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
34935         (getutid_r): Likewise.
34936         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
34937         (getutline): Likewise.
34938         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
34939         (getutline_r): Likewise.
34940         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
34941         (updwtmp): Likewise.
34942
34943 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34944
34945         [BZ #17848]
34946         * sysdeps/s390/s390-32/memcmp.S
34947         (memcmp_g5): Rename to __memcmp_g5.
34948         * sysdeps/s390/s390-32/memcpy.S
34949         (memcpy_g5): Rename to __memcpy_g5.
34950         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34951         (memcpy_mvcle) Rename to __memcpy_mvcle.
34952         * sysdeps/s390/s390-32/memset.S
34953         (memset_g5): Rename to __memset_g5.
34954         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
34955         (IFUNC_RESOLVE): Prefix ifunc-resolve function
34956         and use prefixed functions.
34957         * sysdeps/s390/s390-32/multiarch/memcmp.S
34958         (memcmp_z196): Rename to __memcmp_z196.
34959         (memcmp_z10): Rename to __memcmp_z10.
34960         (memcmp): Set alias to __memcmp_g5.
34961         (bcmp): Set alias to __memcmp_g5.
34962         * sysdeps/s390/s390-32/multiarch/memcpy.S
34963         (memcpy_z196): Rename to __memcpy_z196.
34964         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34965         (memcpy_z10): Rename to __memcpy_z10.
34966         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34967         (memcpy): Set alias to __memcpy_g5.
34968         * sysdeps/s390/s390-32/multiarch/memset.S
34969         (memset_z196): Rename to __memset_z196.
34970         Jump to __memset_mvcle instead of memset_mvcle.
34971         (memset_z10): Rename to __memset_z10.
34972         Jump to __memset_mvcle instead of memset_mvcle.
34973         (memset_mvcle) Rename to __memset_mvcle.
34974         (memset): Set alias to __memset_g5.
34975         * sysdeps/s390/s390-64/memcmp.S
34976         (memcmp_z900): Rename to __memcmp_z900.
34977         * sysdeps/s390/s390-64/memcpy.S
34978         (memcpy_z900): Rename to __memcpy_z900.
34979         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34980         (memcpy_mvcle) Rename to __memcpy_mvcle.
34981         * sysdeps/s390/s390-64/memset.S
34982         (memset_z900): Rename to __memset_z900.
34983         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
34984         (IFUNC_RESOLVE): Prefix ifunc-resolve function
34985         and use prefixed functions.
34986         * sysdeps/s390/s390-64/multiarch/memcmp.S
34987         (memcmp_z196): Rename to __memcmp_z196.
34988         (memcmp_z10): Rename to __memcmp_z10.
34989         (memcmp): Set alias to __memcmp_z900.
34990         (bcmp): Set alias to __memcmp_z900.
34991         * sysdeps/s390/s390-64/multiarch/memcpy.S
34992         (memcpy_z196): Rename to __memcpy_z196.
34993         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34994         (memcpy_z10): Rename to __memcpy_z10.
34995         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34996         (memcpy): Set alias to __memcpy_z900.
34997         * sysdeps/s390/s390-64/multiarch/memset.S
34998         (memset_z196): Rename to __memset_z196.
34999         Jump to __memset_mvcle instead of memset_mvcle.
35000         (memset_z10): Rename to __memset_z10.
35001         Jump to __memset_mvcle instead of memset_mvcle.
35002         (memset_mvcle) Rename to __memset_mvcle.
35003         (memset): Set alias to __memset_z900.
35004
35005 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
35006
35007         [BZ #17748]
35008         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
35009         __fesetenv instead of fesetenv.
35010
35011 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
35012
35013         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
35014         macro.
35015
35016 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35017
35018         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
35019         regression on LE.
35020
35021         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
35022         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
35023         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
35024         strncmp-power8 object.
35025         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35026         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
35027         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
35028         * NEWS: Update.
35029
35030 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
35031             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35032
35033         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
35034         trailing byte check.
35035
35036 2015-01-13  David S. Miller  <davem@davemloft.net>
35037
35038         * include/signal.h (__sigreturn): Guard with __USE_MISC.
35039
35040 2015-01-13  Roland McGrath  <roland@hack.frob.com>
35041
35042         * login/logout.c (logout): Use memset rather than bzero.
35043         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
35044         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
35045         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
35046         (_gethtbyaddr): Likewise.
35047         * locale/programs/simple-hash.c (bcopy): Macro removed.
35048
35049 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35050
35051         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
35052         Add strcmp-power8 object.
35053         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35054         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
35055         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
35056         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
35057         __strcmp_power8 implementation.
35058         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
35059         * NEWS: Update.
35060
35061         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
35062         Add strncpy-power8 and stpncpy-power8 objects.
35063         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35064         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
35065         implementations.
35066         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
35067         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
35068         __stpncpy_power8 implementation.
35069         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
35070         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
35071         __strncpy_power8 implementation.
35072         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
35073         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
35074         * NEWS: Update.
35075
35076         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
35077         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
35078         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
35079
35080         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
35081         strncat-power8 object.
35082         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
35083         __strcat_power8 implementation.
35084         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35085         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
35086         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
35087         optimized strcat for power8.
35088
35089         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
35090         strcpy-power8 and stpcpy-power8 objects.
35091         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35092         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
35093         implementations.
35094         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
35095         multiarch stpcpy implementation for POWER8.
35096         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
35097         multiarch strcpy implementation for POWER8.
35098         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
35099         __strcpy_power8 function.
35100         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
35101         stpcpy for POWER8.
35102         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
35103         strcpy for POWER8.
35104         * NEWS: Update.
35105
35106 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
35107
35108         [BZ #16009]
35109         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
35110         weights and rules. Use do_xfrm_cached if data fits in cache,
35111         do_xfrm otherwise.  Moved former main loop to...
35112         * (do_xfrm_cached): New function.
35113         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
35114         find_idx, find_position and stack_push.
35115         * (find_idx): New function.
35116         * (find_position): Likewise.
35117         * localedata/sort-test.sh: Added test run for do_xfrm.
35118         * localedata/xfrm-test.c (main): Added command line option
35119         -nocache to run the test with strings that are too large for
35120         the STRXFRM cache.
35121
35122 2015-01-13  Torvald Riegel  <triegel@redhat.com>
35123
35124         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
35125         variable to lll_futex_wake call, not the value itself.
35126
35127 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
35128
35129         [BZ #17803]
35130         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
35131         twom64.  Adjust value to 0x1p-64L.
35132         (__scalblnl): Only return standard underflowing result for K <=
35133         -64 not K <= -63; adjust exponent for underflowing result by 64
35134         not 63.
35135         * math/libm-test.inc (scalbn_test_data): Add more tests.
35136         (scalbln_test_data): Likewise.
35137
35138         [BZ #17834]
35139         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
35140         0x1p63L.
35141         (__scalblnl): Get new exponent of adjusted subnormal value from ES
35142         not HX.
35143         * math/libm-test.inc (scalbn_test_data): Add more tests.
35144         (scalbln_test_data): Likewise.
35145
35146 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35147             Stefani Seibold  <stefani@seibold.net>
35148
35149         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
35150         (sysdep_routines): Add dl-vdso here, ...
35151         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
35152         (sysdep_routines): ... not here.
35153         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
35154         fallback when vDSO is not presented.
35155         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
35156         Define with libc_hidden_proto/libc_hidden_data_def definitions.
35157         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
35158         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
35159         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
35160         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
35161         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
35162         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
35163         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
35164         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
35165         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
35166         fallback configurable symbol when vDSO is not available.
35167         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
35168         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
35169         be able to redefine fallback symbol when vDSO is not available.
35170         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
35171         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
35172
35173 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35174
35175         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
35176         (TLS_INIT_TP): Add tm_capable initialization.
35177         (TLS_DEFINE_INIT_TP): Likewise.
35178         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
35179         TCB.
35180         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
35181         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
35182         calculation.
35183         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
35184         transactoion is lock elision is built and TCB tm_capable is set.
35185         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
35186         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
35187         (INTERNAL_SYSCALL_NCS): Likewise.
35188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
35189         (INTERNAL_SYSCALL_NCS): Likewise.
35190         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
35191
35192         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
35193         for powerpc.
35194         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
35195         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
35196         and remove it for 32 bits case.
35197         [pthread_rwlock_t] (__rwelision): New field for lock elision.
35198         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
35199         initialization.
35200         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
35201         Disable lock elision with rdlocks if elision is not available.
35202
35203         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
35204         (sysdep_routines): Add lock elision objects.
35205         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
35206         [pthread_mutex_t] (__spins): Rework to add lock elision field.
35207         [pthread_mutex_t] (__elision): Add field.
35208         [__PTHREAD_SPINS]: Adjust to init lock elision field.
35209         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
35210         elision definitions for powerpc.
35211         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
35212         implementation of lock elision for powerpc.
35213         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
35214         implementation of timed lock elision for powerpc.
35215         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
35216         implementation of trylock with lock elision for powerpc.
35217         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
35218         implementaion of unlock for lock elision for powerpc.
35219         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
35220         automatic enable lock elision for mutexes.
35221         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
35222         transaction execution definitions for powerpc.
35223         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
35224         definitions.
35225         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
35226         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
35227         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
35228         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
35229         * NEWS: Update.
35230
35231 2015-01-09  Roland McGrath  <roland@hack.frob.com>
35232
35233         * sysdeps/posix/shm-directory.c: Use <> rather than ""
35234         for #include of <shm-directory.h>.
35235
35236 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
35237
35238         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
35239         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
35240
35241 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
35242
35243         [BZ #17791]
35244         * NEWS: Mention bug fix.
35245         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
35246         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
35247         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
35248
35249 2015-01-09  Torvald Riegel <triegel@redhat.com>
35250
35251         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
35252
35253 2015-01-09  Torvald Riegel <triegel@redhat.com>
35254
35255         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
35256
35257 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
35258
35259         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
35260         pointer and cast to uintptr_t.
35261
35262 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
35263
35264         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
35265         removed.
35266         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
35267
35268 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
35269
35270         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
35271         of 0.
35272
35273 2015-01-08  Roland McGrath  <roland@hack.frob.com>
35274
35275         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
35276         <nptl/pthreadP.h> instead.
35277         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
35278
35279         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
35280         already defined.
35281         [__SIGRTMIN] (init): Function removed.
35282         [__SIGRTMIN] (initialized): Variable removed.
35283         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
35284         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
35285         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
35286         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
35287         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
35288         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
35289         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
35290         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
35291         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
35292         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
35293         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
35294         * sysdeps/nptl/allocrtsig.c: New file.
35295         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
35296         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
35297         * sysdeps/generic/testrtsig.h: File removed.
35298
35299         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
35300         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
35301
35302         * nptl/nptl-init.c (pthread_functions): Conditionalize
35303         .ptr__nptl_setxid initialization on [SIGSETXID].
35304
35305         * sysdeps/nptl/sys/procfs.h: New file.
35306         * nptl_db/Makefile (headers): Add it.
35307         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
35308
35309         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
35310         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
35311         * nptl/pthread_attr_setaffinity.c: Include it.
35312         * nptl/pthread_setattr_default_np.c: Likewise.
35313         * nptl/check-cpuset.h: New file.
35314
35315 2015-01-08  Richard Henderson  <rth@redhat.com>
35316
35317         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
35318         (CFLAGS-tst-execstack-prog.c): Likewise.
35319         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
35320
35321 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
35322             Sandra Loosemore  <sandra@codesourcery.com>
35323             Andrew Jenner  <andrew@codesourcery.com>
35324             Joseph Myers  <joseph@codesourcery.com>
35325             Nathan Sidwell  <nathan@codesourcery.com>
35326
35327         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
35328         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
35329         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
35330         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
35331         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
35332         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
35333         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
35334         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
35335         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
35336         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
35337         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
35338         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
35339         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
35340         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
35341         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
35342         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
35343         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
35344
35345 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35346
35347         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
35348         timespec struct member in syscall macro.
35349         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
35350         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
35351         first timeval struct member in syscall macro.
35352         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
35353
35354 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
35355
35356         [BZ #17748]
35357         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
35358         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
35359         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
35360         __feupdateenv and define as weak alias of __feupdateenv.  Use
35361         libm_hidden_weak.
35362         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
35363         libm_hidden_def.
35364         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
35365         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
35366         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
35367         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
35368         libm_hidden_def.
35369         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
35370         __feupdateenv and define as weak alias of __feupdateenv.  Use
35371         libm_hidden_weak.
35372         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
35373         libm_hidden_def.
35374         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
35375         __feupdateenv and define as weak alias of __feupdateenv.  Use
35376         libm_hidden_weak.
35377         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
35378         libm_hidden_def.
35379         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
35380         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
35381         (__feupdateenv): Likewise.
35382         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
35383         __feupdateenv and define as weak alias of __feupdateenv.  Use
35384         libm_hidden_weak.
35385         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
35386         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
35387         libm_hidden_def.
35388         * sysdeps/tile/math_private.h (__feupdateenv): New inline
35389         function.
35390         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
35391         libm_hidden_def.
35392         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
35393         __feupdateenv instead of feupdateenv.
35394         (default_libc_feupdateenv_test): Likewise.
35395         (libc_feresetround_ctx): Likewise.
35396
35397 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35398
35399         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
35400         prototype.
35401
35402 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
35403
35404         * posix/regcomp.c (parse_bracket_exp): Initialize type to
35405         COLL_SYM in a couple of places to avoid uninitialized variable
35406         wanings on tilegx gcc 4.8.2.
35407
35408 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
35409
35410         * sysdeps/aarch64/strcpy.S: New file.
35411         * sysdeps/aarch64/stpcpy.S: New file.
35412         * NEWS: Updated.
35413
35414 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
35415
35416         * sysdeps/aarch64/strrchr.S: New file.
35417         * NEWS: Updated.
35418
35419 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
35420
35421         [BZ #17658]
35422         * stdlib/setenv.c: Fix memory leak when setting large,
35423         duplicate string.
35424
35425 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
35426
35427         [BZ #17273]
35428         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
35429         and tabs from buffer before parsing fstab entry.
35430         * misc/tst-mntent.c (main): Add test for mount entry with
35431         trailing spaces and tabs.
35432
35433 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
35434
35435         [BZ #17748]
35436         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
35437         * math/fesetround.c (fesetround): Rename to __fesetround and
35438         define as weak alias of __fesetround.  Use libm_hidden_weak.
35439         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
35440         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
35441         * sysdeps/arm/fesetround.c (fesetround): Likewise.
35442         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
35443         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
35444         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
35445         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
35446         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
35447         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
35448         __fesetround_inline.
35449         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
35450         __fesetround_inline instead of __fesetround.
35451         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
35452         __fesetround and define as weak alias of __fesetround.  Use
35453         libm_hidden_weak.  Call __fesetround_inline instead of
35454         __fesetround.
35455         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
35456         __fesetround and define as weak alias of __fesetround.  Use
35457         libm_hidden_weak.
35458         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
35459         Likewise.
35460         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
35461         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
35462         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
35463         * sysdeps/tile/math_private.h (__fesetround): New inline function.
35464         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
35465         __fesetround and define as weak alias of __fesetround.  Use
35466         libm_hidden_weak.
35467         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
35468         __fesetround instead of fesetround.
35469         (default_libc_feholdexcept_setround): Likewise.
35470         (libc_feholdsetround_ctx): Likewise.
35471         (libc_feholdsetround_noex_ctx): Likewise.
35472
35473         [BZ #17748]
35474         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
35475         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
35476         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
35477         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
35478         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35479         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
35480         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35481         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
35482         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35483         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
35484         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35485         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35486         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
35487         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35488         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
35489         libm_hidden_def.
35490         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
35491         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
35492         Likewise.
35493         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
35494         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35495         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
35496         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35497         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
35498         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
35499         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
35500         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
35501         __fesetenv instead of fesetenv.
35502         (libc_feresetround_noex_ctx): Likewise.
35503         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
35504         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
35505         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
35506         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
35507         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
35508         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
35509         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
35510         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
35511         (__feupdateenv): Likewise.
35512         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
35513         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
35514         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
35515         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
35516
35517 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
35518
35519         [BZ #17806]
35520         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
35521         addresses have been freed.
35522
35523 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
35524
35525         * resolv/res_init.c (__res_vinit): Improve comments about nserv
35526         and nservall.
35527
35528 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
35529
35530         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
35531         Clean up check_pf allocation pattern. addresses
35532
35533 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35534
35535         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
35536         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
35537         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
35538         * nptl/pthread_exit.c (__pthread_exit): Likewise.
35539         * nptl/pthread_join.c (pthread_join): Likewise.
35540         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
35541         * sysdeps/posix/waitid.c (__waitid): Likewise.
35542         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
35543         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
35544         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
35545         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
35546         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
35547         Likewise.
35548         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
35549         (__libc_pread64): Likewise.
35550         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
35551         (__libc_pwrite): Likewise.
35552         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
35553         (__libc_pwrite64): Likewsie.
35554         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
35555         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
35556         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
35557         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
35558         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
35559         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
35560         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
35561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
35562         Likewise.
35563         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
35564         (__libc_pread64): Likewise.
35565         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
35566         Likewise.
35567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
35568         (__libc_pwrite64): Likewise.
35569         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
35570         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
35571         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
35572         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
35573         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
35574         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
35575         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
35576         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
35577         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
35578         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
35579         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
35580         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
35581         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
35582         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
35583         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
35584         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
35585         Likewise.
35586
35587 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
35588
35589         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
35590         (CFLAGS-test-double.c): Likewise.
35591         (CFLAGS-test-ldouble.c): Likewise.
35592         (CPPFLAGS-test-ifloat.c): Likewise.
35593         (CPPFLAGS-test-idouble.c): Likewise.
35594         (CPPFLAGS-test-ildoubl.c): Likewise.
35595         (CFLAGS-test-test-fenv.c): Remove variable.
35596         (CFLAGS-test-misc.c): Likewise.
35597
35598 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
35599
35600         [BZ #17797]
35601         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
35602         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
35603         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
35604         CLOCKS_PER_SEC == 1000000.
35605         * time/clocktest.c (main): Replace %ld with %jd and cast to
35606         intmax_t.
35607
35608 2015-01-05  Roland McGrath  <roland@hack.frob.com>
35609
35610         * sysdeps/generic/unwind-resume.h: New file.
35611         * sysdeps/gnu/unwind-resume.c: Include it.
35612         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
35613         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
35614         argument list.
35615         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
35616         global rather than static.
35617         (_Unwind_Resume): Update user.
35618         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
35619         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
35620         rather than static.  Add __attribute__ ((cold)).
35621         (_Unwind_Resume, __gcc_personality_v0): Update callers.
35622         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
35623         * sysdeps/arm/arm-unwind-resume.S: New file.
35624         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
35625         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
35626         * sysdeps/arm/Makefile [$(subdir) = csu]
35627         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
35628         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
35629         Add rt-arm-unwind-resume.
35630         [$(subdir) = nptl]
35631         (libpthread-sysdep_routines, libpthread-shared-only-routines):
35632         Add pt-arm-unwind-resume.
35633         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
35634         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
35635
35636 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
35637
35638         [BZ #17748]
35639         * include/fenv.h (__feholdexcept): Declare.  Use
35640         libm_hidden_proto.
35641         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
35642         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
35643         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
35644         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
35645         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
35646         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
35647         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
35648         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
35649         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
35650         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
35651         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
35652         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
35653         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
35654         (feholdexcept): Likewise.
35655         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
35656         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
35657         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
35658         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
35659         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
35660         __feholdexcept instead of feholdexcept.
35661         (default_libc_feholdexcept_setround): Likewise.
35662
35663 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
35664
35665         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
35666         to avoid using stl/str to align destination.
35667
35668 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
35669
35670         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
35671
35672 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
35673
35674         [BZ #17796]
35675         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
35676         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
35677         Define as weak alias not strong alias.
35678
35679 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
35680
35681         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
35682         bltzal with addiupc.
35683         (RTLD_START): Ditto.
35684
35685 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
35686
35687         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
35688         for __vdso_* functions in declarations.
35689         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
35690         definitions.
35691         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
35692         INTERNAL_VSYSCALL): Use struct return types to check for error.
35693
35694         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
35695         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
35696         function with cast from llround().
35697         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
35698         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
35699         Define.
35700
35701 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
35702
35703         [BZ #17793]
35704         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
35705         Define as weak alias not strong alias.
35706
35707         [BZ #17635]
35708         * ctype/ctype-c99.c: New file.  isblank implementation moved from
35709         ...
35710         * ctype/ctype-extn.c: ... here.
35711         (__isblank_l): Move to ...
35712         * ctype/ctype-c99_l.c: ... here.  New file.
35713         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
35714         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
35715         Remove variable.
35716         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
35717         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
35718         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
35719         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
35720         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
35721
35722         [BZ #17777]
35723         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
35724         (posix_fadvise64): Define as weak alias not strong alias.
35725         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
35726         (posix_fallocate64): Likewise.
35727         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
35728         Remove variable.
35729         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
35730         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
35731         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
35732         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
35733         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
35734
35735 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
35736
35737         [BZ #16191]
35738         * NEWS: Mention bug fix.
35739         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
35740         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
35741         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
35742         (HOST_STACK_END_ADDR): Likewise.
35743
35744 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
35745
35746         [BZ #17748]
35747         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
35748         * math/fegetround.c (fegetround): Rename to __fegetround and
35749         define as weak alias of __fegetround.  Use libm_hidden_weak.
35750         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
35751         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
35752         * sysdeps/arm/fegetround.c (fegetround): Likewise.
35753         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
35754         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
35755         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
35756         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
35757         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
35758         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
35759         Undefine after rather than before function definition; use
35760         parentheses around function name in definition.
35761         (__fegetround): Also undefine macro after function definition.
35762         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
35763         __fegetround and define as weak alias of __fegetround.  Use
35764         libm_hidden_weak.  Do not undefine as macro.
35765         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
35766         Likewise.
35767         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
35768         __fegetround and define as weak alias of __fegetround.  Use
35769         libm_hidden_weak.
35770         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
35771         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
35772         * sysdeps/tile/math_private.h (__fegetround): New inline function.
35773         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
35774         __fegetround and define as weak alias of __fegetround.  Use
35775         libm_hidden_weak.
35776         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
35777         __fegetround instead of fegetround.
35778
35779         [BZ #17782]
35780         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
35781         Condition macro definition on [__USE_MISC].
35782
35783         [BZ #17781]
35784         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
35785         (struct sigaction): Change type of sa_flags field to int.
35786
35787         [BZ #17780]
35788         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
35789         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
35790         __glibc_reserved0.
35791
35792         * nptl/version.c (banner): Use single year in copyright notice.
35793
35794         * NEWS: Update copyright dates.
35795         * catgets/gencat.c (print_version): Likewise.
35796         * csu/version.c (banner): Likewise.
35797         * debug/catchsegv.sh: Likewise.
35798         * debug/pcprofiledump.c (print_version): Likewise.
35799         * debug/xtrace.sh (do_version): Likewise.
35800         * elf/ldconfig.c (print_version): Likewise.
35801         * elf/ldd.bash.in: Likewise.
35802         * elf/pldd.c (print_version): Likewise.
35803         * elf/sotruss.sh: Likewise.
35804         * elf/sprof.c (print_version): Likewise.
35805         * iconv/iconv_prog.c (print_version): Likewise.
35806         * iconv/iconvconfig.c (print_version): Likewise.
35807         * locale/programs/locale.c (print_version): Likewise.
35808         * locale/programs/localedef.c (print_version): Likewise.
35809         * login/programs/pt_chown.c (print_version): Likewise.
35810         * malloc/memusage.sh (do_version): Likewise.
35811         * malloc/memusagestat.c (print_version): Likewise.
35812         * malloc/mtrace.pl: Likewise.
35813         * manual/libc.texinfo: Likewise.
35814         * nptl/version.c (banner): Likewise.
35815         * nscd/nscd.c (print_version): Likewise.
35816         * nss/getent.c (print_version): Likewise.
35817         * nss/makedb.c (print_version): Likewise.
35818         * posix/getconf.c (main): Likewise.
35819         * scripts/test-installation.pl: Likewise.
35820         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
35821
35822 2015-01-02  Will Newton  <will.newton@linaro.org>
35823
35824         * sysdeps/arm/armv7/configure: Removed.
35825         * sysdeps/arm/armv7/configure.ac: Likewise.
35826
35827 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
35828
35829         * All files with FSF copyright notices: Update copyright dates
35830         using scripts/update-copyrights.
35831         * intl/plural.c: Regenerated.
35832         * locale/programs/charmap-kw.h: Likewise.
35833         * locale/programs/locfile-kw.h: Likewise.
35834
35835 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
35836
35837         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
35838
35839 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
35840
35841         [BZ #17748]
35842         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
35843         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
35844         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
35845         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
35846         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35847         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
35848         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35849         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
35850         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35851         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
35852         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35853         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35854         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
35855         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35856         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
35857         libm_hidden_def.
35858         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
35859         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
35860         Likewise.
35861         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
35862         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35863         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
35864         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35865         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
35866         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
35867         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
35868         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
35869         __fegetenv instead of fegetenv.
35870         (libc_feholdsetround_noex_ctx): Likewise.
35871
35872 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
35873
35874         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
35875         (Elf_MIPS_ABIFlags_v0): New structure.
35876         (EF_MIPS_FP64): Define.
35877         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
35878         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
35879         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
35880         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
35881         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
35882         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
35883         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
35884         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
35885         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
35886         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
35887         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
35888         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
35889         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
35890         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
35891         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
35892         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
35893         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
35894         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
35895         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
35896         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
35897         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
35898         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
35899         field.
35900         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
35901         EF_MIPS_FP64.
35902         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
35903         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
35904         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
35905         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
35906         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
35907         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
35908         * sysdeps/mips/tst-abi-interlink.c: Likewise.
35909         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
35910         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
35911         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
35912         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
35913         record the current FP ABI extension.
35914         (mips-mode-switch): Define to show if kernel headers support mode
35915         switching.
35916         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
35917         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
35918         supported SYSV ABI version to 3.
35919         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
35920         feature.
35921
35922 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
35923             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35924
35925         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
35926         path.
35927         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
35928
35929 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
35930
35931         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
35932         __fegetround and redefine to call __fegetround.  Remove condition
35933         on [!__NO_MATH_INLINES].
35934         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
35935         function.
35936         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
35937         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
35938         Remove macro.
35939         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
35940         instead of <fenv_libc.h>.
35941         (__llrintl): Call fegetround instead of __fegetround.
35942         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
35943         instead of <fenv_libc.h>.
35944         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
35945         (__lrintl): Call fegetround instead of __fegetround.
35946         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
35947         instead of <fenv_libc.h>.
35948         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
35949         (__rintl): Call fegetround instead of __fegetround.
35950
35951 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
35952
35953         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
35954         arrays.
35955
35956 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
35957
35958         [BZ #17775]
35959         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
35960         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
35961         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
35962
35963 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
35964
35965         * sysdeps/i386/tls-macros.h: Include <features.h>.
35966         (TLS_LE): Use non-PIC version for GCC >= 5.0.
35967         (TLS_IE): Likewise.
35968         (TLS_LD): Likewise.
35969         (TLS_GD): Likewise.
35970         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
35971         define for GCC >= 5.0.
35972
35973 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
35974
35975         * math/test-fenv.c (test_single_exception, set_single_exc,
35976         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
35977         feexcp_mask_test, feenable_test, fe_single_test): Add
35978         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
35979         case where they are not used.
35980         * math/libm-test.inc: Likewise.
35981         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
35982         unused in the absence of FP rounding/exception support.
35983         * stdio-common/tst-printf-round.c: Likewise.
35984         * stdlib/tst-strtod-round.c: Likewise.
35985         * stdlib/tst-strtod-underflow.c: Likewise.
35986
35987 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
35988
35989         [BZ #17723]
35990         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
35991         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
35992         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
35993         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
35994         libm_hidden_weak.
35995         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
35996         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
35997         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
35998         libm_hidden_def.
35999         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
36000         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
36001         libm_hidden_weak.
36002         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
36003         Likewise.
36004         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
36005         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
36006         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
36007         libm_hidden_weak.
36008         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
36009         libm_hidden_def.
36010         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
36011         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
36012         (__feraiseexcept): Likewise.
36013         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
36014         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
36015         libm_hidden_weak.
36016         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
36017         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
36018         libm_hidden_def.
36019         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
36020         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
36021         Use libm_hidden_def.
36022         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
36023         libm_hidden_def.
36024         (feraiseexcept): Define as weak not strong alias.  Use
36025         libm_hidden_weak.
36026         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
36027         New inline function.  Factored out of ...
36028         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
36029         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
36030         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
36031         feraiseexcept.
36032         * math/w_acos.c (__acos): Likewise.
36033         * math/w_asin.c (__asin): Likewise.
36034         * math/w_ilogb.c (__ilogb): Likewise.
36035         * math/w_j0.c (y0): Likewise.
36036         * math/w_j1.c (y1): Likewise.
36037         * math/w_jn.c (yn): Likewise.
36038         * math/w_log.c (__log): Likewise.
36039         * math/w_log10.c (__log10): Likewise.
36040         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
36041         * sysdeps/aarch64/fpu/math_private.h
36042         (libc_feupdateenv_test_aarch64): Likewise.
36043         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
36044         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
36045         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
36046         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
36047         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
36048         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
36049         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
36050         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
36051         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
36052         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
36053
36054 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
36055
36056         [BZ #17732]
36057         * io/test-utime.c (main): Replace %ld with %jd and cast to
36058         intmax_t.
36059         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
36060         * nptl/tst-mutex5.c: Include <stdint.h>.
36061         (do_test): Replace %ld with %jd and cast to intmax_t.
36062         * posix/tst-regex.c (run_test): Likewise.
36063         (run_test_backwards): Likewise.
36064         * rt/tst-clock.c: Include <stdint.h>.
36065         (clock_test): Replace %ld with %jd and cast to intmax_t.
36066         * rt/tst-cpuclock1.c: Include <stdint.h>.
36067         (do_test): Replace %lu with %ju and cast to uintmax_t.
36068         * rt/tst-cpuclock2.c: Include <stdint.h>.
36069         (do_test): Replace %lu with %ju and cast to uintmax_t.
36070         * rt/tst-mqueue1.c: Include <stdint.h>.
36071         (check_attrs): Replace %ld with %jd and cast to intmax_t.
36072         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
36073         intmax_t.
36074         * rt/tst-mqueue4.c (do_test): Likewise.
36075         * rt/tst-timer4.c: Include <stdint.h>.
36076         (check_ts): Replace %ld with %jd and cast to intmax_t.
36077         (do_test): Likewise.
36078         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
36079         and cast to intmax_t.
36080         * sysdeps/pthread/tst-timer.c (main): Likewise.
36081         * time/clocktest.c (main): Likewise.
36082         * time/tst-posixtz.c (do_test): Likewise.
36083         * timezone/tst-timezone.c (main): Likewise.
36084
36085 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
36086             H.J. Lu  <hongjiu.lu@intel.com>
36087
36088         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
36089         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
36090         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
36091         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
36092         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
36093         version if bit_Fast_Unaligned_Load is set.
36094         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
36095         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
36096         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
36097         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
36098         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
36099         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
36100         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
36101         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
36102         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
36103         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
36104         to 4.
36105         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
36106         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
36107         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
36108         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
36109
36110 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
36111
36112         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
36113         instead of #if to avoid a Wundef warning.
36114         * stdlib/tst-limits.c (do_test): Likewise.
36115
36116         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
36117         parallel other exception macros.
36118         (fegetenv): Convert from macro to extern inline so that it applies
36119         retroactively to inline functions already seen by the compiler.
36120         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
36121
36122         * posix/Makefile (before-compile): Use $(objpfx) for
36123         posix-conf-vars-def.h.
36124
36125 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
36126
36127         * posix/getconf.c (main): Use size_t for type of I.
36128         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
36129         NSPEC.
36130
36131         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
36132         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
36133         * posix/posix-envs.def: Likewise.
36134         * sysdeps/posix/sysconf.c: Likewise.
36135         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
36136         (specs): Remove array.
36137         * scripts/gen-posix-conf-vars.awk: Support generation of specs
36138         array.
36139
36140         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
36141         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
36142         (__sysconf): Use CONF_IS_* macros.
36143
36144         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
36145         ($(objpfx)posix-conf-vars-def.h): New target.
36146         * posix/posix-conf-vars.list: New file.
36147         * posix/posix-conf-vars.h: New file.
36148         * posix/confstr.c: Include posix-conf-vars.h.
36149         (confstr): Use CONF_IS_* macros.
36150         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
36151         CONF_IS_* macros.
36152         * scripts/gen-posix-conf-vars.awk: New file.
36153
36154 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
36155
36156         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
36157         fegetround): Add no-op macros to avoid linknamespace issues.
36158
36159         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
36160         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
36161
36162         * sysdeps/unix/sysv/linux/tile/sysdep.h
36163         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
36164         assembly-specific section to avoid a redefinition warning.
36165
36166         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
36167         long before casting to pointer to avoid a cast warning.
36168
36169 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
36170
36171         * sysdeps/tile/tilegx/Implies: New file.
36172
36173 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
36174
36175         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
36176
36177 2014-12-23  Florian Weimer  <fweimer@redhat.com>
36178
36179         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
36180
36181 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
36182
36183         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
36184         not define.
36185         * sysdeps/unix/sysv/linux/utimes.c: Do not include
36186         <kernel-features.h>.
36187         (__utimes) [__NR_utimes]: Make code unconditional.
36188         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
36189         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36190         (__ASSUME_UTIMES): Do not undefine.
36191         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36192         (__ASSUME_UTIMES): Likewise.
36193         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
36194         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
36195         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
36196         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
36197
36198 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
36199
36200         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
36201
36202 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
36203
36204         [BZ #17747]
36205         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
36206         alias to weak alias for j0l, y0l.
36207         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
36208         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
36209
36210         [BZ #17746]
36211         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
36212         conversion.
36213
36214 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
36215
36216         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
36217         to zero if not already defined.
36218
36219 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
36220
36221         [BZ #17724]
36222         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
36223         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
36224         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
36225         (char *) casts added.
36226         * sysdeps/ieee754/k_standardf.c: New file.
36227         * sysdeps/ieee754/k_standardl.c: Likewise.
36228         * math/Makefile (libm-support): Remove k_standard.
36229         (libm-calls): Add k_standard.
36230
36231 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36232
36233         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
36234         Optimize to avoid an unnecessary FPCR read.
36235
36236 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36237
36238         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
36239         Optimize to reduce FPCR/FPSR accesses.
36240
36241 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36242
36243         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
36244         Call libc_fetestexcept_aarch64.
36245
36246 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36247
36248         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
36249         Call libc_fesetround_aarch64.
36250
36251 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
36252
36253         [BZ #17733]
36254         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
36255         (__bind): Do not define as weak alias.
36256         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
36257         define.
36258         (__getsockname): Do not define as weak alias.
36259
36260 2014-12-22  Will Newton  <will.newton@linaro.org>
36261
36262         * manual/install.texi: Document that we require bison 2.7
36263         or above.
36264         * INSTALL: Regenerate.
36265         * configure.ac: Use AC_CHECK_PROG_VER instead of
36266         AC_PATH_PROG when checking for bison and check for
36267         version 2.7 or above.
36268         * configure: Regenerate.
36269
36270 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
36271
36272         [BZ #17745]
36273         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
36274         * sysdeps/tile/ffsll.c (ffsll): To here.
36275
36276         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
36277
36278 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
36279
36280         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
36281         if not defined.
36282         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
36283         definition.
36284         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
36285         hidden ___tls_get_addr.
36286         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
36287         hidden __tls_get_addr.
36288         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
36289         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
36290         Likewise.
36291
36292 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
36293
36294         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
36295         _dl_init call.
36296
36297 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
36298
36299         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
36300         from "call _dl_init@PLT".
36301         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
36302
36303 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
36304
36305         * manual/search.texi: (Array Sort Function): Clarify stable sorting
36306         guarantees.
36307
36308 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
36309
36310         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
36311
36312 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
36313
36314         [BZ #17744]
36315         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
36316         strnlen.
36317
36318 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
36319
36320         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
36321         of multu on MIPSr6.
36322         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
36323         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
36324         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
36325         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
36326         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
36327
36328 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
36329
36330         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
36331         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
36332         (PTR_SUBU): Use subu for mips32r6/mips64r6.
36333         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
36334         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
36335         mips32r6/mips64r6.
36336         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
36337
36338 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
36339
36340         * string/strncat.c (STRNCAT): Simplify implementation.
36341
36342 2014-12-19  David S. Miller  <davem@davemloft.net>
36343
36344         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
36345         access the quad as both a long double and as a series of 4 words.
36346
36347         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
36348         link_map->l_info array access.
36349
36350 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
36351
36352         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
36353
36354         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
36355         * math/atest-exp2.c (TIMEOUT): Likewise.
36356         * math/atest-sincos.c (TIMEOUT): Likewise.
36357
36358 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
36359
36360         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
36361         -Wno-error with -fno-builtin-lround.
36362
36363 2014-12-19  Torvald Riegel  <triegel@redhat.com>
36364
36365         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
36366         Contains futex constants and functions moved over from ...
36367         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
36368         <lowlevellock-futex.h>.
36369         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
36370         (lll_timedwait_tid): Add comments and parentheses around macro
36371         arguments.
36372
36373 2014-12-19  Torvald Riegel  <triegel@redhat.com>
36374
36375         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
36376         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
36377         (__lll_private_flag): Remove.
36378         (lll_futex_wait): Likewise.
36379         (lll_futex_timed_wait): Likewise.
36380         (lll_futex_wake): Likewise.
36381         (lll_futex_requeue): Likewise.
36382         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
36383         (__lll_timedwait_tid): Spell out argument names.
36384         (lll_timedwait_tid): Add comments and parentheses around macro
36385         arguments.
36386         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
36387         LLL_SHARED and LLL_PRIVATE usable from assembly code.
36388
36389 2014-12-19  Torvald Riegel  <triegel@redhat.com>
36390
36391         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
36392         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
36393         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
36394         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
36395         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
36396         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
36397         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
36398         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
36399         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
36400         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
36401         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
36402         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
36403         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
36404         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
36405         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
36406         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
36407         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
36408         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
36409         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
36410
36411 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
36412
36413         * sysdeps/x86_64/x32/Makefile: New file.
36414
36415 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
36416
36417         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
36418         1L with (mp_limb_t) 1.
36419
36420 2014-12-17  Roland McGrath  <roland@hack.frob.com>
36421
36422         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
36423         * nptl/libc_pthread_init.c: ... here.
36424         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
36425         * nptl/register-atfork.c: ... here.
36426
36427         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
36428         Use pthread_sigmask rather than INTERNAL_SYSCALL.
36429         Use assert_perror to check its return value.
36430         (__gai_create_helper_thread): Likewise.
36431
36432         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
36433
36434         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
36435
36436 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
36437
36438         [BZ #17725]
36439         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
36440         __profil_counter.
36441         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
36442         Likewise.
36443         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
36444         Likewise.
36445         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
36446         Likewise.
36447         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
36448         (profil_counter): Likewise.
36449         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
36450         (profil_counter): Likewise.
36451         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
36452         Likewise.
36453         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
36454         Likewise.
36455         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
36456         (profil_counter): Likewise.
36457         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
36458         Likewise.
36459         [!__profil_counter] (profil_counter): Define as weak alias of
36460         __profil_counter.
36461         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
36462         (profil_counter): Rename to __profil_counter.
36463         [!__profil_counter] (profil_counter): Define as weak alias of
36464         __profil_counter.
36465         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
36466         (profil_counter): Rename to __profil_counter.
36467         [!__profil_counter] (profil_counter): Define as weak alias of
36468         __profil_counter.
36469         * sysdeps/posix/profil.c: Update comment referring to
36470         profil_counter.
36471         (__profil): Use __profil_counter instead of profil_counter.
36472         * sysdeps/posix/sprofil.c (profil_counter): Rename to
36473         __profil_counter.  Use __profil_counter_ushort and
36474         __profil_counter_uint in definitions.
36475         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
36476         instead of profil_counter_uint and profil_counter_ushort.
36477
36478         [BZ #17722]
36479         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
36480         define as weak alias of __inet_makeaddr.
36481         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
36482         as weak alias of __inet_addr.
36483         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
36484         as weak alias of __inet_pton.  Use libc_hidden_weak.
36485         * include/arpa/inet.h (__inet_pton): Declare.  Use
36486         libc_hidden_proto.
36487         (inet_makeaddr): Don't use libc_hidden_proto.
36488         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
36489         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
36490         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
36491         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
36492         Remove variable.
36493         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
36494         (test-xfail-POSIX/time.h/linknamespace): Likewise.
36495
36496 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
36497
36498         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
36499
36500 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
36501
36502         * stdio-common/bug-vfprintf-nargs.c (do_test):
36503         Cast value to intptr_t to avoid format warning
36504         for usage with PRIdPTR printing macro.
36505
36506 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
36507
36508         * libio/tst-widetext.c (do_test):
36509         Use format type %td instead of %Zd for ptrdiff_t
36510         in order to avoid format warning.
36511
36512 2014-12-17  Andreas Schwab  <schwab@suse.de>
36513
36514         * nscd/mem.c (gc): Add size_t cast to match printf format.
36515
36516 2014-12-16  Roland McGrath  <roland@hack.frob.com>
36517
36518         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
36519         (init): Apply PTR_MANGLE to pointers before storing them.
36520         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
36521         before using them.
36522
36523 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
36524
36525         [BZ #17719]
36526         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
36527         define as weak alias of __memrchr.
36528         (__memrchr): Do not define as strong alias of memrchr.
36529         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
36530         Remove variable.
36531         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
36532         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
36533         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
36534
36535         [BZ #17717]
36536         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
36537         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
36538         (if_indextoname): Rename to __if_indextoname and define as weak
36539         alias of __if_indextoname.  Use libc_hidden_weak.
36540         (if_freenameindex): Rename to __if_freenameindex and define as
36541         weak alias of __if_freenameindex.
36542         (if_nameindex): Rename to __if_nameindex and define as weak alias
36543         of __if_nameindex.
36544         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
36545         __if_nametoindex and define as weak alias of __if_nametoindex.
36546         Use libc_hidden_weak.
36547         (if_freenameindex): Rename to __if_freenameindex and define as
36548         weak alias of __if_freenameindex.
36549         (if_nameindex): Rename to __if_nameindex and define as weak alias
36550         of __if_nameindex.
36551         (if_indextoname): Rename to __if_indextoname and define as weak
36552         alias of __if_indextoname.  Use libc_hidden_weak.
36553         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
36554         __if_nametoindex and define as weak alias of __if_nametoindex.
36555         Use libc_hidden_weak.
36556         (if_freenameindex): Rename to __if_freenameindex and define as
36557         weak alias of __if_freenameindex.  Use libc_hidden_weak.
36558         (if_nameindex_netlink): Use __if_freenameindex instead of
36559         if_freenameindex.
36560         (if_nameindex): Rename to __if_nameindex and define as weak alias
36561         of __if_nameindex.  Use libc_hidden_weak.
36562         (if_indextoname): Rename to __if_indextoname and define as weak
36563         alias of __if_indextoname.  Use libc_hidden_weak.
36564         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
36565         libc_hidden_proto.
36566         [!_ISOMAC] (__if_freenameindex): Likewise.
36567         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
36568         if_nametoindex.
36569         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
36570         variable.
36571         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
36572         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
36573         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
36574         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
36575         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
36576         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
36577         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
36578
36579         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
36580         Remove variable.
36581         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
36582         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
36583
36584 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
36585
36586         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
36587         subscript above bounds'
36588
36589         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
36590         bounds.
36591
36592 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
36593
36594         * libio/tst-fopenloc.c: Use test-skeleton.c.
36595
36596         * stdlib/tst-bsearch.c: Use test-skeleton.c.
36597         (entry): Rename to ITEM.
36598         (do_test, comp): Adjust.
36599
36600         * stdio-common/tst-fseek.c: Use test-skeleton.c.
36601
36602 2014-12-16  Torvald Riegel  <triegel@redhat.com>
36603
36604         * string/tester.c: Include <libc-internal.h>.
36605         (test_memset): Ignore -Wmemset-transposed-args.
36606
36607 2014-12-16  Torvald Riegel  <triegel@redhat.com>
36608
36609         * misc/tst-mntent2.c (do_test): Fix warning.
36610
36611 2014-12-16  Torvald Riegel  <triegel@redhat.com>
36612
36613         * elf/tst-unique4lib.cc(a): Mark as used.
36614
36615 2014-12-16  Florian Weimer  <fweimer@redhat.com>
36616
36617         [BZ #17630]
36618         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
36619         names.
36620
36621 2014-12-16  Allan McRae  <allan@archlinux.org>
36622
36623         * stdio-common/Makefile (tests): Re-add bug26.
36624
36625 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
36626
36627         [BZ #17657]
36628         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
36629         static array.
36630
36631 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
36632
36633         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
36634         (__lll_lock_wait): Likewise.
36635         (__lll_timedlock_wait): Likewise.
36636         (__lll_timedwait_tid): Likewise.
36637         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
36638         (__lll_robust_timedlock_wait): Likewise.
36639         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
36640         (lll_cond_trylock): Likewise.
36641         (__lll_lock): Likewise.
36642         (__lll_robust_lock): Likewise.
36643         (__lll_cond_lock): Likewise.
36644         (lll_robust_cond_lock): Likewise.
36645         (__lll_timedlock): Likewise.
36646         (__lll_robust_timedlock): Likewise.
36647         (__lll_unlock): Likewise.
36648         (__lll_robust_unlock): Likewise.
36649         (lll_wait_tid): Likewise.
36650         (lll_timedwait_tid): Likewise.
36651
36652 2014-12-15  Torvald Riegel  <triegel@redhat.com>
36653
36654         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
36655
36656 2014-12-15  Torvald Riegel  <triegel@redhat.com>
36657
36658         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
36659
36660 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
36661
36662         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
36663         * stdio-common/tst-sprintf.c: Likewise.
36664
36665 2014-12-15  Torvald Riegel  <triegel@redhat.com>
36666
36667         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
36668
36669 2014-12-15  Jeff Law  <law@redhat.com>
36670
36671         [BZ #16617]
36672         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
36673         on the heap.  (CVE-2012-3406)
36674         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
36675         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
36676         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
36677
36678 2014-12-15  Will Newton  <will.newton@linaro.org>
36679
36680         * manual/install.texi: Bump required version of texinfo
36681         to 4.7 from 4.5.
36682         * INSTALL: Regenerated.
36683         * configure.ac: Check for makeinfo version 4.7 and above.
36684         * configure: Regenerated.
36685
36686 2014-12-12  Roland McGrath  <roland@hack.frob.com>
36687
36688         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
36689         PREFIX, string constant to insert between directory and name.
36690         * sysdeps/posix/shm_open.c: Update caller.
36691         * sysdeps/posix/shm_unlink.c: Likewise.
36692         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
36693         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
36694         (SEM_SHM_PREFIX): New macro.
36695         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
36696         [$(have-thread-library) = no].
36697         * nptl/Makefile (libpthread-routines): Add shm-directory.
36698         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
36699         * sysdeps/nptl/shm-directory.h: New file.
36700         * sysdeps/posix/shm-directory.c
36701         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
36702         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
36703         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
36704         INTERNAL_SYSCALL.
36705         (__where_is_shmfs): Function removed.
36706         (mountpoint, defaultmount, defaultdir, __namedsem_once):
36707         Variables removed.
36708         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
36709         Use SHM_GET_NAME.
36710         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
36711
36712         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
36713         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
36714         unconditional for use inside libpthread.
36715         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
36716
36717 2014-12-12  Roland McGrath  <roland@hack.frob.com>
36718
36719         * nptl/pthread_getaffinity.c: New file.
36720         * nptl/pthread_setaffinity.c: New file.
36721         * nptl/pthread_getname.c: New file.
36722         * nptl/pthread_setname.c: New file.
36723
36724         * nptl/pthread_create.c (START_THREAD_DEFN)
36725         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
36726
36727 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
36728             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36729
36730         * resolv/res_send.c (send_vc): Disable warning resplen may
36731         be used uninitialized.
36732
36733 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
36734
36735         * nptl/tst-mutex6.c
36736         (ATTR_NULL): New define checks ATTR against NULL.
36737         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
36738         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
36739
36740 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
36741
36742         [BZ #17581]
36743         * malloc/hooks.c
36744         (mem2mem_check): Revert my previous change.
36745         (malloc_check_get_size): Revert my previous change.
36746         (mem2chunk_check): Revert my previous change.
36747
36748 2014-12-11  Roland McGrath  <roland@hack.frob.com>
36749
36750         * sysdeps/posix/shm-directory.c: New file.
36751         * sysdeps/posix/shm-directory.h: New file.
36752         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
36753         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
36754         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
36755         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
36756         Transmute EPERM to EACCES.
36757         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
36758         from ...
36759         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
36760         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
36761
36762 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
36763
36764         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
36765         pointer and cast to uintptr_t.
36766         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
36767         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
36768         Add cast to avoid warning.
36769         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
36770
36771 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
36772
36773         * nptl/semaphore.h: Move to ...
36774         * sysdeps/pthread/semaphore.h: ... here.
36775         * Makefile (installed-headers): Change nptl/semaphore.h to
36776         sysdeps/pthread/semaphore.h.
36777
36778 2014-12-11  Roland McGrath  <roland@hack.frob.com>
36779
36780         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
36781         generated error format strings.
36782
36783         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
36784         -Wformat-extra-args warnings for scanf formats.
36785         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
36786         test of zero-length format (duh).
36787         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
36788         corner-case scanf format test.
36789         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
36790         generated fprintf format string.
36791         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
36792         corner-case sprintf format tests.
36793         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
36794         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
36795         -Wformat-extra-args warnings throughout.
36796         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
36797         (CFLAGS-scanf4.c): Likewise.
36798         (CFLAGS-scanf7.c): Likewise.
36799         (CFLAGS-tst-sprintf.c): Likewise.
36800         (CFLAGS-tst-printf.c): Likewise.
36801         (CFLAGS-tst-printfsz.c): Likewise.
36802
36803 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
36804
36805         * include/cpio.h: New file.
36806         * include/fmtmsg.h: Likewise.
36807
36808         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
36809         corresponding format argument to size_t.
36810         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
36811         arguments.
36812         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
36813         corresponding format argument to size_t.
36814         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
36815         arguments.
36816         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
36817         corresponding format argument to size_t.
36818         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
36819         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
36820         (CFLAGS-tst-mbswcs2.c): Likewise.
36821         (CFLAGS-tst-mbswcs3.c): Likewise.
36822         (CFLAGS-tst-mbswcs4.c): Likewise.
36823         (CFLAGS-tst-mbswcs5.c): Likewise.
36824         (CFLAGS-tst-trans.c): Likewise.
36825
36826 2014-12-11  Roland McGrath  <roland@hack.frob.com>
36827
36828         * posix/regexbug1.c (main): Use "%s" format with regerror results,
36829         rather than assuming they won't contain any '%'s.
36830
36831 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
36832
36833         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
36834         inhibit_loop_to_libcall to avoid recursive calls.
36835         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
36836         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
36837
36838 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
36839
36840         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
36841         prototype.
36842
36843 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
36844
36845         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
36846         integer value instead of boolean.
36847
36848 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
36849
36850         * malloc/malloc.c: Fix powerof2 check.
36851
36852 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
36853
36854         * locale/programs/locfile.h (maybe_swap_uint32):
36855         Remove inline and add unused attribute.
36856
36857 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
36858
36859         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
36860         Truncating assembler expression to a .long expression.
36861
36862 2014-12-11  Andreas Schwab  <schwab@suse.de>
36863
36864         * elf/rtld.c (struct map_args): Constify str member.
36865         (do_preload): Constify fname argument.
36866
36867 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36868
36869         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
36870         constants definition.
36871
36872 2014-12-11  Andreas Schwab  <schwab@suse.de>
36873
36874         [BZ #16657]
36875         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
36876         FORCE_ELISION instead of DO_ELISION.
36877         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
36878         Remove.
36879         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
36880         Likewise.
36881
36882         * iconvdata/gconv-modules: Remove duplicate entry.
36883
36884 2014-12-11  Will Newton  <will.newton@linaro.org>
36885
36886         Merge gettext 0.19.3 into intl/.
36887
36888         This involves a number of cosmetic changes to comments
36889         and ANSI function definitions and prototypes throughout
36890         all the files. The gettext copyright header is used but
36891         with the date ranges taken from the glibc copy.
36892
36893         * NEWS: Add gettext merge to 2.21.
36894         * intl/bindtextdom.c: Switch to gettext copyright.
36895         Use ANSI definitions and prototypes.
36896         Use gl_* locking primitives rather than __libc_* ones.
36897         Use __builtin_expect rather than __glibc_likely/unlikely.
36898         * intl/dcgettext.c: Switch to gettext copyright.
36899         Use ANSI definitions and prototypes.
36900         * intl/dcigettext.c: Switch to gettext copyright.
36901         Use ANSI definitions and prototypes.
36902         (INTDIV0_RAISES_SIGFPE): New define.
36903         Use gl_* locking primitives rather than __libc_* ones.
36904         Include eval-plural.h instead of plural-eval.c.
36905         Use __builtin_expect rather than __glibc_likely/unlikely.
36906         * intl/dcngettext.c: Switch to gettext copyright.
36907         Use ANSI definitions and prototypes.
36908         * intl/dgettext.c: Likewise.
36909         * intl/dngettext.c: Likewise.
36910         * intl/plural-eval.c: Renamed to...
36911         * intl/eval-plural.h: ...this.
36912         * intl/explodename.c: Switch to gettext copyright.
36913         Use ANSI definitions and prototypes.
36914         (_nl_explode_name): Use strchr instead of __rawmemchr.
36915         * intl/finddomain.c: Switch to gettext copyright.
36916         Use ANSI definitions and prototypes.
36917         Use gl_* locking primitives rather than __libc_* ones.
36918         (_nl_find_domain): Use malloc rather than alloca for
36919         allocation of temporary locale name.
36920         * intl/gettext.c: Switch to gettext copyright.
36921         Use ANSI definitions and prototypes.
36922         * intl/gettextP.h: Switch to gettext copyright.
36923         Use ANSI definitions and prototypes.
36924         Use gl_* locking primitives rather than __libc_* ones.
36925         * intl/gmo.h: Switch to gettext copyright.
36926         (struct sysdep_string): Move struct segment_pair outside of
36927         struct definition.
36928         * intl/hash-string.c: Use ANSI definitions and prototypes.
36929         * intl/hash-string.h: Switch to gettext copyright.
36930         Use ANSI definitions and prototypes.
36931         * intl/l10nflist.c: Switch to gettext copyright.
36932         Use ANSI definitions and prototypes.
36933         (_nl_normalize_codeset): Avoid integer overflow.
36934         * intl/loadinfo.h: Switch to gettext copyright.
36935         Use ANSI definitions and prototypes.
36936         (LIBINTL_DLL_EXPORTED): New define.
36937         (PATH_SEPARATOR): New define.
36938         * intl/loadmsgcat.c: Switch to gettext copyright.
36939         * intl/localealias.c: Switch to gettext copyright.
36940         Use ANSI definitions and prototypes.
36941         (_nl_expand_alias): Use PATH_SEPARATOR.
36942         * intl/ngettext.c: Switch to gettext copyright.
36943         Use ANSI definitions and prototypes.
36944         * intl/plural-exp.c: Likewise.
36945         * intl/plural-exp.h: Switch to gettext copyright.
36946         Use ANSI definitions and prototypes.
36947         (struct expression): Move definition of enum operator outside
36948         of struct definition.
36949         * intl/plural.c: Regenerate.
36950         * intl/plural.y: Switch to gettext copyright.
36951         Use ANSI definitions and prototypes.
36952         Port to bison 3.0.
36953         * intl/textdomain.c: Switch to gettext copyright.
36954         Use ANSI definitions and prototypes.
36955         Use gl_* locking primitives rather than __libc_* ones.
36956
36957 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
36958
36959         * debug/warning-nop.c: Add used atrribute.
36960
36961 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
36962
36963         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
36964
36965         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
36966         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
36967         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
36968
36969 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
36970             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36971
36972         [BZ #17634]
36973         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
36974         Undefine after defining function.  Define as weak alias of
36975         __wcschr.  Use libc_hidden_weak.
36976         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
36977         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
36978         (libc_hidden_def): Also define __GI___wcschr alias.
36979         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
36980         __wcschr and define as weak alias of __wcschr.
36981         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
36982         __wcschr.
36983         [!WCSCHR] (DEFAULT_WCSCHR): Define.
36984         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
36985         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
36986         libc_hidden_weak.  Do not use libc_hidden_def.
36987         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
36988         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
36989         __GI___wcschr alias.
36990         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
36991         [IS_IN (libc)] (wcschr): Define as macro expanding to
36992         __redirect_wcschr.
36993         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
36994         [IS_IN (libc)] (__wcschr_power6): Likewise.
36995         [IS_IN (libc)] (__wcschr_power7): Likewise.
36996         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
36997         instead of wcschr.
36998         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
36999         __libc_wcschr.
37000         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
37001         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
37002         __wcschr and define as weak alias of __wcschr.  Use
37003         libc_hidden_builtin_def.
37004         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
37005         as weak alias of __wcschr.  Use libc_hidden_weak.
37006         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
37007         wcschr.
37008         * time/era.c (_nl_init_era_entries): Likewise.
37009         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
37010         variable.
37011         (test-xfail-XPG3/time.h/linknamespace): Likewise.
37012         (test-xfail-XPG4/time.h/linknamespace): Likewise.
37013
37014 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
37015
37016         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
37017         format for long int variable.
37018
37019 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
37020
37021         [BZ #10672]
37022         * manual/search.texi: (Array Sort Function): Remove claim how to make
37023         qsort stable.
37024
37025 2014-12-10  Andreas Schwab  <schwab@suse.de>
37026
37027         [BZ #12847]
37028         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
37029         user-controlled locks.
37030
37031 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
37032
37033         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
37034         register.
37035
37036 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
37037
37038         * configure.ac (--disable-werror): New configure option.
37039         (enable_werror): New AC_SUBST.
37040         * configure: Regenerated.
37041         * config.make.in (enable-werror): New variable.
37042         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
37043         -Wno-error=undef.
37044         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
37045         * manual/install.texi (Configuring and compiling): Document
37046         --disable-werror.
37047         * INSTALL: Regenerated.
37048         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
37049         (CFLAGS-tst-chk2.c): Likewise.
37050         (CFLAGS-tst-chk3.c): Likewise.
37051         (CFLAGS-tst-chk4.cc): Likewise.
37052         (CFLAGS-tst-chk5.cc): Likewise.
37053         (CFLAGS-tst-chk6.cc): Likewise.
37054         (CFLAGS-tst-lfschk1.c): Likewise.
37055         (CFLAGS-tst-lfschk2.c): Likewise.
37056         (CFLAGS-tst-lfschk3.c): Likewise.
37057         (CFLAGS-tst-lfschk4.cc): Likewise.
37058         (CFLAGS-tst-lfschk5.cc): Likewise.
37059         (CFLAGS-tst-lfschk6.cc): Likewise.
37060
37061         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
37062         (main): Disable -Wdeprecated-declarations around calls to
37063         register_printf_function.
37064
37065         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
37066         (do_test): Disable -Wdiv-by-zero around some calls to
37067         fwrite_unlocked and fread_unlocked.
37068
37069         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
37070         (DIAG_POP_NEEDS_COMMENT): Likewise.
37071         (_DIAG_STR1): Likewise.
37072         (_DIAG_STR): Likewise.
37073         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
37074         * stdio-common/bug21.c: Include <libc-internal.h>.
37075         (do_test): Disable -Wformat around call to sscanf.
37076         * stdio-common/scanf14.c: Include <libc-internal.h>.
37077         (main): Disable -Wformat around some calls to scanf functions.
37078
37079 2014-12-09  Torvald Riegel  <triegel@redhat.com>
37080
37081         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
37082
37083 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37084
37085         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
37086         stack variable alignment.
37087
37088 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
37089
37090         [BZ #17682]
37091         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
37092         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
37093         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
37094         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
37095         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
37096         __getrlimit instead of getrlimit.
37097         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
37098         __gettimeofday instead of gettimeofday.
37099         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
37100         Likewise.
37101         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
37102         Likewise.
37103         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
37104         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
37105         Remove variable.
37106         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
37107         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
37108
37109 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37110
37111         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
37112         for wide-character tests.
37113
37114 2014-12-04  Roland McGrath  <roland@hack.frob.com>
37115
37116         * io/openat64.c: #include <libc-internal.h>
37117         (__openat64): Prototypify.  Use ignore_value on MODE.
37118         * io/openat.c: Likewise.
37119         * misc/reboot.c: #include <libc-internal.h>
37120         (reboot): Prototypify.  Use ignore_value on HOWTO.
37121         * misc/ptrace.c: #include <libc-internal.h>
37122         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
37123
37124 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
37125
37126         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
37127         XPG4, UNIX98 and XOPEN2K.
37128         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
37129         Remove variable.
37130         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
37131
37132 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
37133
37134         * libio/fileops.c: Use ISO C style for function definitions.
37135         * libio/iofopen.c: Likewise.
37136         * libio/wfileops.c: Likewise.
37137
37138         [BZ #17653]
37139         * libio/fileops.c (_IO_new_file_underflow): Unset cached
37140         offset on EOF.
37141         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
37142         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
37143         (fgets_func): Function pointer to fgets and fgetws.
37144         (do_ftell_test): Add test to verify ftell value after read
37145         EOF.
37146         (do_test): Set fgets_func.
37147
37148         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
37149         O_TRUNC flag for w and w+ modes.
37150         (do_rewind_test): Likewise.
37151         (do_ftell_test): Likewise.
37152         (do_write_test): Likewise.
37153
37154         [BZ #17647]
37155         * libio/fileops.c (do_ftell): Seek only when there are
37156         unflushed writes.
37157         * libio/wfileops.c (do_ftell_wide): Likewise.
37158         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
37159         test case.
37160         (do_one_test): Call it.
37161
37162 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
37163
37164         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
37165         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
37166         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
37167         Remove variable.
37168         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
37169         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
37170         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
37171
37172 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
37173
37174         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
37175         Remove variable.
37176         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
37177
37178         [BZ #17668]
37179         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
37180         as weak alias of __getifaddrs.  Use libc_hidden_weak.
37181         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
37182         __freeifaddrs.  Use libc_hidden_weak.
37183         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
37184         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
37185         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
37186         __freeifaddrs.  Use libc_hidden_weak.
37187         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
37188         __getifaddrs and define as weak alias of __getifaddrs.  Use
37189         libc_hidden_weak.
37190         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
37191         __freeifaddrs.  Use libc_hidden_weak.
37192         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
37193         Remove variable.
37194         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
37195         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
37196
37197 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
37198
37199         [BZ #17601]
37200         * sysdeps/mips/start.S (__start): Use indirect jump to call
37201         __libc_start_main.
37202
37203 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
37204
37205         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
37206
37207         * nptl/tst-mutex1.c: Include <stdbool.h>.
37208         [!ATTR] (ATTR_NULL): New macro.
37209         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
37210         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
37211         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
37212
37213         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
37214         to char *.
37215
37216         [BZ #17665]
37217         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
37218         Change conditional to [__USE_MISC].
37219
37220         [BZ #17664]
37221         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
37222         fgets_unlocked.
37223         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
37224         __fgets_unlocked.
37225         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
37226         fgets_unlocked.
37227         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
37228         Remove variable.
37229         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
37230         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
37231         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
37232         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
37233         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
37234         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
37235         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
37236         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
37237         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
37238
37239         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
37240
37241 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37242
37243         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37244         Remove strpbrk objects.
37245         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
37246         (__libc_ifunc_impl_list): Remove strpbrk implementation.
37247         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
37248         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
37249         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
37250         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
37251
37252         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37253         Remove strcspn objects.
37254         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
37255         (__libc_ifunc_impl_list): Remove strcspn implementation.
37256         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
37257         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
37258         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
37259         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
37260
37261         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37262         Remove strspn objetcs.
37263         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
37264         (__libc_ifunc_impl_list): Remove strspn implementation.
37265         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
37266         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
37267         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
37268         * sysdeps/powerpc/powerpc64/strspn.S: New file.
37269
37270 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
37271
37272         [BZ #17581]
37273         * malloc/hooks.c
37274         (mem2mem_check): Add a terminator to the chain of checking blocks.
37275         (malloc_check_get_size): Use it here.
37276         (mem2chunk_check): Ditto.
37277
37278 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
37279
37280         * sysdeps/powerpc/powerpc64/strtok.S: New file.
37281         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
37282
37283 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
37284
37285         * bits/ioctl-types.h: Indent preprocessor directives correctly.
37286
37287         * nptl/nptl-init.c: Include libc-internal.h.
37288         (__pthread_initialize_minimal_internal): Use ROUND_UP.
37289
37290         * elf/ldconfig.c (search_dir): Expand comment.
37291
37292 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
37293
37294         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
37295         variable.
37296         (linknamespace-symlist-stdlibs-tests): Likewise.
37297         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
37298         instead of $(objpfx)symlist-stdlibs.
37299         (linknamespace-libs-isoc): New variable.
37300         (linknamespace-libs): Use $(linknamespace-libs-isoc).
37301         (linknamespace-libs-ISO): New variable.
37302         (linknamespace-libs-ISO99): Likewise.
37303         (linknamespace-libs-ISO11): Likewise.
37304         (linknamespace-libs-XPG3): Likewise.
37305         (linknamespace-libs-XPG4): Likewise.
37306         (linknamespace-libs-POSIX): Likewise.
37307         (linknamespace-libs-UNIX98): Likewise.
37308         (linknamespace-libs-XOPEN2K): Likewise.
37309         (linknamespace-libs-POSIX2008): Likewise.
37310         (linknamespace-libs-XOPEN2K8): Likewise.
37311         ($(objpfx)symlist-stdlibs): Replace by
37312         $(linknamespace-symlist-stdlibs-tests).  Use
37313         $(linknamespace-libs-$*) as set of libraries.
37314         ($(linknamespace-header-tests)): Update dependencies.  Use
37315         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
37316         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
37317         * conform/linknamespace.pl: Remove comment about considering
37318         definitions of symbols from irrelevant libraries.
37319
37320 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
37321
37322         [BZ #13862]
37323         * elf/dl-tls.c: Include <atomic.h>.
37324         (oom): Remove #ifdef SHARED/#endif.
37325         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
37326         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
37327         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
37328         big enough.
37329         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
37330         * nptl/Makefile (tests): Add tst-stack4.
37331         (modules-names): Add tst-stack4mod.
37332         ($(objpfx)tst-stack4): New.
37333         (tst-stack4mod.sos): Likewise.
37334         ($(objpfx)tst-stack4.out): Likewise.
37335         ($(tst-stack4mod.sos)): Likewise.
37336         (clean): Likewise.
37337         * nptl/tst-stack4.c: New file.
37338         * nptl/tst-stack4mod.c: Likewise.
37339
37340 2014-11-27  J. Brown  <jb999@gmx.de>
37341
37342         * sysdeps/x86/bits/string.h: Add recent CPUs.
37343
37344 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
37345
37346         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
37347         sigblock.
37348
37349         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
37350         feof.
37351
37352         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
37353         variable.
37354
37355 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
37356
37357         * nscd/connections.c: Include libc-internal.h because of macro
37358         usage ignore_value.
37359
37360 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
37361
37362         * string/bits/string3.h (__warn_memset_zero_len): Don't
37363         declare for gcc newer than 5.0.
37364         (memset): Don't test for zero-length __LEN for gcc newer than
37365         5.0.
37366
37367 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
37368
37369         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
37370         size_t for %zu format.
37371
37372         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
37373         difference, not %ju.
37374
37375 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
37376
37377         * include/libc-internal.h (ignore_value): New macro.
37378         * nscd/connections.c (restart): Wrap calls to setuid and setgid
37379         with ignore_value.
37380
37381         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
37382         definition.
37383
37384         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
37385         pthread_cleanup_push to void *.
37386
37387         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
37388         Undefine.
37389
37390         [BZ #16619]
37391         [BZ #16740]
37392         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
37393         instead of 1L << 52.
37394
37395         * libio/bug-rewind.c (do_test): Check fwscanf return values.
37396         * libio/bug-rewind2.c (do_test): Likewise.
37397
37398         * debug/test-stpcpy_chk-ifunc.c: Remove file.
37399         * debug/test-strcpy_chk-ifunc.c: Likewise.
37400         * wcsmbs/test-wcschr-ifunc.c: Likewise.
37401         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
37402         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
37403         * wcsmbs/test-wcslen-ifunc.c: Likewise.
37404         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
37405         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
37406         * Rules [$(multi-arch) = no] (tests): Do not filter out
37407         $(tests-ifunc).
37408         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
37409         * debug/Makefile (tests-ifunc): Remove variable.
37410         (tests): Do not add $(tests-ifunc).
37411         * wcsmbs/Makefile (tests-ifunc): Remove variable.
37412         (tests): Do not add $(tests-ifunc).
37413         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
37414         [TEST_IFUNC]: Remove conditionals.
37415         * string/test-string.h (TEST_IFUNC): Remove macro.
37416         [TEST_IFUNC]: Remove conditionals.
37417
37418         * string/test-strchr.c [!WIDE] (L): New macro.
37419         [WIDE] (L): Likewise.
37420         (check1): Use CHAR instead of char.  Use L on string and character
37421         constants.
37422
37423 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
37424
37425         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
37426         tests.
37427         * sysdeps/powerpc/bits/atomic.h
37428         (__arch_atomic_exchange_and_add_32_acq): Add definition.
37429         (__arch_atomic_exchange_and_add_32_rel): Likewise.
37430         (atomic_exchange_and_add_acq): Likewise.
37431         (atomic_exchange_and_add_rel): Likewise.
37432         * sysdeps/powerpc/powerpc32/bits/atomic.h
37433         (__arch_atomic_exchange_and_add_64_acq): Add definition.
37434         (__arch_atomic_exchange_and_add_64_rel): Likewise.
37435         * sysdeps/powerpc/powerpc64/bits/atomic.h
37436         (__arch_atomic_exchange_and_add_64_acq): Add definition.
37437         (__arch_atomic_exchange_and_add_64_rel): Likewise.
37438
37439 2014-11-26  Torvald Riegel  <triegel@redhat.com>
37440
37441         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
37442         Change synchronization of __sched_fifo_min_prio and
37443         __sched_fifo_max_prio.
37444         * nptl/pthread_mutexattr_getprioceiling.c
37445         (pthread_mutexattr_getprioceiling): Likewise.
37446         * nptl/pthread_mutexattr_setprioceiling.c
37447         (pthread_mutexattr_setprioceiling): Likewise.
37448         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
37449         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
37450         Likewise.
37451
37452 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
37453
37454         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
37455         void.
37456
37457 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
37458
37459         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
37460         third argument const.
37461
37462 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
37463
37464         fnmatch: work around GCC compiler warning bug with uninit var
37465         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
37466         This works around a bug with x86-64 GCC 4.9.2 and earlier
37467         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
37468         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
37469         used uninitialized in this function [-Wmaybe-uninitialized]".
37470
37471 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
37472
37473         * posix/bug-regex31.c (main): Return RES not 0.
37474
37475 2014-11-25  Anton Blanchard <anton@samba.org>
37476
37477         * sysdeps/powerpc/bits/atomic.h
37478         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
37479
37480 2014-11-24  Sterling Augustine  <saugustine@google.com>
37481
37482         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
37483
37484 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
37485
37486         [BZ #17608]
37487         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
37488
37489 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
37490
37491         [BZ #17633]
37492         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
37493         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
37494         variable.
37495         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
37496         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
37497
37498 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
37499
37500         * string/strncpy.c (strncpy): Improve performance by using memset.
37501
37502 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
37503
37504         * string/strcpy.c (strcpy):
37505         Improve performance by using strlen and memcpy.
37506
37507 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
37508
37509         * string/strcoll_l.c (get_next_seq): __always_inline.
37510         * string/strcoll_l.c (do_compare): __always_inline.
37511
37512 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
37513
37514         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
37515         defined.
37516         * include/mqueue.h: Likewise.
37517         * include/stdlib.h: Likewise.
37518
37519         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
37520         (get_null_defines): Adjust.
37521         * sunrpc/Makefile: Adjust comment.
37522         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
37523         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
37524         (CFLAGS-interp.c): Likewise.
37525         (CFLAGS-ldconfig.c): Likewise.
37526         (CPPFLAGS-.os): Likewise.
37527         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
37528         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
37529         * extra-modules.mk (extra-modules.mk): Likewise.
37530         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
37531         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
37532         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
37533         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
37534         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
37535         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
37536         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
37537         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
37538         * iconvdata/Makefile (CPPFLAGS): Likewise.
37539         (cpp-srcs-left): Add libof for all iconvdata routines.
37540         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
37541         * include/assert.h: Likewise.
37542         * include/ctype.h: Likewise.
37543         * include/errno.h: Likewise.
37544         * include/libc-symbols.h: Likewise.
37545         * include/math.h: Likewise.
37546         * include/netdb.h: Likewise.
37547         * include/resolv.h: Likewise.
37548         * include/stdio.h: Likewise.
37549         * include/stdlib.h: Likewise.
37550         * include/string.h: Likewise.
37551         * include/sys/stat.h: Likewise.
37552         * include/wctype.h: Likewise.
37553         * intl/l10nflist.c: Likewise.
37554         * libidn/idn-stub.c: Likewise.
37555         * libio/libioP.h: Likewise.
37556         * nptl/libc_multiple_threads.c: Likewise.
37557         * nptl/pthreadP.h: Likewise.
37558         * posix/regex_internal.h: Likewise.
37559         * resolv/res_hconf.c: Likewise.
37560         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
37561         * sysdeps/arm/memmove.S: Likewise.
37562         * sysdeps/arm/sysdep.h: Likewise.
37563         * sysdeps/generic/_itoa.h: Likewise.
37564         * sysdeps/generic/symbol-hacks.h: Likewise.
37565         * sysdeps/gnu/errlist.awk: Likewise.
37566         * sysdeps/gnu/errlist.c: Likewise.
37567         * sysdeps/i386/i586/memcpy.S: Likewise.
37568         * sysdeps/i386/i586/memset.S: Likewise.
37569         * sysdeps/i386/i686/memcpy.S: Likewise.
37570         * sysdeps/i386/i686/memmove.S: Likewise.
37571         * sysdeps/i386/i686/mempcpy.S: Likewise.
37572         * sysdeps/i386/i686/memset.S: Likewise.
37573         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
37574         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
37575         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
37576         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
37577         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
37578         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
37579         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
37580         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
37581         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
37582         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
37583         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
37584         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
37585         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
37586         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
37587         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
37588         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
37589         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
37590         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
37591         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
37592         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
37593         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
37594         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
37595         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
37596         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
37597         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
37598         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
37599         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
37600         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
37601         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
37602         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
37603         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
37604         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
37605         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
37606         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
37607         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
37608         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
37609         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
37610         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
37611         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
37612         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
37613         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37614         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
37615         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
37616         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
37617         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
37618         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
37619         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
37620         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
37621         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
37622         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
37623         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
37624         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
37625         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
37626         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
37627         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
37628         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
37629         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
37630         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
37631         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
37632         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
37633         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
37634         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
37635         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
37636         * sysdeps/nptl/bits/libc-lock.h: Likewise.
37637         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
37638         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
37639         * sysdeps/posix/closedir.c: Likewise.
37640         * sysdeps/posix/opendir.c: Likewise.
37641         * sysdeps/posix/readdir.c: Likewise.
37642         * sysdeps/posix/rewinddir.c: Likewise.
37643         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
37644         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
37645         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
37646         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
37647         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
37648         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
37649         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
37650         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
37651         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
37652         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
37653         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
37654         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
37655         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
37656         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
37657         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
37658         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
37659         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
37660         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
37661         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
37662         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
37663         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
37664         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
37665         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
37666         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
37667         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
37668         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
37669         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
37670         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
37671         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
37672         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
37673         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
37674         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
37675         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
37676         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
37677         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
37678         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
37679         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
37680         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
37681         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
37682         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
37683         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
37684         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
37685         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
37686         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
37687         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
37688         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
37689         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
37690         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
37691         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
37692         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
37693         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
37694         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
37695         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
37696         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
37697         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
37698         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
37699         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
37700         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
37701         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
37702         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
37703         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
37704         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
37705         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
37706         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
37707         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
37708         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
37709         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
37710         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
37711         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
37712         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
37713         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
37714         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
37715         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
37716         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
37717         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
37718         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
37719         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
37720         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
37721         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
37722         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
37723         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
37724         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
37725         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
37726         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
37727         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
37728         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
37729         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
37730         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
37731         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
37732         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
37733         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
37734         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
37735         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
37736         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
37737         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
37738         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
37739         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
37740         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
37741         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
37742         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
37743         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
37744         * sysdeps/unix/alpha/sysdep.S: Likewise.
37745         * sysdeps/unix/alpha/sysdep.h: Likewise.
37746         * sysdeps/unix/make-syscalls.sh: Likewise.
37747         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
37748         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
37749         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
37750         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
37751         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
37752         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
37753         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
37754         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
37755         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
37756         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
37757         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
37758         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
37759         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
37760         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
37761         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
37762         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
37763         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
37764         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
37765         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
37766         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
37767         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
37768         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
37769         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
37770         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
37771         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
37772         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
37773         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
37774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
37775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
37776         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
37777         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
37778         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
37779         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
37780         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
37781         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
37782         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
37783         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
37784         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
37785         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
37786         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
37787         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
37788         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
37789         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
37790         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
37791         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
37792         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
37793         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
37794         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
37795         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
37796         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
37797         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
37798         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
37799         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
37800         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
37801         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
37802         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
37803         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
37804         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
37805         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
37806         * sysdeps/x86_64/memcpy.S: Likewise.
37807         * sysdeps/x86_64/memmove.c: Likewise.
37808         * sysdeps/x86_64/memset.S: Likewise.
37809         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
37810         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
37811         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
37812         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
37813         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
37814         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
37815         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
37816         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
37817         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
37818         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
37819         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
37820         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
37821         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
37822         * sysdeps/x86_64/multiarch/memset.S: Likewise.
37823         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
37824         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
37825         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
37826         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
37827         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
37828         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
37829         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
37830         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
37831         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
37832         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
37833         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
37834         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
37835         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
37836         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
37837         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
37838         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
37839         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
37840         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
37841         * sysdeps/x86_64/strcmp.S: Likewise.
37842
37843         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
37844
37845         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
37846         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
37847         * elf/rtld-Rules: Likewise.
37848         * elf/setup-vdso.h: Likewise.
37849         * include/assert.h: Likewise.
37850         * include/bits/stdlib-float.h: Likewise.
37851         * include/errno.h: Likewise.
37852         * include/sys/stat.h: Likewise.
37853         * include/unistd.h: Likewise.
37854         * sysdeps/aarch64/setjmp.S: Likewise.
37855         * sysdeps/alpha/setjmp.S: Likewise.
37856         * sysdeps/arm/__longjmp.S: Likewise.
37857         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
37858         * sysdeps/arm/setjmp.S: Likewise.
37859         * sysdeps/arm/sysdep.h: Likewise.
37860         * sysdeps/generic/_itoa.h: Likewise.
37861         * sysdeps/generic/dl-sysdep.h: Likewise.
37862         * sysdeps/generic/ldsodefs.h: Likewise.
37863         * sysdeps/i386/dl-tls.h: Likewise.
37864         * sysdeps/i386/setjmp.S: Likewise.
37865         * sysdeps/m68k/setjmp.c: Likewise.
37866         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
37867         * sysdeps/mach/hurd/opendir.c: Likewise.
37868         * sysdeps/posix/getcwd.c: Likewise.
37869         * sysdeps/posix/opendir.c: Likewise.
37870         * sysdeps/posix/profil.c: Likewise.
37871         * sysdeps/powerpc/dl-procinfo.h: Likewise.
37872         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
37873         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
37874         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
37875         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
37876         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
37877         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
37878         * sysdeps/s390/dl-tls.h: Likewise.
37879         * sysdeps/s390/s390-32/setjmp.S: Likewise.
37880         * sysdeps/s390/s390-64/setjmp.S: Likewise.
37881         * sysdeps/sh/sh3/setjmp.S: Likewise.
37882         * sysdeps/sh/sh4/setjmp.S: Likewise.
37883         * sysdeps/unix/alpha/sysdep.h: Likewise.
37884         * sysdeps/unix/arm/sysdep.S: Likewise.
37885         * sysdeps/unix/i386/sysdep.S: Likewise.
37886         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
37887         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
37888         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
37889         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
37890         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
37891         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
37892         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
37893         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
37894         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
37895         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
37896         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
37897         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
37898         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
37899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
37900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
37901         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
37902         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
37903         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
37904         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
37905         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
37906         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
37907         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
37908         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
37909         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
37910         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
37911         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
37912         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
37913         * sysdeps/unix/x86_64/sysdep.S: Likewise.
37914         * sysdeps/x86_64/setjmp.S: Likewise.
37915
37916         * include/math.h: Use IS_IN instead of IS_IN_libm.
37917         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
37918         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
37919         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
37920         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
37921         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
37922         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
37923         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
37924         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
37925         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
37926         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
37927         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
37928         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
37929         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
37930         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
37931         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
37932         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
37933         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
37934         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
37935         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
37936         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
37937         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
37938         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
37939         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
37940         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
37941         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
37942         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
37943         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
37944         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
37945         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
37946         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
37947         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
37948         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
37949         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
37950         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
37951         Likewise.
37952         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
37953         Likewise.
37954         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
37955         Likewise.
37956         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
37957         Likewise.
37958         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
37959         Likewise.
37960         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
37961         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
37962         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
37963         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
37964         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
37965         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
37966         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
37967         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
37968         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
37969         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
37970         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
37971         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
37972         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
37973         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
37974         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
37975         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
37976         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
37977         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
37978         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
37979         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
37980         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
37981         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
37982         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
37983         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
37984         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
37985         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
37986         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
37987
37988         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
37989         * nptl/pthreadP.h: Likewise.
37990         * nptl_db/structs.def: Likewise.
37991         * sysdeps/arm/sysdep.h: Likewise.
37992         * sysdeps/nptl/bits/libc-lock.h: Likewise.
37993         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
37994         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
37995         * sysdeps/unix/alpha/sysdep.h: Likewise.
37996         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
37997         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
37998         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
37999         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
38000         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
38001         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
38002         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38003         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
38004         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
38005         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
38006         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
38007         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
38008         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
38009         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
38010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
38011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
38012         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
38013         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
38014         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
38015         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
38016         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
38017         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
38018         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
38019         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
38020         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
38021         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
38022
38023         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
38024         * nptl/pthreadP.h: Likewise.
38025         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
38026         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
38027         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
38028         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
38029         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
38030         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
38031         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
38032         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
38033         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
38034         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
38035         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
38036         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
38037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
38038         Likewise.
38039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
38040         Likewise.
38041         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
38042         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
38043         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
38044         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
38045         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
38046         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
38047         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
38048         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
38049
38050         * dlfcn/dladdr.c: Use IS_IN.
38051         * dlfcn/dladdr1.c: Likewise.
38052         * dlfcn/dlclose.c: Likewise.
38053         * dlfcn/dlerror.c: Likewise.
38054         * dlfcn/dlinfo.c: Likewise.
38055         * dlfcn/dlmopen.c: Likewise.
38056         * dlfcn/dlopen.c: Likewise.
38057         * dlfcn/dlsym.c: Likewise.
38058         * dlfcn/dlvsym.c: Likewise.
38059
38060         * include/ifaddrs.h: Use IS_IN.
38061         * inet/check_pf.c: Likewise.
38062         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
38063         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
38064
38065         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
38066         IS_IN_ldconfig.
38067         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
38068         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
38069
38070         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
38071         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
38072         IS_IN (libc).
38073
38074         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
38075
38076         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
38077         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
38078         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
38079         * include/libc-symbols.h (IS_IN_LIB): New macro.
38080         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
38081         * include/netdb.h: Likewise.
38082         * include/stap-probe.h: Remove all uses of IN_LIB.
38083
38084         * Makeconfig (module-cppflags-real): Define MODULE_NAME
38085         instead of IN_MODULE.
38086         * include/libc-symbols.h (IN_MODULE): Define using
38087         MODULE_NAME.
38088         (PASTE_NAME, PASTE_NAME1): New macros.
38089         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
38090         of IN_LIB.
38091         (STAP_PROBE_ASM): Likewise.
38092
38093 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38094
38095         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
38096         __mach_init in dlopened libc.
38097
38098 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
38099
38100         * sysdeps/arm/preconfigure.ac: Delete EABI check.
38101         * sysdeps/arm/preconfigure: Regenerate.
38102
38103 2014-11-21  Roland McGrath  <roland@hack.frob.com>
38104
38105         * nptl/pthread_create.c (__pthread_create_2_1): Set
38106         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
38107         when copying values from IATTR into PD.
38108
38109 2014-11-21  Will Newton  <will.newton@linaro.org>
38110             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
38111
38112         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
38113         Refactor inline-asm.  Also add comment.
38114
38115         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
38116         ElfW macro instead of hardcoded Elf64 types.
38117         (la_aarch64_gnu_pltenter): Likewise.
38118         * sysdeps/aarch64/dl-machine.h
38119         (elf_machine_runtime_setup): Use ElfW(Addr).
38120
38121         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
38122         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
38123         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
38124         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
38125         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
38126         (R_AARCH64_TLS_DTPMOD64): Rename to ..
38127         (R_AARCH64_TLS_DTPMOD): This.
38128         (R_AARCH64_TLS_DTPREL64): Rename to ...
38129         (R_AARCH64_TLS_DTPREL): This.
38130         (R_AARCH64_TLS_TPREL64): Rename to ...
38131         (R_AARCH64_TLS_TPREL): This.
38132         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
38133         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
38134         R_AARCH64_TLS_TPREL64.
38135         (elf_machine_rela): Likewise.
38136
38137 2014-11-21  Torvald Riegel  <triegel@redhat.com>
38138
38139         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
38140         by setting it to 0.  64b atomics are not supported currently.
38141
38142 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38143
38144         [BZ #16469]
38145         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
38146         search domain names.
38147
38148 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38149
38150         [BZ #16469]
38151         * NEWS: Update.
38152         * resolv/res_query.c (__libc_res_nquerydomain): Retain
38153         trailing dot.
38154         * posix/tst-getaddrinfo5.c: New.
38155         * posix/Makefile (tests): Add it.
38156
38157 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38158
38159         [BZ #14498]
38160         * NEWS: Fixed.
38161         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
38162         after parsing line but before break_if_match.
38163         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
38164         if there is a protocol mismatch.
38165
38166 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
38167
38168         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
38169         because the potential race is on the user-supplied stream.
38170
38171 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38172
38173         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
38174         string literal if not passed a buffer.
38175         * manual/job.texi (ctermid): Update reasoning, note deviation
38176         from posix, suggest mtasurace when not passed a buffer, for
38177         future non-preliminary safety notes.
38178
38179 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38180
38181         * manual/users.texi (cuserid): Fix MT-Safety note for the case
38182         of not passing it a buffer.
38183         Reported by Peng Haitao.
38184
38185 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38186
38187         * manual/Makefile ($(objpfx)stamp-summary): Require
38188         check-safety.sh to pass.
38189         * manual/check-safety.sh: Wish for verification that every
38190         @deftypefn and @deftypefun is followed by a @safety remark.
38191
38192 2014-11-20  Roland McGrath  <roland@hack.frob.com>
38193
38194         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
38195
38196         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
38197         PTHREAD_CANCEL_ASYNCHRONOUS.
38198         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
38199         send SIGCANCEL.
38200
38201         * nptl/default-sched.h: New file.
38202         * sysdeps/unix/sysv/linux/default-sched.h: New file.
38203         * nptl/pthread_create.c: Include it.
38204         (__pthread_create_2_1): Use collect_default_sched instead of making
38205         Linux syscalls here directly.
38206
38207 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38208
38209         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
38210         __pthread_once): Use C11 atomics.
38211
38212 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38213
38214         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
38215
38216 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38217
38218         * include/atomic.h (__atomic_link_error, __atomic_check_size,
38219         atomic_thread_fence_acquire, atomic_thread_fence_release,
38220         atomic_thread_fence_seq_cst, atomic_load_relaxed,
38221         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
38222         atomic_compare_exchange_weak_relaxed,
38223         atomic_compare_exchange_weak_acquire,
38224         atomic_compare_exchange_weak_release,
38225         atomic_exchange_acquire, atomic_exchange_release,
38226         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
38227         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
38228         atomic_fetch_and_acquire,
38229         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
38230
38231 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38232
38233         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
38234         USE_ATOMIC_COMPILER_BUILTINS): Define.
38235         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
38236         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38237         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
38238         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38239         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
38240         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38241         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
38242         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38243         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
38244         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38245         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
38246         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38247         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
38248         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38249         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
38250         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38251         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
38252         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38253         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
38254         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38255         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
38256         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38257         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
38258         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38259         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
38260         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38261         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
38262         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38263         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
38264         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38265         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
38266         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38267         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
38268         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38269         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
38270         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38271         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
38272         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38273         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
38274         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38275
38276 2014-11-19  Roland McGrath  <roland@hack.frob.com>
38277
38278         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
38279         the sched_priority value here.  It was already checked when the user
38280         called pthread_attr_setschedparam.
38281
38282         * nptl/tst-bad-schedattr.c: New file.
38283         * nptl/Makefile (tests): Add it.
38284
38285 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
38286             Florian Weimer  <fweimer@redhat.com>
38287             Joseph Myers  <joseph@codesourcery.com>
38288             Adam Conrad  <adconrad@0c3.net>
38289             Andreas Schwab  <schwab@suse.de>
38290             Brooks  <bmoses@google.com>
38291
38292         [BZ #17625]
38293         * wordexp-test.c (__dso_handle): Add prototype.
38294         (__register_atfork): Likewise.
38295         (__app_register_atfork): New function.
38296         (registered_forks): New global.
38297         (register_fork): New function.
38298         (test_case): Add 3 new tests for WRDE_CMDSUB.
38299         (main): Call __app_register_atfork.
38300         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
38301         fork count is non-zero fail the test.
38302         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
38303         is set.
38304         (parse_dollars): Remove check for WRDE_NOCMD.
38305         (parse_dquote): Likewise.
38306
38307 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
38308
38309         * Makeconfig (built-modules): List non-library modules to be
38310         built.
38311         (module-cppflags): Include libc-modules.h for
38312         everything except shlib-versions.v.i.
38313         (CPPFLAGS): Use it.
38314         (before-compile): Add libc-modules.h.
38315         ($(common-objpfx)libc-modules.h,
38316         $(common-objpfx)libc-modules.stmp): New targets.
38317         (common-generated): Add libc-modules.h and libc-modules.stmp.
38318         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
38319         * include/libc-symbols.h: Don't include libc-modules.h.
38320         * include/libc-modules.h: Remove file.
38321         * scripts/gen-libc-modules.awk: New script to generate
38322         libc-modules.h.
38323         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
38324         Depend on libc-modules.stmp.
38325
38326         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
38327
38328         * Makeconfig (in-module): Get value of libof set for the
38329         translation unit.
38330         (CPPFLAGS): Use $(in-module).
38331         * Makerules: Don't suffix routine names for nonlib.
38332         * include/libc-modules.h: New file.
38333         * include/libc-symbols.h: Include libc-modules.h
38334         (IS_IN): New macro to replace IS_IN_* macros.
38335         * elf/Makefile: Set libof-* for each routine.
38336         * elf/rtld-Rules: Likewise.
38337         * extra-modules.mk: Likewise.
38338         * iconv/Makefile: Likewise.
38339         * iconvdata/Makefile: Likewise.
38340         * locale/Makefile: Likewise.
38341         * malloc/Makefile: Likewise.
38342         * nss/Makefile: Likewise.
38343         * sysdeps/gnu/Makefile: Likewise.
38344         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
38345         * sysdeps/unix/sysv/linux/Makefile: Likewise.
38346         * sysdeps/s390/s390-64/Makefile: Likewise.
38347         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
38348         CPPFLAGS for nscd instead of nonlib.
38349
38350 2014-11-18  Roland McGrath  <roland@hack.frob.com>
38351
38352         * nptl/createthread.c: New file.
38353
38354         * nptl/createthread.c: Moved ...
38355         * sysdeps/unix/sysv/linux/createthread.c: ... here.
38356
38357         * nptl/createthread.c: Add proper top-line comment.
38358         (do_clone): Folded into ...
38359         (create_thread): ... here.  Take new arguments STOPPED_START and
38360         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
38361         increment __nptl_threads, do event-reporting logic, do
38362         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
38363         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
38364         resource cleanup if sched_setaffinity or sched_setscheduler fails,
38365         just send SIGCANCEL.
38366         * nptl/pthread_create.c: Forward-declare create_thread before
38367         including createthread.c.
38368         (start_thread): Use new macro START_THREAD_DEFN to replace defining
38369         declaration, and new macro START_THREAD_SELF to replace argument.
38370         Remove return statement.
38371         (report_thread_creation): New function.
38372         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
38373         synchronization logic, and __nptl_nthreads increment here, around
38374         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
38375         PD->parent_cancelhandling here, before create_thread.  When
38376         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
38377         __deallocate_stack, and ENOMEM translation here.
38378
38379 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
38380
38381         [BZ #17616]
38382         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
38383         (mptwo): Rename to __mptwo.
38384         (__inv): Use __mptwo instead of mptwo.
38385         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
38386         (mptwo): Rename to __mptwo.
38387         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
38388         of mpone and __mptwo instead of mptwo.
38389         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
38390         instead of mpone.
38391         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
38392         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
38393         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
38394         of mpone and __mptwo instead of mptwo.
38395         (__mpranred): Use __mpone instead of mpone.
38396         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
38397         variable.
38398         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
38399         (test-xfail-ISO99/math.h/linknamespace): Likewise.
38400         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
38401         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
38402         (test-xfail-ISO11/math.h/linknamespace): Likewise.
38403         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
38404         (test-xfail-XPG3/math.h/linknamespace): Likewise.
38405         (test-xfail-XPG4/math.h/linknamespace): Likewise.
38406         (test-xfail-POSIX/math.h/linknamespace): Likewise.
38407         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
38408         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
38409         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
38410         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
38411         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
38412         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
38413         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
38414         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
38415         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
38416         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
38417
38418 2014-11-18  Tom de Vries  <tom@codesoucery.com>
38419
38420         * manual/signal.texi (Primitives Interrupted by Signals): In section,
38421         replace BSD Handler xref with BSD Signal Handling.
38422
38423 2014-11-17  Richard Henderson  <rth@redhat.com>
38424
38425         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
38426         (_FP_PACK_RAW_2): Remove.
38427         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
38428         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
38429         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
38430         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
38431         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
38432         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
38433         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
38434         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
38435         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
38436         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
38437         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
38438         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
38439         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
38440         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
38441         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
38442         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
38443
38444 2014-11-14  Roland McGrath  <roland@hack.frob.com>
38445
38446         * signal/signal.h [__USE_MISC]
38447         (struct sigvec): Remove type.
38448         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
38449         (sigvec): Remove declaration.
38450         * sysdeps/posix/sigvec.c: Moved ...
38451         * signal/sigvec.c: ... here, replacing old file.
38452         (struct sigvec): New type, copied from old signal.h definition.
38453         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
38454         (__sigvec): Convert definition to prototype.
38455         (sigvec): Replace weak_alias with compat_symbol.
38456         * signal/Versions (libc: GLIBC_2.21): New version set.
38457         * include/signal.h: Remove __sigvec declaration.
38458         * sysdeps/unix/bsd/sigvec.c: Remove file.
38459         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
38460         * manual/signal.texi (BSD Handler): Remove subsection.
38461         Move siginterrupt up to ...
38462         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
38463         (Blocking in BSD): Fold subsection into its parent.
38464         * NEWS: Mention sigvec removal.
38465
38466 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
38467
38468         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
38469         (DLA_FMS): Make definition conditional only on [__FMA4__].
38470         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
38471         definition.
38472
38473         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
38474         Make definition conditional only on [PROF].
38475         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
38476         definition.
38477         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
38478         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
38479
38480         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
38481         !__GNUC__].
38482         * include/signal.h (__sigpause): Move declaration above call to
38483         libc_hidden_proto.
38484         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
38485         variable.
38486         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
38487         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
38488
38489 2014-11-14  David S. Miller  <davem@davemloft.net>
38490
38491         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
38492         Define before including <string/memcpy.c> and <string/mempcpy.c>.
38493
38494 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
38495
38496         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
38497         * configure: Regenerated.
38498         * manual/install.texi (Tools for Compilation): Document a
38499         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
38500         compiler verified to work.
38501         * INSTALL: Regenerated.
38502
38503         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
38504         redeclare with asm name.
38505         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
38506         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
38507         including <string.h>.
38508         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38509         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
38510         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38511         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
38512         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38513         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
38514         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38515
38516 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
38517
38518         * stdlib/strtol.c (__strtol): Use prototype definition.
38519
38520         [BZ #17594]
38521         * stdlib/strtol.c (SYM__): New macro.
38522         (SYM__1): Likewise.
38523         (__strtol): Likewise.
38524         (strtol): Rename to __strtol and define as weak alias of
38525         __strtol.  Use libc_hidden_weak.
38526
38527 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38528
38529         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
38530         Use numbered labels in inline assembly.
38531
38532 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38533
38534         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
38535         Add setjmp LIBC_PROBE.
38536         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
38537         Likewise.
38538         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
38539         Add longjmp, longjmp_target LIBC_PROBE.
38540         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
38541         Likewise.
38542
38543 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38544
38545         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
38546         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
38547         to get rid of unused variable warning.
38548
38549 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38550
38551         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
38552         Check for unwind_backtrace ==  NULL only in SHARED case.
38553         (__backchain_backtrace): Compile only in SHARED case.
38554         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
38555         Likewise.
38556         (__backchain_backtrace): Declare as static.
38557
38558 2014-11-12  Roland McGrath  <roland@hack.frob.com>
38559
38560         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
38561         (__libc_multiple_threads_ptr): Variable moved ...
38562         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
38563
38564 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
38565
38566         * conform/GlibcConform.pm: New file.
38567         * conform/conformtest.pl: Use GlibcConform module.
38568         * conform/linknamespace.pl: New file.
38569         * conform/list-header-symbols.pl: Likewise.
38570         * conform/Makefile (linknamespace-symlists-base): New variable.
38571         (linknamespace-symlists-tests): Likewise.
38572         (linknamespace-header-base): Likewise.
38573         (linknamespace-header-tests): Likewise.
38574         (tests-special): Add new tests.
38575         ($(linknamespace-symlists-tests)): New rule.
38576         (linknamespace-libs): New variable.
38577         ($(objpfx)symlist-stdlibs): New rule.
38578         ($(linknamespace-header-tests)): Likewise.
38579         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
38580         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
38581         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
38582         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
38583         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
38584         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
38585         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
38586         (test-xfail-ISO/math.h/linknamespace): Likewise.
38587         (test-xfail-ISO/signal.h/linknamespace): Likewise.
38588         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
38589         (test-xfail-ISO/time.h/linknamespace): Likewise.
38590         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
38591         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
38592         (test-xfail-ISO99/math.h/linknamespace): Likewise.
38593         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
38594         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
38595         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
38596         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
38597         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
38598         (test-xfail-ISO11/math.h/linknamespace): Likewise.
38599         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
38600         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
38601         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
38602         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
38603         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
38604         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
38605         (test-xfail-XPG3/math.h/linknamespace): Likewise.
38606         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
38607         (test-xfail-XPG3/search.h/linknamespace): Likewise.
38608         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
38609         (test-xfail-XPG3/time.h/linknamespace): Likewise.
38610         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
38611         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
38612         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
38613         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
38614         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
38615         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
38616         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
38617         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
38618         (test-xfail-XPG4/math.h/linknamespace): Likewise.
38619         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
38620         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
38621         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
38622         (test-xfail-XPG4/search.h/linknamespace): Likewise.
38623         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
38624         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
38625         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
38626         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
38627         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
38628         (test-xfail-XPG4/time.h/linknamespace): Likewise.
38629         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
38630         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
38631         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
38632         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
38633         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
38634         (test-xfail-POSIX/math.h/linknamespace): Likewise.
38635         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
38636         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
38637         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
38638         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
38639         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
38640         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
38641         (test-xfail-POSIX/time.h/linknamespace): Likewise.
38642         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
38643         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
38644         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
38645         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
38646         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
38647         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
38648         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
38649         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
38650         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
38651         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
38652         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
38653         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
38654         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
38655         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
38656         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
38657         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
38658         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
38659         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
38660         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
38661         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
38662         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
38663         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
38664         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
38665         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
38666         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
38667         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
38668         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
38669         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
38670         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
38671         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
38672         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
38673         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
38674         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
38675         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
38676         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
38677         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
38678         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
38679         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
38680         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
38681         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
38682         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
38683         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
38684         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
38685         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
38686         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
38687         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
38688         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
38689         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
38690         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
38691         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
38692         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
38693         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
38694         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
38695         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
38696         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
38697         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
38698         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
38699         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
38700         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
38701         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
38702         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
38703         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
38704         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
38705         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
38706         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
38707         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
38708         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
38709         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
38710         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
38711         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
38712         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
38713         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
38714         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
38715         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
38716         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
38717         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
38718         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
38719         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
38720         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
38721         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
38722         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
38723         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
38724         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
38725         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
38726         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
38727         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
38728         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
38729         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
38730         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
38731         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
38732         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
38733         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
38734         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
38735         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
38736         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
38737         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
38738         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
38739         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
38740
38741         [BZ #17589]
38742         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
38743         of fgets_unlocked.
38744
38745         [BZ #17585]
38746         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
38747         (memmem): Rename to __memmem and define as weak alias of
38748         __memmem.  Use libc_hidden_weak.
38749         (__memmem): Use libc_hidden_def.
38750         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
38751         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
38752         memmem.
38753
38754         [BZ #17582]
38755         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
38756         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
38757         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
38758         and define as weak alias of __fgets_unlocked.  Use
38759         libc_hidden_weak.
38760         (__fgets_unlocked): Use libc_hidden_def.
38761         * include/stdio.h (__fgets_unlocked): Declare.  Use
38762         libc_hidden_proto.
38763         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
38764         __fgets_unlocked instead of fgets_unlocked.
38765         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
38766         (GET_NPROCS_CONF_PARSER): Likewise.
38767         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
38768         (GET_NPROCS_CONF_PARSER): Likewise.
38769
38770         [BZ #17574]
38771         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
38772         weak alias of __wmemset.  Use libc_hidden_weak.
38773         (__wmemset): Use libc_hidden_def.
38774         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
38775         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
38776         of wmemset.
38777
38778         [BZ #17573]
38779         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
38780         with asm name __mempcpy.
38781         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
38782
38783         [BZ #17572]
38784         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
38785         and define as weak alias of __rawmemchr.
38786         (__rawmemchr): Do not define as strong alias of rawmemchr.
38787
38788         [BZ #17571]
38789         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
38790         alias of __qsort_r.
38791         (qsort): Call __qsort_r instead of qsort_r.
38792         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
38793         (__qsort_r): Declare.  Call libc_hidden_proto.
38794         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
38795         instead of qsort_r.
38796         * nscd/gai.c (__qsort_r): Define to qsort_r.
38797         * posix/tst-rfc3484.c (__qsort_r): Likewise.
38798         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
38799         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
38800
38801         [BZ #17570]
38802         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
38803         define as weak alias of __malloc_info.
38804
38805         [BZ #17584]
38806         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
38807         as weak alias of __rewinddir.  Don't use libc_hidden_def.
38808         (__rewinddir): Use libc_hidden_def.
38809         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
38810         as weak alias of __rewinddir.  Don't use libc_hidden_def.
38811         (__rewinddir): Use libc_hidden_def.
38812         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
38813         weak alias of __rewinddir.  Don't use libc_hidden_def.
38814         (__rewinddir): Use libc_hidden_def.
38815         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
38816         (__rewinddir): Use libc_hidden_proto.
38817         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
38818         rewinddir.
38819         (__getcwd): Use __rewinddir instead of rewinddir.
38820
38821         [BZ #17583]
38822         * libio/fileno.c (fileno): Rename to __fileno and define as weak
38823         alias of __fileno.  Use libc_hidden_weak.
38824         (__fileno): Use libc_hidden_def.
38825         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
38826         * libio/ftello.c (ftello): Rename to __ftello and define as weak
38827         alias of __ftello.
38828         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
38829         __ftello.
38830         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
38831         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
38832         libc_hidden_def.
38833         (fread_unlocked): Don't use libc_hidden_ver.
38834         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
38835         and define as weak alias of __fread_unlocked.  Don't use
38836         libc_hidden_def.
38837         (__fread_unlocked): Use libc_hidden_def.
38838         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
38839         (ftello): Don't use libc_hidden_proto.
38840         (__ftello): Declare.  Use libc_hidden_proto.
38841         (fread_unlocked): Don't use libc_hidden_proto.
38842         (__fread_unlocked): Declare.  Use libc_hidden_proto.
38843         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
38844         and __ftello instead of fileno, fread_unlocked and ftello.
38845
38846 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
38847
38848         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
38849         GOT12.
38850         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
38851         Likewise.
38852         (_dl_start_user): Likewise.
38853         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
38854
38855 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
38856             Siddhesh Poyarekar  <siddhesh@redhat.com>
38857
38858         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
38859         Move argv and envp down instead of moving argc up.
38860         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
38861
38862 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
38863
38864         [BZ #17506]
38865         * test-skeleton.c (main): Return successful if one of
38866         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
38867         * string/tst-strcoll-overflow.c: Define expected status.
38868
38869 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
38870
38871         [BZ #17475]
38872         * locale/iso-639.def: Define Bhili and Tulu language codes.
38873
38874 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
38875
38876         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
38877
38878 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
38879
38880         [BZ #17555]
38881         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
38882
38883 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
38884
38885         * configure.ac: Updated check of minimal required version to
38886         2.22.
38887         * manual/install.texi (Tools for Compilation): Updated version
38888         number.
38889         * configure: Regenerated.
38890         * INSTALL: Likewise.
38891
38892 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
38893
38894         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
38895         __tls_get_addr.
38896
38897 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
38898
38899         * include/sys/wait.h (__libc_waitpid): Remove declaration.
38900         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
38901         (__waitpid): Don't define as alias.  Use libc_hidden_def not
38902         libc_hidden_weak.
38903         (waitpid): Define as alias of __waitpid.
38904         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
38905         __waitpid.
38906         (__waitpid): Don't define as alias.  Use libc_hidden_def not
38907         libc_hidden_weak.
38908         (waitpid): Define as alias of __waitpid.
38909         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
38910         __libc_waitpid alias.
38911         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
38912         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
38913         Likewise.
38914         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
38915         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
38916         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
38917         alias.
38918         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
38919         __waitpid.
38920         (__waitpid): Don't define as alias.  Use libc_hidden_def not
38921         libc_hidden_weak.
38922         (waitpid): Define as alias of __waitpid.
38923
38924 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
38925
38926         * manual/llio.texi: Add comment that write safety has been
38927         fixed in Linux.
38928
38929         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
38930         (localplt-build-dso): Add elf/ld.so.
38931         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
38932         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
38933         and free for ld.so.
38934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
38935         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
38936         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
38937         Likewise.
38938         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
38939         Likewise.
38940         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
38941         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
38942         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
38943         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
38944         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
38945         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
38946         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
38947         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
38948         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
38949         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
38950         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
38951
38952 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
38953
38954         [BZ #14132]
38955         * include/libc-symbols.h (INTUSE): Remove macro.
38956         (INTDEF): Likewise.
38957         (INTVARDEF): Likewise.
38958         (_INTVARDEF): Likewise.
38959         (INTDEF2): Likewise.
38960         (INTVARDEF2): Likewise.
38961         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
38962         rtld_hidden_def instead of INTVARDEF.
38963         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
38964         (_dl_starting_up_internal): Remove declaration.
38965         (_dl_starting_up): Use rtld_hidden_proto.
38966         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
38967         declaration.
38968         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
38969         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
38970         _dl_starting_up.
38971         * elf/dl-writev.h (_dl_writev): Likewise.
38972         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
38973         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
38974         _dl_starting_up_internal.
38975
38976 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38977
38978         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
38979         test-skeleton.c.
38980
38981 2014-11-05  Will Newton  <will.newton@linaro.org>
38982
38983         * benchtests/Makefile: (bench-malloc): Add malloc thread
38984         scalability benchmark.
38985         * benchtests/bench-malloc-threads.c: New file.
38986
38987 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
38988
38989         * sysdeps/aarch64/strchrnul.S: New file.
38990
38991 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38992
38993         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
38994         definition.
38995         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
38996         Likewise.
38997         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
38998         Likewise.
38999         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
39000         Likewise.
39001         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
39002         Likewise.
39003         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
39004         Likewise.
39005
39006 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
39007
39008         * catgets/test-gencat.c: Use test-skeleton.c.
39009         * catgets/tst-catgets.c: Likewise.
39010         * csu/tst-empty.c: Likewise.
39011         * elf/tst-audit2.c: Likewise.
39012         * elf/tst-global1.c: Likewise.
39013         * elf/tst-pathopt.c: Likewise.
39014         * elf/tst-piemod1.c: Likewise.
39015         * elf/tst-tls10.c: Likewise.
39016         * elf/tst-tls11.c: Likewise.
39017         * elf/tst-tls12.c: Likewise.
39018         * gnulib/tst-gcc.c: Likewise.
39019         * iconvdata/tst-e2big.c: Likewise.
39020         * iconvdata/tst-loading.c: Likewise.
39021         * iconv/tst-iconv1.c: Likewise.
39022         * iconv/tst-iconv2.c: Likewise.
39023         * inet/test-inet6_opt.c: Likewise.
39024         * inet/tst-gethnm.c: Likewise.
39025         * inet/tst-network.c: Likewise.
39026         * inet/tst-ntoa.c: Likewise.
39027         * intl/tst-codeset.c: Likewise.
39028         * intl/tst-gettext2.c: Likewise.
39029         * intl/tst-gettext3.c: Likewise.
39030         * intl/tst-ngettext.c: Likewise.
39031         * intl/tst-translit.c: Likewise.
39032         * io/test-stat.c: Likewise.
39033         * libio/test-fmemopen.c: Likewise.
39034         * libio/tst-freopen.c: Likewise.
39035         * libio/tst-sscanf.c: Likewise.
39036         * libio/tst-ungetwc1.c: Likewise.
39037         * libio/tst-ungetwc2.c: Likewise.
39038         * libio/tst-widetext.c: Likewise.
39039         * localedata/tst-ctype.c: Likewise.
39040         * localedata/tst-digits.c: Likewise.
39041         * localedata/tst-leaks.c: Likewise.
39042         * localedata/tst-mbswcs1.c: Likewise.
39043         * localedata/tst-mbswcs2.c: Likewise.
39044         * localedata/tst-mbswcs3.c: Likewise.
39045         * localedata/tst-mbswcs4.c: Likewise.
39046         * localedata/tst-mbswcs5.c: Likewise.
39047         * localedata/tst-setlocale.c: Likewise.
39048         * localedata/tst-trans.c: Likewise.
39049         * localedata/tst-wctype.c: Likewise.
39050         * localedata/tst-xlocale1.c: Likewise.
39051         * login/tst-grantpt.c: Likewise.
39052         * malloc/tst-calloc.c: Likewise.
39053         * malloc/tst-malloc.c: Likewise.
39054         * malloc/tst-mallocstate.c: Likewise.
39055         * malloc/tst-mcheck.c: Likewise.
39056         * malloc/tst-mtrace.c: Likewise.
39057         * malloc/tst-obstack.c: Likewise.
39058         * math/atest-exp2.c: Likewise.
39059         * math/atest-exp.c: Likewise.
39060         * math/atest-sincos.c: Likewise.
39061         * math/test-matherr.c: Likewise.
39062         * math/test-misc.c: Likewise.
39063         * math/test-powl.c: Likewise.
39064         * math/tst-definitions.c: Likewise.
39065         * misc/tst-dirname.c: Likewise.
39066         * misc/tst-efgcvt.c: Likewise.
39067         * misc/tst-fdset.c: Likewise.
39068         * misc/tst-hsearch.c: Likewise.
39069         * misc/tst-mntent2.c: Likewise.
39070         * nptl/tst-sem7.c: Likewise.
39071         * nptl/tst-sem8.c: Likewise.
39072         * nptl/tst-sem9.c: Likewise.
39073         * nss/test-netdb.c: Likewise.
39074         * posix/tst-fnmatch.c: Likewise.
39075         * posix/tst-getlogin.c: Likewise.
39076         * posix/tst-gnuglob.c: Likewise.
39077         * posix/tst-mmap.c: Likewise.
39078         * pwd/tst-getpw.c: Likewise.
39079         * resolv/tst-inet_ntop.c: Likewise.
39080         * rt/tst-timer.c: Likewise.
39081         * stdio-common/test-fseek.c: Likewise.
39082         * stdio-common/test-popen.c: Likewise.
39083         * stdio-common/test-vfprintf.c: Likewise.
39084         * stdio-common/tst-cookie.c: Likewise.
39085         * stdio-common/tst-fileno.c: Likewise.
39086         * stdio-common/tst-gets.c: Likewise.
39087         * stdio-common/tst-obprintf.c: Likewise.
39088         * stdio-common/tst-perror.c: Likewise.
39089         * stdio-common/tst-sprintf2.c: Likewise.
39090         * stdio-common/tst-sprintf3.c: Likewise.
39091         * stdio-common/tst-sprintf.c: Likewise.
39092         * stdio-common/tst-swprintf.c: Likewise.
39093         * stdio-common/tst-tmpnam.c: Likewise.
39094         * stdio-common/tst-unbputc.c: Likewise.
39095         * stdio-common/tst-wc-printf.c: Likewise.
39096         * stdlib/tst-environ.c: Likewise.
39097         * stdlib/tst-fmtmsg.c: Likewise.
39098         * stdlib/tst-limits.c: Likewise.
39099         * stdlib/tst-rand48-2.c: Likewise.
39100         * stdlib/tst-rand48.c: Likewise.
39101         * stdlib/tst-random2.c: Likewise.
39102         * stdlib/tst-random.c: Likewise.
39103         * stdlib/tst-strtol.c: Likewise.
39104         * stdlib/tst-strtoll.c: Likewise.
39105         * stdlib/tst-tls-atexit.c: Likewise.
39106         * stdlib/tst-xpg-basename.c: Likewise.
39107         * string/test-ffs.c: Likewise.
39108         * string/tst-bswap.c: Likewise.
39109         * string/tst-inlcall.c: Likewise.
39110         * string/tst-strtok.c: Likewise.
39111         * string/tst-strxfrm.c: Likewise.
39112         * sysdeps/x86_64/tst-audit10.c: Likewise.
39113         * sysdeps/x86_64/tst-audit3.c: Likewise.
39114         * sysdeps/x86_64/tst-audit4.c: Likewise.
39115         * sysdeps/x86_64/tst-audit5.c: Likewise.
39116         * time/tst-ftime_l.c: Likewise.
39117         * time/tst-getdate.c: Likewise.
39118         * time/tst-mktime3.c: Likewise.
39119         * time/tst-mktime.c: Likewise.
39120         * time/tst-posixtz.c: Likewise.
39121         * time/tst-strptime2.c: Likewise.
39122         * time/tst-strptime3.c: Likewise.
39123         * wcsmbs/tst-btowc.c: Likewise.
39124         * wcsmbs/tst-mbrtowc.c: Likewise.
39125         * wcsmbs/tst-mbsrtowcs.c: Likewise.
39126         * wcsmbs/tst-wchar-h.c: Likewise.
39127         * wcsmbs/tst-wcpncpy.c: Likewise.
39128         * wcsmbs/tst-wcrtomb.c: Likewise.
39129         * wcsmbs/tst-wcsnlen.c: Likewise.
39130         * wcsmbs/tst-wcstof.c: Likewise.
39131
39132 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
39133
39134         [BZ #14132]
39135         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
39136         INTDEF.
39137         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
39138         declaration.
39139         (_dl_mcount): Use rtld_hidden_proto.
39140         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
39141         _dl_mcount.
39142         * elf/rtld.c (_rtld_global_ro): Likewise.
39143
39144         [BZ #14132]
39145         * elf/dl-init.c (_dl_init): Don't use INTDEF.
39146         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
39147         of _dl_init_internal.
39148         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
39149         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
39150         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
39151         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
39152         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
39153         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
39154         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
39155         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
39156         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
39157         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
39158         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
39159         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
39160         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
39161         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
39162         * sysdeps/tile/dl-start.S (_start): Likewise.
39163         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
39164         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
39165
39166         [BZ #14132]
39167         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
39168         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
39169         (rtld_progname): Make macro definition unconditional.
39170         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
39171         INTDEF.
39172         (dlmopen_doit): Do not use INTUSE with _dl_argv.
39173         (dl_main): Likewise.
39174         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
39175         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
39176         instead of _dl_argv_internal.
39177         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
39178         __GI__dl_argv instead of INTUSE(_dl_argv).
39179         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
39180         __GI__dl_argv instead of _dl_argv_internal.
39181
39182         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
39183         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
39184         macro.
39185         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
39186         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
39187         New macro.
39188         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
39189         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
39190         macro.
39191         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
39192         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
39193
39194 2014-11-04  Andreas Schwab  <schwab@suse.de>
39195
39196         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
39197
39198 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39199
39200         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
39201         mtvsrd instruction in binary form.
39202
39203 2014-11-03  Andreas Schwab  <schwab@suse.de>
39204
39205         [BZ #17522]
39206         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
39207         for less than MB_LEN_MAX use a local buffer of that size.
39208         * libio/tst-fputws.c: New file.
39209         * libio/Makefile (tests): Add tst-fputws.
39210
39211 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
39212
39213         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
39214         the size of the fpu_fr.fpu_dregs[] array.
39215
39216 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
39217
39218         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
39219         (__nanosleep): Do not define as alias.
39220         (nanosleep): Define as alias of __nanosleep.
39221         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
39222         __libc_nanosleep name.
39223
39224 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
39225
39226         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
39227         install.texi in comment.
39228
39229 2014-10-31  Torvald Riegel  <triegel@redhat.com>
39230
39231         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
39232         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
39233         ... add here and use lwsync or sync ...
39234         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
39235         ... and add here using lwsync.
39236
39237 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
39238
39239         * elf/dl-machine-reject-phdr.h: New file.
39240         * elf/dl-load.c: #include that.
39241         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
39242         if that returned true.
39243
39244 2014-10-31  Roland McGrath  <roland@hack.frob.com>
39245
39246         [BZ #17496]
39247         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
39248         gen-as-const-headers chunk.  Add a big scare comment after the last
39249         safe place to touch before-compile.
39250
39251 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
39252
39253         * manual/install.texi (Tools for Compilation): Update autoconf
39254         version requirements.
39255         * INSTALL: Regenerated.
39256
39257         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
39258         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
39259         (__libc_pselect): Likewise.
39260
39261         [BZ #14138]
39262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
39263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
39264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
39265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
39266
39267 2014-10-31  Torvald Riegel  <triegel@redhat.com>
39268
39269         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
39270         correct barrier instruction.
39271         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
39272         Likewise.
39273         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
39274         Likewise.
39275
39276 2014-10-30  Roland McGrath  <roland@hack.frob.com>
39277
39278         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
39279         after defining inlines.  Instead, just use parens to defeat macro
39280         expansion of __isctype in its declaration.
39281
39282 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
39283
39284         * include/sys/uio.h (__libc_readv): Remove declaration.
39285         (__libc_writev): Likewise.
39286         * misc/readv.c (__libc_readv): Rename to __readv.
39287         (__readv): Do not define as alias.
39288         (readv): Define as alias of __readv.
39289         * misc/writev.c (__libc_writev): Rename to __writev.
39290         (__writev): Do not define as alias.
39291         (writev): Define as alias of __writev.
39292         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
39293         (__readv): Do not define as alias.
39294         (readv): Define unconditionally as alias of __readv.
39295         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
39296         (__writev): Do not define as alias.
39297         (writev): Define unconditionally as alias of __writev.
39298         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
39299         name.
39300         (writev): Do not define __libc_writev name.
39301
39302 2014-10-30  Roland McGrath  <roland@hack.frob.com>
39303
39304         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
39305         (convert_charseq): New function, broken out of ...
39306         (use_from_charmap): ... here.  Call it.
39307         (use_to_charmap): Use convert_charseq and free instead of duplicating
39308         its code with a variable-length stack struct.
39309
39310 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
39311
39312         * include/fcntl.h (__libc_creat): Remove declaration.
39313         * io/creat.c (__libc_creat): Rename to creat.
39314         (creat): Do not define as alias.
39315         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
39316         of creat instead of __libc_creat.
39317         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
39318         to creat.
39319         (creat): Do not define as alias.
39320         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
39321         __libc_creat.
39322         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
39323         __libc_creat name.
39324         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
39325         Likewise.
39326
39327 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
39328
39329         * manual/llio.texi: Add comments discussing why write() may be
39330         considered MT-unsafe on Linux.
39331
39332 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
39333
39334         * dl-load.c (local_strdup): Remove.
39335         (expand_dynamic_string_token): Use __strdup.
39336         (decompose_rpath): Likewise.
39337         (_dl_map_object): Likewise.
39338
39339 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
39340
39341         [BZ #14132]
39342         * sysdeps/generic/unwind-dw2-fde.c
39343         (__register_frame_info_bases_internal): Do not declare.
39344         (__register_frame_info_table_bases_internal): Likewise.
39345         (__deregister_frame_info_bases_internal): Likewise.
39346         (__register_frame_info_bases): Declare and use hidden_proto before
39347         definition.  Use hidden_def instead of INTDEF.
39348         (__register_frame_info_table_bases): Likewise.
39349         (__deregister_frame_info_bases): Likewise.
39350         (__register_frame_info): Do not use INTUSE.
39351         (__register_frame): Likewise.
39352         (__register_frame_info_table): Likewise.
39353         (__register_frame_table): Likewise.
39354         (__deregister_frame_info): Likewise.
39355         (__deregister_frame): Likewise.
39356
39357 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
39358
39359         * sysdeps/unix/sysv/linux/arm/kernel-features.h
39360         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
39361         not undefine.
39362         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
39363         Likewise.
39364         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
39365         Likewise.
39366
39367 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
39368
39369         [BZ #14138]
39370         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
39371         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
39372         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
39373         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
39374         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
39375         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
39376         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
39377         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
39378         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
39379         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
39380         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
39381         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
39382         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
39383         syscall.
39384         (setfsuid): Likewise.
39385         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
39386         (setfsuid): Likewise.
39387         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
39388         (setfsuid): Likewise.
39389         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
39390         Likewise.
39391         (setfsuid): Likewise.
39392         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
39393         (setfsuid): Likewise.
39394         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
39395         Likewise.
39396         (setfsuid): Likewise.
39397
39398 2014-10-27  Andreas Schwab  <schwab@suse.de>
39399
39400         [BZ #17501]
39401         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
39402         check for Slow_SSE4_2 feature bit.
39403         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
39404         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
39405         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
39406         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
39407
39408 2014-10-24  Roland McGrath  <roland@hack.frob.com>
39409
39410         * configure.ac: Validate compiler version with a empirical test of
39411         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
39412         $CC -v output.
39413         * configure: Regenerated.
39414
39415         * inet/htons.c (htons): Prototypify.
39416         * inet/htonl.c (htonl): Likewise.
39417
39418 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39419
39420         * string/strncat.c (strncat): Improve performance by using strlen.
39421
39422 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39423
39424         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
39425
39426 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39427
39428         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
39429         Call libc_fetestexcept_aarch64.
39430
39431 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39432
39433         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
39434         Call libc_feholdexcept_aarch64.
39435
39436 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39437
39438         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
39439         Call get_rounding_mode.
39440
39441 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39442
39443         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
39444         Simplify logic.
39445
39446 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39447
39448         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
39449         Simplify logic.
39450
39451 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
39452
39453         [BZ #14138]
39454         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
39455         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
39456         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
39457         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
39458         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
39459         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
39460         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
39461         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
39462         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
39463         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
39464         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
39465         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
39466         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
39467         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
39468         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
39469         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
39470         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
39471         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
39472         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
39473         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
39474         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
39475         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
39476         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
39477         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
39478         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
39479         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
39480         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
39481         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
39482         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
39483         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
39484         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
39485         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
39486         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
39487         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
39488         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
39489         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
39490         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
39491         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
39492         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
39493         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
39494         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
39495         syscall.
39496         (geteuid): Likewise.
39497         (getgid): Likewise.
39498         (getuid): Likewise.
39499         (getresgid): Likewise.
39500         (getresuid): Likewise.
39501         (getgroups): Likewise.
39502         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
39503         (geteuid): Likewise.
39504         (getgid): Likewise.
39505         (getuid): Likewise.
39506         (getresgid): Likewise.
39507         (getresuid): Likewise.
39508         (getgroups): Likewise.
39509         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
39510         (geteuid): Likewise.
39511         (getgid): Likewise.
39512         (getuid): Likewise.
39513         (getresgid): Likewise.
39514         (getresuid): Likewise.
39515         (getgroups): Likewise.
39516         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
39517         Likewise.
39518         (geteuid): Likewise.
39519         (getgid): Likewise.
39520         (getuid): Likewise.
39521         (getresgid): Likewise.
39522         (getresuid): Likewise.
39523         (getgroups): Likewise.
39524         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
39525         (geteuid): Likewise.
39526         (getgid): Likewise.
39527         (getuid): Likewise.
39528         (getresgid): Likewise.
39529         (getresuid): Likewise.
39530         (getgroups): Likewise.
39531         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
39532         Likewise.
39533         (geteuid): Likewise.
39534         (getgid): Likewise.
39535         (getuid): Likewise.
39536         (getgroups): Likewise.
39537
39538         [BZ #14138]
39539         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
39540         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
39541         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
39542         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
39543         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
39544         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
39545         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
39546         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
39547         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
39548         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
39549         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
39550         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
39551         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
39552         __chown.
39553         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
39554         (lchown): Likewise.
39555         (fchown): Likewise.
39556         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
39557         Likewise.
39558         (lchown): Likewise.
39559         (fchown): Likewise.
39560         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
39561         (lchown): Likewise.
39562         (fchown): Likewise.
39563         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
39564         Likewise.
39565         (lchown): Likewise.
39566         (fchown): Likewise.
39567
39568 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39569
39570         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
39571         Simplify logic.
39572
39573 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39574
39575         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
39576         Cleanup logic.
39577
39578 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39579
39580         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
39581         Remove unused include.
39582
39583 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39584
39585         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
39586         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
39587         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
39588         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
39589
39590 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
39591             Helge Deller <deller@gmx.de>
39592
39593         [BZ #17508]
39594         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
39595         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
39596         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
39597
39598 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
39599
39600         [BZ #14132]
39601         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
39602         Remove macro definition.
39603         (__ashrdi3_v_glibc20): Likewise.
39604         (__lshrdi3_v_glibc20): Likewise.
39605         (__cmpdi2_v_glibc20): Likewise.
39606         (__ucmpdi2_v_glibc20): Likewise.
39607         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
39608         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39609         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39610         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39611         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39612         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
39613
39614 2014-10-22  Roland McGrath  <roland@hack.frob.com>
39615
39616         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
39617         old GNU extension [0] syntax.
39618         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
39619         alloca rather than an array member with variable length.
39620         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
39621         * nscd/nscd.c (invalidate_db): New function, broken out of ...
39622         (parse_opt): ... here.  Likewise use alloca there.
39623         Validate the -i argument before checking for rootness.
39624         (send_shutdown): New function, broken out of ...
39625         (parse_opt): ... here.
39626
39627 2014-10-22  Roland McGrath  <roland@hack.frob.com>
39628
39629         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
39630         macro to get at the _rt_local_ro field.
39631         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
39632         ([PIC] case) or _dl_hwcap ([!PIC] case).
39633         * sysdeps/arm/setjmp.S: Likewise.
39634
39635         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
39636         * sysdeps/arm/configure.ac: New check to define it.
39637         * sysdeps/arm/configure: Regenerated.
39638         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
39639         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
39640         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
39641         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
39642         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
39643         Use move/movt pair instead of a load.
39644         (LDST_GLOBAL): Macro removed.
39645         (LDR_GLOBAL): New macro replaces it.
39646         (LDR_HIDDEN): New macro.
39647         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
39648         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
39649
39650         * setjmp/tst-setjmp-static.c: New file.
39651         * setjmp/Makefile (tests): Add it.
39652         (tests-static): New variable.
39653
39654 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
39655
39656         [BZ #17485]
39657         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
39658
39659 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
39660
39661         [BZ #14132]
39662         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
39663
39664 2014-10-21  Roland McGrath  <roland@hack.frob.com>
39665
39666         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
39667
39668 2014-10-20  Roland McGrath  <roland@hack.frob.com>
39669
39670         * io/fts.c (dirent_not_directory): New function.
39671         (fts_build): Call it.
39672
39673 2014-10-20  Roland McGrath  <roland@hack.frob.com>
39674
39675         * nptl/version.c (__nptl_main): Use normal __write rather than
39676         INTERNAL_SYSCALL.
39677         (banner): Update copyright years.
39678
39679         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
39680         gettimeofday.
39681         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
39682         * nptl/pthread_cond_timedwait.c: Likewise.
39683         * nptl/pthread_mutex_timedlock.c: Likewise.
39684         * nptl/sem_timedwait.c: Likewise.
39685
39686         * sysdeps/nptl/bits/libc-lock.h
39687         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
39688         (__libc_lock_init_recursive): Return void, not 0.
39689         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
39690         (__libc_rwlock_init): Likewise.
39691         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
39692
39693 2014-10-20  Torvald Riegel  <triegel@redhat.com>
39694
39695         [BZ #15215]
39696         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
39697         (__pthread_once_slow): ... here.
39698         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
39699         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
39700
39701 2014-10-20  Torvald Riegel  <triegel@redhat.com>
39702
39703         [BZ #15215]
39704         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
39705         __PTHREAD_ONCE_FORK_GEN_INCR): New.
39706         * sysdeps/nptl/fork.c (__libc_fork): Use them.
39707         * nptl/pthread_once.c (__pthread_once): Likewise.
39708         Update comments.
39709
39710 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
39711
39712         [BZ #14138]
39713         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
39714         name.
39715         (writev): Use __libc_writev as strong name.
39716         * sysdeps/unix/sysv/linux/readv.c: Remove file.
39717         * sysdeps/unix/sysv/linux/writev.c: Likewise.
39718
39719 2014-10-17  Roland McGrath  <roland@hack.frob.com>
39720
39721         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
39722
39723         * sysdeps/i386/nptl/tls.h
39724         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
39725         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
39726         New macros.
39727         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
39728         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
39729         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
39730         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
39731         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
39732         Call CHECK_THREAD_SYSINFO instead of doing an assert.
39733
39734         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
39735         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
39736         on [__NR_futex].
39737         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
39738         broken out of ...
39739         (__pthread_mutex_init): ... here.  Call it.
39740         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
39741         Conditionalize PI cases on [__NR_futex].
39742         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
39743         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
39744         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
39745
39746         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
39747         conditional on [SIGSETXID].
39748         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
39749         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
39750         is defined.  Likewise for SIGSETXID.
39751         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
39752         Conditionalize definitions on [SIGSETXID].
39753         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
39754         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
39755         unblocking on [SIGCANCEL].
39756
39757         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
39758         [__NR_set_robust_list].
39759
39760 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
39761
39762         * string/strcoll_l.c (get_next_seq): Fix up formatting.
39763         (do_compare): Likewise.
39764
39765 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
39766
39767         [BZ #15884]
39768         * string/strcoll_l.c: Don't include stdio.h.
39769         (coll_seq): Remove members idxarr and rulearr.
39770         (get_next_seq_cached): Remove function.
39771         (get_next_seq): Likewise.
39772         (get_next_seq_nocache): Rename to get_next_seq.
39773         (do_compare): Remove function.
39774         (do_compare_nocache): Rename to do_compare.
39775         (STRCOLL): Remove weight and rules cache.
39776
39777 2014-10-16  Roland McGrath  <roland@hack.frob.com>
39778
39779         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
39780         * sysdeps/arm/sfp-machine.h: ... to here.
39781         * sysdeps/arm/Implies: Remove arm/soft-fp.
39782
39783 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
39784
39785         * conform/data/sys/utsname.h-data (*_t): Allow.
39786         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
39787         [POSIX] (WEXITED): Do not expect constant.
39788         [POSIX] (WSTOPPED): Likewise.
39789         [POSIX] (WNOHANG): Likewise.
39790         [POSIX] (WNOWAIT): Likewise.
39791         [POSIX] (siginfo_t): Do not expect type or elements.
39792         [POSIX] (pid_t): Do not expect type.
39793         [POSIX] (signal.h): Do not allow header.
39794         [POSIX] (sys/resource.h): Likewise.
39795         [POSIX] (si_*): Do not allow pattern.
39796         [POSIX] (W*): Likewise.
39797         [POSIX] (P_*): Likewise.
39798         [POSIX] (BUS_*): Likewise.
39799         [POSIX] (CLD_*): Likewise.
39800         [POSIX] (FPE_*): Likewise.
39801         [POSIX] (ILL_*): Likewise.
39802         [POSIX] (POLL_*): Likewise.
39803         [POSIX] (SEGV_*): Likewise.
39804         [POSIX] (SI_*): Likewise.
39805         [POSIX] (TRAP_*): Likewise.
39806         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
39807         variable.
39808
39809 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
39810
39811         [BZ #12926]
39812         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
39813         infinite loop when __recvmsg returns 0.
39814
39815 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
39816
39817         * CANCEL-FCT-WAIVE: Remove file.
39818         * CANCEL-FILE-WAIVE: Likewise.
39819
39820         [BZ #14132]
39821         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
39822         instead of INTVARDEF.
39823         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
39824         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
39825         rtld_hidden_data_def instead of INTVARDEF.
39826         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
39827         * elf/dl-deps.c (expand_dst): Likewise.
39828         * elf/dl-load.c (_dl_dst_count): Likewise.
39829         (_dl_dst_substitute): Likewise.
39830         (decompose_rpath): Likewise.
39831         (_dl_init_paths): Likewise.
39832         (open_path): Likewise.
39833         (_dl_map_object): Likewise.
39834         * elf/rtld.c (dl_main): Likewise.
39835         (process_dl_audit): Likewise.
39836         (process_envvars): Likewise.
39837         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
39838         Remove declaration.
39839         (__libc_enable_secure): Use rtld_hidden_proto.
39840
39841 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
39842
39843         * elf/dl-load.c
39844         (add_path): New function broken out of _dl_rtld_di_serinfo.
39845         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
39846
39847 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
39848
39849         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
39850         parentheses around macro arguments.
39851         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
39852         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
39853         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
39854         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
39855         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
39856         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
39857         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
39858         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
39859         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
39860         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
39861         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
39862         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
39863         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
39864         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
39865         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
39866         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
39867         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
39868         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
39869         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
39870         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
39871         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
39872         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
39873         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
39874         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
39875         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
39876         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
39877         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
39878         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
39879         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
39880         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
39881         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
39882         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
39883         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
39884         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
39885         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
39886         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
39887         Likewise.
39888         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
39889         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
39890         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
39891         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
39892         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
39893         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
39894         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
39895         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
39896         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
39897         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
39898         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
39899         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
39900         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
39901         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
39902         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
39903         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
39904         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
39905         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
39906         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
39907         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
39908         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
39909         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
39910         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
39911         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
39912         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
39913         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
39914         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
39915         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
39916         (_FP_FRAC_SRS_1): Likewise.
39917         (_FP_FRAC_CLZ_1): Likewise.
39918         (_FP_MUL_MEAT_1_imm): Likewise.
39919         (_FP_MUL_MEAT_1_wide): Likewise.
39920         (_FP_MUL_MEAT_1_hard): Likewise.
39921         (_FP_SQRT_MEAT_1): Likewise.
39922         (_FP_FRAC_ASSEMBLE_1): Likewise.
39923         (_FP_FRAC_DISASSEMBLE_1): Likewise.
39924         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
39925         (__FP_CLZ_2): Likewise.
39926         (_FP_MUL_MEAT_2_wide): Likewise.
39927         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
39928         (_FP_MUL_MEAT_2_gmp): Likewise.
39929         (_FP_MUL_MEAT_2_120_240_double): Likewise.
39930         (_FP_SQRT_MEAT_2): Likewise.
39931         (_FP_FRAC_ASSEMBLE_2): Likewise.
39932         (_FP_FRAC_DISASSEMBLE_2): Likewise.
39933         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
39934         (_FP_FRAC_CLZ_4): Likewise.
39935         (_FP_MUL_MEAT_4_wide): Likewise.
39936         (_FP_MUL_MEAT_4_gmp): Likewise.
39937         (_FP_SQRT_MEAT_4): Likewise.
39938         (_FP_FRAC_ASSEMBLE_4): Likewise.
39939         (_FP_FRAC_DISASSEMBLE_4): Likewise.
39940         * soft-fp/op-common.h (_FP_CMP): Likewise.
39941         (_FP_CMP_EQ): Likewise.
39942         (_FP_CMP_UNORD): Likewise.
39943         (_FP_TO_INT): Likewise.
39944         (_FP_FROM_INT): Likewise.
39945         [!__FP_CLZ] (__FP_CLZ): Likewise.
39946         (_FP_DIV_HELP_imm): Likewise.
39947         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
39948         Likewise.
39949         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
39950         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
39951         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
39952         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
39953         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
39954         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
39955         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
39956         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
39957         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
39958         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
39959         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
39960         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
39961         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
39962         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
39963         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
39964         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
39965         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
39966         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
39967         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
39968         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
39969         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
39970         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
39971         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
39972         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
39973         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
39974         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
39975         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
39976         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
39977         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
39978         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
39979         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
39980         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
39981         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
39982         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
39983         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
39984         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
39985         (FP_UNPACK_RAW_SP): Likewise.
39986         (FP_PACK_RAW_S): Likewise.
39987         (FP_PACK_RAW_SP): Likewise.
39988         (FP_UNPACK_S): Likewise.
39989         (FP_UNPACK_SP): Likewise.
39990         (FP_UNPACK_SEMIRAW_S): Likewise.
39991         (FP_UNPACK_SEMIRAW_SP): Likewise.
39992         (FP_PACK_S): Likewise.
39993         (FP_PACK_SP): Likewise.
39994         (FP_PACK_SEMIRAW_S): Likewise.
39995         (FP_PACK_SEMIRAW_SP): Likewise.
39996         (_FP_SQRT_MEAT_S): Likewise.
39997         (FP_CMP_S): Likewise.
39998         (FP_CMP_EQ_S): Likewise.
39999         (FP_CMP_UNORD_S): Likewise.
40000         (FP_TO_INT_S): Likewise.
40001         (FP_FROM_INT_S): Likewise.
40002
40003         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
40004
40005         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
40006         (FP_EX_INVALID_IMZ): Likewise.
40007         (FP_EX_INVALID_IMZ_FMA): Likewise.
40008         (FP_EX_INVALID_ISI): Likewise.
40009         (FP_EX_INVALID_ZDZ): Likewise.
40010         (FP_EX_INVALID_IDI): Likewise.
40011         (FP_EX_INVALID_SQRT): Likewise.
40012         (FP_EX_INVALID_CVI): Likewise.
40013         (FP_EX_INVALID_VC): Likewise.
40014         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
40015         "invalid" exceptions.
40016         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
40017         (_FP_ADD_INTERNAL): Likewise.
40018         (_FP_MUL): Likewise.
40019         (_FP_FMA): Likewise.
40020         (_FP_DIV): Likewise.
40021         (_FP_CMP_CHECK_NAN): Likewise.
40022         (_FP_SQRT): Likewise.
40023         (_FP_TO_INT): Likewise.
40024         (FP_EXTEND): Likewise.
40025
40026 2014-10-09  Allan McRae  <allan@archlinux.org>
40027
40028         * po/fr.po: Update French translation from translation project.
40029
40030 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
40031
40032         [BZ #14132]
40033         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
40034         of INTDEF.
40035         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
40036         (__cxa_atexit): Use libc_hidden_proto.
40037         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
40038
40039         [BZ #14132]
40040         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
40041         declaration.
40042         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
40043         [!_ISOMAC] (__iswspace_l_internal): Likewise.
40044         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
40045         [!_ISOMAC] (__iswctype_internal): Likewise.
40046         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
40047         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
40048         alias.
40049         (fcntl): Remove __fcntl_internal alias.
40050         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
40051         __connect_internal alias.
40052         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
40053         Likewise.
40054
40055         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
40056         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
40057         FP_DENORM_ZERO.
40058         (_FP_CHECK_FLUSH_ZERO): New macro.
40059         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
40060         (_FP_CMP): Likewise.
40061         (_FP_CMP_EQ): Likewise.
40062         (_FP_TO_INT): Do not set inexact for subnormal arguments if
40063         FP_DENORM_ZERO.
40064         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
40065         (FP_TRUNC): Likewise.
40066
40067         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
40068         treated as invalid conversion, not as normal exponent.
40069
40070         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
40071         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
40072         (_FP_CMP_EQ): Likewise.
40073         (_FP_CMP_UNORD): Likewise.
40074         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
40075         (FP_CMP_EQ_D): Likewise.
40076         (FP_CMP_UNORD_D): Likewise.
40077         * soft-fp/extended.h (FP_CMP_E): Likewise.
40078         (FP_CMP_EQ_E): Likewise.
40079         (FP_CMP_UNORD_E): Likewise.
40080         * soft-fp/quad.h (FP_CMP_Q): Likewise.
40081         (FP_CMP_EQ_Q): Likewise.
40082         (FP_CMP_UNORD_Q): Likewise.
40083         * soft-fp/single.h (FP_CMP_S): Likewise.
40084         (FP_CMP_EQ_S): Likewise.
40085         (FP_CMP_UNORD_S): Likewise.
40086         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
40087         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
40088         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
40089         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
40090         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
40091         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
40092         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
40093         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
40094         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
40095         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
40096         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
40097         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
40098         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
40099         to FP_CMP_Q.
40100         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
40101         FP_CMP_Q.
40102         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
40103         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
40104         FP_CMP_EQ_Q.
40105         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
40106         FP_CMP_Q.
40107         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
40108         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
40109         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
40110         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
40111         FP_CMP_EQ_Q.
40112         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
40113         FP_CMP_Q.
40114         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
40115         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
40116         FP_CMP_EQ_Q.
40117         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
40118         FP_CMP_Q.
40119         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
40120         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
40121         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
40122         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
40123         FP_CMP_EQ_Q.
40124
40125         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
40126         a subnormal result, set the underflow exception if trapping on
40127         underflow is enabled.
40128         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
40129         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
40130         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
40131         redefine to 0.
40132         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
40133         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
40134         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
40135         * soft-fp/extendxftf2.c (__extendxftf2): Use
40136         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
40137
40138         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
40139         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
40140         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40141         FP_HANDLE_EXCEPTIONS.
40142         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
40143         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40144         FP_HANDLE_EXCEPTIONS.
40145         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
40146         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40147         FP_HANDLE_EXCEPTIONS.
40148         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
40149         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40150         FP_HANDLE_EXCEPTIONS.
40151
40152 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
40153
40154         [BZ #14132]
40155         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
40156         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
40157         use INTUSE.
40158         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
40159         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
40160         Remove alias.
40161         (__adjtimex): Define using libc_hidden_ver.
40162         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
40163         Remove declaration.
40164         (ntp_gettime): Call __adjtimex directly.
40165         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
40166         Remove declaration.
40167         (ntp_gettimex): Call __adjtimex directly.
40168         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
40169         __adjtimex_internal alias.
40170
40171 2014-10-08  Roland McGrath  <roland@hack.frob.com>
40172
40173         [BZ #17460]
40174         * nscd/nscd.c (more_help): Rewrite list of tables collection
40175         using xstrdup and asprintf.
40176
40177         * nscd/nscd_conf.c: Remove local xstrdup declaration.
40178
40179 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40180             Roland McGrath  <roland@hack.frob.com>
40181
40182         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
40183         (do_lookup_unique): ... local function 'enter' here; update callers.
40184
40185 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
40186
40187         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
40188         compat_symbol calls on [SHARED].
40189         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
40190         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
40191         Remove.
40192         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40193         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
40194         (oldsetrlimit): Remove.
40195         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
40197         (lchown): New syscall entry.
40198         (oldsetrlimit): Remove.
40199         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40200         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
40201         (oldsetrlimit): Remove.
40202         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40203
40204         [BZ #14138]
40205         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
40206         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
40207         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
40208         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
40209         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
40210         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
40211         (fchown): Likewise.
40212         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
40213         (fchown): Likewise.
40214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
40215         Likewise.
40216
40217 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40218
40219         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
40220         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
40221         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
40222         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
40223         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
40224         Likewise.
40225         (__old_sem_post): Likewise.
40226
40227 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
40228
40229         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
40230         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
40231         HAVE_CLOCK_GETTIME_VSYSCALL macros.
40232         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
40233         Use INLINE_VSYSCALL macro.
40234         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
40235         __vdso_clock_gettime.
40236         * sysdeps/unix/sysv/linux/tile/init-first.c
40237         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
40238         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
40239         __vdso_clock_gettime.
40240
40241         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
40242         to set up frame more cleanly.
40243
40244         * sysdeps/tile/memcmp.c: New file.
40245
40246         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
40247
40248         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
40249         * sysdeps/tile/tilegx/strcasestr.c: New file.
40250         * sysdeps/tile/tilegx/strnlen.c: New file.
40251         * sysdeps/tile/tilegx/strstr.c: New file.
40252
40253         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
40254
40255 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
40256
40257         * nptl/tst-setuid3.c: Write errors to stdout.
40258
40259 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40260
40261         * elf/dl-deps.c
40262         (preload): New functions broken out of _dl_map_object_deps.
40263         (_dl_map_object_deps):  Remove a nested function. Update call sites.
40264
40265 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
40266
40267         [BZ #14138]
40268         * sysdeps/unix/sysv/linux/execve.c: Remove file.
40269         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
40270
40271 2014-10-01  Steve Ellcey  <sellcey@mips.com>
40272
40273         * sysdeps/mips/strcmp.S: New.
40274
40275 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
40276
40277         [BZ #14138]
40278         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
40279         (linkat): Likewise.
40280         (mkdirat): Likewise.
40281         (readlinkat): Likewise.
40282         (renameat): Likewise.
40283         (symlinkat): Likewise.
40284         (unlinkat): Likewise.
40285         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
40286         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
40287         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
40288         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
40289         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
40290         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
40291         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
40292
40293 2014-09-30  Will Newton  <will.newton@linaro.org>
40294
40295         * math/math.h: Define long double math functions if
40296         _LIBC_TEST is defined.
40297         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
40298
40299         * localedata/Makefile: Move assignment to tests-special
40300         into an ifdef testing run-built-tests.
40301         * timezone/Makefile: Likewise.
40302
40303 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
40304
40305         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
40306         with $(BASH) not $(SHELL).
40307
40308 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
40309             Matthew LeGendre  <legendre1@llnl.gov>
40310
40311         [BZ #17411]
40312         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
40313         l_reloc_result.
40314
40315 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40316
40317         * stdio-common/printf_fp.c
40318         (hack_digit): New function, broken out of ...
40319         (__printf_fp): ... local function here.  Update call sites.
40320         hack_digit now takes an additional parameter that is a pointer
40321         to a struct of the referenced locals.  Those locals moved inside
40322         the struct and references updated.
40323
40324 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
40325
40326         * aclocal.m4: Require autoconf 2.69.
40327         * configure: Regenerated.
40328         * sysdeps/aarch64/configure: Likewise.
40329         * sysdeps/alpha/configure: Likewise.
40330         * sysdeps/arm/armv7/configure: Likewise.
40331         * sysdeps/arm/configure: Likewise.
40332         * sysdeps/ia64/configure: Likewise.
40333         * sysdeps/mach/configure: Likewise.
40334         * sysdeps/mips/configure: Likewise.
40335         * sysdeps/s390/configure: Likewise.
40336         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
40337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
40338
40339         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
40340         file.
40341         * sysdeps/ia64/configure.ac: Likewise.
40342
40343 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
40344
40345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
40346         specify symbol version for ld.so.  Do not include entry for
40347         libpthread.
40348         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
40349         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
40350         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
40351
40352         [BZ #14171]
40353         * Makeconfig [$(build-shared) = yes]
40354         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
40355         makefiles.
40356         [$(build-shared) = yes && $(soversions.mk-done) = t]
40357         ($(common-objpfx)gnu/lib-names.h): Remove rule.
40358         [$(build-shared) = yes && $(soversions.mk-done) = t]
40359         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
40360         to Makerules.
40361         [$(build-shared) = yes && $(soversions.mk-done) = t]
40362         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
40363         here.
40364         [$(build-shared) = yes && $(soversions.mk-done) = t]
40365         (common-generated): Don't append gnu/lib-names.h and
40366         gnu/lib-names.stmp here.
40367         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
40368         (lib-names-h-abi): New variable.
40369         [$(build-shared) = yes && $(soversions.mk-done) = t]
40370         (lib-names-stmp-abi): Likewise.
40371         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40372         abi-variants] (before-compile): Append
40373         $(common-objpfx)$(lib-names-h-abi).
40374         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40375         abi-variants] (common-generated): Append gnu/lib-names.h.
40376         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40377         abi-variants] (install-others-nosubdir): Depend on
40378         $(inst_includedir)/$(lib-names-h-abi).
40379         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40380         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
40381         [$(build-shared) = yes && $(soversions.mk-done) = t]
40382         ($(common-objpfx)$(lib-names-h-abi)): New rule.
40383         [$(build-shared) = yes && $(soversions.mk-done) = t]
40384         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
40385         [$(build-shared) = yes && $(soversions.mk-done) = t]
40386         (common-generated): Append $(lib-names-h-abi) and
40387         $(lib-names-stmp-abi).
40388         * scripts/lib-names.awk: Do not handle multi being set.
40389         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
40390         Remove variable.
40391         (abi-lp64_be-ld-soname): Likewise.
40392         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
40393         Likewise.
40394         (abi-hard-ld-soname): Likewise.
40395         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
40396         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
40397         Remove variable.
40398         (abi-o32_hard-ld-soname): Likewise.
40399         (abi-o32_soft_2008-ld-soname): Likewise.
40400         (abi-o32_hard_2008-ld-soname): Likewise.
40401         (abi-n32_soft-ld-soname): Likewise.
40402         (abi-n32_hard-ld-soname): Likewise.
40403         (abi-n32_soft_2008-ld-soname): Likewise.
40404         (abi-n32_hard_2008-ld-soname): Likewise.
40405         (abi-n64_soft-ld-soname): Likewise.
40406         (abi-n64_hard-ld-soname): Likewise.
40407         (abi-n64_soft_2008-ld-soname): Likewise.
40408         (abi-n64_hard_2008-ld-soname): Likewise.
40409         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
40410         Likewise.
40411         (abi-64-v2-ld-soname): Likewise.
40412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
40413         ld.so entries.
40414         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
40415         variable.
40416         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
40417         entry.
40418         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
40419         variable.
40420         (abi-64-ld-soname): Likewise.
40421         (abi-x32-ld-soname): Likewise.
40422         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
40423         entry.
40424         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
40425
40426 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
40427
40428         [BZ #14138]
40429         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
40430         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
40431         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
40432         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
40433         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
40434         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
40435         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
40436         syscall entry for GLIBC_2.2 symbol version.
40437         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
40438         Likewise.
40439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
40440         (setrlimit): Likewise.
40441         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
40442         Likewise.
40443
40444 2014-09-23  Will Newton  <will.newton@linaro.org>
40445
40446         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
40447         _LINUX_ARM_SYSDEP_H include guard too.
40448         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
40449         define.
40450
40451 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
40452
40453         * sysdeps/unix/sysv/linux/eventfd.c:
40454         Make first argument unsigned.
40455         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
40456         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
40457
40458 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
40459
40460         [BZ #16852]
40461         * socket/recvmmsg.c (recvmmsg): Drop const argument.
40462         * socket/sys/socket.h: Likewise.
40463         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
40464
40465 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40466
40467         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
40468
40469 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
40470
40471         * time/tst-ftime.c: New test.
40472         * time/Makefile (tests): Add tst-ftime.
40473
40474 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
40475
40476         * soft-fp/extended.h: Fix comment formatting.
40477         * soft-fp/op-1.h: Likewise.
40478         * soft-fp/op-2.h: Likewise.
40479         * soft-fp/op-4.h: Likewise.
40480         * soft-fp/op-8.h: Likewise.
40481         * soft-fp/op-common.h: Likewise.
40482         * soft-fp/soft-fp.h: Likewise.
40483
40484         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
40485
40486 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
40487
40488         [BZ #6652]
40489         * Makeconfig (soversions-default-setname): Remove variable.
40490         ($(common-objpfx)soversions.i): Don't pass default_setname to
40491         soversions.awk.
40492         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
40493         oldest_abi to abi-versions.awk.
40494         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
40495         * config.make.in (oldest-abi): Remove variable.
40496         * configure.ac (--enable-oldest-abi): Remove configure option.
40497         * configure: Regenerated.
40498         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
40499         text.
40500         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
40501         * scripts/soversions.awk: Do not handle default_setname variable.
40502         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
40503         variable.
40504         * sysdeps/mach/hurd/configure: Regenerated.
40505         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
40506         variable.
40507         * sysdeps/unix/sysv/linux/configure: Regenerated.
40508
40509 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
40510
40511         * elf/Makefile (CFLAGS-interp.c): Remove.
40512         ($(elf-objpfx)runtime-linker.h): Generate header with linker
40513         path string.
40514         * elf/interp.c: Include generated runtime-linker.h
40515
40516         * Makerules (lib%.so): Don't include $(+interp) in
40517         prerequisites.
40518         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
40519         * dlfcn/eval.c: Remove file.
40520
40521         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
40522         macros.
40523
40524         [BZ #17266]
40525         * misc/sys/cdefs.h: Define __extern_always_inline for clang
40526         4.2 and newer.
40527
40528         [BZ #17370]
40529         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
40530
40531 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
40532             Jakub Jelinek  <jakub@redhat.com>
40533
40534         [BZ #17266]
40535         * libio/stdio.h: Check definition of __fortify_function
40536         instead of __extern_always_inline to include bits/stdio2.h.
40537         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
40538         check if __extern_always_inline is defined.
40539         [__USE_MISC || __USE_XOPEN]: Likewise.
40540         [__USE_ISOC99] Likewise.
40541         * misc/sys/cdefs.h (__fortify_function): Define only if
40542         __extern_always_inline is defined.
40543         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
40544         __extern_always_inline and __extern_inline only for g++-4.3
40545         and newer or a compatible gcc.
40546
40547 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
40548
40549         [BZ #17371]
40550         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
40551         last change to handle zero prefix length.
40552
40553 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
40554
40555         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
40556         _SC_REGEX_VERSION.
40557
40558         * posix/getconf.c (vars): Add _POSIX_IPV6 and
40559         _POSIX_RAW_SOCKETS.
40560
40561 2014-09-13  Allan McRae  <allan@archlinux.org>
40562
40563         * po/ru.po: Update Russian translation from translation project.
40564
40565 2014-09-12  Roland McGrath  <roland@hack.frob.com>
40566
40567         * locale/programs/locale.c (show_locale_vars): Inline local function
40568         into its sole call site.  Clean up some style nits.
40569         (print_item): New function, broken out of ...
40570         (show_info): ... local function here.  Clean up style nits.
40571
40572         * locale/programs/ld-ctype.c (set_one_default): New function, broken
40573         out of ...
40574         (set_class_defaults): ... local function set_default here.
40575         Define set_default as a macro locally to pass constant parameters.
40576         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
40577         rather than a shared local.
40578
40579         * stdlib/rpmatch.c (try): New function, broken out of ...
40580         (rpmatch): ... local function here.  Also, prototypify definition.
40581
40582 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
40583
40584         * scripts/soversions.awk: Do not handle configuration names.
40585         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
40586         vendor and os variables to soversions.awk.
40587         * configure.ac: Do not modify gnu-* host_os.
40588         * configure: Regenerated
40589         * shlib-versions: Remove first column with configuration names.
40590         * nptl/shlib-versions: Likewise.
40591         * nptl_db/shlib-versions: Likewise.
40592         * sysdeps/hppa/shlib-versions: Likewise.
40593         * sysdeps/m68k/shlib-versions: Likewise.
40594         * sysdeps/mach/hurd/shlib-versions: Likewise.
40595         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
40596         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
40597         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
40598         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
40599         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
40600         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
40601         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
40602         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
40603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
40604         Likewise.
40605         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
40606         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
40607         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
40608         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
40609         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
40610         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
40611         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
40612         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
40613
40614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
40615         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
40616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
40617         Regenerated.
40618         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
40619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
40620         Condition symbol version definitions on [HAVE_ELFV2_ABI].
40621
40622         * shlib-versions: Remove OS-specific entries.  Moved to files in
40623         sysdeps.
40624         * sysdeps/mach/hurd/shlib-versions: New file.
40625         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
40626
40627         * nptl/shlib-versions: Remove architecture-specific entries.
40628         Moved to files in sysdeps.
40629         * shlib-versions: Likewise.
40630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
40631         file.
40632         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
40633         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
40634         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
40635         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
40636
40637         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
40638         (UDP_NO_CHECK6_RX): Likewise.
40639
40640 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40641
40642         * sysdeps/posix/sysconf.c (__sysconf): Spell
40643         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
40644
40645 2014-08-12  Florian Weimer  <fweimer@redhat.com>
40646
40647         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
40648         loading.
40649         * iconv/Versions (__gconv_transliterate): Export for use from
40650         gconv modules.
40651         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
40652         (struct __gconv_trans_data, __gconv_trans_fct,
40653         __gconv_trans_context_fct, __gconv_trans_query_fct,
40654         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
40655         definitions.
40656         (struct __gconv_step_data): Remove __trans member.
40657         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
40658         longer hidden.  Remove unused trans_data argument.
40659         * iconv/gconv_int.h (struct trans_struct): Remove definition.
40660         (__gconv_translit_find): Remove declaration.
40661         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
40662         prototype.
40663         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
40664         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
40665         trans_data argument.  Add hidden definition.
40666         (__gconv_translit_find): Remove.
40667         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
40668         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
40669         * iconv/skeleton.c: Remove transliteration initialization.
40670         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
40671         __gconv_step_data initialization.
40672         * libio/iofwide.c (__libio_translit_): Remove.
40673         (_IO_fwide): Adjust struct __gconv_step_data initialization.
40674         * wcsmbs/btowc.c (__btowc): Likewise.
40675         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
40676         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
40677         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
40678         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
40679         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
40680         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
40681         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
40682         * wcsmbs/wctob.c (wctob): Likewise.
40683
40684 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40685
40686         [BZ #16194]
40687         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
40688         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
40689         register usage.
40690         * sysdeps/x86/Makefile: Adjust.
40691
40692 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40693             Roland McGrath  <roland@hack.frob.com>
40694
40695         * locale/weight.h: Add include guard.
40696         (findidx): Make static rather than auto; take new parameters
40697         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
40698         * locale/weightwc.h: Likewise.
40699         * posix/fnmatch_loop.c
40700         (FCT): Change type of EXTRA from int32_t to wint_t.
40701         Don't include either header inside the function.
40702         Call FINDIDX rather than findidx, and pass new arguments.
40703         #undef FINDIDX at the end of the file.
40704         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
40705         FINDIDX before including fnmatch_loop.c for the non-wide version.
40706         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
40707         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
40708         for the wide version.
40709         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
40710         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
40711         Pass new arguments to findidx.
40712         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
40713         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
40714         Don't #include it inside the function.  Pass new arguments to findidx.
40715         * posix/regex_internal.h
40716         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
40717         (re_string_elem_size_at): Don't #include it inside the function.
40718         Pass new arguments to findidx.
40719         * string/strcoll_l.c: #include WEIGHT_H at top level.
40720         (get_next_seq): Don't #include it inside the function.
40721         Pass new arguments to findidx.
40722         (get_next_seq_nocache): Likewise.
40723         * string/strxfrm_l.c: #include WEIGHT_H at top level.
40724         (STRXFRM): Don't #include it inside the function.
40725         Pass new arguments to findidx.
40726
40727 2014-09-11  Florian Weimer  <fweimer@redhat.com>
40728
40729         [BZ #17344]
40730         * malloc/malloc.c (unlink): Turn asserts into a call to
40731         malloc_printerr.
40732
40733 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
40734
40735         [BZ #17370]
40736         * libio/wfileops (do_ftell_wide): Free OUT.
40737
40738 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
40739
40740         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
40741
40742 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
40743
40744         [BZ #17363]
40745         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
40746         group if the current group is empty.
40747
40748 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40749
40750         * benchtests/bench-memset.c (test_main): Add more test from size
40751         from 32 to 512 bytes.
40752         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
40753         Add POWER8 memset object.
40754         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40755         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
40756         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
40757         implementation.
40758         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
40759         Likewise.
40760         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
40761         multiarch POWER8 memset optimization.
40762         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
40763         POWER8 memset optimization.
40764
40765         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
40766         Remove bzero multiarch objects.
40767         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
40768         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
40769         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
40770         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
40771         Remove define.
40772         [__bzero]: Redefine to specific name.
40773         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
40774         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
40775         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
40776         define.
40777         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
40778         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
40779
40780 2014-09-10  Florian Weimer  <fweimer@redhat.com>
40781
40782         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
40783         warnings into errors.
40784
40785         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
40786         __cxa_thread_atexit_impl prototype.
40787
40788 2014-09-09  Steve Ellcey  <sellcey@mips.com>
40789
40790         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
40791         Fix capitalization of error message.
40792
40793 2014-09-09  Steve Ellcey  <sellcey@mips.com>
40794
40795         * sysdeps/mips/preconfigure: Modify ABI tests.
40796
40797 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
40798
40799         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
40800
40801 2014-09-07  Roland McGrath  <roland@hack.frob.com>
40802             Carlos O'Donell  <carlos@systemhalted.org>
40803
40804         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
40805         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
40806         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
40807         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
40808         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
40809         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
40810         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
40811         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
40812         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
40813         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
40814         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
40815         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
40816         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
40817         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
40818         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
40819         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
40820         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
40821         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
40822         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
40823         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
40824         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
40825         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
40826         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
40827         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
40828         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
40829         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
40830         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
40831         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
40832         Deconditionalize the code that was previously under [RESET_PID].
40833         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
40834         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
40835         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
40836         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
40837         include sysdep.h.
40838
40839 2014-09-08  Allan McRae  <allan@archlinux.org>
40840
40841         * version.h (RELEASE): Set to "development".
40842         (VERSION): Set to "2.20.90"
40843
40844 2014-09-07  Allan McRae  <allan@archlinux.org
40845
40846         * version.h (RELEASE): Set to "stable".
40847         (VERSION): Set to "2.20"
40848         * include/features.h (__GLIBC_MINOR__): Set to 20.
40849
40850         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
40851         Liebler.
40852
40853         * po/ko.po: Update Korean translation from translation project.
40854
40855 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
40856
40857         [BZ #17354]
40858         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
40859         macro for handling signed relocations.
40860
40861 2014-09-03  Florian Weimer  <fweimer@redhat.com>
40862
40863         [BZ #17325]
40864         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
40865         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
40866         assert.
40867         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
40868         * iconvdata/ibm935.c (BODY): Likewise.
40869         * iconvdata/ibm937.c (BODY): Likewise.
40870         * iconvdata/ibm939.c (BODY): Likewise.
40871         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
40872         assert.
40873         * iconvdata/Makefile (iconv-test.out): Pass module list to test
40874         script.
40875         * iconvdata/run-iconv-test.sh: New test loop for checking for
40876         decoder crashers.
40877
40878 2014-09-02  Khem Raj  <raj.khem@gmail.com>
40879
40880         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
40881         libm_hidden_ver.
40882
40883 2014-09-01  Allan McRae  <allan@archlinux.org>
40884
40885         * po/eo.po: Update Esperanto translation from translation project.
40886
40887         * po/ca.po: Update Catalan translation from translation project.
40888
40889 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40890
40891         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
40892         __proc_dostop call.
40893
40894 2014-08-27  Mark Wielaard  <mjw@redhat.com>
40895
40896         [BZ #17319]
40897         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
40898         to call set_thread_area instead of hand written asm.
40899         (__NR_set_thread_area): Removed define.
40900         (TLS_FLAG_WRITABLE): Likewise.
40901         (__ASSUME_SET_THREAD_AREA): Remove check.
40902         (TLS_EBX_ARG): Remove define.
40903         (TLS_LOAD_EBX): Likewise.
40904
40905 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40906
40907         Simplify atomicity of socket creation in bind.
40908
40909         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
40910         looking up the name after linking the file.
40911
40912 2014-08-27  Allan McRae  <allan@archlinux.org>
40913
40914         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
40915
40916 2014-08-26  Florian Weimer  <fweimer@redhat.com>
40917
40918         [BZ #17187]
40919         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
40920         trans_compare, open_translit, __gconv_translit_find):
40921         Remove module loading code.
40922
40923 2014-08-26  Allan McRae  <allan@archlinux.org>
40924
40925         * po/vi.po: Update Vietnamese translation from translation project.
40926
40927         * po/uk.po: Update Ukrainian translation from translation project.
40928
40929         * po/fr.po: Update French translation from translation project.
40930
40931         * po/ru.po: Update Russian translation from translation project.
40932
40933         * po/pl.po: Update Polish translation from translation project.
40934
40935         * po/cs.po: Update Czech translation from translation project.
40936
40937         * po/de.po: Update German translation from translation project.
40938
40939         * po/bg.po: Update Bulgarian translation from translation project.
40940
40941         * po/sv.po: Update Sweedish translation from translation project.
40942
40943         * po/nl.po: Update Dutch translation from translation project.
40944
40945         * po/es.po: Update Spanish translation from translation project.
40946
40947 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
40948
40949         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
40950
40951         * catgets/Makefile (CPPFLAGS-gencat): Remove.
40952         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
40953         (CPPFLAGS-iconvconfig): Likewise.
40954         * timezone/Makefile (CPPFLAGS-zic): Likewise.
40955
40956         * include/libc-symbols.h: Remove unnecessary check for
40957         NOT_IN_libc.
40958         * nptl/pthreadP.h: Likewise.
40959         * sysdeps/aarch64/setjmp.S: Likewise.
40960         * sysdeps/alpha/setjmp.S: Likewise.
40961         * sysdeps/arm/sysdep.h: Likewise.
40962         * sysdeps/i386/setjmp.S: Likewise.
40963         * sysdeps/m68k/setjmp.c: Likewise.
40964         * sysdeps/posix/getcwd.c: Likewise.
40965         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
40966         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
40967         * sysdeps/s390/s390-32/setjmp.S: Likewise.
40968         * sysdeps/s390/s390-64/setjmp.S: Likewise.
40969         * sysdeps/sh/sh3/setjmp.S: Likewise.
40970         * sysdeps/sh/sh4/setjmp.S: Likewise.
40971         * sysdeps/unix/alpha/sysdep.h: Likewise.
40972         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
40973         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
40974         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
40975         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
40976         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
40977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
40978         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
40979         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
40980         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
40981         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
40982         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
40983         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
40984         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
40985         * sysdeps/x86_64/setjmp.S: Likewise.
40986
40987 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
40988
40989         [BZ #17263]
40990         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
40991         <stdint.h>.
40992         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
40993         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
40994
40995 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
40996
40997         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
40998
40999         [BZ #17262]
41000         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
41001         and __x86_64__ when disabling x87 inline functions.
41002
41003 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
41004
41005         [BZ #17259]
41006         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
41007         asm statement with __cpuid_count.
41008
41009 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
41010
41011         * configure.ac: Change __ehdr_start code to dereference the struct.
41012         Run readelf on the output to look for relocations.
41013         * configure: Regenerated.
41014
41015 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
41016
41017         [BZ #17261]
41018         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
41019         value to 0.
41020         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
41021
41022 2014-08-12  Roland McGrath  <roland@hack.frob.com>
41023
41024         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
41025
41026 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
41027
41028         [BZ #16892]
41029         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
41030         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
41031
41032 2014-08-12  Sean Anderson  <seanga2@gmail.com>
41033
41034         * malloc/malloc.c: Fix typo in comment.
41035
41036 2014-08-09  Allan McRae  <allan@archlinux.org>
41037
41038         * Regenerate libc.po.
41039
41040 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
41041
41042         * intl/tst-gettext2.sh: Check every lang file for creation.
41043
41044 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
41045
41046         * sysdeps/aarch64/fpu/math_private.h
41047         (libc_feholdsetround_noex_aarch64_ctx): New function.
41048
41049 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
41050
41051         * sysdeps/arm/armv6/strcpy.S (strcpy):
41052         Fix performance issue in misaligned cases.
41053
41054 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41055
41056         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
41057         Move definition from termios.h.
41058         (struct termio): Likewise.
41059         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
41060         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
41061         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
41062         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
41063         Likewise.
41064         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
41065         Move definition to ioctl-types.h
41066         (struct termio): Likewise.
41067         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
41068         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
41069         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
41070         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
41071         Likewise.
41072
41073 2014-08-05  Richard Henderson  <rth@redhat.com>
41074
41075         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
41076         exceptions.
41077         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
41078         Add fraiseexcpt.
41079         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
41080         Use __feraiseexcept.
41081         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
41082         Protect libm symbols with IS_IN_libm.
41083
41084         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
41085
41086 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
41087
41088         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
41089
41090 2014-08-04  Will Newton  <will.newton@linaro.org>
41091
41092         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
41093         file.
41094
41095 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
41096
41097         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
41098         variants for each function.
41099
41100 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41101
41102         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
41103         appended ...
41104         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
41105         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
41106         appended ...
41107         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
41108         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
41109         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
41110         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
41111         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
41112         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
41113         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
41114         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
41115         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
41116         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
41117         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
41118         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
41119         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
41120         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
41121         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
41122         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
41123         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
41124         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
41125         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
41126         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
41127         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
41128         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
41129         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
41130         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
41131         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
41132         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
41133         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
41134         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
41135         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
41136         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
41137         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
41138         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
41139         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
41140         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
41141         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
41142         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
41143         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
41144         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
41145         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
41146         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
41147         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
41148         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
41149         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
41150         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
41151         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
41152         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
41153         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
41154         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
41155         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
41156         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
41157         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
41158         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
41159         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
41160         Update #include.
41161         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
41162         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
41163
41164 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41165
41166         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
41167         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
41168         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
41169         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
41170         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
41171         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
41172
41173 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41174
41175         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
41176         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
41177         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
41178         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
41179
41180 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41181
41182         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
41183         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
41184         (__libc_vfork): Define function under this name.
41185         (__vfork): Define as an alias.
41186         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
41187         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
41188
41189 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41190
41191         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
41192         that was previously under [RESET_PID].
41193         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
41194
41195 2014-08-04  Andreas Schwab  <schwab@suse.de>
41196
41197         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
41198
41199 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
41200
41201         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
41202         (main): Likewise.
41203
41204 2014-08-01  Roland McGrath  <roland@hack.frob.com>
41205
41206         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
41207
41208 2014-08-01  Richard Henderon  <rth@redhat.com>
41209
41210         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
41211         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
41212         typo in exact zero test.
41213         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
41214         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
41215         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
41216
41217 2014-08-01  Roland McGrath  <roland@hack.frob.com>
41218
41219         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
41220         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
41221         * sysdeps/arm/sysdep.h: ... here.
41222         [!__ASSEMBLER__]: Include <stdint.h>.
41223
41224 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
41225
41226         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
41227         (HAVE_WCTYPE_H): Likewise.
41228         (HAVE_ISWCTYPE): Likewise.
41229         (ENABLE_NLS): Likewise.
41230         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
41231         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
41232
41233         * posix/regex_internal.c: Check if DEBUG is defined and is
41234         set.
41235
41236         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
41237         (HAVE_MBSRTOWCS): Likewise.
41238         * posix/fnmatch.c: Include string.h unconditionally.
41239
41240 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
41241
41242         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
41243         reversal.
41244
41245 2014-07-31  Roland McGrath  <roland@hack.frob.com>
41246
41247         * sysdeps/generic/safe-fatal.h: New file.
41248         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
41249         * nptl/forward.c: Include it.
41250         (__pthread_unwind): Use __safe_fatal as default action, rather
41251         than a bogus use of INTERNAL_SYSCALL that could never work.
41252
41253         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
41254         * configure.ac (libc_cv_builtin_trap): New test.
41255         * configure: Regenerated.
41256         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
41257         (ABORT_INSTRUCTION): Define using __builtin_trap.
41258
41259         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
41260         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
41261         * sysdeps/nptl/nptl-signals.h: New file.
41262         * nptl/pthreadP.h: Include <nptl-signals.h>.
41263
41264 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
41265
41266         * sysdeps/s390/s390-64/utf16-utf32-z9.c
41267         (ONE_DIRECTION): Define.
41268         * sysdeps/s390/s390-64/utf8-utf16-z9.c
41269         (ONE_DIRECTION): Define.
41270         * sysdeps/s390/s390-64/utf8-utf32-z9.c
41271         (ONE_DIRECTION): Define.
41272
41273 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
41274
41275         * sysdeps/s390/Makefile: Delete file.
41276         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
41277         * sysdeps/s390/__longjmp.c: Delete file.
41278         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
41279         Remove fields __flags and __reserved.
41280         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
41281         and add versioning.
41282         * sysdeps/s390/rtld-__longjmp.c: Delete file.
41283         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
41284         * sysdeps/s390/rtld-setjmp.S: Likewise.
41285         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
41286         * sysdeps/s390/s390-32/__longjmp.c: ... here.
41287         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
41288         * sysdeps/s390/s390-32/setjmp.S: ... here.
41289         Add versioning.
41290         (__sigsetjmp): Remove setting __flags field.
41291         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
41292         * sysdeps/s390/s390-64/__longjmp.c: ... here.
41293         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
41294         * sysdeps/s390/s390-64/setjmp.S: ... here.
41295         Add versioning.
41296         (__sigsetjmp): Remove setting __flags field.
41297         * sysdeps/s390/setjmp.S: Delete file.
41298         * sysdeps/s390/sigjmp.c: Likewise.
41299         * sysdeps/s390/v1-longjmp.c: Likewise.
41300         * sysdeps/s390/v1-setjmp.h: Likewise.
41301         * sysdeps/s390/v1-sigjmp.c: Likewise.
41302         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
41303         Remove v1-longjmp_chk.
41304         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
41305         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
41306         Include debug/longjmp_chk.c and add versioning.
41307         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
41308         Include nptl/pt-longjmp.c and add versioning.
41309         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
41310         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
41311         Include __longjmp.c.
41312         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
41313         Move to ...
41314         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
41315         (__getcontext): Remove setting __flags field.
41316         Add versioning.
41317         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
41318         Don't restore upper high grps.
41319         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
41320         Likewise.
41321         (__swapcontext): Remove setting uc_flags field.
41322         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
41323         Delete file.
41324         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
41325         Include __longjmp.c.
41326         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
41327         Move to ...
41328         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
41329         (__getcontext): Remove setting __flags field.
41330         Add versioning.
41331         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
41332         (__swapcontext): Remove setting uc_flags field.
41333         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
41334         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
41335         Remove fields uc_high_gprs and __reserved.
41336         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
41337         New file with reverted content.
41338         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
41339         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
41340         Regenerated.
41341         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
41342         Regenerated.
41343
41344 2014-07-31  Andreas Schwab  <schwab@suse.de>
41345
41346         * config.h.in (HAVE_IFUNC): Define to 0.
41347         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
41348         definedness.
41349
41350 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
41351
41352         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41353         memmove-avx-unaligned, memcpy-avx-unaligned and
41354         mempcpy-avx-unaligned.
41355         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
41356         Add tests for AVX memcpy functions.
41357         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
41358         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
41359         memcpy_chk.
41360         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
41361         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
41362         memmove_chk.
41363         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
41364         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
41365         mempcpy_chk.
41366         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
41367         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
41368         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
41369
41370 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41371
41372         [BZ #17213]
41373         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
41374         powerpc64le.
41375
41376 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
41377
41378         [BZ #16839]
41379         * manual/llio.texi: Add section about open file description locks.
41380         * manual/examples/ofdlocks.c: Example of open file description
41381         lock usage.
41382         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
41383         F_OFD_SETLK, and F_OFD_SETLKW.
41384
41385 2014-07-23  Allan McRae  <allan@archlinux.org>
41386
41387         * po/es.po: Update Spanish translation from translation project.
41388
41389 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
41390
41391         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
41392
41393 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
41394
41395         [BZ #17078]
41396         * sysdeps/arm/dl-machine.h (elf_machine_rela)
41397         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
41398         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
41399
41400 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
41401
41402         [BZ #17088]
41403         * math/fesetenv.c (__fesetenv)
41404         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
41405         * math/feupdateenv.c (__feupdateenv)
41406         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
41407
41408         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
41409         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
41410         (__ASSUME_SOCKETCALL): Do not define.
41411
41412         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
41413         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
41414         (__ASSUME_SOCKETCALL): Do not define.
41415         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
41416         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
41417         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41418         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
41419         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41420         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
41421         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41422         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41423
41424         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
41425         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
41426         (__ASSUME_SOCKETCALL): Do not define.
41427         (__ASSUME_IPC64): Define unconditionally.
41428         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
41429         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41430         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
41431         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41432         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
41433         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41434         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
41435         Likewise.
41436
41437         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
41438         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
41439         (__ASSUME_SOCKETCALL): Do not define.
41440         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
41441         (__ASSUME_FUTEX_LOCK_PI): Likewise.
41442         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41443         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
41444         (__ASSUME_REQUEUE_PI): Define unconditionally.
41445         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
41446         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
41447         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41448         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
41449         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41450         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41451
41452         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
41453         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
41454         (__ASSUME_SOCKETCALL): Do not define.
41455         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
41456         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41457         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41458         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
41459         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41460         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41461
41462         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
41463         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
41464         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41465         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
41466         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41467         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
41468         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41469         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
41470         (__ASSUME_GETCPU_SYSCALL): Likewise.
41471
41472         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
41473         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
41474         cases for individual architectures.
41475         * sysdeps/gnu/configure: Regenerated.
41476         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
41477         LIBC_SLIBDIR_RTLDDIR.
41478         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
41479         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
41480         LIBC_SLIBDIR_RTLDDIR.
41481         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
41482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
41483         LIBC_SLIBDIR_RTLDDIR.
41484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
41485         Regenerated.
41486         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
41487         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
41488         file.
41489         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
41490         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
41491         file.
41492         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
41493         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
41494         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
41495         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
41496
41497         * sysdeps/aarch64/shlib-versions: Move to ...
41498         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
41499         * sysdeps/alpha/shlib-versions: Move to ...
41500         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
41501         * sysdeps/arm/shlib-versions: Move to ...
41502         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
41503         * sysdeps/hppa/shlib-versions: Move all contents except for
41504         libgcc_s entry to ...
41505         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
41506         entry from ...
41507         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
41508         * sysdeps/ia64/shlib-versions: Move to ...
41509         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
41510         entry from ...
41511         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
41512         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
41513         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
41514         * sysdeps/microblaze/shlib-versions: Move to ...
41515         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
41516         * sysdeps/mips/shlib-versions: Move to ...
41517         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
41518         entry from ...
41519         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
41520         * sysdeps/tile/shlib-versions: Move to ...
41521         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
41522         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
41523         from ...
41524         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
41525         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
41526         entry from ...
41527         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
41528
41529 2014-07-17  Will Newton  <will.newton@linaro.org>
41530
41531         * sysdeps/arm/bits/atomic.h
41532         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
41533         (__arch_compare_and_exchange_bool_16_int): Likewise.
41534         (__arch_compare_and_exchange_bool_64_int): Likewise.
41535
41536         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
41537         into an #else block.
41538
41539 2014-07-16  Roland McGrath  <roland@hack.frob.com>
41540
41541         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
41542         just Linux configurations.  Test empirically that the compiler sets
41543         __ARM_EABI__, rather than using the tuple to decide.
41544         * sysdeps/arm/preconfigure: Regenerated.
41545         * sysdeps/unix/sysv/linux/arm/configure: File removed.
41546         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
41547         contents appended ...
41548         * sysdeps/arm/configure.ac: ... here.
41549         * sysdeps/arm/configure: Regenerated.
41550
41551 2014-07-15  Roland McGrath  <roland@hack.frob.com>
41552
41553         * nptl/pthread_kill.c: New file.
41554         * nptl/pthread_sigmask.c: New file.
41555         * nptl/pthread_sigqueue.c: New file.
41556
41557         * sysdeps/nptl/lowlevellock.h: New file.
41558         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
41559         * sysdeps/nptl/lowlevellock-futex.h: New file.
41560
41561         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
41562         Remove dead declarations.
41563
41564 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
41565
41566         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
41567         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
41568         config-cflags-avx2.
41569         * sysdeps/x86_64/configure.ac: Likewise.
41570         * sysdeps/i386/configure: Regenerated.
41571         * sysdeps/x86_64/configure: Likewise.
41572         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41573         memset-avx2 only if config-cflags-avx2 is yes.
41574         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
41575         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
41576         defined.
41577         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
41578         only if HAVE_AVX2_SUPPORT is defined.
41579         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
41580
41581 2014-07-14  Alan Modra  <amodra@gmail.com>
41582
41583         [BZ #17153]
41584         * elf/elf.h (DT_PPC64_NUM): Correct value.
41585         * NEWS: Add to fixed bug list.
41586
41587 2014-07-13  Jim Meyering  <meyering@fb.com>
41588
41589         [BZ 17150]
41590         regex: don't deref NULL upon heap allocation failure
41591         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
41592         failure in one more place.
41593         To trigger the segfault, configure grep -with-included-regex,
41594         build it, and run these commands:
41595         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
41596
41597 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
41598
41599         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
41600
41601 2014-07-11  Richard Henderson  <rth@redhat.com>
41602
41603         * sysdeps/aarch64/libm-test-ulps: Update.
41604
41605 2014-07-10  Florian Weimer  <fweimer@redhat.com>
41606
41607         [BZ #17135]
41608         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
41609         * nptl/allocatestack.c (__nptl_setxid_error): New function.
41610         (__nptl_setxid): Initialize error member.  Call
41611         __nptl_setxid_error.
41612         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
41613         * nptl/descr.h (struct xid_command): Add error member.
41614         * nptl/tst-setuid3.c: New file.
41615         * nptl/Makefile (tests): Add it.
41616
41617 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41618
41619         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
41620         New define.
41621         (__lll_trylock): Use __lll_base_trylock.
41622         (__lll_cond_trylock): Likewise.
41623
41624 2014-07-10  Roland McGrath  <roland@hack.frob.com>
41625
41626         * nptl/pthread_create.c (start_thread): Use atomic_or and
41627         lll_futex_wake directly rather than lll_robust_dead.
41628         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
41629         (lll_robust_dead): Macro removed.
41630         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
41631         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
41632         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
41633         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
41634         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
41635         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
41636         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
41637         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
41638         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
41639         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
41640         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
41641         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
41642         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
41643         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
41644         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
41645
41646         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
41647         Use atomic_compare_and_exchange_val_acq directly rather than
41648         lll_robust_trylock.
41649         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
41650         (__lll_robust_trylock, lll_robust_trylock): Removed.
41651         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
41652         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
41653         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
41654         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
41655         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
41656         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
41657         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
41658         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
41659         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
41660         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
41661         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
41662         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
41663         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
41664         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
41665
41666 2014-07-02  Florian Weimer  <fweimer@redhat.com>
41667
41668         * manual/locale.texi (Locale Names): New section documenting
41669         locale name syntax.  Adjust menu and node chaining accordingly.
41670         (Choosing Locale): Reference Locale Names, Locale Categories.
41671         Mention setting LC_ALL=C.  Reflect that name syntax is now
41672         documented.
41673         (Locale Categories): New section title.  Reference Locale Names.
41674         LC_ALL is an environment variable, but not a category.
41675         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
41676         description, now in Locale Name.  Reference that section.  Locale
41677         name syntax is now documented.
41678
41679 2014-07-02  Florian Weimer  <fweimer@redhat.com>
41680
41681         [BZ #17137]
41682         * locale/findlocale.c (name_present, valid_locale_name): New
41683         functions.
41684         (_nl_find_locale): Use the loc_name variable to store name
41685         candidates.  Call name_present and valid_locale_name to check and
41686         validate locale names.  Return an error if the locale is invalid.
41687
41688 2014-07-02  Florian Weimer  <fweimer@redhat.com>
41689
41690         * locale/setlocale.c (setlocale): Use strdup for allocating
41691         composite name copy.
41692
41693 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
41694
41695         Sync up with gnulib.
41696         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
41697         [!_LIBC && ENABLE_NLS]: Include gettext.h.
41698         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
41699         and _GL_ARG_NONNULL.
41700         [USE_UNLOCKED_IO]: Include unlocked-io.h.
41701         [!_LIBC]: Include code for Windows and Cygwin.
41702         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
41703         Include prototype for int strerror_r.
41704         [!_LIBC] (is_open): New function.
41705         (flush_stdout): New function.
41706         (print_errno_message): Use it.
41707         (error): Likewise.
41708         (error_at_line): Likewise.
41709         (error_tail) Add function attribute macros.  Use
41710         __builtin_expect.
41711
41712         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
41713
41714         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
41715
41716         * io/ftw.c: Include sys/param.h unconditionally.
41717
41718         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
41719
41720         [BZ #17125]
41721         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
41722         libc_freeres_ptr.
41723         (freecache): New function to free CACHE on exit.
41724
41725         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
41726         initialization.
41727
41728 2014-07-09  David S. Miller  <davem@davemloft.net>
41729
41730         * sysdeps/sparc/fpu/libm-test-ulps: Update.
41731
41732         * sysdeps/sparc/nptl/internaltypes.h: Delete.
41733         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
41734         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
41735         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
41736         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
41737         * sysdeps/sparc/nptl/sem_init.c: Likewise.
41738         * sysdeps/sparc/nptl/sem_post.c: Likewise.
41739         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
41740         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
41741         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
41742         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
41743         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
41744         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
41745
41746 2014-07-09  Andreas Schwab  <schwab@suse.de>
41747
41748         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
41749         output.
41750         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
41751         (do_test): Likewise.
41752
41753         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
41754
41755 2014-07-09  Will Newton  <will.newton@linaro.org>
41756
41757         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
41758         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
41759         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
41760         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
41761         * sysdeps/hppa/start.S (_start): Likewise.
41762
41763 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
41764
41765         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
41766
41767         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
41768         defined.
41769
41770 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
41771
41772         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
41773         after checking that it is non-NULL.
41774
41775         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
41776
41777 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41778
41779         * sysdeps/powerpc/memmove.c: Remove file.
41780         * sysdeps/powerpc/powerpc32/power4/memcopy.h
41781         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
41782         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
41783         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
41784         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
41785         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
41786         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
41787         string memmove instead of removed powerpc one.
41788
41789         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
41790         [weak_alias]: Fix compiler warning due trailing data.
41791         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
41792         [weak_alias]: Likewise.
41793         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
41794         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
41795
41796         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41797         (__libc_ifunc_impl_list): Add memmove functions.
41798
41799 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
41800
41801         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
41802         Remove code.
41803         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
41804         Likewise.
41805         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
41806         Likewise.
41807         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
41808         Likewise.
41809         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
41810         Likewise.
41811         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
41812         Likewise.
41813         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
41814         Likewise.
41815         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
41816         Likewise.
41817         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
41818         Likewise.
41819         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
41820         Likewise.
41821         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
41822         Likewise.
41823         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
41824         Likewise.
41825         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
41826         Likewise.
41827         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
41828         Likewise.
41829         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
41830         Likewise.
41831         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
41832         Likewise.
41833         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
41834         Likewise.
41835
41836 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41837
41838         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
41839         to avoid alignment traps in non-cacheable memory.
41840         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
41841
41842         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
41843         multiarch objects.
41844         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
41845         file: multiarch power7 memmove.
41846         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
41847         multiarch default memmove.
41848         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
41849         multiarch memove for powerpc32/power4.
41850
41851         * string/bcopy.c: Use full path to include memmove.c.
41852         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
41853         multiarch objects.
41854         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
41855         bcopy for powerpc64.
41856         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
41857         bcopy for powerpc64.
41858         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
41859         and memmove implementations.
41860         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
41861         optimized multiarch memmove for POWER7/powerpc64.
41862         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
41863         default multiarch memmove for powerpc64.
41864         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
41865         multiarch for powerpc64.
41866         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
41867         for POWER7/powerpc64.
41868         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
41869         memmove for POWER7/powerpc64.
41870
41871         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
41872         glibc default one.
41873
41874         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
41875         __ELF_NATIVE_CLASS equal to 64.
41876
41877 2014-07-07  Roland McGrath  <roland@hack.frob.com>
41878
41879         * sysdeps/nptl/lowlevellock.h: File removed.
41880
41881         * NEWS: NPTL is no longer an add-on!
41882         * nptl/internaltypes.h: Moved ...
41883         * sysdeps/nptl/internaltypes.h: ... here.
41884         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
41885         * sysdeps/nptl/fork.c: Likewise.
41886         * sysdeps/nptl/gai_misc.h: Likewise.
41887         * sysdeps/nptl/librt-cancellation.c: Likewise.
41888         * sysdeps/nptl/jmp-unwind.c: Likewise.
41889         * sysdeps/nptl/setxid.h: Likewise.
41890         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
41891         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
41892         * sysdeps/unix/sysv/linux/arm/Implies: New file.
41893         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
41894         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
41895         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
41896         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
41897         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
41898         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
41899         * sysdeps/unix/sysv/linux/mips/Implies: New file.
41900         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
41901         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
41902         * sysdeps/unix/sysv/linux/sh/Implies: New file.
41903         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
41904         * sysdeps/unix/sysv/linux/tile/Implies: New file.
41905         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
41906         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
41907         * nptl/Makeconfig: Moved ...
41908         * sysdeps/nptl/Makeconfig: ... here.
41909         * nptl/configure: File removed.
41910         * nptl/ANNOUNCE: File removed.
41911         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
41912         * sysdeps/unix/sysv/linux/configure: Regenerated.
41913
41914         * nptl/Makefile (routines): Add libc_pthread_init,
41915         libc_multiple_threads, register-atfork and unregister-atfork.
41916         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
41917         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
41918         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
41919         pthread-pi-defines.sym, structsem.sym.
41920         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
41921         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
41922         [$(subdir) = nptl] (tests): Add tst-setgetname.
41923         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
41924         * sysdeps/unix/sysv/linux/sigaction.c: Just include
41925         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
41926         [!LIBC_SIGACTION]: Remove aliases.
41927         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
41928         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
41929         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
41930         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
41931         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
41932         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
41933         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
41934         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
41935         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
41936         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
41937         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
41938         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
41939         __libc_allocate_rtsig_private.
41940         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
41941         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
41942         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
41943         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
41944         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
41945         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
41946         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
41947         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
41948         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
41949         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
41950         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
41951         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
41952         * nptl/internaltypes.h: ... here.
41953         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
41954         * sysdeps/nptl/jmp-unwind.c: ... here.
41955         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
41956         * nptl/libc-lowlevellock.c: ... here.
41957         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
41958         * nptl/libc_multiple_threads.c: ... here.
41959         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
41960         * nptl/libc_pthread_init.c: ... here.
41961         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
41962         * nptl/lowlevelbarrier.sym: ... here.
41963         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
41964         * nptl/lowlevelcond.sym: ... here.
41965         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
41966         * nptl/lowlevellock.c: ... here.
41967         * nptl/lowlevellock.h: Moved ...
41968         * sysdeps/nptl/lowlevellock.h: ... here.
41969         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
41970         * nptl/lowlevelrobustlock.c: ... here.
41971         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
41972         * nptl/lowlevelrobustlock.sym: ... here.
41973         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
41974         * nptl/lowlevelrwlock.sym: ... here.
41975         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
41976         * nptl/pt-fork.c: ... here.
41977         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
41978         * nptl/pthread-pi-defines.sym: ... here.
41979         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
41980         * nptl/pthread_attr_getaffinity.c: ... here.
41981         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
41982         * nptl/pthread_attr_setaffinity.c: ... here.
41983         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
41984         * nptl/pthread_mutex_cond_lock.c: ... here.
41985         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
41986         Update #include.
41987         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
41988         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
41989         * nptl/pthread_once.c: ... here, replacing old file.
41990         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
41991         * nptl/pthread_yield.c: ... here.
41992         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
41993         * nptl/register-atfork.c: ... here.
41994         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
41995         * nptl/sem_post.c: ... here.
41996         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
41997         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
41998         * nptl/sem_timedwait.c: ... here.
41999         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
42000         * nptl/sem_trywait.c: ... here.
42001         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
42002         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
42003         * nptl/sem_wait.c: ... here.
42004         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
42005         * nptl/structsem.sym: ... here.
42006         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
42007         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
42008         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
42009         * nptl/unregister-atfork.c: ... here.
42010         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
42011         * nptl/unwindbuf.sym: ... here.
42012         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
42013         * sysdeps/nptl/fork.c: ... here.
42014         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
42015         * sysdeps/nptl/fork.h: ... here.
42016         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
42017         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
42018         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
42019         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
42020         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
42021         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
42022         * sysdeps/unix/sysv/linux/getpid.c: ... here.
42023         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
42024         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
42025         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
42026         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
42027         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
42028         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
42029         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
42030         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
42031         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
42032         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
42033         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
42034         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
42035         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
42036         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
42037         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
42038         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
42039         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
42040         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
42041         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
42042         * sysdeps/unix/sysv/linux/raise.c: ... here.
42043         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
42044         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
42045         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
42046         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
42047         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
42048         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
42049         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
42050         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
42051         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
42052         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
42053         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
42054         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
42055         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
42056         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
42057         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
42058
42059 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
42060
42061         * sysdeps/generic/memcopy.h: Add comment for
42062         MEMCPY_OK_FOR_FWD_MEMMOVE.
42063
42064 2014-07-04  Will Newton  <will.newton@linaro.org>
42065
42066         * string/memchr.c: Merge from gnulib.
42067         [_LIBC]: Remove conditionals.
42068         (__ptr_t): Remove define.
42069         (LONG_MAX_32_BITS): Likewise.
42070         (LONG_MAX): Likewise.
42071         (MEMCHR): Use ANSI prototype and optimize algorithm.
42072
42073         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
42074
42075 2014-07-03  Roland McGrath  <roland@hack.frob.com>
42076
42077         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
42078         (lll_futex_timed_wait_bitset): Fix syscall argument count.
42079
42080         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
42081         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
42082         in a bare environment with no <stdlib.h> installed.
42083         * sysdeps/nptl/configure: Regenerated.
42084
42085         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
42086
42087         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
42088         AC_EGREP_CPP for kernel header checks, so they only succeed if
42089         including <linux/version.h> actually works right.
42090         * sysdeps/unix/sysv/linux/configure: Regenerated.
42091
42092         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
42093         value so it's not diagnosed as unused.
42094
42095         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
42096         thing) with "ifeq ($(subdir),rt)".
42097
42098 2014-07-03  Richard Henderson  <rth@redhat.com>
42099
42100         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
42101         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
42102         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
42103
42104         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
42105         (math_force_eval): New.
42106
42107         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
42108         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
42109
42110         * sysdeps/alpha/fpu/s_round.c: Remove file.
42111         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
42112
42113         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
42114         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
42115         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
42116         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
42117         (_dl_start, print_statistics): Likewise.
42118         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
42119         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
42120
42121         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42122         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42123         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42124         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42125         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
42126         (HP_SMALL_TIMING_AVAIL): Define.
42127         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42128         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
42129         (HP_SMALL_TIMING_AVAIL): Define.
42130         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42131         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42132
42133         * sysdeps/aarch64/hp-timing.h: New file.
42134
42135         * sysdeps/generic/hp-timing.h: Remove dead comment.
42136         * sysdeps/generic/hp-timing-common.h: New file.
42137         * sysdeps/alpha/hp-timing.h: Include it.
42138         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
42139         * sysdeps/i386/i686/hp-timing.h: Likewise.
42140         * sysdeps/ia64/hp-timing.h: Likewise.
42141         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
42142         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
42143         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
42144         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
42145         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
42146         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
42147         (hp_timing_t): New.
42148
42149         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
42150         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
42151         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
42152         * elf/rtld.c (_dl_start_final): Likewise.
42153         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
42154         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42155         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42156         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42157         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42158         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
42159         (HP_TIMING_DIFF_INIT): Remove.
42160         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42161         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
42162         (HP_TIMING_DIFF_INIT): Remove.
42163         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42164         * sysdeps/i386/i686/hp-timing.c: Remove file.
42165         * sysdeps/x86_64/hp-timing.c: Remove file.
42166         * sysdeps/ia64/hp-timing.c: Remove file.
42167         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
42168         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
42169         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
42170         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
42171
42172         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
42173         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
42174         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
42175         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
42176         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
42177         (HP_TIMING_ACCUM): Remove.
42178         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
42179         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
42180         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
42181
42182         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
42183         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
42184         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
42185         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
42186         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
42187         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
42188         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
42189         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
42190
42191         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
42192
42193 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
42194
42195         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
42196
42197 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42198
42199         Sync up with gettext.
42200         * intl/loadmsgcat.c: Define O_BINARY if not defined.
42201         [_MSC_VER]: Include malloc.h
42202         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
42203         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
42204         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
42205         TEMP_FAILURE_RETRY.  Cast return of alloca.
42206         [!_LIBC] Call gl_rwlock_init.
42207         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
42208
42209 2014-07-02  Roland McGrath  <roland@hack.frob.com>
42210
42211         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
42212         before checking its value.
42213
42214 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42215
42216         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
42217
42218         * debug/memcpy_chk.c: Don't include pagecopy.h.
42219         * debug/mempcpy_chk.c: Likewise.
42220         * string/memcpy.c: Likewise.
42221         * string/memmove.c: Likewise.
42222         * sysdeps/powerpc/memmove.c: Likewise.
42223         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
42224         definition of PAGE_COPY_FWD_MAYBE here...
42225         * sysdeps/generic/pagecopy.h: ... from here.
42226         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
42227
42228 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
42229             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42230
42231         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
42232         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
42233         optimizations.
42234         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
42235         (__libc_ifunc_impl_list): Likewise.
42236         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
42237         multiarch strcat for PPC64.
42238         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
42239         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
42240
42241 2014-07-02  Roland McGrath  <roland@hack.frob.com>
42242
42243         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
42244
42245 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42246
42247         * intl/loadmsgcat.c: Remove declaration of
42248         get_sysdep_segment_value.
42249         (get_sysdep_segment_value): Use ISO C style.
42250         (_nl_load_domain): Use ISO C style.  Get rid of redundant
42251         semicolon.  Fix typo and formatting in comment.
42252         (_nl_unload_domain): Use ISO C style.
42253
42254         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
42255
42256 2014-07-02  Will Newton  <will.newton@linaro.org>
42257
42258         * malloc/obstack.c: Merge from gnulib master.
42259         [HAVE_CONFIG_H]: Remove conditional code.
42260         [!_LIBC]: Include config.h.
42261         [!ELIDE_CODE]: Don't include inttypes.h, include
42262         stdint.h unconditionally.
42263         (print_and_abort): Mark as _Noreturn.
42264         (_obstack_allocated_p): Mark as __attribute_pure__.
42265         (obstack_free): Rename to __obstack_free.
42266         [!__attribute__]: Remove conditional code.
42267         * malloc/obstack.h: Merge from gnulib master.
42268         [__cplusplus]: Move conditional down.
42269         [!__attribute_pure__]: Define __attribute_pure__ here
42270         if it is not already defined.
42271         (_obstack_memory_used): Mark as __attribute_pure__.
42272         [!__obstack_free]: Define as obstack_free.
42273         [__GNUC__]: Remove check for ancient NeXT gcc.
42274
42275 2014-07-02  Will Newton  <will.newton@linaro.org>
42276             Paul Eggert  <eggert@cs.ucla.edu>
42277
42278         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
42279
42280 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42281
42282         * resolv/gethnamaddr.c: Add comment warning that the file is
42283         not maintained.
42284
42285 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
42286
42287         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
42288         entries.
42289
42290         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
42291         entry for aio_cancel and aio_cancel64.
42292         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
42293         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
42294         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
42295         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
42296         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
42297         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
42298         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
42299         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
42300         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
42301         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
42302         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
42303         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
42304         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
42305
42306 2014-07-01  Roland McGrath  <roland@hack.frob.com>
42307
42308         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
42309         * nptl/pthread_mutex_lock.c: Likewise.
42310         * nptl/pthread_mutex_timedlock.c: Likewise.
42311         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
42312
42313 2014-07-01  Richard henderson  <rth@redhat.com>
42314
42315         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
42316         (__isnan, __isnanl): Remove.
42317         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
42318
42319         * sysdeps/alpha/fpu/libm-test-ulps: Update.
42320
42321 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
42322
42323         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
42324
42325 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
42326
42327         * resolv/nss_dns/dns-host.c (getanswer_r)
42328         [MULTI_PTRS_ARE_ALIASES]: Remove code.
42329
42330 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
42331
42332         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
42333         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
42334         undefine.
42335         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
42336         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
42337
42338 2014-07-01  Roland McGrath <roland@hack.frob.com>
42339
42340         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
42341         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
42342
42343         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
42344         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
42345
42346         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
42347         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
42348         ... here.
42349         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
42350         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
42351
42352         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
42353         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
42354         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
42355         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
42356
42357         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
42358         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
42359         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
42360         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
42361         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
42362         Moved ...
42363         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
42364         ... here.
42365         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
42366         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
42367         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
42368         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
42369         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
42370         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
42371         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
42372         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
42373         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
42374         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
42375         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
42376         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
42377         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
42378         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
42379         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
42380         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
42381         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
42382         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
42383         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
42384         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
42385         ... here.
42386         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
42387         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
42388         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
42389         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
42390         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
42391         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
42392         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
42393         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
42394
42395 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
42396
42397         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
42398         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
42399         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
42400         Add sysdep.
42401
42402 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42403
42404         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
42405
42406 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
42407
42408         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
42409         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
42410
42411         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
42412
42413         * sysdeps/arm/libm-test-ulps: Regenerated.
42414
42415 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
42416             Roland McGrath <roland@hack.frob.com>
42417
42418         * test-skeleton.c (signal_handler): Kill the whole process group
42419         before killing the child individually.
42420         (main): Report any failure on `setpgid'.
42421
42422 2014-06-30  Roland McGrath  <roland@hack.frob.com>
42423
42424         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
42425         from _TLS_H to _ARM_NPTL_TLS_H.
42426         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
42427         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
42428
42429 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
42430
42431         [BZ #16539]
42432         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
42433         (__expm1l): Return argument unchanged when small but not
42434         subnormal.
42435
42436         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
42437         include macro name.
42438         (_FP_UNPACK_RAW_1_P): Likewise.
42439         (_FP_PACK_RAW_1): Likewise.
42440         (_FP_PACK_RAW_1_P): Likewise.
42441         (_FP_MUL_MEAT_1_wide): Likewise.
42442         (_FP_MUL_MEAT_DW_1_hard): Likewise.
42443         (_FP_MUL_MEAT_1_hard): Likewise.
42444         (_FP_DIV_MEAT_1_imm): Likewise.
42445         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
42446         (_FP_DIV_MEAT_1_udiv): Likewise.
42447         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
42448         (_FP_UNPACK_RAW_2): Likewise.
42449         (_FP_UNPACK_RAW_2_P): Likewise.
42450         (_FP_PACK_RAW_2): Likewise.
42451         (_FP_PACK_RAW_2_P): Likewise.
42452         (_FP_MUL_MEAT_DW_2_wide): Likewise.
42453         (_FP_MUL_MEAT_2_wide): Likewise.
42454         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
42455         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
42456         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
42457         (_FP_MUL_MEAT_2_gmp): Likewise.
42458         (_FP_DIV_MEAT_2_udiv): Likewise.
42459         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
42460         (_FP_FRAC_SRL_4): Likewise.
42461         (_FP_FRAC_SRST_4): Likewise.
42462         (_FP_FRAC_SRS_4): Likewise.
42463         (_FP_UNPACK_RAW_4): Likewise.
42464         (_FP_UNPACK_RAW_4_P): Likewise.
42465         (_FP_PACK_RAW_4): Likewise.
42466         (_FP_PACK_RAW_4_P): Likewise.
42467         (_FP_MUL_MEAT_DW_4_wide): Likewise.
42468         (_FP_MUL_MEAT_4_wide): Likewise.
42469         (_FP_MUL_MEAT_4_gmp): Likewise.
42470         (umul_ppppmnnn): Likewise.
42471         (_FP_DIV_MEAT_4_udiv): Likewise.
42472         (__FP_FRAC_ADD_4): Likewise.
42473         (__FP_FRAC_SUB_3): Likewise.
42474         (__FP_FRAC_SUB_4): Likewise.
42475         (__FP_FRAC_DEC_3): Likewise.
42476         (__FP_FRAC_DEC_4): Likewise.
42477         (__FP_FRAC_ADDI_4): Likewise.
42478         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
42479         (_FP_FRAC_SRL_8): Likewise.
42480         (_FP_FRAC_SRS_8): Likewise.
42481
42482         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
42483         include macro name.
42484         (FP_UNPACK_RAW_EP): Likewise.
42485         (FP_PACK_RAW_E): Likewise.
42486         (FP_PACK_RAW_EP): Likewise.
42487         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
42488         (_FP_ISSIGNAN): Likewise.
42489         (_FP_ADD_INTERNAL): Likewise.
42490         (_FP_FMA): Likewise.
42491         (_FP_CMP): Likewise.
42492         (_FP_SQRT): Likewise.
42493         (_FP_TO_INT): Likewise.
42494         (_FP_FROM_INT): Likewise.
42495         (FP_EXTEND): Likewise.
42496         (_FP_DIV_MEAT_N_loop): Likewise.
42497
42498 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
42499
42500         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
42501         throughout.
42502
42503 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
42504
42505         [BZ #17097]
42506         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
42507         result with correct sign in case of exponents that produce
42508         overflow except for X very close to 1.
42509
42510 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
42511
42512         mktime: merge #if/#ifdef usage from glibc
42513         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
42514         as that works with both Glibc's and Gnulib's style.
42515         See thread starting at Siddhesh Poyarekar's bug report at:
42516         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
42517
42518 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42519
42520         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
42521         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
42522         * sysdeps/tile/tilegx/memmove.c: Remove file.
42523
42524 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
42525
42526         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
42527         abi-name definition.
42528         * scripts/soversions.awk: Do not handle or generate ABI lines.
42529         * shlib-versions: Remove ABI entries.
42530         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
42531         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
42532
42533 2014-06-27  Roland McGrath  <roland@hack.frob.com>
42534
42535         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
42536         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
42537         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
42538         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
42539         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
42540         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
42541         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
42542         Moved ...
42543         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
42544         ... here.
42545         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
42546         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
42547         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
42548         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
42549         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
42550         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
42551         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
42552         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
42553         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
42554         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
42555         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
42556         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
42557         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
42558         Moved ...
42559         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
42560         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
42561         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
42562         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
42563         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
42564         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
42565         Moved ...
42566         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
42567         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
42568         Moved ...
42569         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
42570         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
42571         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
42572         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
42573         Moved ...
42574         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
42575         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
42576         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
42577         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
42578         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
42579         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
42580         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
42581         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
42582         Moved ...
42583         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
42584         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
42585         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
42586         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
42587         Moved ...
42588         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
42589         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
42590         Moved ...
42591         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
42592         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
42593         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
42594         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
42595         Moved ...
42596         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
42597         ... here.
42598         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
42599         Identical file removed.
42600         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
42601         Moved ...
42602         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
42603         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
42604         Identical file removed.
42605         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
42606         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
42607         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
42608         Moved ...
42609         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
42610         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
42611         Identical file removed.
42612         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
42613         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
42614         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
42615         Identical file removed.
42616         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
42617         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
42618         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
42619         Identical file removed.
42620         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
42621         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
42622         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
42623         Identical file removed.
42624         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
42625         Moved ...
42626         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
42627         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
42628         Identical file removed.
42629         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
42630         Moved ...
42631         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
42632         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
42633         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
42634         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
42635         Identical file removed.
42636         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
42637         Moved ...
42638         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
42639         ... here.
42640         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
42641         Identical file removed.
42642         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
42643         Moved ...
42644         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
42645         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
42646         Identical file removed.
42647         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
42648         Moved ...
42649         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
42650         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
42651         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
42652         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
42653         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
42654         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
42655         Moved ...
42656         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
42657         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
42658         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
42659
42660         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
42661         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
42662         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
42663         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
42664         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
42665
42666 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
42667
42668         [BZ #17092]
42669         * nscd/nscd.c (monitor_child): Return exit status of child
42670         instead of return value from wait syscall.
42671
42672 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
42673
42674         * configure.ac (libc_commonpagesize): Remove variable.
42675         (libc_relro_required): Likewise.
42676         (libc_cv_z_relro): Remove configure test.
42677         * configure: Regenerated.
42678         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
42679         variable.
42680         (libc_relro_required): Likewise.
42681         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
42682         (libc_relro_required): Likewise.
42683         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
42684         (libc_relro_required): Likewise.
42685         * sysdeps/arm/preconfigure: Regenerated.
42686         * sysdeps/ia64/preconfigure: Remove file.
42687         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
42688         variable.
42689         (libc_relro_required): Likewise.
42690
42691         [BZ #16561]
42692         [BZ #16562]
42693         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
42694         (__ieee754_yn): Set FE_TONEAREST mode internally and then
42695         recompute overflowing results in original rounding mode.
42696         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
42697         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
42698         recompute overflowing results in original rounding mode.
42699         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
42700         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
42701         recompute overflowing results in original rounding mode.
42702         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
42703         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
42704         recompute overflowing results in original rounding mode.
42705         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
42706         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
42707         recompute overflowing results in original rounding mode.
42708         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
42709         (libc_feholdsetround_ctx): New macro.
42710         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
42711         * sysdeps/i386/fpu/libm-test-ulps: Update.
42712         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
42713
42714 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
42715
42716         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
42717         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
42718         corresponding .cpsetup call.
42719
42720 2014-06-26  Roland McGrath  <roland@hack.frob.com>
42721
42722         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
42723         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
42724         * sysdeps/arm/Makefile [$(subdir) = csu]
42725         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
42726         (static-only-routines): Add aeabi_read_tp here.
42727         (shared-only-routines): Add libc-aeabi_read_tp here.
42728         (CFLAGS-libc-start.c): Add -fexceptions here.
42729         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
42730         (sysdep_routines, static-only-routines, shared-only-routines):
42731         Don't add to these here.
42732         (CFLAGS-libc-start.c): Likewise.
42733
42734         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
42735         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
42736         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
42737         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
42738         * sysdeps/arm/Makefile [$(subdir) = rt]
42739         (librt-sysdep_routines, librt-shared-only-routines):
42740         Append rt-aeabi_unwind_cpp_pr1 here.
42741         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
42742         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
42743         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
42744         (libpthread-sysdep_routines, libpthread-shared-only-routines):
42745         Append nptl-aeabi_unwind_cpp_pr1 here.
42746         (tests): Filter out tst-cleanupx4 here.
42747         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
42748         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
42749         Don't do those here.
42750
42751 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
42752
42753         * scripts/list-sources.sh: Do not handle ports specially.
42754
42755 2014-06-26  Roland McGrath  <roland@hack.frob.com>
42756
42757         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
42758         * sysdeps/arm/feupdateenv.c: Likewise.
42759
42760         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
42761
42762 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
42763
42764         * manual/texinfo.tex: Update to version 2014-05-05.10 with
42765         trailing whitespace removed.
42766         * scripts/config.guess: Update to version 2014-03-23.
42767         * scripts/config.sub: Update to version 2014-05-01
42768         * scripts/install-sh: Update to version 2013-12-25.23.
42769         * scripts/move-if-change: Update from gnulib.
42770
42771 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
42772
42773         * debug/memmove_chk.c: Remove pagecopy.h include.
42774
42775 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
42776
42777         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
42778         identical to gnulib mktime.
42779
42780 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
42781
42782         * configure.ac: Do not test for machine being rs6000.  Do not test
42783         for powerpc*-*soft.
42784         * configure: Regenerated.
42785
42786         [BZ #11505]
42787         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
42788         test.
42789         * configure: Regenerated.
42790         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
42791         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
42792         Remove configure test.
42793         * sysdeps/arm/configure: Regenerated.
42794         * sysdeps/nptl/configure.ac: Do not check
42795         libc_cv_asm_cfi_directives.
42796         * sysdeps/nptl/configure: Regenerated.
42797         * sysdeps/x86_64/nptl/configure.ac: Remove file.
42798         * sysdeps/x86_64/nptl/configure: Remove generated file.
42799         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
42800         unconditional.
42801         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
42802
42803 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
42804
42805         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
42806         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
42807         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
42808         it is defined.
42809
42810         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
42811         instead of whether it is defined.
42812         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
42813         * sysdeps/hppa/dl-machine.h: Likewise.
42814         * sysdeps/ia64/dl-machine.h: Likewise.
42815         * sysdeps/m68k/dl-machine.h: Likewise.
42816         * sysdeps/microblaze/dl-machine.h: Likewise.
42817         * sysdeps/mips/dl-machine.: Likewise.
42818         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
42819         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
42820         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
42821         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
42822         * sysdeps/sh/dl-machine.h: Likewise.
42823         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
42824         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
42825         * sysdeps/tile/dl-machine.h: Likewise.
42826         * sysdeps/x86_64/dl-machine.h: Likewise.
42827
42828         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
42829         code.
42830         (verify_persistent_db): Likewise.
42831
42832 2014-06-26  Roland McGrath  <roland@hack.frob.com>
42833
42834         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
42835         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
42836         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
42837         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
42838         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
42839         Moved ...
42840         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
42841         ... here.
42842         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
42843         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
42844         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
42845         Identical file removed.
42846         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
42847         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
42848         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
42849         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
42850         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
42851         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
42852         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
42853         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
42854         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
42855         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
42856         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
42857         Moved ...
42858         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
42859         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
42860         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
42861         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
42862         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
42863         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
42864         Moved ...
42865         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
42866         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
42867         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
42868         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
42869         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
42870         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
42871         Identical file removed.
42872         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
42873         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
42874         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
42875         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
42876         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
42877         Moved ...
42878         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
42879         ... here.
42880         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
42881         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
42882         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
42883         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
42884         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
42885         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
42886         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
42887         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
42888         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
42889         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
42890         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
42891         Moved ...
42892         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
42893         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
42894         Moved ...
42895         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
42896         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
42897         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
42898         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
42899         Moved ...
42900         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
42901         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
42902         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
42903
42904         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
42905         folded into ...
42906         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
42907         * sysdeps/unix/sysv/linux/s390/Versions
42908         (libpthread: GLIBC_2.19): New version set.
42909         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
42910         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
42911         (librt: GLIBC_2.3.3): New version set.
42912         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
42913         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
42914         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
42915         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
42916         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
42917         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
42918         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
42919         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
42920         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
42921         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
42922         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
42923         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
42924         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
42925         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
42926         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
42927         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
42928         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
42929         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
42930         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
42931         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
42932         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
42933         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
42934         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
42935         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
42936         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
42937         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
42938         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
42939         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
42940         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
42941         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
42942         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
42943         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
42944         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
42945         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
42946         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
42947         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
42948         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
42949         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
42950         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
42951         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
42952         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
42953         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
42954         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
42955         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
42956         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
42957
42958         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
42959         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
42960         (__libc_vfork): Define the function under this name.
42961         [!NOT_IN_libc] (__vfork): Make this an alias.
42962         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
42963         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
42964         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
42965         (__libc_vfork): Define the function under this name.
42966         [!NOT_IN_libc] (__vfork): Make this an alias.
42967         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
42968         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
42969         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
42970         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
42971         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
42972         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
42973
42974         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
42975         code that was previously under [RESET_PID].
42976         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
42977         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
42978         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
42979
42980         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
42981         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
42982         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
42983         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
42984         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
42985         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
42986         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
42987         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
42988         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
42989         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
42990         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
42991         Moved ...
42992         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
42993         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
42994         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
42995         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
42996         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
42997         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
42998         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
42999         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
43000         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
43001         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
43002         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
43003         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
43004         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
43005         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
43006         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
43007         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
43008         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
43009         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
43010         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
43011         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
43012         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
43013         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
43014         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
43015         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
43016         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
43017         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
43018         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
43019         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
43020         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
43021
43022 2014-06-25  Roland McGrath  <roland@hack.frob.com>
43023
43024         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
43025         that was previously under [RESET_PID].
43026         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
43027
43028 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
43029
43030         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
43031         not undefine and redefine.
43032         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
43033         [O_CLOEXEC]: Make code unconditional.
43034         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
43035         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
43036         <kernel-features.h>.
43037         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
43038         conditional variable definition.
43039         (shm_open) [O_CLOEXEC]: Make code unconditional.
43040         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
43041         code.
43042
43043         * configure.ac (USE_REGPARMS): Don't define here.
43044         * configure: Regenerated.
43045         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
43046         * sysdeps/i386/configure: Regenerated.
43047
43048         * nptl/createthread.c: Don't include kernel-features.h.
43049         * nptl/pthread_cancel.c: Likewise.
43050         * nptl/pthread_condattr_setclock.c: Likewise.
43051         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
43052         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
43053         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
43054         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
43055         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
43056         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
43057         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
43058         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
43059         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
43060         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
43061         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
43062         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
43063         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
43064         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
43065         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
43066         * nscd/gai.c: Likewise.
43067         * nss/nss_db/db-open.c: Likewise.
43068         * sysdeps/generic/ldsodefs.h: Likewise.
43069         * sysdeps/sh/nptl/tls.h: Likewise.
43070         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
43071         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
43072         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
43073         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
43074         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
43075         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
43076         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
43077         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
43078         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
43079         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
43080         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
43081         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
43082         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
43083         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
43084         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
43085         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
43086         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
43087         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
43088         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
43089         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
43090         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
43091         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
43092         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
43093         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
43094         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
43095         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
43096         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
43097         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
43098         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
43099         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
43100         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
43101         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
43102         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
43103         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
43104         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
43105         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
43106         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
43107         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
43108         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
43109         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
43110         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
43111         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
43112         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
43113         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
43114         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
43115         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
43116         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
43117         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
43118         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
43119         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
43120         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
43121         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
43122         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
43123         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
43124         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
43125         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
43126         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
43127         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
43128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
43129         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
43130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
43131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
43132         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
43133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
43134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
43135         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
43136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
43137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
43138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
43139         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
43140         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
43141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
43142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43143         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
43144         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
43145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
43146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
43147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
43148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
43149         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
43150         * sysdeps/unix/sysv/linux/pread.c: Likewise.
43151         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
43152         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
43153         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
43154         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
43155         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
43156         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
43157         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
43158         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
43159         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
43160         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
43161         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
43162         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
43163         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
43164         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
43165         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
43166         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
43167         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
43168         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
43169         * sysdeps/unix/sysv/linux/system.c: Likewise.
43170         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
43171         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
43172         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
43173         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
43174         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
43175         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
43176         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
43177
43178         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
43179         * configure: Regenerated.
43180         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
43181
43182         * configure.ac (base_machine): Do not set specially for particular
43183         machines here.
43184         * configure: Regenerated.
43185         * sysdeps/powerpc/preconfigure: Move machine and base_machine
43186         settings from configure.ac.
43187         * sysdeps/i386/preconfigure: New file.
43188         * sysdeps/s390/preconfigure: Likewise.
43189         * sysdeps/sh/preconfigure: Likewise.
43190         * sysdeps/sparc/preconfigure: Likewise.
43191
43192 2014-06-25  Roland McGrath  <roland@hack.frob.com>
43193
43194         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
43195         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
43196         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
43197         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
43198         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
43199         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
43200         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
43201         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
43202         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
43203         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
43204         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
43205         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
43206         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
43207         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
43208         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
43209         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
43210         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
43211         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
43212         * sysdeps/sparc/sparc64/Makefile: ... appended here.
43213
43214         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
43215         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
43216         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
43217         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
43218         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
43219         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
43220         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
43221         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
43222         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
43223         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
43224         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
43225         * sysdeps/sparc/sparc32/sem_post.c: ... here.
43226         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
43227         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
43228         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
43229         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
43230         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
43231         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
43232         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
43233         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
43234         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
43235         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
43236         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
43237         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
43238         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
43239         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
43240         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
43241         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
43242         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
43243         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
43244         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
43245         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
43246         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
43247         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
43248         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
43249         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
43250         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
43251         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
43252
43253         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
43254         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
43255         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
43256         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
43257         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
43258         Moved ...
43259         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
43260         ... here.
43261         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
43262         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
43263         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
43264         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
43265         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
43266         Moved ...
43267         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
43268         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
43269         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
43270         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
43271         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
43272         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
43273         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
43274         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
43275         Moved ...
43276         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
43277         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
43278         Moved ...
43279         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
43280         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
43281         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
43282         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
43283         Moved ...
43284         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
43285         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
43286         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
43287         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
43288         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
43289         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
43290         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
43291         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
43292         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
43293         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
43294         Moved ...
43295         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
43296         ... here.
43297         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
43298         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
43299         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
43300         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
43301         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
43302         Moved ...
43303         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
43304         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
43305         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
43306         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
43307         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
43308         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
43309         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
43310         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
43311         Moved ...
43312         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
43313         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
43314         Moved ...
43315         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
43316         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
43317         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
43318         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
43319         Moved ...
43320         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
43321         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
43322         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
43323         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
43324         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
43325
43326 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
43327
43328         * timezone/checktab.awk: Update from tzcode 2014e.
43329         * timezone/private.h: Likewise.
43330         * timezone/tzfile.h: Likewise.
43331         * timezone/zdump.c: Likewise.
43332         * timezone/zic.c: Likewise.
43333
43334         * sysdeps/unix/sysv/linux/kernel-features.h
43335         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
43336         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
43337         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
43338         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
43339         Remove conditional code.
43340
43341 2014-06-25  Will Newton  <will.newton@linaro.org>
43342
43343         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
43344         (_dl_arm_cap_flags): Add HWCAP2 values.
43345         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
43346         (_DL_HWCAP_COUNT): Increase to 37.
43347         (_DL_HWCAP_LAST): New define.
43348         (_DL_HWCAP2_LAST): New define.
43349         (_dl_procinfo): Add support for printing
43350         AT_HWCAP2 entries.
43351         (_dl_string_hwcap): Use _dl_hwcap_string.
43352
43353 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43354
43355         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43356
43357 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
43358
43359         * README: Do not mention ports directory.
43360
43361         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
43362         Remove macro.
43363         * sysdeps/unix/sysv/linux/futimes.c: Do not include
43364         <kernel-features.h>.
43365         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
43366         conditional variable definition.
43367         (__futimes): Update comment.
43368         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
43369         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
43370
43371         [BZ #16560]
43372         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
43373         arguments close to 0.
43374         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
43375         Likewise.
43376         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
43377         Likewise.
43378         * math/auto-libm-test-in: Add more tests of exp10.
43379         * math/auto-libm-test-out: Regenerated.
43380         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
43381
43382         * sysdeps/unix/sysv/linux/kernel-features.h
43383         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
43384         * sysdeps/unix/sysv/linux/readv.c: Do not include
43385         <kernel-features.h>.
43386         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
43387         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
43388         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
43389         unconditional.
43390         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
43391         conditional code.
43392         * sysdeps/unix/sysv/linux/writev.c: Do not include
43393         <kernel-features.h>.
43394         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
43395         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
43396         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
43397         unconditional.
43398         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
43399         conditional code.
43400
43401 2014-06-25  Will Newton  <will.newton@linaro.org>
43402
43403         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
43404         comment changes throughout the file.  Remove checks
43405         for HAVE_*_H definitions that are not required.
43406         (__gen_tempname): Call abort if an unknown kind value is
43407         passed.
43408
43409 2014-06-25  Andreas Schwab  <schwab@suse.de>
43410
43411         [BZ #17086]
43412         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
43413         scalbln, scalblnf, scalblnl in libc.
43414
43415 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
43416
43417         [BZ #17086]
43418         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
43419         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
43420         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
43421
43422 2014-06-24  Roland McGrath  <roland@hack.frob.com>
43423
43424         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
43425         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
43426         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
43427         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
43428         Update #include.
43429         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
43430         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
43431         Update #include.
43432         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
43433         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
43434         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
43435         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
43436         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
43437         * sysdeps/x86/bits/pthreadtypes.h: ... here.
43438         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
43439         * sysdeps/x86/bits/semaphore.h: ... here.
43440         * sysdeps/x86/nptl/elide.h: Moved ...
43441         * sysdeps/x86/elide.h: ... here.
43442         * sysdeps/x86_64/nptl/Implies: File removed.
43443         * sysdeps/i386/nptl/Implies: File removed.
43444
43445 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
43446
43447         [BZ #16539]
43448         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
43449         return the argument for normal arguments with exponent below -64.
43450         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
43451         Likewise.
43452         * math/auto-libm-test-in: Add another test of expm1.
43453         * math/auto-libm-test-out: Regenerated.
43454
43455         [BZ #16287]
43456         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
43457         calling __erfcl for arguments at least 16.
43458         * math/auto-libm-test-in: Add more tests of erf.
43459         * math/auto-libm-test-out: Regenerated.
43460
43461         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
43462         individual architectures.
43463         * sysdeps/unix/sysv/linux/configure: Regenerated.
43464         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
43465         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
43466         * sysdeps/unix/sysv/linux/powerpc/configure.ac
43467         (ldd_rewrite_script): Define variable.
43468         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
43469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
43470         file.
43471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
43472         generated file.
43473         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
43474         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
43475         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
43476         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
43477         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
43478         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
43479         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
43480         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
43481
43482 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
43483
43484         [BZ #17084]
43485         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
43486         Rename member __data.d to __data.__elision_data.
43487
43488 2014-06-24  Wilco  <wdijkstr@arm.com>
43489
43490         * NEWS: Add 16918 to fixed bug list.
43491
43492 2014-06-24  Wilco  <wdijkstr@arm.com>
43493
43494         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
43495
43496 2014-06-24  Wilco  <wdijkstr@arm.com>
43497
43498         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
43499         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
43500         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
43501         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
43502         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
43503         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
43504         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
43505         Use _FPU_MASK_RM.
43506
43507 2014-06-24  Wilco  <wdijkstr@arm.com>
43508
43509         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
43510
43511 2014-06-24  Wilco  <wdijkstr@arm.com>
43512
43513         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
43514         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
43515         * sysdeps/arm/fesetround.c (fesetround): Remove space.
43516         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
43517
43518 2014-06-24  Wilco  <wdijkstr@arm.com>
43519
43520         [BZ #16918]
43521         * sysdeps/arm/feupdateenv.c (feupdateenv):
43522         Rewrite to reduce FPSCR accesses and fix return value.
43523
43524 2014-06-24  Wilco  <wdijkstr@arm.com>
43525
43526         * sysdeps/arm/fclrexcpt.c (feclearexcept):
43527         Optimize to avoid unnecessary FPSCR writes.
43528         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
43529         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
43530         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
43531         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
43532
43533 2014-06-24  Wilco  <wdijkstr@arm.com>
43534
43535         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
43536         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
43537         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
43538         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
43539         Call libc_fetestexcept_vfp.
43540         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
43541         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
43542         __SOFTFP__ ifdef so that they can be built for softfp.
43543
43544 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
43545
43546         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
43547         argument type signed char.
43548
43549         * Makerules (check-abi): Dump diff of symlist if the test
43550         fails.
43551
43552 2014-06-23  Roland McGrath  <roland@hack.frob.com>
43553
43554         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
43555         using abort.
43556
43557         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
43558         Remove unused variable ST.
43559
43560 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
43561
43562         [BZ #16354]
43563         [BZ #17061]
43564         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
43565         small arguments before calling __expm1.
43566         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
43567         small arguments before calling __expm1f.
43568         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
43569         small arguments before calling __expm1l.
43570         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
43571         Likewise.
43572         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
43573         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
43574         spurious underflow for some cosh tests.
43575         * math/auto-libm-test-out: Regenerated.
43576         * sysdeps/i386/fpu/libm-test-ulps: Update.
43577
43578         [BZ #17050]
43579         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
43580         (__ieee754_y1): Set errno if return value overflows.
43581         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
43582         (__ieee754_y1f): Set errno if return value overflows.
43583         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
43584         (__ieee754_y1l): Set errno if return value overflows.
43585         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
43586         (__ieee754_y1l): Set errno if return value overflows.
43587         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
43588         * math/auto-libm-test-out: Regenerated.
43589
43590         * math/gen-auto-libm-tests.c: Document use of
43591         ignore-zero-inf-sign.
43592         (input_flag_type): Add value flag_ignore_zero_inf_sign.
43593         (input_flags): Add ignore-zero-inf-sign.
43594         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
43595         * math/gen-libm-test.pl (generate_testfile): Handle
43596         ignore-zero-inf-sign.
43597         * math/auto-libm-test-in: Mark some cpow tests with
43598         ignore-zero-inf-sign and some with xfail-rounding.
43599         * math/auto-libm-test-out: Regenerated.
43600         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
43601         * sysdeps/i386/fpu/libm-test-ulps: Update.
43602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43603
43604         [BZ #16315]
43605         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
43606         overflowing or underflowing operations take place with sign of
43607         result.
43608         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
43609         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
43610         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
43611         (__ieee754_pow): Recompute overflowing and underflowing results in
43612         original rounding mode.
43613         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
43614         (__powl_helper): Allow negative argument X and scale negated value
43615         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
43616         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
43617         overflowing or underflowing operations take place with sign of
43618         result.
43619         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
43620         Include <math.h>.
43621         * math/auto-libm-test-in: Add more tests of pow.
43622         * math/auto-libm-test-out: Regenerated.
43623         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
43624         (pow_tonearest_test_data): Remove.
43625         (pow_test_tonearest): Likewise.
43626         (pow_towardzero_test_data): Likewise.
43627         (pow_test_towardzero): Likewise.
43628         (pow_downward_test_data): Likewise.
43629         (pow_test_downward): Likewise.
43630         (pow_upward_test_data): Likewise.
43631         (pow_test_upward): Likewise.
43632         (main): Don't call removed functions.
43633         * sysdeps/i386/fpu/libm-test-ulps: Update.
43634         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43635
43636 2014-06-23  Roland McGrath  <roland@hack.frob.com>
43637
43638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
43639         Moved ...
43640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
43641         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
43642         Moved ...
43643         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
43644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
43645         Moved ...
43646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
43647         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
43648         Moved ...
43649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
43650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
43651         File removed.
43652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
43653         File removed.
43654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
43655         File removed.
43656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
43657         File removed.
43658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
43659         File removed.
43660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
43661         File removed.
43662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
43663         File removed.
43664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
43665         File removed.
43666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
43667         File removed.
43668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
43669         File removed.
43670         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
43671         File removed.
43672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
43673         File removed.
43674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
43675         Moved ...
43676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
43677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
43678         Moved ...
43679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
43680         ... here.
43681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
43682         Moved ...
43683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
43684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
43685         Moved ...
43686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
43687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
43688         Moved ...
43689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
43690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
43691         Moved ...
43692         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
43693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
43694         Moved ...
43695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
43696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
43697         Moved ...
43698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
43699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
43700         Moved ...
43701         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
43702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
43703         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
43704         ... here.
43705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
43706         Moved ...
43707         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
43708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
43709         Moved ...
43710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
43711         ... here.
43712         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
43713         Moved ...
43714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
43715         ... here.
43716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
43717         Moved ...
43718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
43719         ... here.
43720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
43721         Moved ...
43722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
43723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
43724         Moved ...
43725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
43726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
43727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
43728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
43729         Moved ...
43730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
43731         ... here.
43732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
43733         Moved ...
43734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
43735         ... here.
43736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
43737         Moved ...
43738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
43739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
43740         Moved ...
43741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
43742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
43743         Moved ...
43744         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
43745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
43746         Moved ...
43747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
43748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
43749         Moved ...
43750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
43751         ... here.
43752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
43753         Moved ...
43754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
43755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
43756         Moved ...
43757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
43758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
43759         Moved ...
43760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
43761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
43762         Moved ...
43763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
43764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
43765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
43766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
43767         Moved ...
43768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
43769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
43770         Moved ...
43771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
43772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
43773         Moved ...
43774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
43775         ... here.
43776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
43777         Moved ...
43778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
43779         ... here.
43780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
43781         Moved ...
43782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
43783         ... here.
43784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
43785         Moved ...
43786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
43787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
43788         Moved ...
43789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
43790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
43791         Moved ...
43792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
43793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
43794         Moved ...
43795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
43796         ... here.
43797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
43798         Moved ...
43799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
43800         ... here.
43801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
43802         Moved ...
43803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
43804         ... here.
43805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
43806         Moved ...
43807         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
43808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
43809         Moved ...
43810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
43811
43812 2014-06-23  Will Newton  <will.newton@linaro.org>
43813             Wilco  <wdijkstr@arm.com>
43814
43815         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
43816         implementation.  Include get-rounding-mode.h.
43817         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
43818         [!libc_feholdsetround_noex_ctx]: Define
43819         libc_feholdsetround_noex_ctx.
43820         [!libc_feholdsetround_noexf_ctx]: Define
43821         libc_feholdsetround_noexf_ctx.
43822         [!libc_feholdsetround_noexl_ctx]: Define
43823         libc_feholdsetround_noexl_ctx.
43824         (libc_feholdsetround_ctx): New function.
43825         (libc_feresetround_ctx): New function.
43826         (libc_feholdsetround_noex_ctx): New function.
43827         (libc_feresetround_noex_ctx): New function.
43828
43829 2014-06-23  Roland McGrath  <roland@hack.frob.com>
43830
43831         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
43832         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
43833         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
43834         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
43835         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
43836         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
43837
43838         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
43839         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
43840         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
43841         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
43842         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
43843         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
43844         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
43845         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
43846         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
43847         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
43848         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
43849         Moved ...
43850         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
43851         ... here.
43852         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
43853         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
43854         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
43855         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
43856         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
43857         Moved ...
43858         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
43859         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
43860         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
43861         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
43862         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
43863         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
43864         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
43865         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
43866         Moved ...
43867         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
43868         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
43869         Moved ...
43870         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
43871         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
43872         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
43873         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
43874         Moved ...
43875         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
43876         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
43877         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
43878         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
43879         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
43880         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
43881         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
43882         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
43883         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
43884         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
43885         Moved ...
43886         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
43887         ... here.
43888         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
43889         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
43890         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
43891         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
43892         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
43893         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
43894         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
43895         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
43896         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
43897         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
43898         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
43899         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
43900         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
43901         Moved ...
43902         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
43903         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
43904         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
43905         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
43906         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
43907         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
43908         Moved ...
43909         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
43910         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
43911         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
43912         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
43913         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
43914
43915         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
43916         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
43917         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
43918         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
43919         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
43920         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
43921         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
43922         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
43923         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
43924         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
43925         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
43926         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
43927         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
43928         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
43929         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
43930         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
43931         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
43932         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
43933         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
43934         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
43935         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
43936         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
43937         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
43938         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
43939         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
43940         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
43941         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
43942         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
43943
43944 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
43945
43946         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
43947         (FALLOC_FL_COLLAPSE_RANGE): New macro.
43948         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
43949         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
43950         (IPV6_PMTUDISC_INTERFACE): Likewise.
43951         (IPV6_PMTUDISC_OMIT): Likewise.
43952
43953 2014-06-23  Andreas Schwab  <schwab@suse.de>
43954
43955         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
43956         Remove unused errout label.
43957
43958 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43959
43960         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
43961         macro: hardware supports Vector Crypto instructions.
43962
43963 2014-06-23  Will Newton  <will.newton@linaro.org>
43964
43965         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
43966         rather than __builtin_expect.
43967
43968         * elf/dl-lookup.c (undefined_msg): Remove variable.
43969         (_dl_lookup_symbol_x): Replace undefined_msg with string
43970         literal.
43971
43972         * elf/dl-lookup.c (do_lookup_unique): New function.
43973         (do_lookup_x): Move STB_GNU_UNIQUE handling code
43974         to a separate function.
43975
43976 2014-06-23  Andreas Schwab  <schwab@suse.de>
43977
43978         [BZ #17079]
43979         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
43980         before reading the next line.
43981
43982 2014-06-23  Will Newton  <will.newton@linaro.org>
43983
43984         * test-skeleton.c (signal_handler): Use printf and %m
43985         rather than perror.  Use printf rather than fprintf to
43986         stderr.  Use puts rather than fputs to stderr.
43987         (main): Likewise.
43988
43989 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
43990
43991         * nscd/nscd.c (thread_info_t): Remove typedef.
43992         (thread_info): Remove variable.
43993
43994 2014-06-21  Allan McRae  <allan@archlinux.org>
43995
43996         * NEWS: Mention CVE-2014-4043.
43997
43998 2014-06-20  Roland McGrath  <roland@hack.frob.com>
43999
44000         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
44001         * nptl/smp.h: ... here.
44002
44003         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
44004
44005         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
44006         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
44007         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
44008         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
44009
44010         * nptl/allocatestack.c: Include <stack-aliasing.h>.
44011         * nptl/stack-aliasing.h: New file.
44012         * sysdeps/i386/i686/stack-aliasing.h: New file.
44013         * sysdeps/i386/i686/nptl/Makefile: File removed.
44014         * sysdeps/x86_64/stack-aliasing.h: New file.
44015         * sysdeps/x86_64/nptl/Makefile
44016         (CFLAGS-pthread_create.c): Variable removed.
44017
44018         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
44019         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
44020         old file.
44021         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
44022         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
44023         old file.
44024
44025 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
44026
44027         * sysdeps/unix/sysv/linux/arm/kernel-features.h
44028         (__ASSUME_SIGFRAME_V2): Remove macro.
44029         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
44030         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
44031         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
44032         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
44033         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
44034         Declare as function.  Remove conditional macro definitions.
44035         (__default_rt_sa_restorer): Likewise.
44036         (__default_sa_restorer_v1): Remove declaration.
44037         (__default_sa_restorer_v2): Likewise.
44038         (__default_rt_sa_restorer_v1): Likewise.
44039         (__default_rt_sa_restorer_v2): Likewise.
44040         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
44041         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
44042         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
44043
44044 2014-06-20  Roland McGrath  <roland@hack.frob.com>
44045
44046         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
44047         (libpthread-routines): Add sysdep.
44048         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
44049         * sysdeps/unix/sysv/linux/sparc/Versions
44050         (libpthread: GLIBC_2.3.3): New version set.
44051         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
44052         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
44053         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
44054         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
44055         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
44056         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
44057         Moved ...
44058         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
44059         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
44060         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
44061         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
44062         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
44063         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
44064         * sysdeps/sparc/nptl/sem_init.c: ... here.
44065         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
44066         * sysdeps/sparc/nptl/sem_post.c: ... here.
44067         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
44068         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
44069         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
44070         * sysdeps/sparc/nptl/sem_wait.c: ... here.
44071         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
44072         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
44073         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
44074         (libpthread-routines): Add cpu_relax.
44075         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
44076         File removed.
44077         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
44078         (librt: GLIBC_2.3.3): New version set.
44079         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
44080         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
44081         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
44082         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
44083         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
44084         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
44085         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
44086         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
44087         Moved ...
44088         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
44089         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
44090         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
44091         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
44092         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
44093         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
44094         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
44095         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
44096         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
44097         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
44098         Moved ...
44099         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
44100         Update #include.
44101         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
44102         Moved ...
44103         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
44104         Update #include.
44105         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
44106         Moved ...
44107         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
44108         Update #include.
44109         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
44110         Moved ...
44111         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
44112         Update #include.
44113         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
44114         Moved ...
44115         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
44116         Update #include.
44117         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
44118         Moved ...
44119         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
44120         Update #include.
44121         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
44122         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
44123         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
44124         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
44125         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
44126         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
44127         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
44128         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
44129         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
44130         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
44131         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
44132         Moved ...
44133         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
44134         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
44135         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
44136         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
44137         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
44138
44139 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
44140
44141         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
44142         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
44143         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
44144         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
44145         * nscd/nscd.c: Likewise.
44146         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
44147         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
44148         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
44149         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
44150
44151         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
44152         <kernel-features.h>.
44153         (init_mq_netlink): Remove conditional have_sock_cloexec
44154         definitions.  Remove code conditional on have_sock_cloexec < 0.
44155         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
44156         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
44157         * sysdeps/unix/sysv/linux/opensock.c: Do not include
44158         <kernel-features.h>.
44159         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
44160         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
44161
44162 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
44163
44164         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44165         Add tests for memset_chk and memset.
44166
44167         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
44168         with AVX2_Usable.
44169
44170 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
44171
44172         [BZ #16046]
44173         * elf/tst-dl-iter-static.c: New file.
44174         * elf/Makefile (tests-static): Add tst-dl-iter-static.
44175
44176         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
44177         error.
44178
44179 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
44180
44181         * sysdeps/unix/sysv/linux/kernel-features.h
44182         (__ASSUME_F_GETOWN_EX): Remove macro.
44183         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
44184         <kernel-features.h>.
44185         (miss_F_GETOWN_EX): Remove variable or macro.
44186         (do_fcntl): Do not check miss_F_GETOWN_EX.
44187         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
44188
44189         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
44190         Remove macro.
44191         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
44192         [!__ASSUME_AT_RANDOM]: Remove conditional code.
44193         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
44194
44195         * sysdeps/unix/sysv/linux/kernel-features.h
44196         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
44197         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
44198         [ADJ_OFFSET_SS_READ]: Make code unconditional.
44199         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
44200
44201 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
44202
44203         [BZ #17075]
44204         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
44205         Fix calculation of the symbol's value.
44206         * sysdeps/arm/tst-armtlsdescloc.c: New file.
44207         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
44208         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
44209         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
44210         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
44211         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
44212         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
44213         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
44214         (modules-names): Add `tst-armtlsdescmod',
44215         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
44216         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
44217         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
44218         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
44219         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
44220         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
44221         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
44222         ($(objpfx)tst-armtlsdescloc): New dependency.
44223         ($(objpfx)tst-armtlsdescextnow): Likewise.
44224         ($(objpfx)tst-armtlsdescextlazy): Likewise.
44225         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
44226         TLS scheme support.
44227         * sysdeps/arm/configure: Regenerate.
44228
44229 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
44230
44231         * include/fcntl.h (__atfct_seterrno): Remove prototype.
44232         (__atfct_seterrno_2): Likewise.
44233         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
44234         <kernel-features.h>.
44235         (__ASSUME_ATFCTS): Do not undefine and redefine.
44236         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
44237         (__have_atfcts): Remove conditional definition.
44238         (__fxstatat([__NR_fstatat64]: Make code unconditional.
44239         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
44240         unreachable if [__ASSUME_ATFCTS].
44241         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
44242         not undefine and redefine.
44243         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
44244         <kernel-features.h>.
44245         (faccessat) [__NR_faccessat]: Make code unconditional.
44246         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
44247         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
44248         <kernel-features.h>.
44249         (fchmodat) [__NR_fchmodat]: Make code unconditional.
44250         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
44251         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
44252         <kernel-features.h>.
44253         (fchownat) [__NR_fchownat]: Make code unconditional.
44254         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
44255         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
44256         <kernel-features.h>.
44257         (futimesat) [__NR_futimesat]: Make code unconditional.
44258         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
44259         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
44260         <kernel-features.h>.
44261         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
44262         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
44263         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
44264         <kernel-features.h>.
44265         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
44266         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
44267         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
44268         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
44269         <kernel-features.h>.
44270         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
44271         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
44272         * sysdeps/unix/sysv/linux/linkat.c: Do not include
44273         <kernel-features.h>.
44274         (linkat) [__NR_linkat]: Make code unconditional.
44275         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
44276         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
44277         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
44278         <kernel-features.h>.
44279         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
44280         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
44281         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
44282         <kernel-features.h>.
44283         (mkdirat) [__NR_mkdirat]: Make code unconditional.
44284         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
44285         * sysdeps/unix/sysv/linux/openat.c: Do not include
44286         <kernel-features.h>.
44287         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
44288         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
44289         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
44290         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
44291         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
44292         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
44293         <kernel-features.h>.
44294         (readlinkat) [__NR_readlinkat]: Make code unconditional.
44295         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
44296         result of INLINE_SYSCALL directly, not via int variable.
44297         * sysdeps/unix/sysv/linux/renameat.c: Do not include
44298         <kernel-features.h>.
44299         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
44300         (renameat) [__NR_renameat]: Make code unconditional.
44301         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
44302         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
44303         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
44304         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
44305         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
44306         (__ASSUME_ATFCTS): Do not undefine and redefine.
44307         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
44308         <kernel-features.h>.
44309         (symlinkat) [__NR_symlinkat]: Make code unconditional.
44310         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
44311         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
44312         <kernel-features.h>.
44313         (unlinkat) [__NR_unlinkat]: Make code unconditional.
44314         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
44315         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
44316         (__ASSUME_ATFCTS): Do not undefine and redefine.
44317         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
44318         <kernel-features.h>.
44319         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
44320         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
44321         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
44322         <kernel-features.h>.
44323         (__xmknodat) [__NR_mknodat]: Make code unconditional.
44324         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
44325
44326 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
44327
44328         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
44329
44330 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
44331
44332         [BZ #17069]
44333         * posix/regcomp.c (parse_reg_exp): Deallocate partially
44334         constructed tree before returning error.
44335         * posix/bug-regexp36.c: Expand test case.
44336
44337 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
44338
44339         [BZ #6803]
44340         * math/libm-test.inc (scalbln_test_date):
44341         Add errno expectations.
44342         * math/w_scalblnf.c: New File.
44343         Add wrapper which checks for setting errno to ERANGE.
44344         Add weak_alias for corresponding scalbln function.
44345         * math/w_scalbln.c: Likewise.
44346         * math/w_scalblnl.c: Likewise.
44347         * math/Makefile (libm-calls): Add w_scalbln.
44348         * sysdeps/ieee754/flt-32/s_scalblnf.c:
44349         Remove weak_alias for corresponding scalbln function.
44350         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
44351         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
44352         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
44353         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
44354         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
44355         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
44356         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
44357         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
44358         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
44359         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
44360         Remove long_double_symbol for scalblnl function in libm, libc.
44361         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
44362         Add wrapper which checks for setting errno to ERANGE.
44363         Add long_double_symbol for scalblnl function in libm, libc.
44364         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
44365         Remove long_double_symbol for scalblnl in libm.
44366         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
44367         Add wrapper which checks for setting errno to ERANGE.
44368         Add long_double_symbol for scalblnl function in libm.
44369         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
44370         Do not use wrapper because of own implementation.
44371
44372 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
44373
44374         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
44375         3 bytes for __pad1 for x32.
44376         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
44377
44378 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
44379             H.J. Lu  <hongjiu.lu@intel.com>
44380
44381         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
44382         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
44383         * sysdeps/x86_64/multiarch/memset.S: Likewise.
44384         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
44385         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
44386
44387 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
44388
44389         [BZ #17069]
44390         * posix/regcomp.c (parse_expression): Deallocate partially
44391         constructed tree before returning error.
44392         * posix/Makefile.c (tests): Add bug-regex36.
44393         (generated): Add bug-regex36.mtrace.
44394         (tests-special): Add $(objpfx)bug-regex36-mem.out
44395         (bug-regex36-ENV): New variable.
44396         ($(objpfx)bug-regex36-mem.out): New rule.
44397         * posix/bug-regex36.c: New file.
44398
44399 2014-06-19  Will Newton  <will.newton@linaro.org>
44400
44401         * malloc/malloc.c (systrim): If extra is zero then return
44402         early.
44403
44404 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44405
44406         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
44407
44408 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
44409
44410         * sysdeps/aarch64/strchr.S: New file.
44411
44412 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
44413
44414         [BZ #17022]
44415         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
44416         from arguments -2 or below.
44417         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
44418         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
44419
44420 2014-06-18  Andreas Schwab  <schwab@suse.de>
44421
44422         [BZ #17062]
44423         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
44424         of a bracket expr not to run off the end of the string.
44425         * posix/Makefile (tests): Add tst-fnmatch3.
44426         * posix/tst-fnmatch3.c: New file.
44427
44428 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
44429
44430         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
44431         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
44432         [$(cross-compiling) = no]: Likewise.
44433         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
44434         [$(cross-compiling) = no]: Likewise.
44435
44436 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
44437
44438         [BZ #17031]
44439         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
44440         double, adjusted for any remainder from the high double.
44441         * math/libm-test.inc (nearbyint): Add tests.
44442         (rint): Likewise.
44443
44444 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44445
44446         * nptl/sysdeps/powerpc/Makefile: Moved ...
44447         * sysdeps/powerpc/nptl/Makefile: ... here.
44448         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
44449         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
44450         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
44451         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
44452         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
44453         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
44454         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
44455         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
44456         * nptl/sysdeps/powerpc/tls.h: Moved ...
44457         * sysdeps/powerpc/nptl/tls.h: ... here.
44458
44459 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
44460
44461         [BZ #16681]
44462         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
44463         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
44464         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
44465         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
44466         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
44467         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
44468         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
44469         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
44470         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
44471
44472 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
44473
44474         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
44475
44476 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
44477
44478         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
44479         defined operator.
44480
44481         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
44482         $TIMEOUTFACTOR.
44483
44484 2014-06-16  Florian Weimer  <fweimer@redhat.com>
44485
44486         [BZ #17058]
44487         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
44488         non-executed part of the test.
44489
44490 2014-06-16  Andreas Schwab  <schwab@suse.de>
44491
44492         * string/bits/string2.h (strdup, strndup): Update feature guard.
44493
44494 2014-06-14  David S. Miller  <davem@davemloft.net>
44495
44496         * sysdeps/sparc/fpu/libm-test-ulps: Update.
44497
44498 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
44499
44500         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
44501         that was previously under [RESET_PID].
44502         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
44503
44504         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
44505         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
44506         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
44507         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
44508         (__libc_vfork): New strong alias.
44509         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
44510
44511 2014-06-14 Andi Kleen  <ak@linux.intel.com>
44512
44513         * sysdeps/generic/elide.h: New file.
44514
44515 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
44516
44517         * Makefile (installed-headers): Adjust path of pthread.h header.
44518
44519 2014-06-13  Roland McGrath  <roland@hack.frob.com>
44520
44521         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
44522         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
44523         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
44524         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
44525
44526         * nptl/sysdeps/s390/Makefile: Moved ...
44527         * sysdeps/s390/nptl/Makefile: ... here.
44528         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
44529         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
44530         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
44531         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
44532         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
44533         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
44534         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
44535         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
44536         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
44537         * sysdeps/s390/nptl/pthreaddef.h: ... here.
44538         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
44539         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
44540         * nptl/sysdeps/s390/tls.h: Moved ...
44541         * sysdeps/s390/nptl/tls.h: ... here.
44542
44543         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
44544         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
44545
44546 2014-06-13  David S. Miller  <davem@davemloft.net>
44547
44548         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
44549         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
44550         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
44551         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
44552         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
44553         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
44554         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
44555         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
44556         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
44557         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
44558         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
44559         Remove RESET_PID cpp guards.
44560         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
44561         Remove RESET_PID cpp guards.
44562         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
44563
44564 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
44565
44566         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
44567         __sp to uintptr_t.
44568
44569 2014-06-13  Andi Kleen  <ak@linux.intel.com>
44570
44571         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
44572         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
44573         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
44574         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
44575         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
44576         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
44577         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
44578         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
44579         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
44580         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
44581         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
44582         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
44583         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
44584         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
44585         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
44586         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
44587         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
44588         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
44589         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
44590         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
44591
44592         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
44593         (pthread_rwlock_rdlock): Add elision.
44594         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
44595         (pthread_rwlock_wrlock): Add elision.
44596         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
44597         (pthread_rwlock_trywrlock): Add elision.
44598         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
44599         (pthread_rwlock_tryrdlock): Add elision.
44600         * nptl/pthread_rwlock_unlock.c: Include elide.h.
44601         (pthread_rwlock_tryrdlock): Add elision unlock.
44602         * nptl/sysdeps/pthread/pthread.h:
44603         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
44604         (PTHREAD_RWLOCK_INITIALIZER,
44605         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
44606         Handle new elision field.
44607         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
44608         * sysdeps/arm/nptl/bits/pthreadtypes.h
44609         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44610         * sysdeps/sh/nptl/bits/pthreadtypes.h
44611         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44612         * sysdeps/tile/nptl/bits/pthreadtypes.h
44613         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44614         * sysdeps/a/nptl/bits/pthreadtypes.h
44615         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44616         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
44617         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44618         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
44619         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44620         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
44621         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44622         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
44623         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44624         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
44625         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44626         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
44627         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44628         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
44629         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44630         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
44631         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44632         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
44633         (elision_init): Set try_xbegin to zero when no RTM.
44634         * sysdeps/x86/nptl/bits/pthreadtypes.h
44635         (pthread_rwlock_t): Change __pad1 to __rwelision.
44636         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44637
44638 2014-06-13  Andi Kleen  <ak@linux.intel.com>
44639
44640         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
44641         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
44642         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
44643         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
44644
44645 2014-06-13  Meador Inge  <meadori@codesourcery.com>
44646
44647         [BZ #16996]
44648         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
44649         that the cached result has been set before returning it.
44650
44651 2014-06-12  Roland McGrath  <roland@hack.frob.com>
44652
44653         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
44654         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
44655         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
44656         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
44657         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
44658         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
44659
44660         * nptl/sysdeps/sparc/Makefile: Moved ...
44661         * sysdeps/sparc/nptl/Makefile: ... here.
44662         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
44663         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
44664         * nptl/sysdeps/sparc/tls.h: Moved ...
44665         * sysdeps/sparc/nptl/tls.h: ... here.
44666         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
44667         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
44668         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
44669         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
44670         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
44671         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
44672         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
44673         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
44674         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
44675         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
44676         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
44677         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
44678         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
44679         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
44680         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
44681         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
44682         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
44683         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
44684         Update #include.
44685         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
44686         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
44687         Update #include.
44688         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
44689         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
44690         Update #include.
44691         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
44692         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
44693         Update #include.
44694
44695         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
44696
44697         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
44698         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
44699
44700         * sysdeps/pthread/posix-timer.h: Include <list.h>.
44701         (struct list_links): Type removed.
44702         (struct thread_node, struct timer_node): Replace struct list_links
44703         with struct list_head.
44704         (list_unlink_ip): Likewise.
44705         * sysdeps/pthread/timer_routines.c
44706         (timer_free_list, thread_free_list, thread_active_list): Likewise.
44707         (list_append, list_insbefore): Likewise.
44708         (list_init): Function removed.
44709         (thread_init, init_module): Use INIT_LIST_HEAD instead.
44710         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
44711         * sysdeps/pthread/Makefile: ... here, new file.
44712
44713         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
44714         * sysdeps/nptl/Implies: ... here.
44715         * sysdeps/unix/sysv/linux/Implies: Add nptl.
44716         * nptl/sysdeps/pthread/list.h: Moved ...
44717         * include/list.h: ... here.
44718         * nptl/sysdeps/pthread/createthread.c: Moved ...
44719         * nptl/createthread.c: ... here.
44720         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
44721         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
44722         * nptl/pt-longjmp.c: ... here.
44723         * nptl/sysdeps/pthread/Makefile: Moved ...
44724         * sysdeps/nptl/Makefile: ... here.
44725         * nptl/sysdeps/pthread/Subdirs: Moved ...
44726         * sysdeps/nptl/Subdirs: ... here.
44727         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
44728         * sysdeps/nptl/aio_misc.h: ... here.
44729         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
44730         * sysdeps/nptl/bits/libc-lock.h: ... here.
44731         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
44732         * sysdeps/nptl/bits/libc-lockP.h: ... here.
44733         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
44734         * sysdeps/nptl/bits/stdio-lock.h: ... here.
44735         * nptl/sysdeps/pthread/configure: Moved ...
44736         * sysdeps/nptl/configure: ... here.
44737         * nptl/sysdeps/pthread/configure.ac: Moved ...
44738         * sysdeps/nptl/configure.ac: ... here.
44739         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
44740         * sysdeps/nptl/gai_misc.h: ... here.
44741         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
44742         * sysdeps/nptl/librt-cancellation.c: ... here.
44743         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
44744         * sysdeps/nptl/malloc-machine.h: ... here.
44745         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
44746         * sysdeps/nptl/pthread-functions.h: ... here.
44747         * nptl/sysdeps/pthread/pthread.h: Moved ...
44748         * sysdeps/nptl/pthread.h: ... here.
44749         * nptl/sysdeps/pthread/setxid.h: Moved ...
44750         * sysdeps/nptl/setxid.h: ... here.
44751         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
44752         * sysdeps/nptl/sigfillset.c: ... here.
44753         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
44754         * sysdeps/nptl/tcb-offsets.h: ... here.
44755         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
44756         * sysdeps/nptl/tst-mqueue8x.c: ... here.
44757         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
44758         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
44759         * nptl/sysdeps/pthread/allocalim.h: Moved ...
44760         * sysdeps/pthread/allocalim.h: ... here.
44761         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
44762         * sysdeps/pthread/bits/sigthread.h: ... here.
44763         * nptl/sysdeps/pthread/flockfile.c: Moved ...
44764         * sysdeps/pthread/flockfile.c: ... here.
44765         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
44766         * sysdeps/pthread/ftrylockfile.c: ... here.
44767         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
44768         * sysdeps/pthread/funlockfile.c: ... here.
44769         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
44770         * sysdeps/pthread/posix-timer.h: ... here.
44771         * nptl/sysdeps/pthread/timer_create.c: Moved ...
44772         * sysdeps/pthread/timer_create.c: ... here.
44773         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
44774         * sysdeps/pthread/timer_delete.c: ... here.
44775         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
44776         * sysdeps/pthread/timer_getoverr.c: ... here.
44777         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
44778         * sysdeps/pthread/timer_gettime.c: ... here.
44779         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
44780         * sysdeps/pthread/timer_routines.c: ... here.
44781         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
44782         * sysdeps/pthread/timer_settime.c: ... here.
44783         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
44784         * sysdeps/pthread/tst-timer.c: ... here.
44785         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
44786         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
44787
44788         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
44789         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
44790
44791         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
44792         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
44793         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
44794         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
44795         Update #include target.
44796         * nptl/sysdeps/i386/i686/Makefile: Moved ...
44797         * sysdeps/i386/i686/nptl/Makefile: ... here.
44798         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
44799         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
44800         Update #include target.
44801         * nptl/sysdeps/i386/i686/tls.h: Moved ...
44802         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
44803         * nptl/sysdeps/i386/Makefile: Moved ...
44804         * sysdeps/i386/nptl/Makefile: ... here.
44805         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
44806         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
44807         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
44808         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
44809         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
44810         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
44811         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
44812         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
44813         * sysdeps/i386/nptl/pthreaddef.h: ... here.
44814         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
44815         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
44816         * nptl/sysdeps/i386/tls.h: Moved ...
44817         * sysdeps/i386/nptl/tls.h: ... here.
44818
44819         * sysdeps/sh/Makefile [$(subdir) = csu]
44820         (gen-as-const-headers): Add tcb-offsets.sym.
44821         * nptl/sysdeps/sh/Makefile: File removed.
44822         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
44823         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
44824         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
44825         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
44826         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
44827         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
44828         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
44829         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
44830         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
44831         * sysdeps/sh/nptl/pthreaddef.h: ... here.
44832         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
44833         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
44834         * nptl/sysdeps/sh/tls.h: Moved ...
44835         * sysdeps/sh/nptl/tls.h: ... here.
44836         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
44837         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
44838         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
44839         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
44840         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
44841         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
44842         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
44843         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
44844         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
44845         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
44846         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
44847         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
44848         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
44849         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
44850         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
44851         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
44852         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
44853         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
44854         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
44855         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
44856         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
44857         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
44858         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
44859         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
44860         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
44861         Moved ...
44862         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
44863         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
44864         Moved ...
44865         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
44866         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
44867         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
44868         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
44869         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
44870         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
44871         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
44872         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
44873         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
44874         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
44875         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
44876         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
44877         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
44878         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
44879         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
44880         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
44881         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
44882         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
44883         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
44884
44885 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
44886
44887         * posix/spawn_faction_addopen.c: Include string.h.
44888
44889 2014-06-11  Roland McGrath  <roland@hack.frob.com>
44890
44891         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
44892         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
44893         * nptl/sysdeps/x86_64/Makefile: Moved ...
44894         * sysdeps/x86_64/nptl/Makefile: ... here.
44895         * nptl/sysdeps/x86_64/configure: Moved ...
44896         * sysdeps/x86_64/nptl/configure: ... here.
44897         * nptl/sysdeps/x86_64/configure.ac: Moved ...
44898         * sysdeps/x86_64/nptl/configure.ac: ... here.
44899         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
44900         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
44901         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
44902         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
44903         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
44904         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
44905         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
44906         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
44907         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
44908         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
44909         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
44910         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
44911         * nptl/sysdeps/x86_64/tls.h: Moved ...
44912         * sysdeps/x86_64/nptl/tls.h: ... here.
44913         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
44914         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
44915         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
44916         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
44917
44918         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
44919
44920 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44921
44922         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44923
44924 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
44925
44926         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
44927         type.
44928         [POSIX] (off_t): Likewise.
44929         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
44930         [POSIX] (S_ISBLK): Require macro.
44931         [POSIX] (S_ISCHR): Likewise.
44932         [POSIX] (S_ISDIR): Likewise.
44933         [POSIX] (S_ISFIFO): Likewise.
44934         [POSIX] (S_ISREG): Likewise.
44935         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
44936         optional-macro.
44937         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
44938         type.
44939         [POSIX] (time_t): Likewise.
44940         [POSIX] (timer_t): Likewise.
44941
44942 2014-06-11  Florian Weimer  <fweimer@redhat.com>
44943
44944         [BZ #17048]
44945         * posix/spawn_int.h (struct __spawn_action): Make the path string
44946         non-const to support deallocation.
44947         * posix/spawn_faction_addopen.c
44948         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
44949         * posix/spawn_faction_destroy.c
44950         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
44951         path in all spawn_do_open actions.
44952         * posix/tst-spawn.c (do_test): Exercise the copy operation in
44953         posix_spawn_file_actions_addopen.
44954
44955 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
44956
44957         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
44958         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
44959         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
44960         conditional code always true.
44961         (__libc_vfork): New alias.
44962
44963 2014-06-11  Roland McGrath  <roland@hack.frob.com>
44964
44965         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44966         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
44967
44968         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
44969
44970         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44971         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
44972
44973         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
44974         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
44975
44976         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44977         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
44978
44979 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
44980
44981         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
44982         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
44983         multiarch strcmp for PPC64.
44984         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
44985         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
44986         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
44987         multiarch optimizations.
44988         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
44989         (__libc_ifunc_impl_list): Likewise.
44990
44991 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
44992
44993         * benchtests/scripts/validate_benchout.py: New script.
44994         * benchtests/Makefile (bench-func): Call it.
44995         * benchtests/scripts/benchout.schema.json: New file.
44996
44997 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
44998
44999         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
45000         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
45001         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
45002         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
45003         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
45004         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
45005         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
45006         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
45007         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
45008         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
45009         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
45010         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
45011         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
45012         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
45013         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
45014         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
45015         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
45016         Moved ...
45017         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
45018         ... here.
45019         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
45020         Moved ...
45021         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
45022         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
45023         Moved ...
45024         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
45025         ... here.
45026         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
45027         Moved ...
45028         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
45029         ... here.
45030         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
45031         Moved ...
45032         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
45033         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
45034         Moved ...
45035         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
45036         ... here.
45037         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
45038         Moved ...
45039         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
45040         ... here.
45041         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
45042         Moved ...
45043         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
45044         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
45045         Moved ...
45046         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
45047         ... here.
45048         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
45049         Moved ...
45050         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
45051         ... here.
45052         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
45053         Moved ...
45054         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
45055         ... here.
45056         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
45057         Moved ...
45058         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
45059         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
45060         Moved ...
45061         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
45062         ... here.
45063         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
45064         Moved ...
45065         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
45066         ... here.
45067         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
45068         Moved ...
45069         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
45070         ... here.
45071         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
45072         Moved ...
45073         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
45074         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
45075         Moved ...
45076         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
45077         ... here.
45078         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
45079         Moved ...
45080         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
45081         ... here.
45082         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
45083         Moved ...
45084         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
45085         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
45086         Moved ...
45087         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
45088         ... here.
45089         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
45090         Moved ...
45091         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
45092         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
45093         Moved ...
45094         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
45095         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
45096         Moved ...
45097         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
45098         ... here.
45099         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
45100         Moved ...
45101         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
45102         ... here.
45103         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
45104         Moved ...
45105         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
45106         ... here.
45107         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
45108         Moved ...
45109         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
45110         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
45111         Moved ...
45112         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
45113         ... here.
45114         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
45115         Moved ...
45116         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
45117         ... here.
45118         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
45119         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
45120         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
45121         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
45122         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
45123         Moved ...
45124         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
45125         ... here.
45126         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
45127         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
45128         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
45129         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
45130         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
45131         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
45132         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
45133         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
45134         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
45135         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
45136         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
45137         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
45138         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
45139         Moved ...
45140         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
45141         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
45142         Moved ...
45143         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
45144         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
45145         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
45146         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
45147         Moved ...
45148         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
45149         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
45150         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
45151         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
45152         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
45153         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
45154         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
45155
45156 2014-06-10  Wilco  <wdijkstr@arm.com>
45157
45158         * math/test-fenv-return.c: New file.
45159         * math/Makefile: Add new test test-fenv-return.
45160
45161 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
45162
45163         [BZ #17042]
45164         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
45165         when x - 1 is zero.
45166         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
45167         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
45168         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
45169         0.0L for an argument of 1.0L.
45170         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
45171         Likewise.
45172         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
45173         value when x - 1 is zero.
45174         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
45175         * sysdeps/i386/fpu/libm-test-ulps: Update.
45176         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45177
45178 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
45179
45180         [BZ #15119]
45181         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
45182
45183 2014-06-09  Roland McGrath  <roland@hack.frob.com>
45184
45185         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
45186         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
45187
45188 2014-06-09  Roland McGrath  <roland@hack.frob.com>
45189
45190         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45191         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
45192
45193         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45194         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
45195
45196         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45197         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
45198
45199         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45200         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
45201
45202         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
45203         if not already defined.
45204         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
45205         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
45206         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
45207         (TLS_INIT_TP): Use it.
45208         (TLS_DEFINE_INIT_TP): New macro.
45209         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
45210
45211 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
45212
45213         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
45214         constant.
45215         [POSIX] (IXANY): Likewise.
45216         [POSIX] (OLCUC): Likewise.
45217         [POSIX || POSIX2008] (CBAUD): Do not allow.
45218         [POSIX || POSIX2008] (DEFECHO): Likewise.
45219         [POSIX || POSIX2008] (ECHOCTL): Likewise.
45220         [POSIX || POSIX2008] (ECHOKE): Likewise.
45221         [POSIX || POSIX2008] (ECHOPRT): Likewise.
45222         [POSIX || POSIX2008] (EXTA): Likewise.
45223         [POSIX || POSIX2008] (EXTB): Likewise.
45224         [POSIX || POSIX2008] (FLUSHO): Likewise.
45225         [POSIX || POSIX2008] (LOBLK): Likewise.
45226         [POSIX || POSIX2008] (PENDIN): Likewise.
45227         [POSIX || POSIX2008] (SWTCH): Likewise.
45228         [POSIX || POSIX2008] (VDISCARD): Likewise.
45229         [POSIX || POSIX2008] (VDSUSP): Likewise.
45230         [POSIX || POSIX2008] (VLNEXT): Likewise.
45231         [POSIX || POSIX2008] (VREPRINT): Likewise.
45232         [POSIX || POSIX2008] (VSTATUS): Likewise.
45233         [POSIX || POSIX2008] (VWERASE): Likewise.
45234         (B*): Change to B[0123456789]*.
45235         * conform/data/time.h-data [POSIX || UNIX98]
45236         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
45237         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
45238         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
45239         [POSIX] (tm_*): Do not allow.
45240
45241 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
45242
45243         * Makefile (install): Don't set LANGUAGE.
45244         * Makefile.in (install): Likewise.
45245         * assert/Makefile (test-assert-ENV): Remove variable.
45246         (test-assert-perr-ENV): Likewise.
45247         * elf/Makefile (neededtest4-ENV): Likewise.
45248         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
45249         [$(cross-compiling) = no]: Don't set LANGUAGE.
45250         * io/ftwtest-sh (LANG): Remove variable.
45251         * libio/Makefile (tst-widetext-ENV): Likewise.
45252         * manual/install.texi (Running make install): Don't refer to
45253         environment settings for make install.
45254         * INSTALL: Regenerated.
45255         * nptl/tst-tls6.sh: Don't set LANG.
45256         * posix/globtest.sh (LANG): Remove variable.
45257         * string/Makefile (tester-ENV): Likewise.
45258         (inl-tester-ENV): Likewise.
45259         (noinl-tester-ENV): Likewise.
45260         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
45261         [$(cross-compiling) = no]: Don't set LANGUAGE.
45262         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
45263         without explicit environment settings.
45264
45265 2014-06-06  Roland McGrath  <roland@hack.frob.com>
45266
45267         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
45268         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
45269         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
45270         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
45271
45272 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
45273
45274         * crypt/crypt-private.h [DOS]: Add some includes taken from the
45275         other files in the crypt directory.
45276         * crypt/crypt.c: Remove duplicate includes.
45277         * crypt/crypt-entry.c: Likewise.
45278         * crypt/crypt_util.c: Likewise.
45279
45280 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
45281
45282         * Makeconfig (run-program-env): New variable.
45283         (run-program-prefix-before-env): Likewise.
45284         (run-program-prefix-after-env): Likewise.
45285         (run-program-prefix): Define in terms of new variables.
45286         (built-program-cmd-before-env): New variable.
45287         (built-program-cmd-after-env): Likewise.
45288         (built-program-cmd): Define in terms of new variables.
45289         (test-program-prefix-before-env): New variable.
45290         (test-program-prefix-after-env): Likewise.
45291         (test-program-prefix): Define in terms of new variables.
45292         (test-program-cmd-before-env): New variable.
45293         (test-program-cmd-after-env): Likewise.
45294         (test-program-cmd): Define in terms of new variables.
45295         * Rules (make-test-out): Use $(run-program-env).
45296         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
45297         (help): Do not mention environment variables.  Mention
45298         --timeoutfactor option.
45299         (timeoutfactor): New variable.
45300         (blacklist_exports): Remove function.
45301         (exports): Remove variable.
45302         (command): Do not include ${exports}.
45303         * manual/install.texi (Configuring and compiling): Do not mention
45304         test wrappers preserving environment variables.  Mention that last
45305         assignment to a variable must take precedence.
45306         * INSTALL: Regenerated.
45307         * benchtests/Makefile (run-bench): Use $(run-program-env).
45308         * catgets/Makefile ($(objpfx)test1.cat): Use
45309         $(built-program-cmd-before-env), $(run-program-env) and
45310         $(built-program-cmd-after-env).
45311         ($(objpfx)test2.cat): Do not specify environment variables
45312         explicitly.
45313         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
45314         $(run-program-env) and $(built-program-cmd-after-env).
45315         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
45316         $(run-program-env) and $(test-program-cmd-after-env).
45317         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
45318         explicitly.
45319         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
45320         run_program_env and test_program_cmd_after_env arguments.
45321         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
45322         * elf/tst-pathopt.sh: Use run_program_env argument.
45323         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
45324         $(test-wrapper-env) and $(run-program-env).
45325         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
45326         run_program_env arguments.
45327         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
45328         * intl/Makefile ($(objpfx)tst-gettext.out): Use
45329         $(test-program-prefix-before-env), $(run-program-env) and
45330         $(test-program-prefix-after-env).
45331         ($(objpfx)tst-gettext2.out): Likewise.
45332         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
45333         run_program_env and test_program_prefix_after_env arguments.
45334         * intl/tst-gettext2.sh: Likewise.
45335         * intl/tst-gettext4.sh: Do not set environment variables
45336         explicitly.
45337         * intl/tst-gettext6.sh: Likewise.
45338         * intl/tst-translit.sh: Likewise.
45339         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
45340         $(test-program-prefix-before-env), $(run-program-env) and
45341         $(test-program-prefix-after-env).
45342         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
45343         run_program_env and test_program_prefix_after_env arguments.
45344         * math/Makefile (run-regen-ulps): Use $(run-program-env).
45345         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
45346         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
45347         explicitly with each use of ${test_wrapper_env}.
45348         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
45349         $(test-program-prefix-before-env), $(run-program-env) and
45350         $(test-program-prefix-after-env).
45351         * posix/tst-getconf.sh: Do not set environment variables
45352         explicitly.
45353         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
45354         run_program_env and test_program_prefix_after_env arguments.
45355         * stdio-common/tst-printf.sh: Do not set environment variables
45356         explicitly.
45357         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
45358         $(test-program-prefix-before-env), $(run-program-env) and
45359         $(test-program-prefix-after-env).
45360         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
45361         run_program_env and test_program_prefix_after_env arguments.
45362         Split $test calls into $test_pre and $test.
45363         * timezone/Makefile (build-testdata): Use
45364         $(built-program-cmd-before-env), $(run-program-env) and
45365         $(built-program-cmd-after-env).
45366
45367 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45368
45369         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
45370         strlen for non SHARED builds.
45371
45372 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
45373
45374         * nptl/allocatestack.c (check_list): Inlined function...
45375         (__reclaim_stacks): ... here.
45376
45377 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
45378
45379         [BZ #15698]
45380         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
45381         memory overrun.
45382
45383 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
45384
45385         * Rules (make-test-out): Include
45386         LOCPATH=$(common-objpfx)localedata in default environment.
45387         * debug/Makefile (tst-chk1-ENV): Remove variable.
45388         (tst-chk2-ENV): Likewise.
45389         (tst-chk3-ENV): Likewise.
45390         (tst-chk4-ENV): Likewise.
45391         (tst-chk5-ENV): Likewise.
45392         (tst-chk6-ENV): Likewise.
45393         (tst-lfschk1-ENV): Likewise.
45394         (tst-lfschk2-ENV): Likewise.
45395         (tst-lfschk3-ENV): Likewise.
45396         (tst-lfschk4-ENV): Likewise.
45397         (tst-lfschk5-ENV): Likewise.
45398         (tst-lfschk6-ENV): Likewise.
45399         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
45400         (tst-iconv7-ENV): Likewise.
45401         * intl/Makefile (LOCPATH-ENV): Likewise.
45402         (tst-codeset-ENV): Likewise.
45403         (tst-gettext3-ENV): Likewise.
45404         (tst-gettext5-ENV): Likewise.
45405         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
45406         (tst-fopenloc-ENV): Likewise.
45407         (tst-fgetws-ENV): Remove variable.
45408         (tst-ungetwc1-ENV): Likewise.
45409         (tst-ungetwc2-ENV): Likewise.
45410         (bug-ungetwc2-ENV): Likewise.
45411         (tst-swscanf-ENV): Likewise.
45412         (bug-ftell-ENV): Likewise.
45413         (tst-fgetwc-ENV): Likewise.
45414         (tst-fseek-ENV): Likewise.
45415         (tst-ftell-partial-wide-ENV): Likewise.
45416         (tst-ftell-active-handler-ENV): Likewise.
45417         (tst-ftell-append-ENV): Likewise.
45418         * posix/Makefile (tst-fnmatch-ENV): Likewise.
45419         (tst-regexloc-ENV): Likewise.
45420         (bug-regex1-ENV): Likewise.
45421         (tst-regex-ENV): Likewise.
45422         (tst-regex2-ENV): Likewise.
45423         (bug-regex5-ENV): Likewise.
45424         (bug-regex6-ENV): Likewise.
45425         (bug-regex17-ENV): Likewise.
45426         (bug-regex18-ENV): Likewise.
45427         (bug-regex19-ENV): Likewise.
45428         (bug-regex20-ENV): Likewise.
45429         (bug-regex22-ENV): Likewise.
45430         (bug-regex23-ENV): Likewise.
45431         (bug-regex25-ENV): Likewise.
45432         (bug-regex26-ENV): Likewise.
45433         (bug-regex30-ENV): Likewise.
45434         (bug-regex32-ENV): Likewise.
45435         (bug-regex33-ENV): Likewise.
45436         (bug-regex34-ENV): Likewise.
45437         (bug-regex35-ENV): Likewise.
45438         (tst-rxspencer-ENV): Likewise.
45439         (tst-rxspencer-no-utf8-ENV): Likewise.
45440         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
45441         (tst-sscanf-ENV): Likewise.
45442         (tst-swprintf-ENV): Likewise.
45443         (tst-swscanf-ENV): Likewise.
45444         (test-vfprintf-ENV): Likewise.
45445         (scanf13-ENV): Likewise.
45446         (bug14-ENV): Likewise.
45447         (tst-grouping-ENV): Likewise.
45448         * stdlib/Makefile (tst-strtod-ENV): Likewise.
45449         (tst-strtod3-ENV): Likewise.
45450         (tst-strtod4-ENV): Likewise.
45451         (tst-strtod5-ENV): Likewise.
45452         (testmb2-ENV): Likewise./
45453         * string/Makefile (tst-strxfrm-ENV): Likewise.
45454         (tst-strxfrm2-ENV): Likewise.
45455         (bug-strcoll1-ENV): Likewise.
45456         (test-strcasecmp-ENV): Likewise.
45457         (test-strncasecmp-ENV): Likewise.
45458         * time/Makefile (tst-strptime-ENV): Likewise.
45459         (tst-ftime_l-ENV): Likewise.
45460         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
45461         (tst-mbrtowc-ENV): Likewise.
45462         (tst-wcrtomb-ENV): Likewise.
45463         (tst-mbrtowc2-ENV): Likewise.
45464         (tst-c16c32-1-ENV): Likewise.
45465         (tst-mbsnrtowcs-ENV): Likewise.
45466
45467 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
45468
45469         * manual/resource.texi (How to get information about the memory
45470         subsystem?): Fix typo.
45471         Reported by Peon de la Parra Ivan <peon@keba.com>
45472
45473 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
45474
45475         [BZ #16882]
45476         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
45477         (pthread_spin_lock): Branch out of spin loop to proper location.
45478         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
45479         (pthread_spin_lock): Likewise.
45480
45481         * nptl/tst-spin4.c: New test.
45482         * nptl/Makefile (tests): Add tst-spin4.
45483
45484 2014-06-03  Andreas Schwab  <schwab@suse.de>
45485
45486         [BZ #15946]
45487         * resolv/res_send.c (send_dg): Reload file descriptor after
45488         calling reopen.
45489
45490 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
45491
45492         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
45493
45494 2014-06-03  Richard Henderson  <rth@redhat.com>
45495
45496         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
45497         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
45498         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
45499         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
45500         in the SAVE_PID block.
45501         (__libc_vfork): New alias.
45502         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
45503
45504         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
45505         child in registers, not on the stack.  Remove RESET_PID conditionals.
45506         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
45507
45508 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
45509
45510         * sysdeps/aarch64/libm-test-ulps: Regenerate.
45511
45512 2014-06-03  Wilco  <wdijkstr@arm.com>
45513
45514         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
45515         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
45516         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
45517         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
45518         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
45519         Likewise.
45520
45521 2014-06-03  Wilco  <wdijkstr@arm.com>
45522
45523         * sysdeps/aarch64/fpu/math_private.h
45524         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
45525         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
45526         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
45527         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
45528         Fix declarations.
45529
45530 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
45531
45532         * crypt/crypt-private.h: Include ufc-crypt.h.
45533         (__b64_from_24bit): Declare extern.
45534         * crypt/crypt_util.c(__b64_from_24bit): New function.
45535         (b64t): New static const variable.
45536         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
45537         (b64t): Remove variable.
45538         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
45539         * crypt/sha256-crypt.c: Include crypt-private.h.
45540         (b64t): Remove variable.
45541         (__sha256_crypt_r): Remove b64_from_24bit and replace
45542         with __b64_from_24bit.
45543         * crypt/sha512-crypt.c: Likewise.
45544
45545 2014-06-02  Roland McGrath  <roland@hack.frob.com>
45546
45547         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
45548         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
45549         Label the code __libc_vfork rather than __vfork.
45550         [!NOT_IN_libc] (vfork): Define as weak alias.
45551         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
45552         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
45553         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
45554
45555 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
45556
45557         * malloc/malloc.c (malloc_info): Fix format specifier for
45558         n_mmaps.
45559
45560 2014-06-02  Wilco  <wdijkstr@arm.com>
45561
45562         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
45563         FPCR write.
45564
45565 2014-06-02  Wilco  <wdijkstr@arm.com>
45566
45567         [BZ #17009]
45568         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
45569         Rewrite to reduce FPCR/FPSR accesses.
45570
45571 2014-06-01  David S. Miller  <davem@davemloft.net>
45572
45573         * sysdeps/sparc/fpu/libm-test-ulps: Update.
45574
45575 2014-05-31  David S. Miller  <davem@davemloft.net>
45576
45577         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
45578         to occur in round to nearest mode when |x| >= 2.0
45579
45580 2014-05-30  Richard Henderson  <rth@twiddle.net>
45581
45582         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
45583         (PSEUDO_RET_NOERRNO): Remove.
45584         (ret): Don't redefine.
45585         (ret_NOERRNO): Define in terms of ret.
45586         (ret_ERRVAL): Likewise.
45587
45588         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
45589         use of PSEUDO_RET; perform the error check directly.
45590
45591 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
45592
45593         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
45594         with __int128_t.
45595
45596 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
45597
45598         * malloc/malloc (malloc_info): Fix formatting.
45599
45600 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
45601             Roland McGrath  <roland@hack.frob.com>
45602
45603         * malloc/malloc (malloc_info): Also print mmapped statistics.
45604
45605 2014-05-30  Roland McGrath  <roland@hack.frob.com>
45606
45607         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
45608         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
45609
45610 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
45611
45612         * malloc/malloc.c (malloc_info): Inline mi_arena.
45613
45614 2014-05-29  Richard Henderson  <rth@twiddle.net>
45615
45616         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
45617         Remove comma before expanding ASM_ARGS_##nr.
45618         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
45619         Make _x0 a strict output; make _x8 a strict input; adjust expansion
45620         of ASM_ARGS_##nr.
45621         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
45622         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
45623         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
45624         (ASM_ARGS_1): Add leading comma.
45625
45626         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
45627         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
45628         to __errno_location.
45629         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
45630         Remove the expected plt for __errno_location.
45631
45632         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
45633         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
45634         call to __read_tp.
45635
45636         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
45637         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
45638         it and break it down.
45639         (DOCARGS_0, DOCARGS_1): Do nothing.
45640         (DOCARGS_2): Update to store into the new stack frame.
45641         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
45642         (UNDOCARGS_1): Update to restore from the new stack frame.
45643         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
45644         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
45645
45646         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
45647         (SINGLE_THREAD_P): New parameter for result regno.
45648         (PSEUDO): Update to match; use cbz instead of beq.
45649
45650         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
45651         Use ENTRY to define the _nocancel entry point.  Share the syscall
45652         and syscall error check paths with the cancel path.
45653         (PSEUDO_END): New.
45654
45655         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
45656         whitespace; tabs before and after asm mnemonics.
45657
45658 2014-05-29  Eric Wong  <normalperson@yhbt.net>
45659
45660         [BZ #15132]
45661         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
45662         Call fstat64 or stat64 internally, depending on arguments passed.
45663         Replace stat buffer argument with file descriptor argument.
45664         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
45665         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
45666         Pass fd to __internal_statvfs instead of calling fstat64.
45667         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
45668         Pass fd to __internal_statvfs64 instead of calling fstat64.
45669         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
45670         Pass -1 to __internal_statvfs instead of calling stat64.
45671         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
45672         Pass -1 to __internal_statvfs64 instead of calling stat64.
45673
45674 2014-05-28  Roland McGrath  <roland@hack.frob.com>
45675
45676         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
45677         that was previously under [RESET_PID].
45678         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
45679
45680         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
45681         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
45682
45683 2014-05-27  Roland McGrath  <roland@hack.frob.com>
45684
45685         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
45686
45687         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
45688         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
45689
45690 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
45691
45692         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
45693
45694 2014-05-27  Andreas Schwab  <schwab@suse.de>
45695
45696         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
45697         TLS_INIT_TP macro.
45698         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
45699         * elf/rtld.c (init_tls, dl_main): Likewise.
45700         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
45701         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
45702         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
45703         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
45704         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
45705         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
45706         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
45707         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
45708         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
45709         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
45710         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
45711         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
45712         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
45713         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
45714         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
45715         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
45716         * sysdeps/generic/tls.h: Update description.
45717
45718 2014-05-27  Will Newton  <will.newton@linaro.org>
45719
45720         [BZ #16990]
45721         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
45722         and restore r2 rather than just restoring.
45723
45724 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
45725
45726         [BZ #16724]
45727         * libio/tst-ftell-append.c: New test case.
45728         * libio/Makefile (tests): Add test case.
45729         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
45730         append mode.
45731         * libio/wfileops.c (do_ftell_wide): Likewise.
45732
45733 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45734
45735         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45736
45737         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
45738         ...
45739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
45740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
45741         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
45742         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
45743         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
45744         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
45745         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
45746         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
45747         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
45748         Moved ...
45749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
45750         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
45751         Moved ...
45752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
45753         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
45754         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
45755         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
45756         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
45757         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
45758         ...
45759         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
45760         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
45761         Moved ...
45762         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
45763         here.
45764         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
45765         ...
45766         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
45767         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
45768         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
45769
45770         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
45771         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
45772         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
45773         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
45774
45775         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
45776         merge into ...
45777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
45778         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
45779         ...
45780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
45781         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
45782         ...
45783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
45784         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
45785         Moved ...
45786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
45787         here.
45788         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
45789         Moved ...
45790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
45791         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
45792         Moved ...
45793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
45794
45795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
45796         conditional [RESET_PID].
45797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
45798         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
45799         removed.
45800         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
45801         removed.
45802
45803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
45804         <tcb-offsets.h>.
45805         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
45806         (__libc_vfork): New strong alias.
45807         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
45808         removed.
45809         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
45810         Removed.
45811
45812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
45813         <tcb-offsets.h>.
45814         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
45815         (__libc_vfork): New strong alias.
45816         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
45817         removed.
45818         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
45819         removed.
45820
45821 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
45822
45823         * malloc/malloc.c (mi_arena): New function.
45824         (malloc_info): Remove nested function mi_arena. Call non-nosted
45825         function mi_arena.
45826
45827 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45828
45829         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
45830         by insrwi.
45831         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
45832         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
45833         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
45834         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
45835         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
45836         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
45837         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
45838
45839 2014-05-26  Andreas Schwab  <schwab@suse.de>
45840
45841         [BZ #16984]
45842         * locale/programs/repertoire.c (repertoire_read): Add slash
45843         between I18NPATH element and file name.
45844         * locale/programs/locfile.c (locfile_read): Likewise.
45845
45846 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
45847
45848         * nptl/pthread_mutexattr_settype.c
45849         (__pthread_mutexattr_settype):
45850         Disable lock elision for PTHREAD_MUTEX_NORMAL.
45851
45852 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
45853
45854         * nptl/tst-mutex5 (do_test):
45855         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
45856
45857 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45858
45859         * benchtests/README: Document 'init' directive.
45860         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
45861         BENCH_INIT.
45862         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
45863         (parse_file): Recognize 'init' directive.
45864
45865 2014-05-26  Kyle McMartin  <kyle@redhat.com>
45866
45867         [BZ #16796]
45868         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
45869         alignment of struct pthread.
45870
45871 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45872
45873         [BZ #16878]
45874         * nscd/netgroupcache.c (addgetnetgrentX): Look for
45875         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
45876         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
45877         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
45878
45879 2014-05-25  Richard Henderson  <rth@twiddle.net>
45880
45881         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
45882         (SINGLE_THREAD_P_PIC): Remove.
45883         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
45884         (SINGLE_THREAD_P_PIC): Remove.
45885
45886         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
45887         branch to syscall error ...
45888         (PSEUDO): ... here.
45889         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
45890         from __local_syscall_error to .Lsyscall_error.
45891         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
45892         (SYSCALL_ERROR): Update label name.
45893
45894         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
45895         Do not use DOARGS/UNDOARGS.
45896         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
45897         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
45898         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
45899         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
45900         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
45901
45902         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
45903         block comment.
45904
45905         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
45906         define if !NOT_IN_libc.
45907         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
45908         define with non-default symbol versions.
45909
45910 2014-05-23  Richard Henderson  <rth@twiddle.net>
45911
45912         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
45913         (vfork, __vfork): Define via compat_symbol.
45914
45915         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
45916         [!HAVE_IFUNC] (vfork_compat): Remove.
45917         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
45918
45919 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
45920
45921         [BZ #16978]
45922         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
45923         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
45924         variable.
45925
45926 2014-05-23  Richard Henderson  <rth@twiddle.net>
45927
45928         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
45929         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
45930         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
45931         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
45932
45933         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
45934         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
45935         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
45936         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
45937         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
45938         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
45939         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
45940         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
45941         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
45942         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
45943         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
45944         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
45945         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
45946         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
45947         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
45948         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
45949         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
45950         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
45951         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
45952         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
45953         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
45954         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
45955         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
45956         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
45957         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
45958         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
45959         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
45960         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
45961         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
45962         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
45963         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
45964         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
45965         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
45966         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
45967         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
45968         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
45969         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
45970         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
45971         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
45972         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
45973         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
45974         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
45975         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
45976         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
45977         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
45978         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
45979         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
45980         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
45981         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
45982         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
45983         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
45984         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
45985         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
45986         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
45987         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
45988         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
45989
45990         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
45991         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
45992         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
45993         before exiting on error.
45994         (__libc_vfork): New strong alias.
45995         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
45996         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
45997
45998         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
45999         that was previously under [RESET_PID].
46000         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
46001
46002         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
46003
46004 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
46005
46006         [BZ #16977]
46007         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
46008         value when x - 1 is zero.
46009         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
46010         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
46011         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
46012         0.0L for an argument of 1.0L.
46013         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
46014         Likewise.
46015         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
46016         value when x - 1 is zero.
46017         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
46018         * sysdeps/i386/fpu/libm-test-ulps: Update.
46019         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46020
46021 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
46022
46023         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
46024         alphasort and versionsort.
46025
46026 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46027
46028         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
46029         macro.
46030         [copysignf]: Likewise.
46031
46032 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
46033
46034         * crypt/md5-crypt.c: Fix formatting.
46035
46036 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
46037
46038         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
46039         (b64_from_24bit): New function.
46040
46041 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46042
46043         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
46044         libc_hidden_builtin_def to ifunc.
46045         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
46046         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
46047
46048 2014-05-21  Roland McGrath  <roland@hack.frob.com>
46049
46050         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
46051         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
46052
46053 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
46054
46055         * nscd/Depend (linuxthreads): Remove.
46056         (nptl): Add.
46057         * resolv/Depend (linuxthreads): Remove.
46058         * rt/Depend (linuxthreads): Remove.
46059
46060         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
46061         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
46062         $(common-objpfx)elf/.
46063         (link-libc-before-gnulib): Likewise.
46064         (elfobjdir): Remove variable.
46065         * Makefile (install): Use $(elf-objpfx) instead of
46066         $(common-objpfx)elf/.
46067         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
46068         $(elfobjdir)/.
46069         (link-libc-deps): Likewise.
46070         ($(common-objpfx)libc.so): Likewise.
46071         ($(common-objpfx)linkobj/libc.so): Likewise.
46072         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
46073         instead of $(common-objpfx)elf/.
46074         (symbolic-link-list): Likewise.
46075         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
46076         [$(cross-compiling) = no]: Likewise.
46077         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
46078         $(elfobjdir)/.
46079         (static-gnulib-arch): Likewise.
46080         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
46081         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
46082         $(common-objpfx)elf/.
46083
46084 2014-05-21  Richard Henderson  <rth@redhat.com>
46085
46086         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
46087         (SINGLE_THREAD_P): Use the correct width load.  Fold
46088         into the ldr offset.
46089
46090         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
46091         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
46092
46093 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
46094
46095         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
46096         (libgcc_s_resume): Use __attribute_used__.
46097         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
46098         Likewise.
46099
46100 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46101
46102         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
46103         optimization when used with float constants.
46104
46105         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46106
46107 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
46108
46109         [BZ #16915]
46110         * locale/nl_langinfo_l.c: Make direct reference to every
46111         _nl_current_CATEGORY symbol.
46112         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
46113         (tests-static): Add tst-langinfo-static.
46114         (tests-special): Add tst-langinfo-static.out.
46115         ($(objpfx)tst-langinfo.out): Redirect output.
46116         ($(objpfx)tst-langinfo-static.out): New.
46117         * localedata/tst-langinfo.sh: Send output to stdout.
46118         * localedata/tst-langinfo-static.c: New file.
46119
46120         [BZ #16965]
46121         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
46122         when the shift amount is modulo the limb size.
46123
46124 2014-05-20  Richard Henderson  <rth@redhat.com>
46125
46126         [BZ #16967]
46127         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
46128         Change type of sa_flags from unsigned int to int.
46129
46130         [BZ #16966]
46131         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
46132
46133         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
46134
46135 2014-05-20  Will Newton  <will.newton@linaro.org>
46136
46137         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
46138         Test the return value of the system call in the nocancel case.
46139
46140 2014-05-20  Will Newton  <will.newton@linaro.org>
46141             Yvan Roux  <yvan.roux@linaro.org>
46142
46143         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
46144         #include of asm/ptrace.h.
46145         (PTRACE_GET_THREAD_AREA): Remove #undef.
46146         (PTRACE_GETHBPREGS): Likewise.
46147         (PTRACE_SETHBPREGS): Likewise.
46148         (struct user_regs_struct): New structure.
46149         (struct user_fpsimd_struct): New structure.
46150         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
46151         #include of asm/ptrace.h and second #include of sys/user.h.
46152         (PTRACE_GET_THREAD_AREA): Remove #undef.
46153         (PTRACE_GETHBPREGS): Likewise.
46154         (PTRACE_SETHBPREGS): Likewise.
46155         (ELF_NGREG): Use new struct user_regs_struct.
46156         (elf_fpregset_t): Use new struct user_fpsimd_struct.
46157
46158 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46159
46160         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
46161         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
46162
46163 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
46164
46165         [BZ #16958]
46166         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
46167         membar to avoid block loads/stores to overlap previous stores.
46168
46169 2014-05-17  Richard Henderson  <rth@redhat.com>
46170
46171         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
46172         Create the __##syscall_name##_nocancel entry point.
46173         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
46174         Remove; let the sysdep-cancel.h code create it.
46175
46176 2014-05-17  David S. Miller  <davem@davemloft.net>
46177
46178         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
46179         Protect with __USE_GNU.
46180         (TIOCSET_TEMPT): Likewise.
46181         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
46182         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
46183         these are already provided in bits/ioctl-types.h
46184
46185 2014-05-16  Roland McGrath  <roland@hack.frob.com>
46186
46187         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
46188         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
46189
46190         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
46191         Use wait4 regardless of [__NR_waitpid].
46192
46193 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
46194
46195         PR libgcc/60166
46196         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
46197         (_FP_NANSIGN_Q): Set the quiet bit.
46198
46199 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
46200
46201         * benchtests/Makefile
46202         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
46203         not $(common-objpfx)math/libm.so.
46204         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
46205         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
46206         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
46207         $(common-objpfx)dlfcn/libdl.so.
46208         ($(objpfx)tst-audit8): Depend on $(libm), not
46209         $(common-objpfx)math/libm.so.
46210         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
46211         not $(common-objpfx)dlfcn/libdl.so.
46212         * math/Makefile
46213         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
46214         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
46215         [$(build-shared) = yes].
46216         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
46217         $(common-objpfx)nptl/libpthread.so.
46218         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
46219         $(common-objpfx)math/libm.so$(libm.so-version) or
46220         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
46221         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
46222         $(common-objpfx)dlfcn/libdl.so.
46223         * setjmp/Makefile (link-libm): Remove variable.
46224         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
46225         * stdio-common/Makefile (link-libm): Remove variable.
46226         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
46227         * stdlib/Makefile (link-libm): Remove variable.
46228         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
46229         ($(objpfx)tst-strtod-round): Likewise.
46230         ($(objpfx)tst-tininess): Likewise.
46231         ($(objpfx)tst-strtod-underflow): Likewise.
46232         ($(objpfx)tst-strtod6): Likewise.
46233         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
46234         $(libdl), not $(common-objpfx)nptl/libpthread.so and
46235         $(common-objpfx)dlfcn/libdl.so.
46236
46237 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46238
46239         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
46240         BSD terminal modes definitions.
46241
46242 2014-05-16  Roland McGrath  <roland@hack.frob.com>
46243
46244         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
46245         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
46246
46247         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
46248         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
46249         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
46250         Don't do #include_next.
46251         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
46252         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
46253         Don't do #include_next.
46254         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
46255         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
46256         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
46257         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
46258
46259 2014-05-16  Allan McRae  <allan@archlinux.org>
46260
46261         * po/sv.po: Update Swedish translation from translation project.
46262
46263         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
46264         in sed expression.
46265
46266 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
46267
46268         [BZ #16917]
46269         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
46270         errno if the TIOCGPTN ioctl fails with an error different than
46271         EINVAL.
46272         * login/tst-ptsname.c: New file.
46273         * login/Makefile (tests): Add tst-ptsname.
46274
46275         [BZ #16943]
46276         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
46277         and prlimit64.
46278
46279 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
46280
46281         [BZ #16849]
46282         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
46283         herrno to return EAI_AGAIN.
46284
46285 2014-05-14  Roland McGrath  <roland@hack.frob.com>
46286
46287         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
46288         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
46289         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
46290         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
46291         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
46292         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
46293         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
46294         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
46295         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
46296         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
46297         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
46298         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
46299         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
46300         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
46301         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
46302         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
46303         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
46304         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
46305         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
46306         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
46307         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
46308         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
46309         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
46310         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
46311         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
46312         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
46313         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
46314         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
46315         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
46316         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
46317         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
46318         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
46319         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
46320         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
46321         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
46322         Moved ...
46323         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
46324         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
46325         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
46326         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
46327         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
46328         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
46329         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
46330         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
46331         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
46332         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
46333         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
46334         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
46335         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
46336         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
46337         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
46338         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
46339         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
46340         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
46341         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
46342         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
46343         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
46344         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
46345         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
46346         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
46347         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
46348         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
46349         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
46350         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
46351         Moved ...
46352         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
46353         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
46354         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
46355         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
46356         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
46357         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
46358         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
46359         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
46360         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
46361         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
46362         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
46363         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
46364         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
46365         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
46366         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
46367         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
46368         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
46369         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
46370         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
46371         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
46372         Moved ...
46373         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
46374         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
46375         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
46376
46377         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
46378         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
46379         (libpthread-sysdep_routines): Add elision-related stuff here instead.
46380         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
46381         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
46382         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
46383         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
46384         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
46385         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
46386         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
46387         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
46388         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
46389         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
46390         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
46391         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
46392         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
46393         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
46394         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
46395         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
46396         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
46397         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
46398         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
46399         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
46400         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
46401         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
46402         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
46403         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
46404         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
46405         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
46406         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
46407         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
46408
46409         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
46410         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
46411
46412         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
46413         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
46414         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
46415         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
46416         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
46417         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
46418         Moved ...
46419         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
46420         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
46421         Moved ...
46422         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
46423         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
46424         Moved ...
46425         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
46426         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
46427         Moved ...
46428         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
46429         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
46430         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
46431         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
46432         Moved ...
46433         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
46434         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
46435         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
46436         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
46437         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
46438         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
46439         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
46440         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
46441         Moved ...
46442         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
46443         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
46444         Moved ...
46445         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
46446         ... here.
46447         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
46448         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
46449         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
46450         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
46451         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
46452         Moved ...
46453         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
46454         ... here.
46455         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
46456         Moved ...
46457         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
46458         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
46459         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
46460         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
46461         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
46462         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
46463         Moved ...
46464         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
46465         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
46466         Moved ...
46467         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
46468         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
46469         Moved ...
46470         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
46471         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
46472         Moved ...
46473         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
46474         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
46475         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
46476         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
46477         Moved ...
46478         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
46479         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
46480         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
46481         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
46482         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
46483         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
46484         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
46485         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
46486         Moved ...
46487         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
46488         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
46489         Moved ...
46490         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
46491         ... here.
46492         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
46493         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
46494         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
46495         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
46496         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
46497         Moved ...
46498         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
46499         ... here.
46500         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
46501         Moved ...
46502         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
46503         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
46504         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
46505         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
46506         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
46507         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
46508         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
46509         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
46510         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
46511         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
46512         Moved ...
46513         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
46514         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
46515         Moved ...
46516         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
46517         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
46518         Moved ...
46519         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
46520         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
46521         Moved ...
46522         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
46523         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
46524         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
46525         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
46526         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
46527         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
46528         Moved ...
46529         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
46530         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
46531         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
46532         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
46533         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
46534         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
46535         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
46536         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
46537         Moved ...
46538         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
46539         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
46540         Moved ...
46541         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
46542         ... here.
46543         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
46544         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
46545         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
46546         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
46547         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
46548         Moved ...
46549         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
46550         ... here.
46551         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
46552         Moved ...
46553         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
46554         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
46555         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
46556         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
46557         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
46558         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
46559         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
46560         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
46561         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
46562         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
46563         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
46564
46565         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
46566         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
46567
46568         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
46569         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
46570
46571         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
46572         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
46573         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
46574         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
46575         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
46576         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
46577         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
46578         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
46579         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
46580         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
46581         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
46582         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
46583         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
46584         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
46585         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
46586         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
46587         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
46588         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
46589         Moved ...
46590         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
46591         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
46592         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
46593         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
46594         Moved ...
46595         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
46596         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
46597         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
46598         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
46599         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
46600         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
46601         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
46602         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
46603         Moved ...
46604         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
46605         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
46606         Moved ...
46607         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
46608         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
46609         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
46610         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
46611         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
46612         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
46613         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
46614         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
46615         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
46616         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
46617         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
46618         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
46619         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
46620         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
46621         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
46622         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
46623         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
46624
46625         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
46626         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
46627         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
46628         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
46629         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
46630
46631         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
46632         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
46633         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
46634         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
46635         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
46636         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
46637         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
46638         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
46639         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
46640         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
46641
46642         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
46643         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
46644
46645         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
46646         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
46647         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
46648         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
46649         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
46650         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
46651         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
46652         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
46653         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
46654         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
46655         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
46656         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
46657         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
46658         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
46659         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
46660         Update #include.
46661         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
46662         Likewise.
46663         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
46664         Likewise.
46665         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
46666         Likewise.
46667         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
46668         Likewise.
46669         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
46670         Likewise.
46671         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
46672         Likewise.
46673         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
46674         Likewise.
46675         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
46676         Likewise.
46677         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
46678         Likewise.
46679         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
46680         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
46681         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
46682         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
46683         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
46684         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
46685         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
46686         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
46687         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
46688         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
46689         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
46690         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
46691         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
46692         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
46693         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
46694
46695         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
46696         that was previously under [RESET_PID].
46697         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
46698         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
46699         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
46700
46701         * sysdeps/i386/nptl/Implies: New file.
46702         * sysdeps/x86_64/nptl/Implies: New file.
46703         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
46704         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
46705         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
46706         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
46707
46708         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
46709         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
46710         (__libc_vfork): New strong alias.
46711         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
46712         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
46713
46714         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
46715         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
46716         (__libc_vfork): New strong alias.
46717         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
46718         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
46719
46720         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
46721         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
46722         (__libc_vfork): New strong alias.
46723         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
46724         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
46725         * nptl/pt-vfork.c: New file.
46726         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
46727         (libpthread: GLIBC_2.20): New version set (empty).
46728
46729 2014-05-14  Will Newton  <will.newton@linaro.org>
46730
46731         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
46732         rather than #if.
46733
46734 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
46735
46736         [BZ #16564]
46737         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
46738         arguments with exponent 65 or above.
46739         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
46740         arguments 0x1p113L or above.
46741         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
46742         to arguments 0x1p107L or above.
46743         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
46744         positive arguments with exponent 65 or above.
46745         * math/auto-libm-test-in: Add more tests of log1p.
46746         * math/auto-libm-test-out: Regenerated.
46747
46748         [BZ #16928]
46749         * math/s_cacos.c (__cacos): Ensure zero real part of result from
46750         non-finite arguments is +0.
46751         * math/s_cacosf.c (__cacosf): Likewise.
46752         * math/s_cacosl.c (__cacosl): Likewise.
46753         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
46754         * sysdeps/i386/fpu/libm-test-ulps: Update.
46755         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46756
46757         [BZ #16927]
46758         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
46759         value.
46760         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
46761         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
46762         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
46763         for explicit high bit of mantissa when testing for argument equal
46764         to 1.
46765         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
46766         * sysdeps/i386/fpu/libm-test-ulps: Update.
46767         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46768
46769         [BZ #16516]
46770         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
46771         (__erf): Scale by 16 instead of 8 in potentially underflowing
46772         case.  Ensure exception if result actually underflows.
46773         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
46774         (__erff): Scale by 16 instead of 8 in potentially underflowing
46775         case.  Ensure exception if result actually underflows.
46776         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
46777         (efx8): Remove variable.
46778         (__erfl): Scale by 16 instead of 8 in potentially underflowing
46779         case.  Ensure exception if result actually underflows.
46780         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
46781         (efx8): Remove variable.
46782         (__erfl): Scale by 16 instead of 8 in potentially underflowing
46783         case.  Ensure exception if result actually underflows.
46784         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
46785         (efx8): Remove variable.
46786         (__erfl): Scale by 16 instead of 8 in potentially underflowing
46787         case.  Ensure exception if result actually underflows.
46788         * math/auto-libm-test-in: Add more tests of erf.
46789         * math/auto-libm-test-out: Regenerated.
46790
46791 2014-05-14  Andreas Schwab  <schwab@suse.de>
46792
46793         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
46794         Remove code conditionalized on USE___THREAD.
46795
46796         * config.h.in (HAVE_PT_CHOWN): Define as 0.
46797         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
46798         not definedness.
46799
46800 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
46801
46802         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
46803         Define unconditionally.
46804         (__ASSUME_O_CLOEXEC): Likewise.
46805         (__ASSUME_SOCK_CLOEXEC): Likewise.
46806         (__ASSUME_IN_NONBLOCK): Likewise.
46807         (__ASSUME_PIPE2): Likewise.
46808         (__ASSUME_EVENTFD2): Likewise.
46809         (__ASSUME_SIGNALFD4): Likewise.
46810         (__ASSUME_DUP3): Likewise.
46811         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
46812         (__ASSUME_DUP3): Do not define.
46813         (__ASSUME_EVENTFD2): Likewise.
46814         (__ASSUME_IN_NONBLOCK): Likewise.
46815         (__ASSUME_O_CLOEXEC): Likewise.
46816         (__ASSUME_PIPE2): Likewise.
46817         (__ASSUME_SIGNALFD4): Likewise.
46818         (__ASSUME_SOCK_CLOEXEC): Likewise.
46819         (__ASSUME_UTIMES): Undefine.
46820         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
46821         (__ASSUME_UTIMES): Do not define.
46822         (__ASSUME_O_CLOEXEC): Likewise.
46823         (__ASSUME_SOCK_CLOEXEC): Likewise.
46824         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
46825         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
46826         0x020621].
46827         (__ASSUME_PIPE2): Likewise.
46828         (__ASSUME_EVENTFD2): Likewise.
46829         (__ASSUME_SIGNALFD4): Likewise.
46830         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
46831         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
46832         Do not define.
46833         (__ASSUME_EVENTFD2): Likewise.
46834         (__ASSUME_SIGNALFD4): Likewise.
46835         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
46836         (__ASSUME_32BITUIDS): Likewise.
46837         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
46838         (__ASSUME_IPC64): Likewise.
46839         (__ASSUME_ST_INO_64_BIT): Likewise.
46840         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
46841         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
46842         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
46843         (__ASSUME_UTIMES): Do not define.
46844         (__ASSUME_PSELECT): Likewise.
46845         (__ASSUME_PPOLL): Likewise.
46846         (__ASSUME_O_CLOEXEC): Likewise.
46847         (__ASSUME_SOCK_CLOEXEC): Likewise.
46848         (__ASSUME_IN_NONBLOCK): Likewise.
46849         (__ASSUME_PIPE2): Likewise.
46850         (__ASSUME_EVENTFD2): Likewise.
46851         (__ASSUME_SIGNALFD4): Likewise.
46852         (__ASSUME_DUP3): Likewise.
46853         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
46854         (__ASSUME_UTIMES): Likewise.
46855         (__ASSUME_O_CLOEXEC): Likewise.
46856         (__ASSUME_SOCK_CLOEXEC): Likewise.
46857         (__ASSUME_IN_NONBLOCK): Likewise.
46858         (__ASSUME_PIPE2): Likewise.
46859         (__ASSUME_EVENTFD2): Likewise.
46860         (__ASSUME_SIGNALFD4): Likewise.
46861         (__ASSUME_DUP3): Likewise.
46862         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
46863         (__ASSUME_UTIMES): Likewise.
46864         (__ASSUME_O_CLOEXEC): Likewise.
46865         (__ASSUME_SOCK_CLOEXEC): Likewise.
46866         (__ASSUME_IN_NONBLOCK): Likewise.
46867         (__ASSUME_PIPE2): Likewise.
46868         (__ASSUME_EVENTFD2): Likewise.
46869         (__ASSUME_SIGNALFD4): Likewise.
46870         (__ASSUME_DUP3): Likewise.
46871         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
46872         Likewise.
46873         (__ASSUME_UTIMES): Likewise.
46874         (__ASSUME_EVENTFD2): Likewise.
46875         (__ASSUME_SIGNALFD4): Likewise.
46876         * sysdeps/unix/sysv/linux/tile/kernel-features.h
46877         (__ASSUME_O_CLOEXEC): Likewise.
46878         (__ASSUME_SOCK_CLOEXEC): Likewise.
46879         (__ASSUME_IN_NONBLOCK): Likewise.
46880         (__ASSUME_PIPE2): Likewise.
46881         (__ASSUME_EVENTFD2): Likewise.
46882         (__ASSUME_SIGNALFD4): Likewise.
46883         (__ASSUME_DUP3): Likewise.
46884         (__ASSUME_UTIMES): Undefine.
46885
46886         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
46887         feclearexcept.  Remove symbol versioning code.
46888         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
46889         symbol versioning code.
46890         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
46891         symbol versioning code.
46892         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
46893         feupdateenv.  Remove symbol versioning code.
46894         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
46895         fegetexceptflag.  Remove symbol versioning code.
46896         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
46897         fesetexceptflag.  Remove symbol versioning code.
46898         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
46899         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
46900         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
46901         (__posix_fadvise64_l32): Remove prototype.
46902         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
46903         code.
46904
46905 2014-05-13  Roland McGrath  <roland@hack.frob.com>
46906
46907         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
46908         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
46909         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
46910         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
46911
46912 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
46913
46914         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
46915         current working directory
46916
46917 2014-05-13  Roland McGrath  <roland@hack.frob.com>
46918
46919         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
46920         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
46921         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
46922         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
46923         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
46924         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
46925         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
46926         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
46927         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
46928         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
46929         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
46930         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
46931         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
46932         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
46933         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
46934         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
46935         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
46936         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
46937         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
46938         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
46939         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
46940         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
46941         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
46942         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
46943         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
46944         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
46945         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
46946         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
46947         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
46948         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
46949         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
46950         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
46951         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
46952         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
46953         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
46954         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
46955         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
46956         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
46957         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
46958         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
46959         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
46960         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
46961
46962         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
46963         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
46964
46965         * sysdeps/unix/sysv/linux/arm/Makefile
46966         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
46967         Add rt-aeabi_unwind_cpp_pr1.
46968         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
46969         Add nptl-aeabi_unwind_cpp_pr1.
46970         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
46971         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
46972         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
46973         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
46974         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
46975         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
46976
46977         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
46978         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
46979         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
46980         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
46981
46982         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
46983         Deconditionalize the code that was previously under [RESET_PID].
46984         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
46985
46986         * sysdeps/generic/exit-thread.h: New file.
46987         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
46988         * include/unistd.h (__exit_thread): Remove declaration.
46989         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
46990         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
46991         * csu/libc-start.c: Include <exit-thread.h>.
46992         (LIBC_START_MAIN): Pass no argument to __exit_thread.
46993         * nptl/pthread_create.c: Include <exit-thread.h>.
46994         (start_thread): Call __exit_thread in place of __exit_thread_inline.
46995         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
46996         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
46997         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
46998         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
46999         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
47000         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
47001         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
47002         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
47003         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
47004         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
47005         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
47006         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
47007         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
47008         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
47009         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
47010         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
47011
47012 2014-05-13  Andreas Schwab  <schwab@suse.de>
47013
47014         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
47015
47016 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
47017
47018         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
47019         (__ASSUME_UTIMES): Do not condition on kernel version.
47020         (__ASSUME_PSELECT): Define unconditionally.
47021         (__ASSUME_PPOLL): Likewise.
47022         (__ASSUME_ATFCTS): Likewise.
47023         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
47024         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
47025         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
47026         (__ASSUME_UTIMENSAT): Define unconditionally.
47027         (__ASSUME_PRIVATE_FUTEX): Likewise.
47028         (__ASSUME_FALLOCATE): Likewise.
47029         (__ASSUME_O_CLOEXEC): Likewise.
47030         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
47031         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
47032         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
47033         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
47034         (__ASSUME_IN_NONBLOCK): Likewise.
47035         (__ASSUME_PIPE2): Likewise.
47036         (__ASSUME_EVENTFD2): Likewise.
47037         (__ASSUME_SIGNALFD4): Likewise.
47038         (__ASSUME_DUP3): Likewise.
47039         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
47040         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
47041         (__ASSUME_AT_RANDOM): Likewise.
47042         (__ASSUME_PREADV): Likewise.
47043         (__ASSUME_PWRITEV): Likewise.
47044         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
47045         (__ASSUME_F_GETOWN_EX): Define unconditionally.
47046         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
47047         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
47048         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
47049         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
47050         (__ASSUME_O_CLOEXEC): Define unconditionally.
47051         (__ASSUME_PSELECT): Do not undefine conditionally.
47052         (__ASSUME_PPOLL): Likewise.
47053         (__ASSUME_ATFCTS): Likewise.
47054         (__ASSUME_SET_ROBUST_LIST): Likewise.
47055         (__ASSUME_UTIMENSAT): Likewise.
47056         (__ASSUME_FDATASYNC): Define unconditionally.
47057         * sysdeps/unix/sysv/linux/arm/kernel-features.h
47058         (__ASSUME_SIGFRAME_V2): Likewise.
47059         )__ASSUME_EVENTFD2): Likewise.
47060         (__ASSUME_SIGNALFD4): Likewise.
47061         (__ASSUME_PSELECT): Do not undefine conditionally.
47062         (__ASSUME_PPOLL): Likewise.
47063         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
47064         (__ASSUME_PSELECT): Define unconditionally.
47065         (__ASSUME_PPOLL): Likewise.
47066         (__ASSUME_O_CLOEXEC): Likewise.
47067         (__ASSUME_SOCK_CLOEXEC): Likewise.
47068         (__ASSUME_IN_NONBLOCK): Likewise.
47069         (__ASSUME_PIPE2): Likewise.
47070         (__ASSUME_EVENTFD2): Likewise.
47071         (__ASSUME_SIGNALFD4): Likewise.
47072         (__ASSUME_DUP3): Likewise.
47073         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
47074         (__ASSUME_O_CLOEXEC): Likewise.
47075         (__ASSUME_SOCK_CLOEXEC): Likewise.
47076         (__ASSUME_IN_NONBLOCK): Likewise.
47077         (__ASSUME_PIPE2): Likewise.
47078         (__ASSUME_EVENTFD2): Likewise.
47079         (__ASSUME_SIGNALFD4): Likewise.
47080         (__ASSUME_DUP3): Likewise.
47081         * sysdeps/unix/sysv/linux/mips/kernel-features.h
47082         (__ASSUME_EVENTFD2): Likewise.
47083         (__ASSUME_SIGNALFD4): Likewise.
47084         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
47085
47086 2014-05-12  Andreas Schwab  <schwab@suse.de>
47087
47088         [BZ #16932]
47089         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
47090         (_nss_nis_gethostbyname4_r): Return error if item length is larger
47091         than maximum RPC packet size.
47092         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
47093         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
47094         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
47095         (_nss_nis_getservbyport_r): Likewise.
47096
47097 2014-05-12  Will Newton  <will.newton@linaro.org>
47098
47099         * malloc/Makefile (tests): Add tst-mallopt.
47100         * malloc/tst-mallopt.c: New file.
47101
47102 2014-05-09  Roland McGrath  <roland@hack.frob.com>
47103
47104         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
47105         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
47106
47107 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47108
47109         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
47110         (tst-tlsmod6.so): Likewise.
47111
47112 2014-05-09  Roland McGrath  <roland@hack.frob.com>
47113
47114         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
47115
47116 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
47117
47118         [BZ #16064]
47119         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
47120         and <dl-procinfo.h>.
47121         (__fegetenv): Save SSE state in envp->__eip if supported.
47122         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
47123         envp->__eip if supported.
47124         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
47125         and <dl-procinfo.h>.
47126         (__fesetenv): Always set __eip, __cs_selector, __opcode,
47127         __data_offset and __data_selector in environment to 0.  Set SSE
47128         state if supported.
47129         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
47130         test-fenv-sse.
47131         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
47132         -mfpmath=sse.
47133         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
47134
47135 2014-05-09  Will Newton  <will.newton@linaro.org>
47136
47137         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
47138         and libc_relro_required for ARM.
47139         * sysdeps/arm/preconfigure: Regenerate.
47140
47141 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
47142             Stefan Liebler  <stli@linux.vnet.ibm.com>
47143
47144         * config.make.in (enable-lock-elision): New Makefile variable.
47145         * configure.ac: Likewise.
47146         * configure: Regenerate.
47147         * sysdeps/s390/configure.ac:
47148         Add check for gcc transactions support.
47149         * sysdeps/s390/configure: Regenerate.
47150         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
47151         Build elision files if enabled.
47152         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
47153         Add lock elision support for s390.
47154         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
47155         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
47156         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
47157         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
47158         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
47159         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
47160         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
47161         Likewise.
47162         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
47163         Likewise.
47164         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
47165         Likewise.
47166         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
47167         Likewise.
47168         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
47169         (__lll_timedlock_elision, __lll_lock_elision)
47170         (__lll_unlock_elision, __lll_trylock_elision)
47171         (lll_timedlock_elision, lll_lock_elision)
47172         (lll_unlock_elision, lll_trylock_elision): Add.
47173         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
47174         (pthread_mutex_t): Add lock elision support for s390.
47175
47176 2014-05-14  Wilco  <wdijkstr@arm.com>
47177
47178         * sysdeps/arm/fclrexcpt.c: Cleanup.
47179         * sysdeps/arm/fedisblxcpt.c: Cleanup.
47180         * sysdeps/arm/feenablxcpt.c: Cleanup.
47181         * sysdeps/arm/fegetenv.c: Cleanup.
47182         * sysdeps/arm/fegetexcept.c: Cleanup.
47183         * sysdeps/arm/fegetround.c: Cleanup.
47184         * sysdeps/arm/feholdexcpt.c: Cleanup.
47185         * sysdeps/arm/fesetenv.c: Cleanup.
47186         * sysdeps/arm/fesetround.c: Cleanup.
47187         * sysdeps/arm/feupdateenv.c: Cleanup.
47188         * sysdeps/arm/fgetexcptflg.c: Cleanup.
47189         * sysdeps/arm/fraiseexcpt.c: Cleanup.
47190         * sysdeps/arm/fsetexcptflg.c: Cleanup.
47191         * sysdeps/arm/ftestexcept.c: Cleanup.
47192         * sysdeps/arm/get-rounding-mode.h: Cleanup.
47193         * sysdeps/arm/setfpucw.c: Cleanup.
47194
47195 2014-05-09  Will Newton  <will.newton@linaro.org>
47196
47197         * sysdeps/arm/armv7/strcmp.S: New file.
47198         * NEWS: Mention addition of ARMv7 optimized strcmp.
47199
47200 2014-05-08  Roland McGrath  <roland@hack.frob.com>
47201
47202         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
47203         look for %.ac rather than %.in.
47204
47205         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
47206         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
47207         * sysdeps/mach/hurd/configure: Regenerated.
47208         * sysdeps/unix/sysv/linux/configure: Regenerated.
47209
47210         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
47211
47212 2014-05-07  Steve Ellcey  <sellcey@mips.com>
47213
47214         [BZ #16922]
47215         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
47216         (LONG_SUB): Ditto.
47217         (PTR_SUB): Ditto.
47218
47219 2014-05-07  Andreas Schwab  <schwab@suse.de>
47220
47221         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
47222         when skipping over non-matching result from nscd.
47223
47224 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
47225
47226         [BZ #16876]
47227         * nptl/sockperf.c (client): Check socket return value.
47228
47229         [BZ #16877]
47230         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
47231         nscd security class.
47232
47233 2014-05-06  Roland McGrath  <roland@hack.frob.com>
47234
47235         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
47236         * sysdeps/arm/unwind.h: ... here.
47237
47238 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
47239
47240         [BZ #16916]
47241         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
47242         Define.
47243
47244 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
47245
47246         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
47247         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
47248         multiarch strncpy for PPC64.
47249         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
47250         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
47251         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
47252         multiarch optimizations.
47253         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
47254         (__libc_ifunc_impl_list): Likewise.
47255         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
47256         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
47257         multiarch stpncpy for PPC64.
47258         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
47259         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
47260
47261 2014-05-06  Andreas Schwab  <schwab@suse.de>
47262
47263         [BZ #16912]
47264         * gmon/mcount.c (_MCOUNT_DECL): Use
47265         atomic_compare_and_exchange_bool_acq instead of
47266         catomic_compare_and_exchange_bool_acq.
47267
47268 2014-05-05  Roland McGrath  <roland@hack.frob.com>
47269
47270         * elf/Makefile (others, install-bin): Remove pldd.
47271         (pldd-modules): Variable removed.
47272         ($(objpfx)pldd): Target removed.
47273         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
47274         (others, install-bin): Append pldd here.
47275         ($(objpfx)pldd): New target.
47276
47277         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
47278         to 0, so the first #if test emitted later doesn't see it undefined.
47279         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
47280         * sysdeps/gnu/errlist.c: Regenerated.
47281
47282 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47283
47284         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
47285         [libc_hidden_builtin_def]: Define to empty value.
47286         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
47287         [libc_hidden_builtin_def]: Likewise.
47288         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
47289         [libc_hidden_builtin_def]: Likewise.
47290         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
47291         [libc_hidden_builtin_def]: Likewise.
47292         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
47293         __redirect_memcpy and define ifunc as default hidden symbol.
47294         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
47295         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
47296
47297 2014-05-04  Adam Conrad  <adconrad@0c3.net>
47298
47299         * locale/iso-4217.def: Reintroduce XDR currency.
47300
47301 2014-05-04  Allan McRae  <allan@archlinux.org>
47302
47303         * po/eo.po: Update Esperanto translation from translation project.
47304
47305 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
47306
47307         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
47308         and FEATURE_INDEX_MAX to 1.
47309         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
47310
47311 2014-05-01  Steve Ellcey  <sellcey@mips.com>
47312
47313         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
47314         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
47315         * iconvdata/big5.c (ONE_DIRECTION): Define.
47316         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
47317         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
47318         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
47319         * iconvdata/cp932.c (ONE_DIRECTION): Define.
47320         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
47321         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
47322         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
47323         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
47324         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
47325         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
47326         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
47327         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
47328         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
47329         * iconvdata/gbk.c (ONE_DIRECTION): Define.
47330         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
47331         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
47332         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
47333         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
47334         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
47335         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
47336         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
47337         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
47338         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
47339         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
47340         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
47341         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
47342         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
47343         * iconvdata/iso646.c (ONE_DIRECTION): Define.
47344         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
47345         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
47346         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
47347         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
47348         * iconvdata/johab.c (ONE_DIRECTION): Define.
47349         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
47350         * iconvdata/sjis.c (ONE_DIRECTION): Define.
47351         * iconvdata/t.61.c (ONE_DIRECTION): Define.
47352         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
47353         * iconvdata/tscii.c (ONE_DIRECTION): Define.
47354         * iconvdata/uhc.c (ONE_DIRECTION): Define.
47355         * iconvdata/unicode.c (ONE_DIRECTION): Define.
47356         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
47357         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
47358         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
47359
47360 2014-05-01  Roland McGrath  <roland@hack.frob.com>
47361
47362         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
47363         (_IO_JUMPS_OFFSET): Define to 0.
47364
47365         * nptl/sysdeps/pthread/bits/libc-lock.h
47366         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
47367         (__libc_lock_define_initialized_recursive): Always define using
47368         initializer.  Modern compilers treat uninitialized (implicit zero) and
47369         explicit zero initializers the same (i.e. put the datum in bss).
47370
47371 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
47372
47373         * nscd/nscd-client.h: Include <string.h>.
47374
47375 2014-05-01  David S. Miller  <davem@davemloft.net>
47376
47377         [BZ #16885]
47378         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
47379         multiple zero bytes exist at the end of a string.
47380         Reported by Aurelien Jarno <aurelien@aurel32.net>
47381
47382         * string/test-strcmp.c (check): Add explicit test for situations where
47383         there are multiple zero bytes after the first.
47384
47385 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
47386
47387         [BZ #16890]
47388         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
47389         when compiling wprintf.
47390         * stdio-common/tstdiomisc.c (t3): New function.
47391         (main): Call it.
47392
47393 2014-05-01  Steve Ellcey  <sellcey@mips.com>
47394
47395         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
47396         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
47397         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
47398         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
47399
47400 2014-05-01  Steve Ellcey  <sellcey@mips.com>
47401
47402         * stdlib/longlong.h: Updated from GCC.
47403
47404 2014-05-01  Will Newton  <will.newton@linaro.org>
47405             Bernard Ogden  <bernie.ogden@linaro.org>
47406
47407         * NEWS: Update fixed bug list.
47408
47409         [BZ #15119]
47410         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
47411
47412 2014-04-30  David S. Miller  <davem@davemloft.net>
47413
47414         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
47415         (libc_feholdexcept_setround_sparc_ctx): New function.
47416         (libc_fesetenv_sparc_ctx): Likewise.
47417         (libc_feupdateenv_sparc_ctx): Likewise.
47418         (libc_feholdsetround_sparc_ctx): Likewise.
47419         (libc_feholdexcept_setround_ctx): Define.
47420         (libc_feholdexcept_setroundf_ctx): Likewise.
47421         (libc_feholdexcept_setroundl_ctx): Likewise.
47422         (libc_fesetenv_ctx): Likewise.
47423         (libc_fesetenvf_ctx): Likewise.
47424         (libc_fesetenvl_ctx): Likewise.
47425         (libc_feupdateenv_ctx): Likewise.
47426         (libc_feupdateenvf_ctx): Likewise.
47427         (libc_feupdateenvl_ctx): Likewise.
47428         (libc_feresetround_ctx): Likewise.
47429         (libc_feresetroundf_ctx): Likewise.
47430         (libc_feresetroundl_ctx): Likewise.
47431         (libc_feholdsetround_ctx): Likewise.
47432         (libc_feholdsetroundf_ctx): Likewise.
47433         (libc_feholdsetroundl_ctx): Likewise.
47434
47435         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
47436         with __USE_GNU instead of XOPEN cpp guards.
47437
47438         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
47439         0.
47440
47441         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
47442         with XOPEN cpp guards.
47443
47444 2014-04-30  Julian Brown  <julian@codesourcery.com>
47445
47446         [BZ #16888]
47447         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
47448         handling.
47449
47450 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
47451
47452         [BZ #9894]
47453         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
47454         Change to 2.6.32.
47455         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
47456         * sysdeps/unix/sysv/linux/configure: Regenerated.
47457         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
47458         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
47459         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
47460         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
47461         * README: Update reference to required Linux kernel version.
47462         * manual/install.texi (Linux): Update reference to required Linux
47463         kernel headers version.
47464         * INSTALL: Regenerated.
47465
47466         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
47467         header inclusion.
47468         [POSIX] (limits.h): Likewise.
47469         [POSIX] (math.h): Likewise.
47470         [POSIX] (sys/wait.h): Likewise.
47471         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
47472         function.
47473         [POSIX] (stddef.h): Do not allow header inclusion.
47474
47475 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47476
47477         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
47478
47479 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
47480
47481         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
47482         Return immediately after lll_futex_wake.
47483
47484 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
47485
47486         [BZ #16791]
47487         * nscd/nscd-client.h (datahead_init_common): Initialize entire
47488         structure.
47489         (datahead_init_pos): Call datahead_init_common early.
47490         (datahead_init_neg): Likewise.
47491
47492         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
47493         datahead_init_neg): New functions.
47494         * nscd/aicache.c (addhstaiX): Use them.
47495         * nscd/grpcache.c (cache_addgr): Likewise.
47496         * nscd/hstcache.c (cache_addhst): Likewise.
47497         * nscd/initgrcache.c (addinitgroupsX): Likewise.
47498         * nscd/netgroupcache.c (do_notfound): Likewise.
47499         (addgetnetgrentX): Likewise.
47500         (addinnetgrX): Likewise.
47501         * nscd/pwdcache.c (cache_addpw): Likewise.
47502         * nscd/servicescache.c (cache_addserv): Likewise.
47503
47504 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
47505             Atsushi Onoe  <atsushi@onoe.org>
47506
47507         [BZ #14308]
47508         [BZ #12994]
47509         [BZ #13651]
47510         * resolv/res_query.c (__libc_res_nsearch): Return if at least
47511         one response is valid.
47512         * resolv/res_send.c (send_dg): Check for validity of other
47513         response if the current response is a referral.
47514
47515 2014-04-29  Steve Ellcey  <sellcey@mips.com>
47516
47517         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
47518
47519 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
47520
47521         [BZ #16823]
47522         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
47523         Always divide by positive zero when computing -Inf result.
47524         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
47525         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
47526
47527 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47528
47529         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
47530         FPSCR if value do not change.
47531         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
47532         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
47533         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
47534         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
47535         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
47536         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
47537         function.
47538
47539 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
47540
47541         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
47542         * sysdeps/unix/sysv/linux/hppa: Move directory from
47543         ports/systeps/unix/sysv/linux/hppa.
47544         * README: Update listing for hppa-*-linux-gnu.
47545
47546 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
47547
47548         [BZ #16754]
47549         * manual/stdio.texi (Hook functions): Fix types of stream hook
47550         functions.
47551         [BZ #16854]
47552         * socket/sys/socket.h: Fix typo in comment.
47553
47554 2014-04-28  Wilco  <wdijkstr@arm.com>
47555
47556         * sysdeps/arm/fenv_private.h: New file.
47557         * sysdeps/arm/math_private.h: New file.
47558         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
47559
47560 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
47561
47562         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
47563         with __int128_t.
47564         (La_x86_64_retval): Likewise.
47565
47566 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
47567
47568         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
47569         fpsr if value didn't change.
47570         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
47571         to fpcr if value didn't change.
47572         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
47573         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
47574         fpsr or fpcr if value didn't change.
47575         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
47576         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
47577         fpcr if value didn't change.
47578         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
47579         to fpsr if value didn't change.
47580
47581 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
47582
47583         * nptl/tst-sem3.c: Use test-skeleton.c
47584         (main): Rename to do_test.  Use return instead of
47585         exit.
47586         * nptl/tst-sem4.c: Use test-skeleton.c
47587         (main): Rename to do_test.
47588
47589 2014-04-22  David S. Miller  <davem@davemloft.net>
47590
47591         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
47592         (struct sigaction): New struct member __glibc_reserved0, change
47593         type of sa_flags to int.
47594
47595 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
47596
47597         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
47598         (COUNT_LEADING_ZEROS_0): Define for AArch64.
47599
47600 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
47601
47602         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
47603         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
47604
47605 2014-04-22  Will Newton  <will.newton@linaro.org>
47606             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
47607
47608         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
47609         (__longjmp): Add longjmp and longjmp_target SystemTap
47610         probes.
47611         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
47612         (__sigsetjmp): Add setjmp SystemTap probe.
47613
47614 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
47615
47616         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
47617         match manual order.
47618
47619 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47620
47621         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
47622
47623         * sysdeps/powerpc/fpu/fenv_private.h
47624         (libc_feholdexcept_setroundl_ctx): Define to
47625         libc_feholdexcept_setround_ppc_ctx.
47626         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
47627         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
47628         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
47629         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
47630
47631 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
47632
47633         * sysdeps/aarch64/math-tests.h: New file.
47634
47635 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
47636
47637         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
47638         New.
47639         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
47640         Check and set bit_AVX2_Usable.
47641         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
47642         macro.
47643         (bit_AVX2): Likewise.
47644         (index_AVX2_Usable): Likewise.
47645         (CPUID_AVX2): Likewise.
47646         (HAS_AVX2): Likewise.
47647
47648 2014-04-17  Will Newton  <will.newton@linaro.org>
47649
47650         * manual/setjmp.texi (System V contexts): Add note that
47651         calling setcontext on a context created by a call to a
47652         signal handler is undefined.  Update text to note that
47653         setcontext from a signal handler is possible but not
47654         recommended.
47655
47656         [BZ #16629]
47657         * stdlib/tst-setcontext.c: Include signal.h.
47658         (main): Check that the signal stack before and
47659         after swapcontext is the same.
47660
47661         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
47662         Re-implement to restore registers in user code and avoid
47663         rt_sigreturn system call.
47664
47665 2014-04-17  Wilco  <wdijkstr@arm.com>
47666
47667         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
47668         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
47669         * math/test-fenv.c: Skip exception trap tests on targets which only
47670         support non-stop mode.
47671
47672 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
47673             Wilco Dijkstra  <wilco.dijkstra@arm.com>
47674
47675         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
47676         (libc_feholdsetround_aarch64_ctx)
47677         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
47678         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
47679         (libc_feresetround_ctx, libc_feresetroundf_ctx)
47680         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
47681         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
47682         (libc_feresetround_noexl_ctx): Define.
47683
47684 2014-04-16  Richard Henderson  <rth@redhat.com>
47685
47686         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
47687
47688         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
47689         unwind tables.
47690
47691         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
47692         const from the non-libc, non-ldso copy.
47693
47694         * sysdeps/alpha/libm-test-ulps: Regenerate.
47695
47696 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
47697             Wilco Dijkstra  <wilco.dijkstra@arm.com>
47698
47699         * sysdeps/aarch64/fpu/math_private.h: New file.
47700
47701 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
47702
47703         * sysdeps/aarch64/libm-test-ulps: Regenerate.
47704
47705 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
47706
47707         [BZ #16275]
47708         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
47709         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
47710         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
47711         Intel MPX bound registers before _dl_profile_fixup.
47712         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
47713         registers after _dl_profile_fixup.  Save and restore bound
47714         registers bnd0/bnd1 when calling _dl_call_pltexit.
47715         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
47716         (LR_BND_OFFSET): Likewise.
47717         (LRV_BND0_OFFSET): Likewise.
47718         (LRV_BND1_OFFSET): Likewise.
47719
47720 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
47721
47722         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
47723         to...
47724         * sysdeps/mach/hurd/i386/tls.h: ... here.
47725         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
47726         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
47727         fields.
47728
47729 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
47730
47731         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
47732
47733 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
47734
47735         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
47736
47737 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
47738
47739         [BZ #14770]
47740         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
47741         * sysdeps/s390/configure: Regenerate.
47742
47743         [BZ #16824]
47744         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
47745         Set round-to-nearest internally to reduce error accumulation.
47746
47747 2014-04-16  Alan Modra  <amodra@gmail.com>
47748
47749         [BZ #16740]
47750         [BZ #16619]
47751         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
47752         * math/libm-test.inc (frexp_test_data): Add tests.
47753         * NEWS: Update fixed bug list.
47754
47755 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
47756
47757         * benchtests/Makefile: Depend on libraries in build directory.
47758         (bench-math): Separate out math tests.
47759         (bench-pthread): Separate out pthread tests.
47760         (bench): Include math and pthread tests.
47761
47762 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
47763
47764         [BZ #16831]
47765         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
47766         _dl_debug_initialize.
47767
47768         * configure.ac: Remove SELinux header check.
47769         * configure: Regenerate.
47770         * nscd/selinux.c (perms): Array of const char* to permission names.
47771         (nscd_request_avc_has_perm): Call security_deny_unknown to find
47772         default policy. Call string_to_security_class and string_to_av_perm to
47773         translate strings. Enforce default policy and call avs_has_perm with
47774         results of translated strings.
47775
47776 2014-04-13  David S. Miller  <davem@davemloft.net>
47777
47778         * sysdeps/sparc/fpu/libm-test-ulps: Update.
47779
47780 2014-04-12  Allan McRae  <allan@archlinux.org>
47781
47782         [BZ #16838]
47783         * manual/string.texi (Collation Functions): Fix qsort argument
47784         order in example.
47785         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
47786
47787 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
47788
47789         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
47790         Make the test a no-op if there are no exceptions defined.
47791
47792 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
47793
47794         * elf/Makefile (tests): make tst-dlopen-aout conditional on
47795         enable-hardcoded-path-in-tests
47796
47797 2014-04-11  Will Newton  <will.newton@linaro.org>
47798
47799         * benchtests/Makefile (extra-objs): Add json-lib.o.
47800         (bench-func): Tidy up JSON output.
47801         * benchtests/bench-skeleton.c: Include json-lib.h.
47802         (main): Use JSON library functions to do output of
47803         benchmark results.
47804         * benchtests/bench-timing-type.c (main): Output the
47805         timing type simply, leaving formatting to the user.
47806         * benchtests/json-lib.c: New file.
47807         * benchtests/json-lib.h: Likewise.
47808
47809 2014-04-11  Torvald Riegel  <triegel@redhat.com>
47810
47811         [BZ #15215]
47812         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
47813         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
47814         memory barriers.  Add comments.
47815         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
47816         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
47817         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
47818         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
47819         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
47820         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
47821
47822 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
47823
47824         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
47825         * sysdeps/s390/s390-64/configure.ac: ... this ...
47826         * sysdeps/s390/configure.ac: ... to here.
47827         * sysdeps/s390/s390-32/configure: Delete file.
47828         * sysdeps/s390/s390-64/configure: Delete file.
47829         * sysdeps/s390/configure: Regenerate.
47830
47831 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
47832
47833         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
47834
47835 2014-04-11  Will Newton  <will.newton@linaro.org>
47836
47837         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
47838         to zero if it is not defined elsewhere.  (mtrim): Test
47839         the value of MALLOC_DEBUG with #if rather than #ifdef.
47840
47841 2014-04-10 Torvald Riegel  <triegel@redhat.com>
47842
47843         * benchtests/pthread_once-inputs: New file.
47844         * benchtests/pthread_once-source.c: New file.
47845         * benchtests/README: Update documentation.
47846
47847 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
47848             H.J. Lu  <hongjiu.lu@intel.com>
47849
47850         [BZ #16275]
47851         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
47852         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
47853         * sysdeps/x86_64/configure: Regenerated.
47854         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
47855         macro.
47856         (REGISTER_SAVE_RAX): Likewise.
47857         (REGISTER_SAVE_RCX): Likewise.
47858         (REGISTER_SAVE_RDX): Likewise.
47859         (REGISTER_SAVE_RSI): Likewise.
47860         (REGISTER_SAVE_RDI): Likewise.
47861         (REGISTER_SAVE_R8): Likewise.
47862         (REGISTER_SAVE_R9): Likewise.
47863         (REGISTER_SAVE_BND0): Likewise.
47864         (REGISTER_SAVE_BND1): Likewise.
47865         (REGISTER_SAVE_BND2): Likewise.
47866         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
47867         bound registers when calling _dl_fixup.
47868
47869 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47870
47871         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
47872         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
47873         of its definition.
47874         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
47875         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
47876         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
47877         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
47878         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
47879         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
47880         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
47881
47882 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
47883
47884         [BZ #15514]
47885         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
47886         pathconf(_PC_NAME_MAX).
47887
47888 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47889
47890         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
47891         Remove macro usage.
47892         (__PTHREAD_SPINS): Move definition to ...
47893         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
47894         (__PTHREAD_SPINS): ... here.
47895         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
47896         (__PTHREAD_SPIN): Likewise.
47897         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
47898         (__PTHREAD_SPIN): Likewise.
47899         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
47900         (__PTHREAD_SPIN): Likewise.
47901         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
47902         (__PTHREAD_SPIN): Likewise.
47903         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
47904         (__PTHREAD_SPIN): Likewise.
47905         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
47906         (__PTHREAD_SPIN): Likewise.
47907         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
47908         (__PTHREAD_SPIN): Likewise.
47909         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
47910         (__PTHREAD_SPIN): Likewise.
47911         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
47912         (__PTHREAD_SPIN): Likewise.
47913         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
47914         (__PTHREAD_SPIN): Likewise.
47915         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
47916         (__PTHREAD_SPIN): Likewise.
47917         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
47918         (__PTHREAD_SPIN): Likewise.
47919
47920         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
47921         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
47922         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
47923         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
47924         imply folder.
47925         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
47926         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
47927         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
47928         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
47929         correct imply path.
47930         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
47931         strlen symbol for non multi-arch builds.
47932         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
47933         missing hidden_def and weak_alias.
47934
47935 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
47936
47937         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
47938
47939 2014-04-07  Will Newton  <will.newton@linaro.org>
47940
47941         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
47942         and contents.  [!_LIBC] Remove #ifndef and contents.
47943         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
47944         * string/memccpy.c (__memccpy): Use ANSI prototype.
47945         * string/memfrob.c (memfrob): Likewise.
47946         * string/strcoll.c (STRCOLL): Likewise.
47947         * string/strlen.c (strlen): Likewise.
47948         * string/strtok.c (STRTOK): Likewise.
47949         * string/strcat.c: Remove unused #include of memcopy.h.
47950         (strcat): Use ANSI prototype.
47951         * string/strchr.c: Remove unused #include of memcopy.h.
47952         (strchr): Use ANSI prototype.
47953         * string/strcmp.c: Remove unused #include of memcopy.h.
47954         (strcmp): Use ANSI prototype.
47955         * string/strcpy.c: Remove unused #include of memcopy.h.
47956         (strcpy): Use ANSI prototype.
47957
47958 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47959
47960         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
47961         * config.make.in (config-extra-cppflags): Set it from
47962         libc_extra_cppflags.
47963         * configure.ac (libc_extra_cflags): Make it accumulate over
47964         configure fragments.
47965         (libc_extra_cppflags): New flag.
47966         * configure. Regenerate.
47967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
47968         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
47969         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
47970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
47971
47972         [BZ #16815]
47973         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
47974         result for FE_DOWNWARD rounding mode.
47975         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
47976         Likewise.
47977         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47978
47979 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
47980
47981         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
47982         in function argument name.
47983
47984 2014-04-03  David Svoboda  <svoboda@cert.org>
47985
47986         [BZ #5666]
47987         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
47988         explicitly.
47989
47990 2014-04-03  Roland McGrath  <roland@hack.frob.com>
47991
47992         * elf/dl-unmap-segments.h: New file.
47993         * sysdeps/generic/ldsodefs.h
47994         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
47995         * elf/dl-close.c: Include <dl-unmap-segments.h>.
47996         * elf/dl-fptr.c: Likewise.
47997         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
47998         * sysdeps/aarch64/tlsdesc.c: Likewise.
47999         * sysdeps/arm/tlsdesc.c: Likewise.
48000         * sysdeps/i386/tlsdesc.c: Likewise.
48001         * sysdeps/tile/dl-runtime.c: Likewise.
48002         * sysdeps/x86_64/tlsdesc.c: Likewise.
48003         * elf/dl-load.h: New file.
48004         * elf/dl-load.c: Include it.
48005         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
48006         Macros moved to dl-load.h.
48007         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
48008         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
48009         Use _dl_unmap_segments in place of __munmap.
48010         Break out segment-mapping loop into ...
48011         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
48012
48013 2014-04-03  Will Newton  <will.newton@linaro.org>
48014
48015         * elf/dl-lookup.c (do_lookup_x): Remove comment
48016         referring to nested function and move variable
48017         declarations down to before first use.
48018
48019 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
48020
48021         [BZ #16799]
48022         [BZ #16800]
48023         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
48024         with 0 numerator.
48025         * math/s_catanf.c (__catanf): Likewise.
48026         * math/s_catanh.c (__catanh): Likewise.
48027         * math/s_catanhf.c (__catanhf): Likewise.
48028         * math/s_catanhl.c (__catanhl): Likewise.
48029         * math/s_catanl.c (__catanl): Likewise.
48030         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
48031         by positive zero when computing -Inf result.
48032         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
48033         (catanh_test): Likewise.
48034         * sysdeps/i386/fpu/libm-test-ulps: Update.
48035         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48036
48037         [BZ #16789]
48038         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
48039         instead of using underflowing value in computing result.
48040         * math/s_clog10.c (__clog10): Likewise.
48041         * math/s_clog10f.c (__clog10f): Likewise.
48042         * math/s_clog10l.c (__clog10l): Likewise.
48043         * math/s_clogf.c (__clogf): Likewise.
48044         * math/s_clogl.c (__clogl): Likewise.
48045         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
48046         (clog10_test): Likewise.
48047         * sysdeps/i386/fpu/libm-test-ulps: Update.
48048         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48049
48050 2014-04-02  Alan Modra  <amodra@gmail.com>
48051
48052         [BZ #16739]
48053         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
48054         output when value is near a power of two.  Use int64_t for lx and
48055         remove casts.  Use decimal rather than hex exponent constants.
48056         Don't use long double multiplication when double will suffice.
48057         * math/libm-test.inc (nextafter_test_data): Add tests.
48058         * NEWS: Add 16739 and 16786 to bug list.
48059
48060         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
48061
48062         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
48063
48064 2014-04-01  Will Newton  <will.newton@linaro.org>
48065
48066         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
48067         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
48068
48069 2014-04-01  Florian Weimer  <fweimer@redhat.com>
48070
48071         [BZ #13347]
48072         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
48073         * nptl/tst-setuid2.c: New file.
48074         * nptl/Makefile (xtests): Add tst-setuid2.
48075
48076 2014-04-01  Alan Modra  <amodra@gmail.com>
48077
48078         [BZ #16786]
48079         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
48080
48081 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
48082
48083         [BZ #6803]
48084         [BZ #6804]
48085         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
48086         set errno as appropriate.
48087         * math/w_scalbf.c (__scalbf): Likewise.
48088         * math/w_scalbl.c (__scalbl): Likewise.
48089         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
48090         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
48091         * math/libm-test.inc (scalb_test_data): Add errno expectations.
48092         Add more NaN tests.
48093
48094         [BZ #16349]
48095         * math/w_atan2.c: Include <errno.h>.
48096         (__atan2): Set errno for result underflowing to zero.
48097         * math/w_atan2f.c: Include <errno.h>.
48098         (__atan2f): Set errno for result underflowing to zero.
48099         * math/w_atan2l.c: Include <errno.h>.
48100         (__atan2l): Set errno for result underflowing to zero.
48101         * math/auto-libm-test-in: Don't allow missing errno for some atan2
48102         tests.
48103         * math/auto-libm-test-out: Regenerated.
48104
48105 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48106
48107         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
48108         Encode instruction correctly in little endian.
48109         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
48110         Likewise.
48111         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
48112         Likewise.
48113         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
48114         Likewise.
48115         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
48116         Likewise.
48117
48118 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
48119
48120         [BZ #9894]
48121         * sysdeps/unix/sysv/linux/kernel-features.h
48122         [__sparc__ && !__arch64__ && !__sparc_v9__]
48123         (__ASSUME_SET_ROBUST_LIST): Do not define.
48124         [__sparc__ && !__arch64__ && !__sparc_v9__]
48125         (__ASSUME_FUTEX_LOCK_PI): Likewise.
48126         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
48127         Likewise.
48128         * sysdeps/unix/sysv/linux/arm/kernel-features.h
48129         (__ASSUME_FUTEX_LOCK_PI): Undefine.
48130         (__ASSUME_REQUEUE_PI): Likewise.
48131         (__ASSUME_SET_ROBUST_LIST): Likewise.
48132         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
48133         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
48134         Undefine.
48135         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
48136         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
48137         Likewise.
48138         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
48139         Likewise.
48140         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
48141         Likewise.
48142         * sysdeps/unix/sysv/linux/mips/kernel-features.h
48143         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
48144         Undefine.
48145         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
48146         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
48147         Likewise.
48148
48149         [BZ #16648]
48150         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
48151         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
48152         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
48153
48154 2014-03-31  Will Newton  <will.newton@linaro.org>
48155
48156         * benchtests/Makefile (bench): Add ffs and ffsll to list
48157         of tests.
48158         * benchtests/ffs-inputs: New file.
48159         * benchtests/ffsll-inputs: Likewise.
48160
48161 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
48162
48163         [BZ #16770]
48164         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
48165         too large before casting to int.
48166         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
48167         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
48168         * math/libm-test.inc (scalb_test_data): Add more tests.
48169
48170 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
48171
48172         * benchtests/Makefile (DETAILED_OPT): New make option.
48173         (bench-func): Run benchmark program with -d if DETAILED_OPT is
48174         set.
48175         * benchtests/bench-skeleton.c: Include stdbool.h.
48176         (main): Store and print timings per input.
48177         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
48178         member to each argument value.
48179         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
48180         (_print_arg_data): Initialize per-input timing to 0.
48181
48182         * benchtests/Makefile (timing-type): New binary.
48183         (bench-clean): Also remove bench-timing-type.
48184         (bench): New target for timing-type.
48185         (bench-func): Print output in JSON format.
48186         * benchtests/bench-skeleton.c (main): Print output in JSON
48187         format.
48188         * benchtests/bench-timing-type.c: New file.
48189         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
48190         (TIMING_PRINT_STATS): Remove.
48191         * benchtests/scripts/bench.py (_print_arg_data): Store variant
48192         name separately.
48193
48194         * benchtests/bench-modf.c: Remove.
48195         * benchtests/modf-inputs: New inputs file.
48196
48197 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
48198
48199         [BZ #16362]
48200         * math/s_clog10.c (M_PI_LOG10E): New macro.
48201         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
48202         imaginary parts are 0.
48203         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
48204         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
48205         imaginary parts are 0.
48206         * math/s_clog10l.c (M_PI_LOG10El): New macro.
48207         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
48208         imaginary parts are 0.
48209         * math/libm-test.inc (clog10_test_data): Update expected results
48210         for when real and imaginary parts are 0.
48211
48212 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
48213
48214         * elf/dl-load.c: Finish conversion of __builtin_expect into
48215         __glibc_{un}likely.
48216
48217 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
48218
48219         [BZ #16348]
48220         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
48221         1+x for argument with exponent below -67.
48222         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
48223         Likewise.
48224         * math/auto-libm-test-in: Add more tests of exp.
48225         * math/auto-libm-test-out: Regenerated.
48226
48227 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
48228
48229         [BZ #16759]
48230         * inet/getnetgrent_r.c (get_nonempty_val): New function.
48231         (nscd_getnetgrent): Use it.
48232
48233         [BZ #16760]
48234         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
48235         of stpcpy.
48236
48237 2014-03-27  Andi Kleen  <ak@linux.intel.com>
48238
48239         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
48240         (lll_robust_lock, lll_cond_lock, lll_timedlock)
48241         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
48242         (lll_robust_unlock): Remove out of line section. Use cfi
48243         intrinsics.
48244         (LLL_STUB_UNWIND_INFO*): Remove.
48245         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
48246         (lll_robust_lock, lll_cond_lock, lll_timedlock)
48247         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
48248         (lll_robust_unlock): Remove out of line section. Use cfi
48249         intrinsics.
48250         (LLL_STUB_UNWIND_INFO*): Remove.
48251
48252 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
48253
48254         [BZ #16758]
48255         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
48256         blank values.
48257
48258 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
48259
48260         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
48261
48262 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
48263
48264         [BZ #16198]
48265         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
48266         fnstenv.
48267         * math/test-fenv-preserve.c: New file.
48268         * math/Makefile (tests): Add test-fenv-preserve.
48269
48270 2014-03-26  Will Newton <will.newton@linaro.org>
48271
48272         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
48273
48274 2014-03-25  Roland McGrath  <roland@hack.frob.com>
48275
48276         * scripts/versionlist.awk: Partition the version sets and emit all
48277         GLIBC_* (sorted) before all others (sorted).
48278
48279 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
48280
48281         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
48282         GLIBC_2.2.5 version.
48283
48284 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48285
48286         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
48287         calls.
48288
48289         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
48290         previous change.
48291
48292         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48293
48294 2014-03-25  Andreas Schwab  <schwab@suse.de>
48295
48296         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
48297         label to be used after in6ailist is initialized.
48298
48299 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48300
48301         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
48302         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
48303
48304 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
48305
48306         [BZ #16357]
48307         [BZ #16599]
48308         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
48309         min_plus_half.
48310         (fp_formats): Update initializers.
48311         (init_fp_formats): Initialize new field.
48312         (output_for_one_input_case): Allow underflow for results up to
48313         min_plus_half.
48314         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
48315         * math/auto-libm-test-in: Don't mark some underflows from asin and
48316         atanh as spurious.
48317         * math/auto-libm-test-out: Regenerated.
48318         * sysdeps/i386/fpu/libm-test-ulps: Update.
48319         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48320
48321 2014-03-25  Andreas Schwab  <schwab@suse.de>
48322
48323         * libio/Makefile (tst-ftell-partial-wide-ENV)
48324         (tst-ftell-active-handler-ENV): Define.
48325
48326 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
48327
48328         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
48329
48330 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
48331
48332         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
48333
48334 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
48335
48336         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
48337         * sysdeps/x86_64/fpu/multiarch/e_exp.c
48338         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
48339
48340 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
48341
48342         [BZ #16634]
48343         * elf/dl-load.c (open_verify): Add mode parameter.
48344         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
48345         (open_path): Change from boolean 'secure' to complete flag 'mode'
48346         (_dl_map_object): Adjust.
48347         * elf/Makefile (tests): Add tst-dlopen-aout.
48348         * elf/tst-dlopen-aout.c: New test.
48349
48350 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
48351
48352         [BZ #16714]
48353         * sysdeps/unix/sysv/linux/s390/bits/stat.h
48354         (struct stat): Rename member pad0 to __glibc_reserved0.
48355
48356         [BZ #16712]
48357         * sysdeps/s390/s390-32/bits/wordsize.h
48358         (__WORDSIZE32_SIZE_ULONG): New define.
48359         * sysdeps/s390/s390-64/bits/wordsize.h
48360         (__WORDSIZE32_SIZE_ULONG): Likewise.
48361         * sysdeps/generic/stdint.h (SIZE_MAX):
48362         Define as UL if __WORDSIZE32_SIZE_ULONG.
48363
48364         [BZ #16713]
48365         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
48366         (__glibc_reserved0): New variable.
48367         (sa_flags): Change type to int.
48368
48369         * posix/Makefile (before-compile): Use += before-compile instead
48370         of a :=.
48371
48372         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
48373         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
48374
48375 2014-03-20  Andreas Schwab  <schwab@suse.de>
48376
48377         [BZ #16743]
48378         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
48379         non-matching result from nscd.
48380
48381 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
48382
48383         * scripts/bench.py: Moved to ...
48384         * benchtests/scripts/bench.py: ... here.
48385         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
48386
48387 2014-03-24  Andreas Schwab  <schwab@suse.de>
48388
48389         [BZ #16002]
48390         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
48391         alloca_account and account alloca use for struct in6ailist.
48392
48393 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
48394
48395         [BZ #16284]
48396         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
48397         rounding mode to recompute results that overflow to infinity or
48398         underflow to zero.
48399         * math/auto-libm-test-in: Don't mark tests as expected to fail for
48400         bug 16284.
48401         * math/auto-libm-test-out: Regenerated.
48402         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
48403         (ccosh_test): Likewise.
48404         (csin_test_data): Use plus_oflow.
48405         (csin_test): Use ALL_RM_TEST.
48406         (csinh_test_data): Use plus_oflow.
48407         (csinh_test): Use ALL_RM_TEST.
48408         * sysdeps/i386/fpu/libm-test-ulps: Update.
48409         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48410
48411 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
48412
48413         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
48414         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
48415         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
48416
48417         [BZ #16731]
48418         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
48419         when x - 1 is zero.
48420         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
48421         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
48422         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
48423         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
48424         argument is 1.
48425         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
48426         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
48427         zero.
48428         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
48429         * sysdeps/i386/fpu/libm-test-ulps: Update.
48430         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48431
48432 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
48433
48434         * scripts/bench.pl: Remove file.
48435         * scripts/bench.py: New benchmark script.
48436         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
48437         * benchtests/README: Mention python dependency.
48438         * scripts/pylintrc: New file.
48439         * scripts/pylint: New file.
48440
48441         * bits/mathdef.h: Use #ifdef instead of #if.
48442         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
48443         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
48444         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
48445         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
48446         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
48447         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
48448
48449 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48450             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
48451
48452         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
48453         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
48454         and strpbrk-ppc64 objects.
48455         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
48456         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
48457         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
48458         multiarch strpbrk for POWER7.
48459         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
48460         multiarch strpbrk for PPC64.
48461         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
48462         ifunc selector.
48463         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
48464         strpbrk for POWER7.
48465
48466 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
48467
48468         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
48469         (atan_test): Likewise.
48470         (atanh_test_data): Use NO_TEST_INLINE for two tests.
48471         (atanh_test): Use ALL_RM_TEST.
48472         (atan2_test_data): Likewise.
48473         (cabs_test): Likewise.
48474         (cacosh_test): Likewise.
48475         (carg_test): Likewise.
48476         (casin_test): Likewise.
48477         (casinh_test): Likewise.
48478         (cbrt_test): Likewise.
48479         (csqrt_test): Likewise.
48480         (erf_test): Likewise.
48481         (erfc_test): Likewise.
48482         (pow10_test): Likewise.
48483         (exp2_test): Likewise.
48484         (hypot_test): Likewise.
48485         (j0_test): Likewise.
48486         (j1_test): Likewise.
48487         (lgamma_test): Likewise.
48488         (gamma_test): Likewise.
48489         (sincos_test): Likewise.
48490         (tanh_test): Likewise.
48491         (y0_test): Likewise.
48492         (y1_test): Likewise.
48493         * sysdeps/i386/fpu/libm-test-ulps: Update.
48494         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48495
48496 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48497
48498         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
48499         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
48500         and strcspn-ppc64 objects.
48501         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
48502         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
48503         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
48504         multiarch strcspn for POWER7.
48505         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
48506         multiarch strcspn for PPC64.
48507         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
48508         ifunc selector.
48509         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
48510         strcspn for POWER7.
48511
48512 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
48513
48514         * math/gen-libm-test.pl (generate_testfile): Expect only function
48515         name as argument to AUTO_TESTS_* and pass results for all rounding
48516         modes to parse_args.
48517         (parse_auto_input): Separate inputs of automatic tests from
48518         outputs before storing in %auto_tests.
48519         * math/libm-test.inc (acos_test_data): Update call to
48520         AUTO_TESTS_f_f.
48521         (acos_test): Use ALL_RM_TEST.
48522         (acos_tonearest_test_data): Remove.
48523         (acos_test_tonearest): Likewise.
48524         (acos_towardzero_test_data): Likewise.
48525         (acos_test_towardzero): Likewise.
48526         (acos_downward_test_data): Likewise.
48527         (acos_test_downward): Likewise.
48528         (acos_upward_test_data): Likewise.
48529         (acos_test_upward): Likewise.
48530         (acosh_test_data): Update call to AUTO_TESTS_f_f.
48531         (asin_test_data): Likewise.
48532         (asin_test): Use ALL_RM_TEST.
48533         (asin_tonearest_test_data): Remove.
48534         (asin_test_tonearest): Likewise.
48535         (asin_towardzero_test_data): Likewise.
48536         (asin_test_towardzero): Likewise.
48537         (asin_downward_test_data): Likewise.
48538         (asin_test_downward): Likewise.
48539         (asin_upward_test_data): Likewise.
48540         (asin_test_upward): Likewise.
48541         (asinh_test_data): Update call to AUTO_TESTS_f_f.
48542         (atan_test_data): Likewise.
48543         (atanh_test_data): Likewise.
48544         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
48545         (cabs_test_data): Update call to AUTO_TESTS_c_f.
48546         (carg_test_data): Likewise.
48547         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
48548         (ccos_test_data): Update call to AUTO_TESTS_c_c.
48549         (ccosh_test_data): Likewise.
48550         (cexp_test_data): Likewise.
48551         (clog_test_data): Likewise.
48552         (clog10_test_data): Likewise.
48553         (cos_test_data): Update call to AUTO_TESTS_f_f.
48554         (cos_test): Use ALL_RM_TEST.
48555         (cos_tonearest_test_data): Remove.
48556         (cos_test_tonearest): Likewise.
48557         (cos_towardzero_test_data): Likewise.
48558         (cos_test_towardzero): Likewise.
48559         (cos_downward_test_data): Likewise.
48560         (cos_test_downward): Likewise.
48561         (cos_upward_test_data): Likewise.
48562         (cos_test_upward): Likewise.
48563         (cosh_test_data): Update call to AUTO_TESTS_f_f.
48564         (cosh_test): Use ALL_RM_TEST.
48565         (cosh_tonearest_test_data): Remove.
48566         (cosh_test_tonearest): Likewise.
48567         (cosh_towardzero_test_data): Likewise.
48568         (cosh_test_towardzero): Likewise.
48569         (cosh_downward_test_data): Likewise.
48570         (cosh_test_downward): Likewise.
48571         (cosh_upward_test_data): Likewise.
48572         (cosh_test_upward): Likewise.
48573         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
48574         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
48575         (ctan_test_data): Likewise.
48576         (ctan_test): Use ALL_RM_TEST.
48577         (ctan_tonearest_test_data): Remove.
48578         (ctan_test_tonearest): Likewise.
48579         (ctan_towardzero_test_data): Likewise.
48580         (ctan_test_towardzero): Likewise.
48581         (ctan_downward_test_data): Likewise.
48582         (ctan_test_downward): Likewise.
48583         (ctan_upward_test_data): Likewise.
48584         (ctan_test_upward): Likewise.
48585         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
48586         (ctanh_test): Use ALL_RM_TEST.
48587         (ctanh_tonearest_test_data): Remove.
48588         (ctanh_test_tonearest): Likewise.
48589         (ctanh_towardzero_test_data): Likewise.
48590         (ctanh_test_towardzero): Likewise.
48591         (ctanh_downward_test_data): Likewise.
48592         (ctanh_test_downward): Likewise.
48593         (ctanh_upward_test_data): Likewise.
48594         (ctanh_test_upward): Likewise.
48595         (erf_test_data): Update call to AUTO_TESTS_f_f.
48596         (erfc_test_data): Likewise.
48597         (exp_test_data): Likewise.
48598         (exp_test): Use ALL_RM_TEST.
48599         (exp_tonearest_test_data): Remove.
48600         (exp_test_tonearest): Likewise.
48601         (exp_towardzero_test_data): Likewise.
48602         (exp_test_towardzero): Likewise.
48603         (exp_downward_test_data): Likewise.
48604         (exp_test_downward): Likewise.
48605         (exp_upward_test_data): Likewise.
48606         (exp_test_upward): Likewise.
48607         (exp10_test_data): Update call to AUTO_TESTS_f_f.
48608         (exp10_test): Use ALL_RM_TEST.
48609         (exp10_tonearest_test_data): Remove.
48610         (exp10_test_tonearest): Likewise.
48611         (exp10_towardzero_test_data): Likewise.
48612         (exp10_test_towardzero): Likewise.
48613         (exp10_downward_test_data): Likewise.
48614         (exp10_test_downward): Likewise.
48615         (exp10_upward_test_data): Likewise.
48616         (exp10_test_upward): Likewise.
48617         (exp2_test_data): Update call to AUTO_TESTS_f_f.
48618         (expm1_test_data): Likewise.
48619         (expm1_test): Use ALL_RM_TEST.
48620         (expm1_tonearest_test_data): Remove.
48621         (expm1_test_tonearest): Likewise.
48622         (expm1_towardzero_test_data): Likewise.
48623         (expm1_test_towardzero): Likewise.
48624         (expm1_downward_test_data): Likewise.
48625         (expm1_test_downward): Likewise.
48626         (expm1_upward_test_data): Likewise.
48627         (expm1_test_upward): Likewise.
48628         (fma_test_data): Update call to AUTO_TESTS_fff_f.
48629         (fma_test): Use ALL_RM_TEST.
48630         (fma_towardzero_test_data): Remove.
48631         (fma_test_towardzero): Likewise.
48632         (fma_downward_test_data): Likewise.
48633         (fma_test_downward): Likewise.
48634         (fma_upward_test_data): Likewise.
48635         (fma_test_upward): Likewise.
48636         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
48637         (j0_test_data): Update call to AUTO_TESTS_f_f.
48638         (j1_test_data): Likewise.
48639         (jn_test_data): Update call to AUTO_TESTS_if_f.
48640         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
48641         (log_test_data): Update call to AUTO_TESTS_f_f.
48642         (log10_test_data): Likewise.
48643         (log1p_test_data): Likewise.
48644         (log2_test_data): Likewise.
48645         (pow_test_data): Update call to AUTO_TESTS_ff_f.
48646         (pow_tonearest_test_data): Likewise.
48647         (sin_test_data): Update call to AUTO_TESTS_f_f.
48648         (sin_test): Use ALL_RM_TEST.
48649         (sin_tonearest_test_data): Remove.
48650         (sin_test_tonearest): Likewise.
48651         (sin_towardzero_test_data): Likewise.
48652         (sin_test_towardzero): Likewise.
48653         (sin_downward_test_data): Likewise.
48654         (sin_test_downward): Likewise.
48655         (sin_upward_test_data): Likewise.
48656         (sin_test_upward): Likewise.
48657         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
48658         (sinh_test_data): Update call to AUTO_TESTS_f_f.
48659         (sinh_test): Use ALL_RM_TEST.
48660         (sinh_tonearest_test_data): Remove.
48661         (sinh_test_tonearest): Likewise.
48662         (sinh_towardzero_test_data): Likewise.
48663         (sinh_test_towardzero): Likewise.
48664         (sinh_downward_test_data): Likewise.
48665         (sinh_test_downward): Likewise.
48666         (sinh_upward_test_data): Likewise.
48667         (sinh_test_upward): Likewise.
48668         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
48669         (sqrt_test): Use ALL_RM_TEST.
48670         (sqrt_tonearest_test_data): Remove.
48671         (sqrt_test_tonearest): Likewise.
48672         (sqrt_towardzero_test_data): Likewise.
48673         (sqrt_test_towardzero): Likewise.
48674         (sqrt_downward_test_data): Likewise.
48675         (sqrt_test_downward): Likewise.
48676         (sqrt_upward_test_data): Likewise.
48677         (sqrt_test_upward): Likewise.
48678         (tan_test_data): Update call to AUTO_TESTS_f_f.
48679         (tan_test): Use ALL_RM_TEST.
48680         (tan_tonearest_test_data): Remove.
48681         (tan_test_tonearest): Likewise.
48682         (tan_towardzero_test_data): Likewise.
48683         (tan_test_towardzero): Likewise.
48684         (tan_downward_test_data): Likewise.
48685         (tan_test_downward): Likewise.
48686         (tan_upward_test_data): Likewise.
48687         (tan_test_upward): Likewise.
48688         (tanh_test_data): Update call to AUTO_TESTS_f_f.
48689         (tgamma_test_data): Likewise.
48690         (y0_test_data): Likewise.
48691         (y1_test_data): Likewise.
48692         (yn_test_data): Update call to AUTO_TESTS_if_f.
48693         (main): Do not call removed functions.
48694
48695 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
48696
48697         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
48698         (ldexp_test_data): Remove.
48699         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
48700         scalbn_test_data.
48701         (scalb_test): Use ALL_RM_TEST.
48702
48703 2014-03-19  Andreas Schwab  <schwab@suse.de>
48704
48705         * nscd/nscd.service: Also invalidate netgroup cache on reload.
48706
48707 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
48708
48709         [BZ #16649]
48710         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
48711         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
48712         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
48713         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
48714         (__ASSUME_PREADV): Undefine.
48715         (__ASSUME_PWRITEV): Likewise.
48716
48717 2014-03-18  Roland McGrath  <roland@hack.frob.com>
48718
48719         * bits/mman-linux.h: Add comment about non-Linux use.
48720         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
48721         bits/mman-linux.h resting place.
48722
48723         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
48724         * bits/mman-linux.h: ... here.
48725
48726 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48727
48728         * conform/conformtest.pl: Add standard definition when calling C
48729         preprocessor on data files.
48730         (checknamespace): Remove unused variable.
48731
48732 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
48733
48734         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
48735         minus_oflow, plus_uflow and minus_uflow in expected results.
48736         * math/libm-test.inc (scalbn_test_data): Add more tests of
48737         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
48738         minus_uflow.
48739         (scalbn_test): Use ALL_RM_TEST.
48740         (scalbln_test_data): Add more tests of negative arguments.  Use
48741         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
48742         (scalbln_test): Use ALL_RM_TEST.
48743
48744 2014-03-18  Roland McGrath  <roland@hack.frob.com>
48745
48746         * scripts/abilist.awk: Ignore symbols marked with .hidden.
48747
48748 2014-03-18  Will Newton  <will.newton@linaro.org>
48749
48750         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
48751         inaccurate comment.
48752
48753 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
48754
48755         * Makerules [!subdir] (check-abi): Exit with error status if a
48756         test failed.
48757
48758 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
48759
48760         * math/libm-test.inc (nearbyint_test_data): Include all tests used
48761         for rint.  Include results for all rounding modes.
48762         (nearbyint_test): Use ALL_RM_TEST.
48763         (rint_test_data): Include all tests used for nearbyint.
48764
48765 2014-03-17  Will Newton  <will.newton@linaro.org>
48766
48767         * nptl/sysdeps/pthread/pthread.h: Revert previous
48768         change.
48769
48770         * sysdeps/generic/ldsodefs.h: Revert previous
48771         change.
48772
48773         * libio/genops.c: Revert previous change.
48774         * libio/libioP.h: Likewise.
48775         * stdio-common/vfprintf.c: Likewise.
48776
48777         * sysdeps/generic/math_private.h: Revert previous
48778         change.
48779
48780         * sysdeps/generic/math_private.h: Check whether
48781         HAVE_RM_CTX is defined with #ifdef rather
48782         than #if.
48783
48784         * argp/argp-fmtstream.h: Check whether
48785         __STRICT_ANSI__ is defined with #ifdef rather
48786         than #if.
48787         * argp/argp.h: Likewise.
48788
48789         * libio/genops.c: Check whether
48790         _IO_JUMPS_OFFSET is defined with #ifdef rather
48791         than #if.
48792         * libio/libioP.h: Likewise.
48793         * stdio-common/vfprintf.c: Likewise.
48794
48795         * sysdeps/generic/ldsodefs.h: Check whether
48796         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
48797         than #if.
48798
48799         * nptl/sysdeps/pthread/pthread.h: Check
48800         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
48801         its value.
48802
48803 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
48804
48805         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
48806         setting O_APPEND.
48807         * libio/tst-ftell-active-handler.c (do_append_test): Add a
48808         test case.
48809
48810         [BZ #16680]
48811         * libio/fileops.c (_IO_file_open): Seek to end of file but
48812         don't cache the offset.
48813         (get_file_offset): Remove function.
48814         (do_ftell): Use cached offset when available.
48815         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
48816         don't cache the offset.
48817         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
48818         case.
48819         (do_one_test): Call it.
48820         (do_ftell_test): Fix up expected old offset for a+ mode.
48821         * libio/wfileops.c (do_ftell_wide): Used cached offset when
48822         available.
48823
48824         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
48825         up test status with function return status.
48826         (do_write_test): Likewise.
48827         (do_append_test): Likewise.
48828
48829         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
48830         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
48831         Remove.
48832
48833 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
48834
48835         * math/gen-libm-test.pl (parse_args): Handle results specified for
48836         each rounding mode separately.
48837         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
48838         tests and results from lrint_tonearest_test_data,
48839         lrint_towardzero_test_data, lrint_downward_test_data and
48840         lrint_upward_test_data.
48841         (lrint_test): Use ALL_RM_TEST.
48842         (lrint_tonearest_test_data): Remove.
48843         (lrint_test_tonearest): Likewise.
48844         (lrint_towardzero_test_data): Likewise.
48845         (lrint_test_towardzero): Likewise.
48846         (lrint_downward_test_data): Likewise.
48847         (lrint_test_downward): Likewise.
48848         (lrint_upward_test_data): Likewise.
48849         (lrint_test_upward): Likewise.
48850         (llrint_test_data): Merge in per-rounding-mode tests and results
48851         from llrint_tonearest_test_data, llrint_towardzero_test_data,
48852         llrint_downward_test_data and llrint_upward_test_data.
48853         (llrint_test): Use ALL_RM_TEST.
48854         (llrint_tonearest_test_data): Remove.
48855         (llrint_test_tonearest): Likewise.
48856         (llrint_towardzero_test_data): Likewise.
48857         (llrint_test_towardzero): Likewise.
48858         (llrint_downward_test_data): Likewise.
48859         (llrint_test_downward): Likewise.
48860         (llrint_upward_test_data): Likewise.
48861         (llrint_test_upward): Likewise.
48862         (rint_test_data): Merge in per-rounding-mode tests and results
48863         from rint_tonearest_test_data, rint_towardzero_test_data,
48864         rint_downward_test_data and rint_upward_test_data.  Add
48865         per-rounding-mode results for tests not in those arrays.
48866         (rint_test): Use ALL_RM_TEST.
48867         (rint_tonearest_test_data): Remove.
48868         (rint_test_tonearest): Likewise.
48869         (rint_towardzero_test_data): Likewise.
48870         (rint_test_towardzero): Likewise.
48871         (rint_downward_test_data): Likewise.
48872         (rint_test_downward): Likewise.
48873         (rint_upward_test_data): Likewise.
48874         (rint_test_upward): Likewise.
48875         (main): Don't call removed functions.
48876
48877 2014-03-14  Roland McGrath  <roland@hack.frob.com>
48878
48879         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
48880         "Compiled on ..." crapola.  It is anti-useful.
48881
48882 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
48883
48884         * scripts/evaluate-test.sh: Handle fourth argument to determine
48885         whether test run should stop on failure.
48886         * Makeconfig (stop-on-test-failure): New variable.
48887         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
48888         $(stop-on-test-failure).
48889         * Makefile (tests): Give a summary of results from testing and
48890         exit with failure status if they include an ERROR or FAIL.
48891         (xtests): Likewise.
48892         * manual/install.texi (Configuring and compiling): Mention
48893         stop-on-test-failure=y.
48894         * INSTALL: Regenerated.
48895
48896 2014-03-14  Roland McGrath  <roland@hack.frob.com>
48897
48898         * scripts/versionlist.awk: New file.
48899         * Makerules [$(build-shared) = yes]
48900         (postclean-generated): Add Versions.def, not Versions.def.v and
48901         Versions.def.v.i.
48902         ($(common-objpfx)Versions.def.v.i): Target removed.
48903         ($(common-objpfx)Versions.def): New target.
48904         ($(common-objpfx)Versions.all): Depend on that rather that
48905         $(common-objpfx)Versions.def.v.
48906         * Versions.def: File removed.
48907
48908         * Makeconfig (+gccwarn): Add -Wundef.
48909         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
48910         a dl-sysdep.h breaking its contract.
48911         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
48912         * include/stackinfo.h: New file.
48913         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
48914         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
48915         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
48916         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
48917         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
48918         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
48919         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48920         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48921         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48922         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48923         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48924         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
48925         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48926         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48927         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48928
48929 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48930
48931         [BZ #16707]
48932         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
48933         implementation.
48934         * math/libm-test.inc (round_test_data): Add more tests.
48935
48936         [BZ #16706]
48937         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
48938         implementation.
48939         * math/libm-test.inc (nearbyint_test_data): Add more tests.
48940
48941         [BZ #16701]
48942         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
48943         implementation.
48944         * math/libm-test.inc (ceil_test_data): Add more tests.
48945
48946         * math/libm-test.inc (trunc_test_data): Add more tests related to
48947         BZ#16414.
48948
48949 2014-03-14  Roland McGrath  <roland@hack.frob.com>
48950
48951         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
48952         with #if rather than #ifdef.
48953         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
48954
48955 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
48956
48957         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
48958         first.  Disable AVX-512 GCC support if assembler doesn't support
48959         it.
48960         * sysdeps/x86_64/configure: Regenerated.
48961
48962 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
48963
48964         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
48965         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
48966         (__old_pthread_attr_setstack): Likewise.
48967         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
48968         [!_STACK_GROWS_DOWN]: Likewise.
48969
48970 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
48971
48972         * config.make.in (have-bash2): Delete.
48973         * configure.ac (libc_cv_have_bash2): Delete.
48974         * configure: Regenerate.
48975         * elf/Makefile (common-ldd-rewrite): Rename to ...
48976         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
48977         (sh-ldd-rewrite): Delete.
48978         (bash-ldd-rewrite): Delete.
48979         (have-bash2): Delete checks.
48980         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
48981         ldd-rewrite.
48982
48983         * config.make.in (have-ksh): Delete.
48984         (KSH): Delete.
48985         * configure.ac (libc_cv_have_ksh): Delete.
48986         * configure: Regenerate.
48987
48988         * elf/Makefile: Delete $(have-ksh) check.
48989         ($(objpfx)sotruss): Change KSH to BASH.
48990         * elf/sotruss.ksh: Rename to ...
48991         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
48992         function style to match POSIX.  Drop ksh vim mode setting.
48993
48994         * manual/time.texi (Specifying the Time Zone with TZ): Change
48995         Tuesday to Thursday.
48996
48997         * debug/tst-longjmp_chk2.c: Update header comment.
48998         (stackoverflow_handler): Add comment.  Call assert on pass value.
48999
49000 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
49001
49002         [BZ #16194]
49003         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
49004         (HAVE_AVX512_ASM_SUPPORT): Likewise.
49005         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
49006         (La_x86_64_vector): Add zmm.
49007         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
49008         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
49009         ($(objpfx)tst-audit10): New target.
49010         ($(objpfx)tst-audit10.out): Likewise.
49011         (tst-audit10-ENV): New.
49012         (AVX512-CFLAGS): Likewise.
49013         (CFLAGS-tst-audit10.c): Likewise.
49014         (CFLAGS-tst-auditmod10a.c): Likewise.
49015         (CFLAGS-tst-auditmod10b.c): Likewise.
49016         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
49017         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
49018         * sysdeps/x86_64/configure: Regenerated.
49019         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
49020         AVX-512 zmm register support.
49021         (_dl_x86_64_save_sse): Likewise.
49022         (_dl_x86_64_restore_sse): Likewise.
49023         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
49024         size vector registers.
49025         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
49026         (ZMM_SIZE): Likewise.
49027         * sysdeps/x86_64/tst-audit10.c: New file.
49028         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
49029         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
49030
49031 2014-03-13  Roland McGrath  <roland@hack.frob.com>
49032
49033         * configure.ac (HAVE_EHDR_START): New check.
49034         * configure: Regenerated.
49035         * config.h.in (HAVE_EHDR_START): New #undef.
49036         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
49037         assuming the lowest-addressed segment maps the start of the file.
49038
49039 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
49040
49041         * INSTALL: Regenerated.
49042
49043 2014-03-13  Will Newton  <will.newton@linaro.org>
49044
49045         * manual/setjmp.texi (System V contexts): Improve
49046         clarity and grammar of documentation.
49047
49048 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
49049
49050         [BZ #16381]
49051         * elf/Makefile (tests): Add tst-pie2.
49052         (tests-pie): Add tst-pie2.
49053         * elf/tst-pie2.c: New file.
49054         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
49055         for ET_EXEC.
49056         * elf/rtld.c (map_doit): Load executable as lt_executable.
49057         (dl_main): Likewise.
49058
49059 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
49060
49061         [BZ #16642]
49062         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
49063         (__ASSUME_PSELECT): Undefine.
49064
49065 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49066
49067         [BZ #16689]
49068         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
49069         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
49070         static build.
49071         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
49072         selector for static builds.
49073
49074 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49075
49076         [BZ #16695]
49077         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
49078         key in the buffer.
49079
49080 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49081
49082         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
49083         IFUNC selector for static builds.
49084
49085 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
49086
49087         * sysdeps/mips/math_private.h [__mips_hard_float]
49088         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
49089         libc_feresetround_mips_ctx.
49090         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
49091         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
49092         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
49093
49094         [BZ #16677]
49095         * math/s_nextafter.c (__nextafter): Do not return value from
49096         overflowing computation.
49097         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
49098         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
49099         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
49100         Likewise.
49101         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
49102         Likewise.
49103         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
49104         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
49105
49106 2014-03-11  Roland McGrath  <roland@hack.frob.com>
49107
49108         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
49109         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
49110         Move sfi_sp use from the load-multiple (that no longer sets sp) to
49111         the new mov targetting sp.
49112
49113 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49114
49115         [BZ #16683]
49116         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
49117         Define it for static builds as well.
49118         (NO_BZERO_IMPL): Likewise.
49119
49120 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
49121
49122         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
49123         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
49124         multiarch strspn for PPC64.
49125         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
49126         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
49127         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
49128         (__libc_ifunc_impl_list): Likewise.
49129         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
49130         multiarch optimizations
49131         * string/strspn.c (strspn): Using macro to redefine symbol name.
49132
49133 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
49134             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49135
49136         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
49137         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
49138         multiarch strncat for PPC64.
49139         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
49140         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
49141         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
49142         (__libc_ifunc_impl_list): Likewise.
49143         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
49144         multiarch optimizations
49145
49146 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49147
49148         [BZ #16639]
49149         * nscd/nscd.service: Make service type forking.
49150
49151 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49152
49153         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
49154         sign in non default rounding modes.
49155         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
49156
49157 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
49158
49159         * math/libm-test.inc (ALL_RM_TEST): New macro.
49160         (ceil_test): Use ALL_RM_TEST.
49161         (cimag_test): Likewise.
49162         (conj_test): Likewise.
49163         (copysign_test): Likewise.
49164         (cproj_test): Likewise.
49165         (creal_test): Likewise.
49166         (fabs_test): Likewise.
49167         (floor_test): Likewise.
49168         (fmax_test): Likewise.
49169         (fmin_test): Likewise.
49170         (fmod_test): Likewise.
49171         (fpclassify_test): Likewise.
49172         (frexp_test): Likewise.
49173         (ilogb_test): Likewise.
49174         (isfinite_test): Likewise.
49175         (finite_test): Likewise.
49176         (isgreater_test): Likewise.
49177         (isgreaterequal_test): Likewise.
49178         (isinf_test): Likewise.
49179         (isless_test): Likewise.
49180         (islessequal_test): Likewise.
49181         (islessgreater_test): Likewise.
49182         (isnan_test): Likewise.
49183         (isnormal_test): Likewise.
49184         (issignaling_test): Likewise.
49185         (isunordered_test): Likewise.
49186         (logb_test): Likewise.
49187         (logb_downward_test_data): Remove.
49188         (logb_test_downward): Likewise.
49189         (lround_test): Use ALL_RM_TEST.
49190         (llround_test): Likewise.
49191         (modf_test): Likewise.
49192         (nexttoward_test): Likewise.
49193         (remainder_test): Likewise.
49194         (drem_test): Likewise.
49195         (remainder_tonearest_test_data): Likewise.
49196         (remainder_test_tonearest): Likewise.
49197         (drem_test_tonearest): Likewise.
49198         (remainder_towardzero_test_data): Likewise.
49199         (remainder_test_towardzero): Likewise.
49200         (drem_test_towardzero): Likewise.
49201         (remainder_downward_test_data): Likewise.
49202         (remainder_test_downward): Likewise.
49203         (drem_test_downward): Likewise.
49204         (remainder_upward_test_data): Likewise.
49205         (remainder_test_upward): Likewise.
49206         (drem_test_upward): Likewise.
49207         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
49208         (round_test): Use ALL_RM_TEST.
49209         (signbit_test): Likewise.
49210         (trunc_test): Likewise.
49211         (significand_test): Likewise.
49212         (main): Don't call removed functions.
49213
49214 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
49215
49216         [BZ #16674]
49217         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
49218         || __USE_XOPEN2K8].
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         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49240         (TRAP_TRACE): Likewise.
49241         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49242         __USE_XOPEN2K8].
49243         (CLD_KILLED): Likewise.
49244         (CLD_DUMPED): Likewise.
49245         (CLD_TRAPPED): Likewise.
49246         (CLD_STOPPED): Likewise.
49247         (CLD_CONTINUED): Likewise.
49248         (POLL_IN): Likewise.
49249         (POLL_OUT): Likewise.
49250         (POLL_MSG): Likewise.
49251         (POLL_ERR): Likewise.
49252         (POLL_PRI): Likewise.
49253         (POLL_HUP): Likewise.
49254         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
49255         Likewise.
49256         (ILL_ILLOPN): Likewise.
49257         (ILL_ILLADR): Likewise.
49258         (ILL_ILLTRP): Likewise.
49259         (ILL_PRVOPC): Likewise.
49260         (ILL_PRVREG): Likewise.
49261         (ILL_COPROC): Likewise.
49262         (ILL_BADSTK): Likewise.
49263         (FPE_INTDIV): Likewise.
49264         (FPE_INTOVF): Likewise.
49265         (FPE_FLTDIV): Likewise.
49266         (FPE_FLTOVF): Likewise.
49267         (FPE_FLTUND): Likewise.
49268         (FPE_FLTRES): Likewise.
49269         (FPE_FLTINV): Likewise.
49270         (FPE_FLTSUB): Likewise.
49271         (SEGV_MAPERR): Likewise.
49272         (SEGV_ACCERR): Likewise.
49273         (BUS_ADRALN): Likewise.
49274         (BUS_ADRERR): Likewise.
49275         (BUS_OBJERR): Likewise.
49276         (BUS_MCEERR_AR): Likewise.
49277         (BUS_MCEERR_AO): Likewise.
49278         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49279         (TRAP_TRACE): Likewise.
49280         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49281         __USE_XOPEN2K8].
49282         (CLD_KILLED): Likewise.
49283         (CLD_DUMPED): Likewise.
49284         (CLD_TRAPPED): Likewise.
49285         (CLD_STOPPED): Likewise.
49286         (CLD_CONTINUED): Likewise.
49287         (POLL_IN): Likewise.
49288         (POLL_OUT): Likewise.
49289         (POLL_MSG): Likewise.
49290         (POLL_ERR): Likewise.
49291         (POLL_PRI): Likewise.
49292         (POLL_HUP): Likewise.
49293         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
49294         (ILL_ILLOPN): Likewise.
49295         (ILL_ILLADR): Likewise.
49296         (ILL_ILLTRP): Likewise.
49297         (ILL_PRVOPC): Likewise.
49298         (ILL_PRVREG): Likewise.
49299         (ILL_COPROC): Likewise.
49300         (ILL_BADSTK): Likewise.
49301         (FPE_INTDIV): Likewise.
49302         (FPE_INTOVF): Likewise.
49303         (FPE_FLTDIV): Likewise.
49304         (FPE_FLTOVF): Likewise.
49305         (FPE_FLTUND): Likewise.
49306         (FPE_FLTRES): Likewise.
49307         (FPE_FLTINV): Likewise.
49308         (FPE_FLTSUB): Likewise.
49309         (SEGV_MAPERR): Likewise.
49310         (SEGV_ACCERR): Likewise.
49311         (BUS_ADRALN): Likewise.
49312         (BUS_ADRERR): Likewise.
49313         (BUS_OBJERR): Likewise.
49314         (BUS_MCEERR_AR): Likewise.
49315         (BUS_MCEERR_AO): Likewise.
49316         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49317         (TRAP_TRACE): Likewise.
49318         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49319         __USE_XOPEN2K8].
49320         (CLD_KILLED): Likewise.
49321         (CLD_DUMPED): Likewise.
49322         (CLD_TRAPPED): Likewise.
49323         (CLD_STOPPED): Likewise.
49324         (CLD_CONTINUED): Likewise.
49325         (POLL_IN): Likewise.
49326         (POLL_OUT): Likewise.
49327         (POLL_MSG): Likewise.
49328         (POLL_ERR): Likewise.
49329         (POLL_PRI): Likewise.
49330         (POLL_HUP): Likewise.
49331         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
49332         Likewise.
49333         (ILL_ILLOPN): Likewise.
49334         (ILL_ILLADR): Likewise.
49335         (ILL_ILLTRP): Likewise.
49336         (ILL_PRVOPC): Likewise.
49337         (ILL_PRVREG): Likewise.
49338         (ILL_COPROC): Likewise.
49339         (ILL_BADSTK): Likewise.
49340         (ILL_BADIADDR): Likewise.
49341         (ILL_BREAK): 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         (FPE_DECOVF): Likewise.
49351         (FPE_DECDIV): Likewise.
49352         (FPE_DECERR): Likewise.
49353         (FPE_INVASC): Likewise.
49354         (FPE_INVDEC): Likewise.
49355         (SEGV_MAPERR): Likewise.
49356         (SEGV_ACCERR): Likewise.
49357         (SEGV_PSTKOVF): Likewise.
49358         (BUS_ADRALN): Likewise.
49359         (BUS_ADRERR): Likewise.
49360         (BUS_OBJERR): Likewise.
49361         (BUS_MCEERR_AR): Likewise.
49362         (BUS_MCEERR_AO): Likewise.
49363         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49364         (TRAP_TRACE): Likewise.
49365         (TRAP_BRANCH): Likewise.
49366         (TRAP_HWBKPT): Likewise.
49367         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49368         __USE_XOPEN2K8].
49369         (CLD_KILLED): Likewise.
49370         (CLD_DUMPED): Likewise.
49371         (CLD_TRAPPED): Likewise.
49372         (CLD_STOPPED): Likewise.
49373         (CLD_CONTINUED): Likewise.
49374         (POLL_IN): Likewise.
49375         (POLL_OUT): Likewise.
49376         (POLL_MSG): Likewise.
49377         (POLL_ERR): Likewise.
49378         (POLL_PRI): Likewise.
49379         (POLL_HUP): Likewise.
49380         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
49381         (ILL_ILLOPN): Likewise.
49382         (ILL_ILLADR): Likewise.
49383         (ILL_ILLTRP): Likewise.
49384         (ILL_PRVOPC): Likewise.
49385         (ILL_PRVREG): Likewise.
49386         (ILL_COPROC): Likewise.
49387         (ILL_BADSTK): Likewise.
49388         (FPE_INTDIV): Likewise.
49389         (FPE_INTOVF): Likewise.
49390         (FPE_FLTDIV): Likewise.
49391         (FPE_FLTOVF): Likewise.
49392         (FPE_FLTUND): Likewise.
49393         (FPE_FLTRES): Likewise.
49394         (FPE_FLTINV): Likewise.
49395         (FPE_FLTSUB): Likewise.
49396         (SEGV_MAPERR): Likewise.
49397         (SEGV_ACCERR): Likewise.
49398         (BUS_ADRALN): Likewise.
49399         (BUS_ADRERR): Likewise.
49400         (BUS_OBJERR): Likewise.
49401         (BUS_MCEERR_AR): Likewise.
49402         (BUS_MCEERR_AO): Likewise.
49403         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49404         (TRAP_TRACE): Likewise.
49405         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49406         __USE_XOPEN2K8].
49407         (CLD_KILLED): Likewise.
49408         (CLD_DUMPED): Likewise.
49409         (CLD_TRAPPED): Likewise.
49410         (CLD_STOPPED): Likewise.
49411         (CLD_CONTINUED): Likewise.
49412         (POLL_IN): Likewise.
49413         (POLL_OUT): Likewise.
49414         (POLL_MSG): Likewise.
49415         (POLL_ERR): Likewise.
49416         (POLL_PRI): Likewise.
49417         (POLL_HUP): Likewise.
49418         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
49419         (ILL_ILLOPN): Likewise.
49420         (ILL_ILLADR): Likewise.
49421         (ILL_ILLTRP): Likewise.
49422         (ILL_PRVOPC): Likewise.
49423         (ILL_PRVREG): Likewise.
49424         (ILL_COPROC): Likewise.
49425         (ILL_BADSTK): Likewise.
49426         (FPE_INTDIV): Likewise.
49427         (FPE_INTOVF): Likewise.
49428         (FPE_FLTDIV): Likewise.
49429         (FPE_FLTOVF): Likewise.
49430         (FPE_FLTUND): Likewise.
49431         (FPE_FLTRES): Likewise.
49432         (FPE_FLTINV): Likewise.
49433         (FPE_FLTSUB): Likewise.
49434         (SEGV_MAPERR): Likewise.
49435         (SEGV_ACCERR): Likewise.
49436         (BUS_ADRALN): Likewise.
49437         (BUS_ADRERR): Likewise.
49438         (BUS_OBJERR): Likewise.
49439         (BUS_MCEERR_AR): Likewise.
49440         (BUS_MCEERR_AO): Likewise.
49441         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49442         (TRAP_TRACE): Likewise.
49443         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49444         __USE_XOPEN2K8].
49445         (CLD_KILLED): Likewise.
49446         (CLD_DUMPED): Likewise.
49447         (CLD_TRAPPED): Likewise.
49448         (CLD_STOPPED): Likewise.
49449         (CLD_CONTINUED): Likewise.
49450         (POLL_IN): Likewise.
49451         (POLL_OUT): Likewise.
49452         (POLL_MSG): Likewise.
49453         (POLL_ERR): Likewise.
49454         (POLL_PRI): Likewise.
49455         (POLL_HUP): Likewise.
49456         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
49457         (ILL_ILLOPN): Likewise.
49458         (ILL_ILLADR): Likewise.
49459         (ILL_ILLTRP): Likewise.
49460         (ILL_PRVOPC): Likewise.
49461         (ILL_PRVREG): Likewise.
49462         (ILL_COPROC): Likewise.
49463         (ILL_BADSTK): Likewise.
49464         (FPE_INTDIV): Likewise.
49465         (FPE_INTOVF): Likewise.
49466         (FPE_FLTDIV): Likewise.
49467         (FPE_FLTOVF): Likewise.
49468         (FPE_FLTUND): Likewise.
49469         (FPE_FLTRES): Likewise.
49470         (FPE_FLTINV): Likewise.
49471         (FPE_FLTSUB): Likewise.
49472         (SEGV_MAPERR): Likewise.
49473         (SEGV_ACCERR): Likewise.
49474         (BUS_ADRALN): Likewise.
49475         (BUS_ADRERR): Likewise.
49476         (BUS_OBJERR): Likewise.
49477         (BUS_MCEERR_AR): Likewise.
49478         (BUS_MCEERR_AO): Likewise.
49479         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49480         (TRAP_TRACE): Likewise.
49481         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49482         __USE_XOPEN2K8].
49483         (CLD_KILLED): Likewise.
49484         (CLD_DUMPED): Likewise.
49485         (CLD_TRAPPED): Likewise.
49486         (CLD_STOPPED): Likewise.
49487         (CLD_CONTINUED): Likewise.
49488         (POLL_IN): Likewise.
49489         (POLL_OUT): Likewise.
49490         (POLL_MSG): Likewise.
49491         (POLL_ERR): Likewise.
49492         (POLL_PRI): Likewise.
49493         (POLL_HUP): Likewise.
49494         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
49495         (ILL_ILLOPN): Likewise.
49496         (ILL_ILLADR): Likewise.
49497         (ILL_ILLTRP): Likewise.
49498         (ILL_PRVOPC): Likewise.
49499         (ILL_PRVREG): Likewise.
49500         (ILL_COPROC): Likewise.
49501         (ILL_BADSTK): Likewise.
49502         (ILL_DBLFLT): Likewise.
49503         (ILL_HARDWALL): Likewise.
49504         (FPE_INTDIV): Likewise.
49505         (FPE_INTOVF): Likewise.
49506         (FPE_FLTDIV): Likewise.
49507         (FPE_FLTOVF): Likewise.
49508         (FPE_FLTUND): Likewise.
49509         (FPE_FLTRES): Likewise.
49510         (FPE_FLTINV): Likewise.
49511         (FPE_FLTSUB): Likewise.
49512         (SEGV_MAPERR): Likewise.
49513         (SEGV_ACCERR): Likewise.
49514         (BUS_ADRALN): Likewise.
49515         (BUS_ADRERR): Likewise.
49516         (BUS_OBJERR): Likewise.
49517         (BUS_MCEERR_AR): Likewise.
49518         (BUS_MCEERR_AO): Likewise.
49519         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49520         (TRAP_TRACE): Likewise.
49521         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49522         __USE_XOPEN2K8].
49523         (CLD_KILLED): Likewise.
49524         (CLD_DUMPED): Likewise.
49525         (CLD_TRAPPED): Likewise.
49526         (CLD_STOPPED): Likewise.
49527         (CLD_CONTINUED): Likewise.
49528         (POLL_IN): Likewise.
49529         (POLL_OUT): Likewise.
49530         (POLL_MSG): Likewise.
49531         (POLL_ERR): Likewise.
49532         (POLL_PRI): Likewise.
49533         (POLL_HUP): Likewise.
49534         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
49535         (ILL_ILLOPN): Likewise.
49536         (ILL_ILLADR): Likewise.
49537         (ILL_ILLTRP): Likewise.
49538         (ILL_PRVOPC): Likewise.
49539         (ILL_PRVREG): Likewise.
49540         (ILL_COPROC): Likewise.
49541         (ILL_BADSTK): Likewise.
49542         (FPE_INTDIV): Likewise.
49543         (FPE_INTOVF): Likewise.
49544         (FPE_FLTDIV): Likewise.
49545         (FPE_FLTOVF): Likewise.
49546         (FPE_FLTUND): Likewise.
49547         (FPE_FLTRES): Likewise.
49548         (FPE_FLTINV): Likewise.
49549         (FPE_FLTSUB): Likewise.
49550         (SEGV_MAPERR): Likewise.
49551         (SEGV_ACCERR): Likewise.
49552         (BUS_ADRALN): Likewise.
49553         (BUS_ADRERR): Likewise.
49554         (BUS_OBJERR): Likewise.
49555         (BUS_MCEERR_AR): Likewise.
49556         (BUS_MCEERR_AO): Likewise.
49557         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49558         (TRAP_TRACE): Likewise.
49559         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49560         __USE_XOPEN2K8].
49561         (CLD_KILLED): Likewise.
49562         (CLD_DUMPED): Likewise.
49563         (CLD_TRAPPED): Likewise.
49564         (CLD_STOPPED): Likewise.
49565         (CLD_CONTINUED): Likewise.
49566         (POLL_IN): Likewise.
49567         (POLL_OUT): Likewise.
49568         (POLL_MSG): Likewise.
49569         (POLL_ERR): Likewise.
49570         (POLL_PRI): Likewise.
49571         (POLL_HUP): Likewise.
49572         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
49573         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
49574
49575         [BZ #16670]
49576         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
49577         before #include of <time.h>.
49578         [!__USE_XOPEN2K] (__need_timespec): Likewise.
49579         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
49580         (test-xfail-UNIX98/sched.h/conform): Likewise.
49581
49582 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
49583
49584         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
49585         error absence of trapping exception support.
49586         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
49587
49588 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
49589
49590         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
49591         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
49592         * timezone/Makefile (testdata): Move definition above include of
49593         Rules.
49594         (test-zones): New variable.
49595         (tests-special): Add zone files.
49596         (build-testdata): Use $(evaluate-test).
49597
49598         * elf/Makefile (tests-special): Rename tests to end with .out.
49599         ($(objpfx)noload-mem): Likewise.
49600         ($(objpfx)tst-leaks1-mem): Likewise.
49601         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
49602         * iconv/Makefile (xtests-special): Change test-iconvconfig to
49603         $(objpfx)test-iconvconfig.out.
49604         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
49605         set -e inside subshell and redirect output to file.
49606         * iconvdata/Makefile (generated): Rename tests to end with .out.
49607         Correct type.
49608         (tests-special): Rename tests to end with .out.
49609         ($(objpfx)mtrace-tst-loading): Likewise.
49610         * intl/Makefile (generated): Likewise.
49611         (tests-special): Likewise.
49612         ($(objpfx)mtrace-tst-gettext): Likewise.
49613         * misc/Makefile (generated): Likewise.
49614         (tests-special): Likewise.
49615         ($(objpfx)tst-error1-mem): Likewise.
49616         * nptl/Makefile (tests-special): Likewise.
49617         ($(objpfx)tst-stack3-mem): Likewise.
49618         (generated): Likewise.
49619         * posix/Makefile (generated): Likewise.
49620         (tests-special): Likewise.
49621         (xtests-special): Likewise.
49622         ($(objpfx)tst-fnmatch-mem): Likewise.
49623         ($(objpfx)bug-regex2-mem): Likewise.
49624         ($(objpfx)bug-regex14-mem): Likewise.
49625         ($(objpfx)bug-regex21-mem): Likewise.
49626         ($(objpfx)bug-regex31-mem): Likewise.
49627         ($(objpfx)tst-vfork3-mem): Likewise.
49628         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
49629         ($(objpfx)tst-pcre-mem): Likewise.
49630         ($(objpfx)tst-boost-mem): Likewise.
49631         ($(objpfx)bug-ga2-mem): Likewise.
49632         ($(objpfx)bug-glob2-mem): Likewise.
49633         * resolv/Makefile (generate): Likewise.
49634         (tests-special): Likewise.
49635         (xtests-special): Likewise.
49636         (generated): Likewise.
49637         ($(objpfx)mtrace-tst-leaks): Likewise.
49638         ($(objpfx)mtrace-tst-leaks2): Likewise.
49639
49640         * scripts/merge-test-results.sh: New file.
49641         * Makefile (tests-special-notdir): New variable.
49642         (tests): Run merge-test-results.sh.
49643         (xtests): Likewise.
49644         * Rules (tests-special-notdir): New variable.
49645         (xtests-special-notdir): Likewise.
49646         (tests): Run merge-test-results.sh
49647         (xtests): Likewise.
49648
49649         * Makeconfig (test-xfail-name): New variable.
49650         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
49651         compute variable name for expected failures.
49652         * conform/Makefile (conformtest-headers-data): New variable.
49653         (conformtest-standards): Likewise.
49654         (conformtest-headers-ISO): Likewise.
49655         (conformtest-headers-ISO99): Likewise.
49656         (conformtest-headers-ISO11): Likewise.
49657         (conformtest-headers-POSIX): Likewise.
49658         (conformtest-headers-XPG3): Likewise.
49659         (conformtest-headers-XPG4): Likewise.
49660         (conformtest-headers-UNIX98): Likewise.
49661         (conformtest-headers-XOPEN2K): Likewise.
49662         (conformtest-headers-POSIX2008): Likewise.
49663         (conformtest-headers-XOPEN2K8): Likewise.
49664         (conformtest-header-list-base): Likewise.
49665         (conformtest-header-list-tests): Likewise.
49666         (conformtest-header-base): Likewise.
49667         (conformtest-header-tests): Likewise.
49668         (tests-special): Add $(conformtest-header-list-tests).  If
49669         [$(fast-check) && !$(cross-compiling)], add
49670         $(conformtest-header-tests) instead of
49671         $(objpfx)run-conformtest.out.
49672         (generated): Add $(conformtest-header-list-base).  If
49673         [$(fast-check) && !$(cross-compiling)], add
49674         $(conformtest-header-base).  Remove previous setting.
49675         ($(conformtest-header-list-tests)): New target.
49676         (test-xfail-run-conformtest): Remove variable.
49677         ($(objpfx)run-conformtest.out): Remove target.
49678         (test-xfail-ISO11/complex.h/conform): New variable.
49679         (test-xfail-ISO11/stdalign.h/conform): Likewise.
49680         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
49681         (test-xfail-XPG3/varargs.h/conform): Likewise.
49682         (test-xfail-XPG4/varargs.h/conform): Likewise.
49683         (test-xfail-UNIX98/varargs.h/conform): Likewise.
49684         (test-xfail-XPG4/ndbm.h/conform): Likewise.
49685         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
49686         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
49687         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
49688         (test-xfail-XPG3/fcntl.h/conform): Likewise.
49689         (test-xfail-XPG3/ftw.h/conform): Likewise.
49690         (test-xfail-XPG3/grp.h/conform): Likewise.
49691         (test-xfail-XPG3/langinfo.h/conform): Likewise.
49692         (test-xfail-XPG3/limits.h/conform): Likewise.
49693         (test-xfail-XPG3/pwd.h/conform): Likewise.
49694         (test-xfail-XPG3/search.h/conform): Likewise.
49695         (test-xfail-XPG3/signal.h/conform): Likewise.
49696         (test-xfail-XPG3/stdio.h/conform): Likewise.
49697         (test-xfail-XPG3/stdlib.h/conform): Likewise.
49698         (test-xfail-XPG3/string.h/conform): Likewise.
49699         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
49700         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
49701         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
49702         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
49703         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
49704         (test-xfail-XPG3/sys/types.h/conform): Likewise.
49705         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
49706         (test-xfail-XPG3/termios.h/conform): Likewise.
49707         (test-xfail-XPG3/time.h/conform): Likewise.
49708         (test-xfail-XPG3/unistd.h/conform): Likewise.
49709         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
49710         (test-xfail-XPG4/fcntl.h/conform): Likewise.
49711         (test-xfail-XPG4/langinfo.h/conform): Likewise.
49712         (test-xfail-XPG4/netdb.h/conform): Likewise.
49713         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
49714         (test-xfail-XPG4/signal.h/conform): Likewise.
49715         (test-xfail-XPG4/stdio.h/conform): Likewise.
49716         (test-xfail-XPG4/stdlib.h/conform): Likewise.
49717         (test-xfail-XPG4/stropts.h/conform): Likewise.
49718         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
49719         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
49720         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
49721         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
49722         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
49723         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
49724         (test-xfail-XPG4/sys/time.h/conform): Likewise.
49725         (test-xfail-XPG4/sys/types.h/conform): Likewise.
49726         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
49727         (test-xfail-XPG4/termios.h/conform): Likewise.
49728         (test-xfail-XPG4/ucontext.h/conform): Likewise.
49729         (test-xfail-XPG4/unistd.h/conform): Likewise.
49730         (test-xfail-XPG4/utmpx.h/conform): Likewise.
49731         (test-xfail-POSIX/sched.h/conform): Likewise.
49732         (test-xfail-POSIX/signal.h/conform): Likewise.
49733         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
49734         (test-xfail-POSIX/tar.h/conform): Likewise.
49735         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
49736         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
49737         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
49738         (test-xfail-UNIX98/netdb.h/conform): Likewise.
49739         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
49740         (test-xfail-UNIX98/sched.h/conform): Likewise.
49741         (test-xfail-UNIX98/signal.h/conform): Likewise.
49742         (test-xfail-UNIX98/stdio.h/conform): Likewise.
49743         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
49744         (test-xfail-UNIX98/stropts.h/conform): Likewise.
49745         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
49746         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
49747         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
49748         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
49749         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
49750         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
49751         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
49752         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
49753         (test-xfail-UNIX98/unistd.h/conform): Likewise.
49754         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
49755         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
49756         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
49757         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
49758         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
49759         (test-xfail-XOPEN2K/math.h/conform): Likewise.
49760         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
49761         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
49762         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
49763         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
49764         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
49765         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
49766         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
49767         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
49768         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
49769         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
49770         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
49771         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
49772         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
49773         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
49774         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
49775         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
49776         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
49777         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
49778         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
49779         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
49780         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
49781         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
49782         (test-xfail-POSIX2008/signal.h/conform): Likewise.
49783         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
49784         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
49785         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
49786         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
49787         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
49788         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
49789         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
49790         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
49791         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
49792         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
49793         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
49794         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
49795         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
49796         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
49797         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
49798         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
49799         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
49800         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
49801         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
49802         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
49803         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
49804         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
49805         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
49806         (conformtest-cc-flags): Likewise.
49807         ($(conformtest-header-tests): New target.
49808         * conform/check-header-lists.sh: New file.
49809         * conform/run-conformtest.sh: Remove.
49810
49811         * conform/conformtest.pl: Allow ' and \ in values given for
49812         constants.
49813         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
49814         inclusion.
49815         [POSIX] (sys/types.h): Likewise.
49816         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
49817         inclusion.
49818         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
49819         inclusion.
49820         * conform/data/signal.h-data (SIGIO): Remove expectation.
49821         [XPG3] (SIGBUS): Do not expect.
49822         [POSIX || XPG3] (SIGPOLL): Likewise.
49823         [POSIX || XPG3] (SIGPROF): Likewise.
49824         [POSIX || XPG3] (SIGSYS): Likewise.
49825         [XPG3] (SIGTRAP): Likewise.
49826         [POSIX || XPG3] (SIGURG): Likewise.
49827         [POSIX || XPG3] (SIGVTALRM): Likewise.
49828         [POSIX || XPG3] (SIGXCPU): Likewise.
49829         [POSIX || XPG3] (SIGXFSZ): Likewise.
49830         [POSIX] (SA_SIGINFO): Expect.
49831         [XPG3] (siginfo_t): Do not expect type or contents.
49832         [POSIX] (si_pid): Do not expect element.
49833         [POSIX] (si_uid): Likewise.
49834         [POSIX] (si_addr): Likewise.
49835         [POSIX] (si_status): Likewise.
49836         [POSIX] (si_band): Likewise.
49837         [XPG4] (si_value): Likewise.
49838         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
49839         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
49840         [POSIX || XPG3] (ILL_ILLADR): Likewise.
49841         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
49842         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
49843         [POSIX || XPG3] (ILL_PRVREG): Likewise.
49844         [POSIX || XPG3] (ILL_COPROC): Likewise.
49845         [POSIX || XPG3] (ILL_BADSTK): Likewise.
49846         [POSIX || XPG3] (FPE_INTDIV): Likewise.
49847         [POSIX || XPG3] (FPE_INTOVF): Likewise.
49848         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
49849         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
49850         [POSIX || XPG3] (FPE_FLTUND): Likewise.
49851         [POSIX || XPG3] (FPE_FLTRES): Likewise.
49852         [POSIX || XPG3] (FPE_FLTINV): Likewise.
49853         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
49854         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
49855         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
49856         [POSIX || XPG3] (BUS_ADRALN): Likewise.
49857         [POSIX || XPG3] (BUS_ADRERR): Likewise.
49858         [POSIX || XPG3] (BUS_OBJERR): Likewise.
49859         [POSIX || XPG3] (CLD_EXITED): Likewise.
49860         [POSIX || XPG3] (CLD_KILLED): Likewise.
49861         [POSIX || XPG3] (CLD_DUMPED): Likewise.
49862         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
49863         [POSIX || XPG3] (CLD_STOPPED): Likewise.
49864         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
49865         [POSIX || XPG3] (POLL_IN): Likewise.
49866         [POSIX || XPG3] (POLL_OUT): Likewise.
49867         [POSIX || XPG3] (POLL_MSG): Likewise.
49868         [POSIX || XPG3] (POLL_ERR): Likewise.
49869         [POSIX || XPG3] (POLL_PRI): Likewise.
49870         [POSIX || XPG3] (POLL_HUP): Likewise.
49871         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
49872         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
49873         (SIG*): Do not allow.
49874         [XPG3] (si_*): Likewise.
49875         [XPG3] (SI_*): Likewise.
49876         [XPG3 || XPG4] (sigev_*): Likewise.
49877         [XPG3 || XPG4] (SIGEV_*): Likewise.
49878         [XPG3 || XPG4] (sival_*): Likewise.
49879         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
49880         [POSIX || XPG3] (BUS_*): Likewise.
49881         [POSIX || XPG3] (CLD_*): Likewise.
49882         [POSIX || XPG3] (FPE_*): Likewise.
49883         [POSIX || XPG3] (ILL_*): Likewise.
49884         [POSIX || XPG3] (POLL_*): Likewise.
49885         [POSIX || XPG3] (SEGV_*): Likewise.
49886         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
49887         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
49888         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
49889         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
49890         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
49891         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
49892         Specify type and value.
49893         (TVERSLEN): Likewise.
49894         (REGTYPE): Likewise.
49895         (AREGTYPE): Likewise.
49896         (LNKTYPE): Likewise.
49897         (SYMTYPE): Likewise.
49898         (CHRTYPE): Likewise.
49899         (BLKTYPE): Likewise.
49900         (DIRTYPE): Likewise.
49901         (FIFOTYPE): Likewise.
49902         (CONTTYPE): Likewise.
49903         (TSUID): Likewise.
49904         (TSGID): Likewise.
49905         (TSVTX): Likewise.
49906         (TUREAD): Likewise.
49907         (TUWRITE): Likewise.
49908         (TUEXEC): Likewise.
49909         (TGREAD): Likewise.
49910         (TGWRITE): Likewise.
49911         (TGEXEC): Likewise.
49912         (TOREAD): Likewise.
49913         (TOWRITE): Likewise.
49914         (TOEXEC): Likewise.
49915         [POSIX] (TSVTX): Expect constant.
49916
49917 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
49918
49919         * Makefile (tests): Change dependencies to ....
49920         (tests-special): ... additions to this variable.
49921         (tests): Depend on $(tests-special).
49922         * Makerules (check-abi-list): New variable.
49923         (check-abi): Depend on $(check-abi-list).
49924         [$(subdir) = elf] (tests-special): Add
49925         $(objpfx)check-abi-libc.out.
49926         [$(build-shared) = yes && subdir] (tests-special): Add
49927         $(check-abi-list).
49928         [$(build-shared) = yes && subdir] (tests): Do not depend on
49929         check-abi.
49930         * Rules (tests): Depend on $(tests-special).
49931         (xtests): Depend on $(xtests-special).
49932         * catgets/Makefile (tests): Change dependencies to ....
49933         (tests-special): ... additions to this variable.
49934         * conform/Makefile (tests): Change dependencies to ....
49935         (tests-special): ... additions to this variable.
49936         * elf/Makefile (tests): Change dependencies to ....
49937         (tests-special): ... additions to this variable.
49938         * grp/Makefile (tests): Change dependencies to ....
49939         (tests-special): ... additions to this variable.
49940         * iconv/Makefile (xtests): Change dependencies to ....
49941         (xtests-special): ... additions to this variable.
49942         * iconvdata/Makefile (tests): Change dependencies to ....
49943         (tests-special): ... additions to this variable.
49944         * intl/Makefile (tests): Change dependencies to ....
49945         (tests-special): ... additions to this variable.  Also add
49946         $(objpfx)tst-gettext.out.
49947         * io/Makefile (tests): Change dependencies to ....
49948         (tests-special): ... additions to this variable.
49949         * libio/Makefile (tests): Change dependencies to ....
49950         (tests-special): ... additions to this variable.
49951         * malloc/Makefile (tests): Change dependencies to ....
49952         (tests-special): ... additions to this variable.
49953         * misc/Makefile (tests): Change dependencies to ....
49954         (tests-special): ... additions to this variable.
49955         * nptl/Makefile (tests): Change dependencies to ....
49956         (tests-special): ... additions to this variable.
49957         * nptl_db/Makefile (tests): Change dependencies to ....
49958         (tests-special): ... additions to this variable.
49959         * posix/Makefile (tests): Change dependencies to ....
49960         (tests-special): ... additions to this variable.
49961         (xtests): Change dependencies to ....
49962         (xtests-special): ... additions to this variable.
49963         * resolv/Makefile (tests): Change dependencies to ....
49964         (tests-special): ... additions to this variable.
49965         (xtests): Change dependencies to ....
49966         (xtests-special): ... additions to this variable.
49967         * stdio-common/Makefile (tests): Change dependencies to ....
49968         (tests-special): ... additions to this variable.
49969         (do-tst-unbputc): Remove target.
49970         (do-tst-printf): Likewise.
49971         * stdlib/Makefile (tests): Change dependencies to ....
49972         (tests-special): ... additions to this variable.
49973         * string/Makefile (tests): Change dependencies to ....
49974         (tests-special): ... additions to this variable.
49975         * sysdeps/x86/Makefile (tests): Change dependencies to ....
49976         (tests-special): ... additions to this variable.
49977
49978         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
49979         whole file.
49980         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
49981         whole file.
49982         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
49983         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
49984
49985         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
49986         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
49987         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
49988         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
49989         * conform/data/libgen.h-data [XPG3]: Likewise.
49990         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
49991         * conform/data/ndbm.h-data [XPG3]: Likewise.
49992         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
49993         * conform/data/netdb.h-data [XPG3]: Likewise.
49994         * conform/data/netinet/in.h-data [XPG3]: Likewise.
49995         * conform/data/poll.h-data [XPG3]: Likewise.
49996         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
49997         * conform/data/strings.h-data [XPG3]: Likewise.
49998         * conform/data/stropts.h-data [XPG3]: Likewise.
49999         * conform/data/sys/mman.h-data [XPG3]: Likewise.
50000         * conform/data/sys/resource.h-data [XPG3]: Likewise.
50001         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
50002         Likewise.
50003         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
50004         * conform/data/sys/time.h-data [XPG3]: Likewise.
50005         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
50006         * conform/data/sys/uio.h-data [XPG3]: Likewise.
50007         * conform/data/sys/un.h-data [XPG3]: Likewise.
50008         * conform/data/syslog.h-data [XPG3]: Likewise.
50009         * conform/data/ucontext.h-data [XPG3]: Likewise.
50010         * conform/data/utmpx.h-data [XPG3]: Likewise.
50011         * conform/data/varargs.h-data [UNIX98]: Enable file.
50012
50013         * manual/Makefile (INSTALL_INFO): Remove variable setting.
50014
50015         * math/libm-test.inc (struct test_f_f_data): Move expected results
50016         into structure for each rounding mode.
50017         (struct test_ff_f_data): Likewise.
50018         (struct test_ff_f_data_nexttoward): Likewise.
50019         (struct test_fi_f_data): Likewise.
50020         (struct test_fl_f_data): Likewise.
50021         (struct test_if_f_data): Likewise.
50022         (struct test_fff_f_data): Likewise.
50023         (struct test_c_f_data): Likewise.
50024         (struct test_f_f1_data): Likewise.
50025         (struct test_fF_f1_data): Likewise.
50026         (struct test_ffI_f1_data): Likewise.
50027         (struct test_c_c_data): Likewise.
50028         (struct test_cc_c_data): Likewise.
50029         (struct test_f_i_data): Likewise.
50030         (struct test_ff_i_data): Likewise.
50031         (struct test_f_l_data): Likewise.
50032         (struct test_f_L_data): Likewise.
50033         (struct test_fFF_11_data): Likewise.
50034         (RM_): New macro.
50035         (RM_FE_DOWNWARD): Likewise.
50036         (RM_FE_TONEAREST): Likewise.
50037         (RM_FE_TOWARDZERO): Likewise.
50038         (RM_FE_UPWARD): Likewise.
50039         (RUN_TEST_LOOP_f_f): Update references to expected results.
50040         (RUN_TEST_LOOP_2_f): Likewise.
50041         (RUN_TEST_LOOP_fff_f): Likewise.
50042         (RUN_TEST_LOOP_c_f): Likewise.
50043         (RUN_TEST_LOOP_f_f1): Likewise.
50044         (RUN_TEST_LOOP_fF_f1): Likewise.
50045         (RUN_TEST_LOOP_fI_f1): Likewise.
50046         (RUN_TEST_LOOP_ffI_f1): Likewise.
50047         (RUN_TEST_LOOP_c_c): Likewise.
50048         (RUN_TEST_LOOP_cc_c): Likewise.
50049         (RUN_TEST_LOOP_f_i): Likewise.
50050         (RUN_TEST_LOOP_f_i_tg): Likewise.
50051         (RUN_TEST_LOOP_ff_i_tg): Likewise.
50052         (RUN_TEST_LOOP_f_b): Likewise.
50053         (RUN_TEST_LOOP_f_b_tg): Likewise.
50054         (RUN_TEST_LOOP_f_l): Likewise.
50055         (RUN_TEST_LOOP_f_L): Likewise.
50056         (RUN_TEST_LOOP_fFF_11): Likewise.
50057         * math/gen-libm-test.pl (parse_args): Output four copies of
50058         expected results for each test.
50059
50060         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
50061         (__ASSUME_UTIMES): Remove.
50062         * sysdeps/unix/sysv/linux/tile/kernel-features.h
50063         (__ASSUME_UTIMES): Likewise.
50064
50065         * math/gen-auto-libm-tests.c: Update comment on output format.
50066         (output_for_one_input_case): Generate before-rounding and
50067         after-rounding information as conditions on output flags not
50068         floating-point format.
50069         * math/auto-libm-test-out: Regenerated.
50070         * math/gen-libm-test.pl (cond_value): New function.
50071         (or_cond_value): Use cond_value.
50072         (generate_testfile): Handle conditional exceptions.
50073
50074 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
50075
50076         * math/libm-test.inc (max_valid_error): New variable.
50077         (init_max_error): Take new argument specifying whether function
50078         results are exactly determined.  Set max_valid_error and bound
50079         other variables for errors based on this argument.
50080         (set_max_error): Do not record results above max_valid_error.
50081         (check_float_internal): Only accept errors of up to 0.5ulps if
50082         also at most max_valid_error.
50083         (START): Take new argument EXACT and pass it to init_max_error.
50084         (acos_test): Update call to START.
50085         (acos_test_tonearest): Likewise.
50086         (acos_test_towardzero): Likewise.
50087         (acos_test_downward): Likewise.
50088         (acos_test_upward): Likewise.
50089         (acosh_test): Likewise.
50090         (asin_test): Likewise.
50091         (asin_test_tonearest): Likewise.
50092         (asin_test_towardzero): Likewise.
50093         (asin_test_downward): Likewise.
50094         (asin_test_upward): Likewise.
50095         (asinh_test): Likewise.
50096         (atan_test): Likewise.
50097         (atanh_test): Likewise.
50098         (atan2_test): Likewise.
50099         (cabs_test): Likewise.
50100         (cacos_test): Likewise.
50101         (cacosh_test): Likewise.
50102         (carg_test): Likewise.
50103         (casin_test): Likewise.
50104         (casinh_test): Likewise.
50105         (catan_test): Likewise.
50106         (catanh_test): Likewise.
50107         (cbrt_test): Likewise.
50108         (ccos_test): Likewise.
50109         (ccosh_test): Likewise.
50110         (ceil_test): Likewise.
50111         (cexp_test): Likewise.
50112         (cimag_test): Likewise.
50113         (clog_test): Likewise.
50114         (clog10_test): Likewise.
50115         (conj_test): Likewise.
50116         (copysign_test): Likewise.
50117         (cos_test): Likewise.
50118         (cos_test_tonearest): Likewise.
50119         (cos_test_towardzero): Likewise.
50120         (cos_test_downward): Likewise.
50121         (cos_test_upward): Likewise.
50122         (cosh_test): Likewise.
50123         (cosh_test_tonearest): Likewise.
50124         (cosh_test_towardzero): Likewise.
50125         (cosh_test_downward): Likewise.
50126         (cosh_test_upward): Likewise.
50127         (cpow_test): Likewise.
50128         (cproj_test): Likewise.
50129         (creal_test): Likewise.
50130         (csin_test): Likewise.
50131         (csinh_test): Likewise.
50132         (csqrt_test): Likewise.
50133         (ctan_test): Likewise.
50134         (ctan_test_tonearest): Likewise.
50135         (ctan_test_towardzero): Likewise.
50136         (ctan_test_downward): Likewise.
50137         (ctan_test_upward): Likewise.
50138         (ctanh_test): Likewise.
50139         (ctanh_test_tonearest): Likewise.
50140         (ctanh_test_towardzero): Likewise.
50141         (ctanh_test_downward): Likewise.
50142         (ctanh_test_upward): Likewise.
50143         (erf_test): Likewise.
50144         (erfc_test): Likewise.
50145         (exp_test): Likewise.
50146         (exp_test_tonearest): Likewise.
50147         (exp_test_towardzero): Likewise.
50148         (exp_test_downward): Likewise.
50149         (exp_test_upward): Likewise.
50150         (exp10_test): Likewise.
50151         (exp10_test_tonearest): Likewise.
50152         (exp10_test_towardzero): Likewise.
50153         (exp10_test_downward): Likewise.
50154         (exp10_test_upward): Likewise.
50155         (pow10_test): Likewise.
50156         (exp2_test): Likewise.
50157         (expm1_test): Likewise.
50158         (expm1_test_tonearest): Likewise.
50159         (expm1_test_towardzero): Likewise.
50160         (expm1_test_downward): Likewise.
50161         (expm1_test_upward): Likewise.
50162         (fabs_test): Likewise.
50163         (fdim_test): Likewise.
50164         (floor_test): Likewise.
50165         (fma_test): Likewise.
50166         (fma_test_towardzero): Likewise.
50167         (fma_test_downward): Likewise.
50168         (fma_test_upward): Likewise.
50169         (fmax_test): Likewise.
50170         (fmin_test): Likewise.
50171         (fmod_test): Likewise.
50172         (fpclassify_test): Likewise.
50173         (frexp_test): Likewise.
50174         (hypot_test): Likewise.
50175         (ilogb_test): Likewise.
50176         (isfinite_test): Likewise.
50177         (finite_test): Likewise.
50178         (isgreater_test): Likewise.
50179         (isgreaterequal_test): Likewise.
50180         (isinf_test): Likewise.
50181         (isless_test): Likewise.
50182         (islessequal_test): Likewise.
50183         (islessgreater_test): Likewise.
50184         (isnan_test): Likewise.
50185         (isnormal_test): Likewise.
50186         (issignaling_test): Likewise.
50187         (isunordered_test): Likewise.
50188         (j0_test): Likewise.
50189         (j1_test): Likewise.
50190         (jn_test): Likewise.
50191         (ldexp_test): Likewise.
50192         (lgamma_test): Likewise.
50193         (gamma_test): Likewise.
50194         (lrint_test): Likewise.
50195         (lrint_test_tonearest): Likewise.
50196         (lrint_test_towardzero): Likewise.
50197         (lrint_test_downward): Likewise.
50198         (lrint_test_upward): Likewise.
50199         (llrint_test): Likewise.
50200         (llrint_test_tonearest): Likewise.
50201         (llrint_test_towardzero): Likewise.
50202         (llrint_test_downward): Likewise.
50203         (llrint_test_upward): Likewise.
50204         (log_test): Likewise.
50205         (log10_test): Likewise.
50206         (log1p_test): Likewise.
50207         (log2_test): Likewise.
50208         (logb_test): Likewise.
50209         (logb_test_downward): Likewise.
50210         (lround_test): Likewise.
50211         (llround_test): Likewise.
50212         (modf_test): Likewise.
50213         (nearbyint_test): Likewise.
50214         (nextafter_test): Likewise.
50215         (nexttoward_test): Likewise.
50216         (pow_test): Likewise.
50217         (pow_test_tonearest): Likewise.
50218         (pow_test_towardzero): Likewise.
50219         (pow_test_downward): Likewise.
50220         (pow_test_upward): Likewise.
50221         (remainder_test): Likewise.
50222         (drem_test): Likewise.
50223         (remainder_test_tonearest): Likewise.
50224         (drem_test_tonearest): Likewise.
50225         (remainder_test_towardzero): Likewise.
50226         (drem_test_towardzero): Likewise.
50227         (remainder_test_downward): Likewise.
50228         (drem_test_downward): Likewise.
50229         (remainder_test_upward): Likewise.
50230         (drem_test_upward): Likewise.
50231         (remquo_test): Likewise.
50232         (rint_test): Likewise.
50233         (rint_test_tonearest): Likewise.
50234         (rint_test_towardzero): Likewise.
50235         (rint_test_downward): Likewise.
50236         (rint_test_upward): Likewise.
50237         (round_test): Likewise.
50238         (scalb_test): Likewise.
50239         (scalbn_test): Likewise.
50240         (scalbln_test): Likewise.
50241         (signbit_test): Likewise.
50242         (sin_test): Likewise.
50243         (sin_test_tonearest): Likewise.
50244         (sin_test_towardzero): Likewise.
50245         (sin_test_downward): Likewise.
50246         (sin_test_upward): Likewise.
50247         (sincos_test): Likewise.
50248         (sinh_test): Likewise.
50249         (sinh_test_tonearest): Likewise.
50250         (sinh_test_towardzero): Likewise.
50251         (sinh_test_downward): Likewise.
50252         (sinh_test_upward): Likewise.
50253         (sqrt_test): Likewise.
50254         (sqrt_test_tonearest): Likewise.
50255         (sqrt_test_towardzero): Likewise.
50256         (sqrt_test_downward): Likewise.
50257         (sqrt_test_upward): Likewise.
50258         (tan_test): Likewise.
50259         (tan_test_tonearest): Likewise.
50260         (tan_test_towardzero): Likewise.
50261         (tan_test_downward): Likewise.
50262         (tan_test_upward): Likewise.
50263         (tanh_test): Likewise.
50264         (tgamma_test): Likewise.
50265         (trunc_test): Likewise.
50266         (y0_test): Likewise.
50267         (y1_test): Likewise.
50268         (yn_test): Likewise.
50269         (significand_test): Likewise.
50270
50271         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
50272         individual tests in comment.
50273         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
50274         (prev_max_error): New variable.
50275         (prev_real_max_error): Likewise.
50276         (prev_imag_max_error): Likewise.
50277         (compare_ulp_data): Don't refer to test names in comment.
50278         (find_test_ulps): Remove function.
50279         (find_function_ulps): Likewise.
50280         (find_complex_function_ulps): Likewise.
50281         (init_max_error): Take function name as argument.  Look up ulps
50282         for that function.
50283         (print_ulps): Remove function.
50284         (print_max_error): Use prev_max_error instead of calling
50285         find_function_ulps.
50286         (print_complex_max_error): Use prev_real_max_error and
50287         prev_imag_max_error instead of calling find_complex_function_ulps.
50288         (check_float_internal): Take max_ulp parameter instead of calling
50289         find_test_ulps.  Don't call print_ulps.
50290         (check_float): Update call to check_float_internal.
50291         (check_complex): Update calls to check_float_internal.
50292         (START): Pass argument to init_max_error.
50293         * math/gen-libm-test.pl (%results): Don't include "kind"
50294         information.
50295         (parse_ulps): Don't handle ulps of individual tests.
50296         (print_ulps_file): Likewise.
50297         (output_ulps): Likewise.
50298         * math/README.libm-test: Update.
50299         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
50300         individual tests.
50301         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
50302         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
50303         * sysdeps/arm/libm-test-ulps: Likewise.
50304         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
50305         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
50306         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
50307         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
50308         * sysdeps/microblaze/libm-test-ulps: Likewise.
50309         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
50310         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
50311         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
50312         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
50313         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
50314         * sysdeps/sh/libm-test-ulps: Likewise.
50315         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
50316         * sysdeps/tile/libm-test-ulps: Likewise.
50317         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50318
50319 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
50320
50321         * math/libm-test.inc (print_complex_max_error): Check separately
50322         whether real and imaginary errors are within allowed range and
50323         pass 0 to print_complex_function_ulps instead of value within
50324         allowed range.
50325
50326 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
50327
50328         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
50329         formatting.
50330         (get_handles_fopen): Likewise.
50331         (do_write_test): Likewise.
50332
50333         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
50334
50335         * libio/fileops.c (do_ftell): Use cached offset when
50336         available.
50337         * libio/iofwide.c (do_ftell_wide): Likewise.
50338         * libio/iofdopen.c (_IO_new_fdopen): Don't use
50339         _IO_file_attach.
50340         * libio/wfileops.c (_IO_fwide): Don't cache offset.
50341
50342         [BZ #16532]
50343         * libio/libioP.h (get_file_offset): New function.
50344         * libio/fileops.c (get_file_offset): Likewise.
50345         (do_ftell): Likewise.
50346         (_IO_new_file_seekoff): Split out ftell logic.
50347         * libio/wfileops.c (do_ftell_wide): Likewise.
50348         (_IO_wfile_seekoff): Split out ftell logic.
50349         * libio/tst-ftell-active-handler.c: New test case.
50350         * libio/Makefile (tests): Add it.
50351
50352 2014-03-03  Roland McGrath  <roland@hack.frob.com>
50353
50354         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
50355         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
50356
50357 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
50358
50359         [BZ #16639]
50360         * nscd/connections.c (nscd_init): Call do_exit.
50361         (start_threads): Call do_exit and notify_parent.
50362         (begin_drop_privileges): Call do_exit.
50363         (finish_drop_privileges): Likewise.
50364         * nscd/selinux.c (preserve_capabilities): Likewise.
50365         (install_real_capabilities): Likewise.
50366         (nscd_selinux_enabled): Likewise.
50367         (avc_create_thread): Likewise.
50368         (avc_alloc_lock): Likewise.
50369         (nscd_avc_init): Likewise.
50370         * nscd/nscd.c (parent_fd): New static variable.
50371         (main): Create a pipe between parent and child processes.
50372         Skip closing parent_fd.
50373         (monitor_child): New function.
50374         (do_exit): Likewise.
50375         (notify_parent): Likewise.
50376         * nscd/nscd.h (notify_parent): Likewise.
50377         (do_exit): Likewise.
50378
50379 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
50380
50381         * malloc/malloc.c (__libc_calloc): Revert last change.
50382
50383 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50384
50385         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50386
50387 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
50388
50389         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
50390         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
50391         implementation.
50392         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
50393         (__libc_ifunc_impl_list): Likewise.
50394         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
50395         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
50396         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
50397         * string/strrchr.c: Define STRRCHR.
50398
50399 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
50400
50401         * benchtest/bench-strtok.c (simple_strtok): Delete.
50402         (strtok_string): Use as benchmark.
50403         * string/strtok (STRTOK): New macro.
50404
50405 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
50406
50407         * manual/threads.texi: Add header and standard comments to all
50408         functions.
50409
50410         * elf/dl-lookup.c (check_match): New function.
50411         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
50412         (do_lookup_x): Remove nested function check_match. Use non-nested
50413         function check_match.
50414
50415 2014-02-28  Roland McGrath  <roland@hack.frob.com>
50416
50417         * csu/Makefile (generated, before-compile): Use += rather than =.
50418         * catgets/Makefile (generated, generated-dirs): Likewise.
50419         * debug/Makefile (generated): Likewise.
50420         * dlfcn/Makefile (generated): Likewise.
50421         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
50422         * iconvdata/Makefile (before-compile, generated): Likewise.
50423         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
50424         * libio/Makefile (generated): Likewise.
50425         * malloc/Makefile (generated): Likewise.
50426         * manual/Makefile (generated, generated-dirs): Likewise.
50427         * misc/Makefile (generated): Likewise.
50428         * posix/Makefile (generated): Likewise.
50429         * resolv/Makefile (generated): Likewise.
50430         * sunrpc/Makefile (generated, generated-dirs): Likewise.
50431         * timezone/Makefile (generated, generated-dirs): Likewise.
50432
50433         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
50434
50435 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50436
50437         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
50438         power8 implementation.
50439         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
50440         file: POWER8 llround ifunc implementation.
50441         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
50442         (__lllround): Add POWER8 implementation.
50443         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
50444         POWER8 llround implementation.
50445
50446         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
50447         power8 implementation.
50448         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
50449         file: POWER8 llrint ifunc implementation.
50450         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
50451         Add POWER8 implementation.
50452         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
50453         POWER8 llrint implementation.
50454
50455         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
50456         power8 implementation.
50457         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
50458         file: POWER8 finite ifunc implementation.
50459         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
50460         Add POWER8 implementation.
50461         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
50462         Likewise.
50463         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
50464         POWER8 finite implementation.
50465         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
50466
50467         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
50468         power8 implementation.
50469         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
50470         file: POWER8 isinf ifunc implementation.
50471         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
50472         POWER8 implementation.
50473         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
50474         Likewise.
50475         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
50476         isinf implementation.
50477         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
50478
50479         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
50480         (INIT_ARCH): Add hwcap2 initialization.
50481         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
50482         power8 implementation.
50483         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
50484         file: POWER8 isnan ifunc implementation.
50485         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
50486         POWER8 implementation.
50487         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
50488         Likewise.
50489         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
50490         isnan implementation.
50491         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
50492
50493 2014-02-27  Joey Ye  <joey.ye@arm.com>
50494
50495         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
50496         (_FP_NANFRAC_Q): Set to zero.
50497
50498 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
50499
50500         [BZ #16623]
50501         * math/auto-libm-test-in: New test inputs.
50502         * math/auto-libm-test-out: Regenerate.
50503         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
50504         and DA.
50505         (__cos): Likewise.
50506         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
50507
50508 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
50509
50510         * scripts/evaluate-test.sh: Take new argument indicating whether
50511         failure is expected.
50512         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
50513         indicating whether failure is expected.
50514         * conform/Makefile (test-xfail-run-conformtest): New variable.
50515         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
50516         level.
50517         * posix/Makefile (test-xfail-annexc): New variable.
50518         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
50519
50520 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
50521
50522         * argp/Makefile: Include Makeconfig immediately after defining
50523         subdir.
50524         * assert/Makefile: Likewise.
50525         * benchtests/Makefile: Likewise.
50526         * catgets/Makefile: Likewise.
50527         * conform/Makefile: Likewise.
50528         * crypt/Makefile: Likewise.
50529         * csu/Makefile: Likewise.
50530         (all): Remove target.
50531         * ctype/Makefile: Include Makeconfig immediately after defining
50532         subdir.
50533         * debug/Makefile: Likewise.
50534         * dirent/Makefile: Likewise.
50535         * dlfcn/Makefile: Likewise.
50536         * gmon/Makefile: Likewise.
50537         * gnulib/Makefile: Likewise.
50538         * grp/Makefile: Likewise.
50539         * gshadow/Makefile: Likewise.
50540         * hesiod/Makefile: Likewise.
50541         * hurd/Makefile: Likewise.
50542         (all): Remove target.
50543         * iconvdata/Makefile: Include Makeconfig immediately after
50544         defining subdir.
50545         * inet/Makefile: Likewise.
50546         * intl/Makefile: Likewise.
50547         * io/Makefile: Likewise.
50548         * libio/Makefile: Likewise.
50549         (all): Remove target.
50550         * locale/Makefile: Include Makeconfig immediately after defining
50551         subdir.
50552         * login/Makefile: Likewise.
50553         * mach/Makefile: Likewise.
50554         (all): Remove target.
50555         * malloc/Makefile: Include Makeconfig immediately after defining
50556         subdir.
50557         (all): Remove target.
50558         * manual/Makefile: Include Makeconfig immediately after defining
50559         subdir.
50560         * math/Makefile: Likewise.
50561         * misc/Makefile: Likewise.
50562         * nis/Makefile: Likewise.
50563         * nss/Makefile: Likewise.
50564         * po/Makefile: Likewise.
50565         (all): Remove target.
50566         * posix/Makefile: Include Makeconfig immediately after defining
50567         subdir.
50568         * pwd/Makefile: Likewise.
50569         * resolv/Makefile: Likewise.
50570         * resource/Makefile: Likewise.
50571         * rt/Makefile: Likewise.
50572         * setjmp/Makefile: Likewise.
50573         * shadow/Makefile: Likewise.
50574         * signal/Makefile: Likewise.
50575         * socket/Makefile: Likewise.
50576         * soft-fp/Makefile: Likewise.
50577         * stdio-common/Makefile: Likewise.
50578         * stdlib/Makefile: Likewise.
50579         * streams/Makefile: Likewise.
50580         * string/Makefile: Likewise.
50581         * sunrpc/Makefile: Likewise.
50582         (all): Remove target.
50583         * sysvipc/Makefile: Include Makeconfig immediately after defining
50584         subdir.
50585         * termios/Makefile: Likewise.
50586         * time/Makefile: Likewise.
50587         * timezone/Makefile: Likewise.
50588         (all): Remove target.
50589         * wcsmbs/Makefile: Include Makeconfig immediately after defining
50590         subdir.
50591         * wctype/Makefile: Likewise.
50592
50593 2014-02-26  Steve Ellcey  <sellcey@mips.com>
50594
50595         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
50596         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
50597         (libc_feholdexcept_setround_mips): Ditto.
50598         (libc_feholdsetround): New.
50599         (libc_feholdsetroundf): New.
50600         (libc_feholdsetroundl): New.
50601         (libc_feupdateenv_test_mips): New.
50602         (libc_feupdateenv_test): New.
50603         (libc_feupdateenv_testf): New.
50604         (libc_feupdateenv_testl): New.
50605         (libc_feresetround): New.
50606         (libc_feresetroundf): New.
50607         (libc_feresetroundl): New.
50608         (libc_fetestexcept_mips): New.
50609         (libc_fetestexcept): New.
50610         (libc_fetestexceptf): New.
50611         (libc_fetestexceptl): New.
50612         (HAVE_RM_CTX): New.
50613         (libc_feholdexcept_setround_mips_ctx): New.
50614         (libc_feholdexcept_setround_ctx): New.
50615         (libc_feholdexcept_setroundf_ctx): New.
50616         (libc_feholdexcept_setroundl_ctx): New.
50617         (libc_fesetenv_mips_ctx): New.
50618         (libc_fesetenv_ctx): New.
50619         (libc_fesetenv_ctxf): New.
50620         (libc_fesetenv_ctxl): New.
50621         (libc_feupdateenv_mips_ctx): New.
50622         (libc_feupdateenv_ctx): New.
50623         (libc_feupdateenvf_ctx): New.
50624         (libc_feupdateenvl_ctx): New.
50625         (libc_feholdsetround_mips_ctx): New.
50626         (libc_feholdsetround_ctx): New.
50627         (libc_feholdsetroundf_ctx): New.
50628         (libc_feholdsetroundl_ctx): New.
50629         (libc_feresetround_mips_ctx): New.
50630         (libc_feresetround_ctx): New.
50631         (libc_feresetroundf_ctx): New.
50632         (libc_feresetroundl_ctx): New.
50633
50634 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
50635
50636         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
50637
50638         * manual/ipc.texi: New file.
50639         * manual/Makefile (chapters): Add ipc.
50640         * manual/job.texi: Add "Inter-Process Communication" to next.
50641         * manual/process.texi: Add "Inter-Process Communication" to prev.
50642
50643 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50644
50645         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50646
50647 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
50648
50649         * malloc/malloc.c (__libc_calloc): Simplify implementation.
50650
50651         * manual/arith.texi: Fix spaces after sentences.
50652         * manual/charset.texi: Likewise.
50653         * manual/errno.texi: Likewise.
50654         * manual/install.texi: Likewise.
50655         * manual/llio.texi: Likewise.
50656         * manual/locale.texi: Likewise.
50657         * manual/maint.texi: Likewise.
50658         * manual/math.texi: Likewise.
50659         * manual/memory.texi: Likewise.
50660         * manual/message.texi: Likewise.
50661         * manual/probes.texi: Likewise.
50662         * manual/resource.texi: Likewise.
50663         * manual/signal.texi: Likewise.
50664         * manual/socket.texi: Likewise.
50665         * manual/stdio.texi: Likewise.
50666         * manual/string.texi: Likewise.
50667         * manual/time.texi: Likewise.
50668         * manual/users.texi: Likewise.
50669
50670 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
50671
50672         [BZ #16632]
50673         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
50674         _DEFAULT_SOURCE is defined.
50675
50676 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
50677             Carlos O'Donell  <carlos@redhat.com>
50678
50679         [BZ #16613]
50680         * elf/dl-tls.c (_dl_count_modids): New function.
50681         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
50682         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
50683         audit library and increment generation counter.
50684         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
50685         * elf/tst-audit9.c: New file.
50686         * elf/tst-auditmod9a.c: New file.
50687         * elf/tst-auditmod9b.c: New file.
50688         * elf/Makefile: Add rules to build and run tst-audit9.
50689
50690 2014-02-25  Florian Weimer  <fweimer@redhat.com>
50691
50692         [BZ #15347]
50693         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
50694
50695 2014-02-25  Will Newton  <will.newton@linaro.org>
50696
50697         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
50698         (__longjmp): Restore sp and lr before restoring callee
50699         saved registers.  Add longjmp and longjmp_target
50700         SystemTap probe point.
50701         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
50702         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
50703         Define to zero to match jmpbuf layout.
50704         * sysdeps/arm/setjmp.S: Include stap-probe.h.
50705         (__sigsetjmp): Save sp and lr before saving callee
50706         saved registers.  Add setjmp SystemTap probe point.
50707
50708 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
50709
50710         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
50711
50712 2014-02-24  Andreas Schwab  <schwab@suse.de>
50713
50714         [BZ #15804]
50715         * elf/pldd.c (wait_for_ptrace_stop): New function.
50716         (main): Call it after attaching.
50717
50718 2014-02-22  Roland McGrath  <roland@hack.frob.com>
50719
50720         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
50721         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
50722         Versions files is now verboten.
50723         * hurd/Versions (libc: GLIBC_2.0):
50724         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
50725         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
50726         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
50727         * mach/Versions: Likewise.
50728
50729         * csu/Versions: Remove unused %include.
50730         * resolv/Versions: Likewise.
50731
50732 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
50733
50734         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
50735         ($(objpfx)check-local-headers.out): Likewise.
50736         ($(objpfx)begin-end-check.out): Likewise.
50737         * Makerules (check-abi-%.out): Likewise.
50738         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
50739         ($(objpfx)test2.cat): Likewise.
50740         ($(objpfx)de/libc.cat): Likewise.
50741         ($(objpfx)test-gencat.out): Likewise.
50742         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
50743         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
50744         ($(objpfx)noload-mem): Likewise.
50745         ($(objpfx)tst-pathopt.out): Likewise.
50746         ($(objpfx)tst-rtld-load-self.out): Likewise.
50747         ($(objpfx)tst-array1-cmp.out): Likewise.
50748         ($(objpfx)tst-array1-static-cmp.out): Likewise.
50749         ($(objpfx)tst-array2-cmp.out): Likewise.
50750         ($(objpfx)tst-array3-cmp.out): Likewise.
50751         ($(objpfx)tst-array4-cmp.out): Likewise.
50752         ($(objpfx)tst-array5-cmp.out): Likewise.
50753         ($(objpfx)tst-array5-static-cmp.out): Likewise.
50754         ($(objpfx)check-textrel.out): Likewise.
50755         ($(objpfx)check-execstack.out): Likewise.
50756         ($(objpfx)check-localplt.out): Likewise.
50757         ($(objpfx)order2-cmp.out): Likewise.
50758         ($(objpfx)tst-leaks1-mem): Likewise.
50759         ($(objpfx)tst-leaks1-static-mem): Likewise.
50760         ($(objpfx)tst-initorder-cmp.out): Likewise.
50761         ($(objpfx)tst-initorder2-cmp.out): Likewise.
50762         ($(objpfx)tst-unused-dep.out): Likewise.
50763         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
50764         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
50765         * iconv/Makefile (test-iconvconfig): Likewise.
50766         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
50767         ($(objpfx)iconv-test.out): Likewise.
50768         ($(objpfx)tst-tables.out): Likewise.
50769         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
50770         ($(objpfx)tst-gettext.out): Likewise.
50771         ($(objpfx)tst-translit.out): Likewise.
50772         ($(objpfx)tst-gettext2.out): Likewise.
50773         ($(objpfx)tst-gettext4.out): Likewise.
50774         ($(objpfx)tst-gettext6.out): Likewise.
50775         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
50776         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
50777         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
50778         ($(objpfx)tst-fopenloc-mem.out): Likewise.
50779         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
50780         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
50781         * posix/Makefile ($(objpfx)globtest.out): Likewise.
50782         ($(objpfx)wordexp-tst.out): Likewise.
50783         ($(objpfx)annexc.out): Likewise.
50784         ($(objpfx)tst-fnmatch-mem): Likewise.
50785         ($(objpfx)bug-regex2-mem): Likewise.
50786         ($(objpfx)bug-regex14-mem): Likewise.
50787         ($(objpfx)bug-regex21-mem): Likewise.
50788         ($(objpfx)bug-regex31-mem): Likewise.
50789         ($(objpfx)tst-vfork3-mem): Likewise.
50790         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
50791         ($(objpfx)tst-pcre-mem): Likewise.
50792         ($(objpfx)tst-boost-mem): Likewise.
50793         ($(objpfx)tst-getconf.out): Likewise.
50794         ($(objpfx)bug-ga2-mem): Likewise.
50795         ($(objpfx)bug-glob2-mem): Likewise.
50796         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
50797         ($(objpfx)mtrace-tst-leaks2): Likewise.
50798         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
50799         ($(objpfx)tst-printf.out): Likewise.
50800         ($(objpfx)tst-setvbuf1.out): Likewise.
50801         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
50802         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
50803         ($(objpfx)tst-fmtmsg.out): Likewise.
50804         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
50805         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
50806
50807         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
50808         * bits/sigaction.h [__USE_MISC]: Likewise.
50809         * bits/waitstatus.h: Update #endif comments.
50810         * ctype/ctype.h: Likewise.
50811         * dirent/dirent.h: Likewise.
50812         [__USE_MISC]: Remove redundant conditionals.
50813         * grp/grp.h: Update #endif comments.
50814         [__USE_GNU]: Remove redundant conditionals.
50815         [__USE_MISC]: Likewise.
50816         * inet/netinet/in.h [__USE_GNU]: Likewise.
50817         * io/sys/stat.h [__USE_MISC]: Likewise.
50818         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
50819         * libio/bits/stdio.h: Update #endif comments.
50820         [__USE_MISC]: Remove redundant conditionals.
50821         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
50822         * libio/stdio.h: Update #endif comments.
50823         [__USE_MISC]: Remove redundant conditionals.
50824         * math/bits/math-finite.h [__USE_MISC]: Likewise.
50825         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
50826         * math/math.h: Update #else and #endif comments.
50827         [__USE_MISC]: Remove redundant conditionals.
50828         * misc/sys/uio.h: Update #endif comments.
50829         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
50830         * posix/glob.h [__USE_MISC]: Likewise.
50831         * posix/sys/types.h: Update #endif comments.
50832         [__USE_MISC]: Remove redundant conditionals.
50833         * posix/sys/wait.h: Update #endif comments.
50834         [__USE_MISC]: Remove redundant conditionals.
50835         * posix/unistd.h: Update #endif comments.
50836         [__USE_MISC]: Remove redundant conditionals.
50837         * pwd/pwd.h [__USE_GNU]: Likewise.
50838         [__USE_MISC]: Likewise.
50839         * resolv/netdb.h [__USE_GNU]: Likewise.
50840         * signal/signal.h: Update #endif comments.
50841         [__USE_MISC]: Remove redundant conditionals.
50842         * stdlib/stdlib.h: Update #else and #endif comments.
50843         [__USE_MISC]: Remove redundant conditionals.
50844         [__USE_GNU]: Likewise.
50845         * string/bits/string2.h [__USE_MISC]: Likewise.
50846         * string/string.h: Update #endif comments.
50847         [__USE_MISC]: Remove redundant conditionals.
50848         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
50849         Likewise.
50850         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
50851         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
50852         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
50853         Likewise.
50854         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
50855         Likewise.
50856         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
50857         comments.
50858         [__USE_MISC]: Remove redundant conditionals.
50859         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
50860         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
50861         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
50862         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
50863         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
50864         Likewise.
50865         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
50866         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
50867         Likewise.
50868         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
50869         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
50870         Likewise.
50871         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
50872         Likewise.
50873         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
50874         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
50875         Likewise.
50876         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
50877         Likewise.
50878         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
50879         * sysdeps/x86/bits/string.h: Update #endif comments.
50880         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
50881         conditionals.
50882         * time/sys/time.h: Update #endif comments.
50883         * time/time.h: Likewise.
50884         [__USE_MISC]: Remove redundant conditionals.
50885
50886 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
50887
50888         [BZ #16600]
50889         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
50890
50891 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
50892
50893         * Versions.def (librt): Add GLIBC_2.17.
50894
50895 2014-02-21  Adam Conrad  <adconrad@0c3.net>
50896
50897         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
50898         synonym for _SYS_AUXV_H to allow direct inclusion.
50899         * sysdeps/sparc/bits/hwcap.h: Likewise.
50900         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
50901         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
50902         * sysdeps/sparc/sysdep.h: Likewise.
50903
50904 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50905
50906         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
50907
50908 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
50909
50910         * benchtests/bench-strrchr.c: Print length instead of position.
50911
50912 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
50913
50914         [BZ #16611]
50915         * sysdeps/unix/sysv/linux/kernel-features.h
50916         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
50917         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
50918         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
50919         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
50920         Likewise.
50921         [__i386__ || __powerpc__ || __sh__ || __sparc__]
50922         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
50923         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
50924         (__ASSUME_SENDMMSG): Define instead of using previous
50925         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
50926         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
50927         (__ASSUME_SENDMMSG_SYSCALL): Define.
50928         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
50929         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
50930         Likewise.
50931         * sysdeps/unix/sysv/linux/arm/kernel-features.h
50932         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
50933         Likewise.
50934         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
50935         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
50936         Likewise.
50937         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
50938         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
50939         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
50940         [__ASSUME_SENDMMSG]: Change conditionals to
50941         [__ASSUME_SENDMMSG_SOCKETCALL].
50942         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
50943         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
50944         Define.
50945         * sysdeps/unix/sysv/linux/mips/kernel-features.h
50946         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
50947         Likewise.
50948         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
50949         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
50950         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
50951         [!__ASSUME_SENDMMSG]: Change conditional to
50952         [!__ASSUME_SENDMMSG_SOCKETCALL].
50953         * sysdeps/unix/sysv/linux/tile/kernel-features.h
50954         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
50955         Define.
50956
50957         [BZ #16610]
50958         * sysdeps/unix/sysv/linux/kernel-features.h
50959         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
50960         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
50961         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
50962         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
50963         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
50964         [__i386__ || __sparc__]
50965         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
50966         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
50967         (__ASSUME_RECVMMSG): Define instead of using previous
50968         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
50969         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
50970         (__ASSUME_RECVMMSG_SYSCALL): Define.
50971         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
50972         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50973         Likewise.
50974         * sysdeps/unix/sysv/linux/arm/kernel-features.h
50975         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50976         Likewise.
50977         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
50978         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50979         Likewise.
50980         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
50981         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
50982         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
50983         [__ASSUME_RECVMMSG]: Change condition to
50984         [__ASSUME_RECVMMSG_SOCKETCALL].
50985         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
50986         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50987         Define.
50988         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
50989         * sysdeps/unix/sysv/linux/mips/kernel-features.h
50990         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50991         Likewise.
50992         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
50993         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
50994         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
50995         [!__ASSUME_RECVMMSG]: Change condition to
50996         [!__ASSUME_RECVMMSG_SOCKETCALL].
50997         * sysdeps/unix/sysv/linux/tile/kernel-features.h
50998         (__ASSUME_RECVMMSG_SYSCALL): Define.
50999
51000         [BZ #16609]
51001         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
51002         __powerpc__ || __s390__ || __sh__ || __sparc__]
51003         (__ASSUME_SOCKETCALL): Define.
51004         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
51005         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
51006         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
51007         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
51008         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
51009         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
51010         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
51011         (__ASSUME_ACCEPT4): Define instead of using previous
51012         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
51013         __powerpc__ || __sparc__ || __s390__)] condition.
51014         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
51015         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
51016         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
51017         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
51018         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
51019         [!__ASSUME_ACCEPT4]: Change condition to
51020         [!__ASSUME_ACCEPT4_SOCKETCALL].
51021         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
51022         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
51023         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
51024         * sysdeps/unix/sysv/linux/arm/kernel-features.h
51025         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
51026         __ASSUME_ACCEPT4_SYSCALL.
51027         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
51028         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
51029         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
51030         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
51031         __ASSUME_ACCEPT4_SYSCALL.
51032         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
51033         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
51034         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
51035         [__ASSUME_ACCEPT4]: Change condition to
51036         [__ASSUME_ACCEPT4_SOCKETCALL].
51037         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
51038         (__ASSUME_SOCKETCALL): Define.
51039         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
51040         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
51041         (__ASSUME_SOCKETCALL): Define.
51042         (__ASSUME_ACCEPT4): Remove.
51043         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
51044         Define.
51045         * sysdeps/unix/sysv/linux/mips/kernel-features.h
51046         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
51047         Likewise.
51048         * sysdeps/unix/sysv/linux/tile/kernel-features.h
51049         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
51050
51051         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
51052         macro.
51053         (HWCAP_ARM_LPAE): Likewise.
51054         (HWCAP_ARM_EVTSTRM): Likewise.
51055         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
51056         Add vpfd32, lpae and evtstrm.
51057         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
51058         Increase to 22.
51059
51060 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
51061
51062         * math/auto-libm-test-in: Add tests of clog10.
51063         * math/auto-libm-test-out: Regenerated.
51064         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
51065         * sysdeps/i386/fpu/libm-test-ulps: Update.
51066         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51067
51068 2014-02-18  Andreas Schwab  <schwab@suse.de>
51069
51070         [BZ #16574]
51071         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
51072         Store non-zero if the second buffer was newly allocated.
51073         (send_dg): Likewise.
51074         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
51075         to send_vc and send_dg.
51076         (res_nsend): Pass NULL for ansp2_malloced.
51077         * resolv/res_query.c (__libc_res_nquery): Add parameter
51078         answerp2_malloced and pass it down to __libc_res_nsend.
51079         (res_nquery): Pass additional NULL to __libc_res_nquery.
51080         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
51081         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
51082         second answer buffer if answerp2_malloced was set.
51083         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
51084         (__libc_res_nquerydomain): Add parameter
51085         answerp2_malloced and pass it down to __libc_res_nquery.
51086         (res_nquerydomain): Pass additional NULL to
51087         __libc_res_nquerydomain.
51088         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
51089         additional NULL to __libc_res_nsend and __libc_res_nquery.
51090         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
51091         additional NULL to __libc_res_nsearch.
51092         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
51093         parameter of __libc_res_nsearch to check for separately allocated
51094         second buffer.
51095         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
51096         __libc_res_nquery.
51097         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
51098         additional NULL to __libc_res_nquery.
51099         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
51100         __libc_res_nsearch.
51101         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
51102         * include/resolv.h: Update prototypes of __libc_res_nquery,
51103         __libc_res_nsearch, __libc_res_nsend.
51104
51105 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
51106
51107         * math/auto-libm-test-in: Add tests of fma.
51108         * math/auto-libm-test-out: Regenerated.
51109         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
51110         (fma_towardzero_test_data): Likewise.
51111         (fma_downward_test_data): Likewise.
51112         (fma_upward_test_data): Likewise.
51113         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
51114         mpc_mode.
51115         (rounding_modes): Add values for new field.
51116         (func_calc_method): Add value mpfr_fff_f.
51117         (func_calc_desc): Add mpfr_fff_f union field.
51118         (test_function): Add field exact_args.
51119         (FUNC): Add macro argument EXACT_ARGS.
51120         (FUNC_mpfr_f_f): Update call to FUNC.
51121         (FUNC_mpfr_f_f): Likewise.
51122         (FUNC_mpfr_ff_f): Likewise.
51123         (FUNC_mpfr_if_f): Likewise.
51124         (FUNC_mpc_c_f): Likewise.
51125         (FUNC_mpc_c_c): Likewise.
51126         (test_functions): Add fma.  Update calls to FUNC.
51127         (handle_input_arg): Add argument exact_args.
51128         (add_test): Update call to handle_input_arg.
51129         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
51130         (output_for_one_input_case): Update call to calc_generic_results.
51131         Recalculate exact zero results in each rounding mode.
51132
51133         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
51134         non-negative before setting low bit.
51135         * math/auto-libm-test-in: Mark one asin test possibly having
51136         spurious underflow.
51137         * math/auto-libm-test-out: Regenerated.
51138         * sysdeps/i386/fpu/libm-test-ulps: Update.
51139         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51140
51141 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
51142
51143         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
51144         * sysdeps/unix/sysv/linux/microblaze: Move directory from
51145         ports/sysdeps/unix/sysv/linux/microblaze.
51146         * README: Add missing listing for microblaze*-*-linux-gnu.
51147
51148 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
51149
51150         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
51151         duplicate code
51152
51153 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
51154
51155         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
51156         * sysdeps/unix/sysv/linux/ia64: Move directory from
51157         ports/sysdeps/unix/sysv/linux/ia64.
51158         * README: Update listing for ia64-*-linux-gnu.
51159
51160 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
51161             Joseph Myers  <joseph@codesourcery.com>
51162
51163         * Makeconfig (test-name): New variable.
51164         (evaluate-test): Likewise.
51165         * Makerules (do-test-clean): Remove .test-result files.
51166         (common-mostlyclean): Likewise.
51167         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
51168         * scripts/evaluate-test.sh: New file.
51169
51170 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
51171
51172         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
51173         separate $(objpfx)tst-fopenloc-cmp.out and
51174         $(objpfx)tst-fopenloc-mem.out targets.
51175         (tests): Update dependencies.
51176         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
51177         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
51178         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
51179         (tst-rxspencer-no-utf8-ARGS): New variable.
51180         (tst-rxspencer-no-utf8-ENV): Likewise.
51181         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
51182         instead of $(objpfx)tst-rxspencer-mem.
51183         ($(objpfx)tst-rxspencer-mem): Change target to
51184         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
51185         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
51186         * posix/tst-rxspencer-no-utf8.c: New file.
51187
51188         * elf/Makefile ($(objpfx)order.out): Remove rule.
51189         [$(run-built-tests) = yes] (tests): Depend on
51190         $(objpfx)order-cmp.out.
51191         ($(objpfx)order-cmp.out): New rule.
51192         [$(run-built-tests) = yes] (tests): Depend on
51193         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
51194         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
51195         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
51196         $(objpfx)tst-array5-static-cmp.out.
51197         ($(objpfx)tst-array1.out): Remove rule.
51198         ($(objpfx)tst-array1-cmp.out): New rule.
51199         ($(objpfx)tst-array1-static.out): Remove rule.
51200         ($(objpfx)tst-array1-static-cmp.out): New rule.
51201         ($(objpfx)tst-array2.out): Remove rule.
51202         ($(objpfx)tst-array2-cmp.out): New rule.
51203         ($(objpfx)tst-array3.out): Remove rule.
51204         ($(objpfx)tst-array3-cmp.out): New rule.
51205         ($(objpfx)tst-array4.out): Remove rule.
51206         ($(objpfx)tst-array4-cmp.out): New rule.
51207         ($(objpfx)tst-array5.out): Remove rule.
51208         ($(objpfx)tst-array5-cmp.out): New rule.
51209         ($(objpfx)tst-array5-static.out): Remove rule.
51210         ($(objpfx)tst-array5-static-cmp.out): New rule.
51211         [$(run-built-tests) = yes] (tests): Depend on
51212         $(objpfx)order2-cmp.out.
51213         ($(objpfx)order2.out): Remove rule.
51214         ($(objpfx)order2-cmp.out): New rule.
51215         ($(objpfx)tst-initorder.out): Remove rule.
51216         [$(run-built-tests) = yes] (tests): Depend on
51217         $(objpfx)tst-initorder-cmp.out.
51218         ($(objpfx)tst-initorder-cmp.out): New rule.
51219         ($(objpfx)tst-initorder2.out): Remove rule.
51220         [$(run-built-tests) = yes] (tests): Depend on
51221         $(objpfx)tst-initorder2-cmp.out.
51222         ($(objpfx)tst-initorder2-cmp.out): New rule.
51223         [$(run-built-tests) = yes] (tests): Depend on
51224         $(objpfx)tst-unused-dep-cmp.out.
51225         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
51226         ($(objpfx)tst-unused-dep-cmp.out): New rule.
51227         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
51228         on $(objpfx)tst-setvbuf1-cmp.out.
51229         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
51230         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
51231         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
51232         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
51233         ($(objpfx)tst-svc.out): Remove rule.
51234         ($(objpfx)tst-svc-cmp.out): New rule.
51235
51236 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
51237
51238         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
51239         * ctype/ctype.h [__USE_MISC]: Likewise.
51240         * dirent/dirent.h [__USE_MISC]: Likewise.
51241         * grp/grp.h [__USE_MISC]: Likewise.
51242         * io/fcntl.h [__USE_MISC]: Likewise.
51243         * io/sys/stat.h [__USE_MISC]: Likewise.
51244         * libio/stdio.h [__USE_MISC]: Likewise.
51245         * posix/unistd.h [__USE_MISC]: Likewise.
51246         * pwd/pwd.h [__USE_MISC]: Likewise.
51247         * stdlib.h [__USE_MISC]: Likewise.
51248         * string/bits/string2.h [__USE_MISC]: Likewise.
51249         * string/string.h [__USE_MISC]: Likewise.
51250         * time/time.h [__USE_MISC]: Likewise.
51251
51252 2014-02-13  Andreas Schwab  <schwab@suse.de>
51253
51254         [BZ #16574]
51255         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
51256         second answer buffer if it was separately allocated.
51257
51258 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
51259
51260         * sysdeps/mips/math-tests.h: Include <features.h>.
51261         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
51262         (ROUNDING_TESTS_long_double): Do not define.
51263         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
51264         (EXCEPTION_TESTS_long_double): Likewise.
51265         * sysdeps/mips/mips64/libm-test-ulps: Update.
51266
51267         * include/features.h (__USE_BSD): Remove macro definitions.
51268         (__USE_SVID): Likewise.
51269         (_BSD_SOURCE): Likewise.
51270         (_SVID_SOURCE): Likewise.
51271         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
51272         from definition of _DEFAULT_SOURCE.
51273         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
51274         [_DEFAULT_SOURCE].
51275         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
51276         * bits/mman.h [__USE_BSD]: Likewise.
51277         * bits/termios.h [__USE_BSD]: Likewise.
51278         * bits/waitstatus.h [__USE_BSD]: Likewise.
51279         * ctype/ctype.h [__USE_SVID]: Likewise.
51280         * dirent/dirent.h [__USE_BSD]: Likewise.
51281         * grp/grp.h [__USE_SVID]: Likewise.
51282         [__USE_BSD]: Likewise.
51283         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
51284         * io/fcntl.h [__USE_BSD]: Likewise.
51285         * io/ftw.h [__USE_BSD]: Likewise.
51286         * io/sys/stat.h [__USE_BSD]: Likewise.
51287         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
51288         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
51289         * libio/stdio.h [__USE_SVID]: Likewise.
51290         [__USE_BSD]: Likewise.
51291         * math/math.h [__USE_SVID]: Likewise.
51292         [__USE_BSD]: Likewise.
51293         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
51294         * misc/bits/syslog.h [__USE_BSD]: Likewise.
51295         * misc/search.h [__USE_SVID]: Likewise.
51296         * misc/sys/mman.h [__USE_BSD]: Likewise.
51297         * misc/sys/syslog.h [__USE_BSD]: Likewise.
51298         * misc/sys/uio.h [__USE_BSD]: Likewise.
51299         * posix/bits/unistd.h [__USE_BSD]: Likewise.
51300         * posix/glob.h [__USE_BSD]: Likewise.
51301         * posix/regex.h [__USE_BSD]: Likewise.
51302         * posix/sys/types.h [__USE_BSD]: Likewise.
51303         [__USE_SVID]: Likewise.
51304         * posix/sys/utsname.h [__USE_SVID]: Likewise.
51305         * posix/sys/wait.h [__USE_BSD]: Likewise.
51306         [__USE_SVID]: Likewise.
51307         * posix/unistd.h [__USE_BSD]: Likewise.
51308         [__USE_SVID]: Likewise.
51309         * pwd/pwd.h [__USE_SVID]: Likewise.
51310         * resolv/netdb.h [__USE_BSD]: Likewise.
51311         * setjmp/setjmp.h [__USE_BSD]: Likewise.
51312         * signal/signal.h [__USE_BSD]: Likewise.
51313         [__USE_SVID]: Likewise.
51314         * socket/sys/socket.h [__USE_BSD]: Likewise.
51315         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
51316         * stdlib/stdlib.h [__USE_BSD]: Likewise.
51317         [__USE_SVID]: Likewise.
51318         * string/bits/string2.h [__USE_BSD]: Likewise.
51319         [__USE_SVID]: Likewise.
51320         * string/bits/string3.h [__USE_BSD]: Likewise.
51321         * string/endian.h [__USE_BSD]: Likewise.
51322         * string/string.h [__USE_SVID]: Likewise.
51323         [__USE_BSD]: Likewise.
51324         * string/strings.h [__USE_BSD]: Likewise.
51325         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
51326         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
51327         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
51328         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
51329         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
51330         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
51331         Likewise.
51332         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
51333         Likewise.
51334         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
51335         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
51336         Likewise.
51337         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
51338         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
51339         Likewise.
51340         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
51341         Likewise.
51342         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
51343         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
51344         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
51345         Likewise.
51346         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
51347         Likewise.
51348         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
51349         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
51350         * termios/termios.h [__USE_BSD]: Likewise.
51351         * time/sys/time.h [__USE_BSD]: Likewise.
51352         * time/time.h [__USE_BSD]: Likewise.
51353         [__USE_SVID]: Likewise.
51354
51355         * Makefile (subdir_targets): Remove subdir_lint.out.
51356
51357         * stdio-common/Makefile (do-tst-unbputc): Remove target.
51358         (do-tst-printf): Likewise.
51359         (tests): Depend directly on $(objpfx)tst-unbputc.out and
51360         $(objpfx)tst-printf.out.
51361
51362         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
51363
51364         * Makerules (check-abi-%): Change target to
51365         $(objpfx)check-abi-%.out.
51366         (check-abi target): Update dependencies.
51367         (check-abi-pattern variable): Redirect output of diff to $@.
51368         (check-abi variable): Likewise.
51369         * elf/Makefile (check-abi): Update dependencies.
51370
51371         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
51372         unused.
51373         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
51374         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
51375         subnormal range.
51376         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
51377         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
51378         value has largest subnormal exponent.
51379         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
51380         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
51381         * sysdeps/aarch64/soft-fp/sfp-machine.h
51382         (_FP_TININESS_AFTER_ROUNDING): New macro.
51383         * sysdeps/alpha/soft-fp/sfp-machine.h
51384         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51385         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
51386         Likewise.
51387         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
51388         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51389         * sysdeps/mips/soft-fp/sfp-machine.h
51390         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51391         * sysdeps/powerpc/soft-fp/sfp-machine.h
51392         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51393         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
51394         Likewise.
51395         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
51396         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51397         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
51398         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51399         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
51400         Likewise.
51401
51402 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
51403
51404         [BZ #16545]
51405         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
51406         model 1.
51407
51408 2014-02-12  Richard Henderson  <rth@redhat.com>
51409
51410         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
51411         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
51412         * sysdeps/unix/sysv/linux/alpha: Move directory from
51413         ports/sysdeps/unix/sysv/linux/alpha.
51414         * README: Update listing for alpha-*-linux-gnu.
51415
51416 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
51417
51418         * include/features.h: Update comment documenting feature test
51419         macros.
51420         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
51421         _DEFAULT_SOURCE.
51422         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
51423         (_SVID_SOURCE): Likewise.
51424         (_DEFAULT_SOURCE): Update description of default features.
51425         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
51426         with _GNU_SOURCE.
51427         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
51428         (S_ISVTX): Likewise.
51429         * manual/math.texi (Mathematical Constants): Likewise.
51430         * manual/signal.texi (Interrupted Primitives): Likewise.
51431         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
51432         * math/test-matherr.c (_SVID_SOURCE): Do not define.
51433         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
51434         Don't refer to _SVID_SOURCE in warning text.
51435
51436         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
51437
51438         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
51439         already defined.
51440         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
51441         * sysdeps/mips/dl-lookup.c: Remove.
51442         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
51443
51444 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
51445
51446         [BZ #16447]
51447         * math/auto-libm-test-in: Add testcase for expl.
51448         * math/auto-libm-test-out: Regenerate.
51449         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
51450         calculation of unsafe.
51451         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
51452
51453 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
51454
51455         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
51456         * sysdeps/unix/sysv/linux/aarch64: Move directory from
51457         ports/sysdeps/unix/sysv/linux/aarch64.
51458         * README: Update listing for aarch64*-*-linux-gnu.
51459
51460 2014-02-11  Will Newton  <will.newton@linaro.org>
51461
51462         * manual/probes.texi (Mathematical Function Probes): Use
51463         "triggered" instead of "hit".
51464
51465         * manual/probes.texi (Internal Probes): Add documentation
51466         of setjmp, longjmp and longjmp_target probes.
51467
51468         * include/stap-probe.h: Add comment about probe argument
51469         format.
51470
51471         * malloc/mtrace.c (attribute_hidden): Remove unused macro
51472         definition.  (tr_where, tr_freehook, tr_mallochook,
51473         tr_reallochook, tr_memalignhook): Use ANSI protoype.
51474
51475 2014-02-11  David S. Miller  <davem@davemloft.net>
51476
51477         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
51478         processing int_tests.
51479
51480 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
51481
51482         * sysdeps/mips: Move directory from ports/sysdeps/mips.
51483         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
51484         * sysdeps/unix/sysv/linux/mips: Move directory from
51485         ports/sysdeps/unix/sysv/linux/mips.
51486         * README: Update listing for mips-*-linux-gnu and
51487         mips64-*-linux-gnu.
51488
51489 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
51490
51491         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
51492         * sysdeps/unix/sysv/linux/m68k: Move directory from
51493         ports/sysdeps/unix/sysv/linux/m68k.
51494         * README: Update listing for m68k-*-linux-gnu.
51495
51496 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
51497
51498         * sysdeps/tile: Move directory from ports/sysdeps/tile.
51499         * sysdeps/unix/sysv/linux/generic: Move directory from
51500         ports/sysdeps/unix/sysv/linux/generic.
51501         * sysdeps/unix/sysv/linux/tile: Move directory from
51502         ports/sysdeps/unix/sysv/linux/tile.
51503         * README: Update listing for tile*-*-linux-gnu.
51504
51505 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
51506
51507         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
51508         __builtin_expect.
51509         * benchtests/bench-memmem.c (simple_memmem): Likewise.
51510         * catgets/open_catalog.c (__open_catalog): Likewise.
51511         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
51512         * debug/confstr_chk.c: Likewise.
51513         * debug/fread_chk.c (__fread_chk): Likewise.
51514         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
51515         * debug/getgroups_chk.c: Likewise.
51516         * debug/mbsnrtowcs_chk.c: Likewise.
51517         * debug/mbsrtowcs_chk.c: Likewise.
51518         * debug/mbstowcs_chk.c: Likewise.
51519         * debug/memcpy_chk.c: Likewise.
51520         * debug/memmove_chk.c: Likewise.
51521         * debug/mempcpy_chk.c: Likewise.
51522         * debug/memset_chk.c: Likewise.
51523         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
51524         * debug/strcat_chk.c (__strcat_chk): Likewise.
51525         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
51526         * debug/strncat_chk.c (__strncat_chk): Likewise.
51527         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
51528         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
51529         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
51530         * debug/wcpncpy_chk.c: Likewise.
51531         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
51532         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
51533         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
51534         * debug/wcsncpy_chk.c: Likewise.
51535         * debug/wcsnrtombs_chk.c: Likewise.
51536         * debug/wcsrtombs_chk.c: Likewise.
51537         * debug/wcstombs_chk.c: Likewise.
51538         * debug/wmemcpy_chk.c: Likewise.
51539         * debug/wmemmove_chk.c: Likewise.
51540         * debug/wmempcpy_chk.c: Likewise.
51541         * debug/wmemset_chk.c: Likewise.
51542         * dirent/scandirat.c (SCANDIRAT): Likewise.
51543         * dlfcn/dladdr1.c (dladdr1): Likewise.
51544         * dlfcn/dladdr.c (dladdr): Likewise.
51545         * dlfcn/dlclose.c (dlclose_doit): Likewise.
51546         * dlfcn/dlerror.c (__dlerror): Likewise.
51547         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
51548         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
51549         * dlfcn/dlopen.c (dlopen_doit): Likewise.
51550         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
51551         * dlfcn/dlsym.c (dlsym_doit): Likewise.
51552         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
51553         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
51554         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
51555         Likewise.
51556         * elf/dl-conflict.c: Likewise.
51557         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
51558         * elf/dl-dst.h: Likewise.
51559         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
51560         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
51561         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
51562         * elf/dl-init.c (call_init, _dl_init): Likewise.
51563         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
51564         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
51565         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
51566         Likewise.
51567         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
51568         Likewise.
51569         * elf/dl-minimal.c (__libc_memalign): Likewise.
51570         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
51571         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
51572         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
51573         * elf/dl-sym.c (do_sym): Likewise.
51574         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
51575         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
51576         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
51577         * elf/dl-writev.h (_dl_writev): Likewise.
51578         * elf/ldconfig.c (search_dir): Likewise.
51579         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
51580         (dl_main): Likewise.
51581         * elf/setup-vdso.h (setup_vdso): Likewise.
51582         * grp/compat-initgroups.c (compat_call): Likewise.
51583         * grp/fgetgrent.c (fgetgrent): Likewise.
51584         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
51585         * grp/putgrent.c (putgrent): Likewise.
51586         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
51587         Likewise.
51588         * hurd/hurdinit.c: Likewise.
51589         * iconvdata/8bit-gap.c (struct): Likewise.
51590         * iconvdata/ansi_x3.110.c : Likewise.
51591         * iconvdata/big5.c : Likewise.
51592         * iconvdata/big5hkscs.c : Likewise.
51593         * iconvdata/cp1255.c: Likewise.
51594         * iconvdata/cp1258.c : Likewise.
51595         * iconvdata/cp932.c : Likewise.
51596         * iconvdata/euc-cn.c: Likewise.
51597         * iconvdata/euc-jisx0213.c : Likewise.
51598         * iconvdata/euc-jp.c: Likewise.
51599         * iconvdata/euc-jp-ms.c : Likewise.
51600         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
51601         * iconvdata/gb18030.c : Likewise.
51602         * iconvdata/gbbig5.c (const): Likewise.
51603         * iconvdata/gbgbk.c: Likewise.
51604         * iconvdata/gbk.c : Likewise.
51605         * iconvdata/ibm1364.c : Likewise.
51606         * iconvdata/ibm930.c : Likewise.
51607         * iconvdata/ibm932.c: Likewise.
51608         * iconvdata/ibm933.c : Likewise.
51609         * iconvdata/ibm935.c : Likewise.
51610         * iconvdata/ibm937.c : Likewise.
51611         * iconvdata/ibm939.c : Likewise.
51612         * iconvdata/ibm943.c: Likewise.
51613         * iconvdata/iso_11548-1.c: Likewise.
51614         * iconvdata/iso-2022-cn.c : Likewise.
51615         * iconvdata/iso-2022-cn-ext.c : Likewise.
51616         * iconvdata/iso-2022-jp-3.c: Likewise.
51617         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
51618         * iconvdata/iso-2022-kr.c : Likewise.
51619         * iconvdata/iso646.c (gconv_end): Likewise.
51620         * iconvdata/iso_6937-2.c : Likewise.
51621         * iconvdata/iso_6937.c : Likewise.
51622         * iconvdata/iso8859-1.c: Likewise.
51623         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
51624         * iconvdata/shift_jisx0213.c : Likewise.
51625         * iconvdata/sjis.c : Likewise.
51626         * iconvdata/t.61.c : Likewise.
51627         * iconvdata/tcvn5712-1.c : Likewise.
51628         * iconvdata/tscii.c: Likewise.
51629         * iconvdata/uhc.c : Likewise.
51630         * iconvdata/unicode.c (gconv_end): Likewise.
51631         * iconvdata/utf-16.c (gconv_end): Likewise.
51632         * iconvdata/utf-32.c (gconv_end): Likewise.
51633         * iconvdata/utf-7.c (base64): Likewise.
51634         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
51635         * iconv/gconv_close.c (__gconv_close): Likewise.
51636         * iconv/gconv_open.c (__gconv_open): Likewise.
51637         * iconv/gconv_simple.c (internal_ucs4_loop_single)
51638         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
51639         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
51640         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
51641         (ucs4le_internal_loop_single): Likewise.
51642         * iconv/iconv.c (iconv): Likewise.
51643         * iconv/iconv_close.c: Likewise.
51644         * iconv/loop.c (SINGLE): Likewise.
51645         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
51646         * include/atomic.h: Likewise.
51647         * inet/inet6_option.c (option_alloc): Likewise.
51648         * intl/bindtextdom.c (set_binding_values): Likewise.
51649         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
51650         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
51651         * intl/localealias.c (read_alias_file): Likewise.
51652         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
51653         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
51654         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
51655         * libio/fmemopen.c (fmemopen): Likewise.
51656         * libio/iofgets.c (_IO_fgets): Likewise.
51657         * libio/iofgets_u.c (fgets_unlocked): Likewise.
51658         * libio/iofgetws.c (fgetws): Likewise.
51659         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
51660         * libio/iogetdelim.c (_IO_getdelim): Likewise.
51661         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
51662         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
51663         * locale/findlocale.c (_nl_find_locale): Likewise.
51664         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
51665         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
51666         Likewise.
51667         * locale/setlocale.c (setlocale): Likewise.
51668         * login/programs/pt_chown.c (main): Likewise.
51669         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
51670         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
51671         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
51672         (mmap, mmap64, mremap, munmap): Likewise.
51673         * math/e_exp2l.c: Likewise.
51674         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
51675         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
51676         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
51677         * math/s_catan.c (__catan): Likewise.
51678         * math/s_catanf.c (__catanf): Likewise.
51679         * math/s_catanh.c (__catanh): Likewise.
51680         * math/s_catanhf.c (__catanhf): Likewise.
51681         * math/s_catanhl.c (__catanhl): Likewise.
51682         * math/s_catanl.c (__catanl): Likewise.
51683         * math/s_ccosh.c (__ccosh): Likewise.
51684         * math/s_ccoshf.c (__ccoshf): Likewise.
51685         * math/s_ccoshl.c (__ccoshl): Likewise.
51686         * math/s_cexp.c (__cexp): Likewise.
51687         * math/s_cexpf.c (__cexpf): Likewise.
51688         * math/s_cexpl.c (__cexpl): Likewise.
51689         * math/s_clog10.c (__clog10): Likewise.
51690         * math/s_clog10f.c (__clog10f): Likewise.
51691         * math/s_clog10l.c (__clog10l): Likewise.
51692         * math/s_clog.c (__clog): Likewise.
51693         * math/s_clogf.c (__clogf): Likewise.
51694         * math/s_clogl.c (__clogl): Likewise.
51695         * math/s_csin.c (__csin): Likewise.
51696         * math/s_csinf.c (__csinf): Likewise.
51697         * math/s_csinh.c (__csinh): Likewise.
51698         * math/s_csinhf.c (__csinhf): Likewise.
51699         * math/s_csinhl.c (__csinhl): Likewise.
51700         * math/s_csinl.c (__csinl): Likewise.
51701         * math/s_csqrt.c (__csqrt): Likewise.
51702         * math/s_csqrtf.c (__csqrtf): Likewise.
51703         * math/s_csqrtl.c (__csqrtl): Likewise.
51704         * math/s_ctan.c (__ctan): Likewise.
51705         * math/s_ctanf.c (__ctanf): Likewise.
51706         * math/s_ctanh.c (__ctanh): Likewise.
51707         * math/s_ctanhf.c (__ctanhf): Likewise.
51708         * math/s_ctanhl.c (__ctanhl): Likewise.
51709         * math/s_ctanl.c (__ctanl): Likewise.
51710         * math/w_pow.c: Likewise.
51711         * math/w_powf.c: Likewise.
51712         * math/w_powl.c: Likewise.
51713         * math/w_scalb.c (sysv_scalb): Likewise.
51714         * math/w_scalbf.c (sysv_scalbf): Likewise.
51715         * math/w_scalbl.c (sysv_scalbl): Likewise.
51716         * misc/error.c (error_tail): Likewise.
51717         * misc/pselect.c (__pselect): Likewise.
51718         * nis/nis_callback.c (__nis_create_callback): Likewise.
51719         * nis/nis_call.c (__nisfind_server): Likewise.
51720         * nis/nis_creategroup.c (nis_creategroup): Likewise.
51721         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
51722         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
51723         * nis/nis_getservlist.c (nis_getservlist): Likewise.
51724         * nis/nis_lookup.c (nis_lookup): Likewise.
51725         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
51726         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
51727         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
51728         * nis/nis_xdr.c (xdr_endpoint): Likewise.
51729         * nis/nss_compat/compat-grp.c (getgrent_next_file)
51730         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
51731         * nis/nss_compat/compat-initgroups.c (add_group)
51732         (internal_getgrent_r): Likewise.
51733         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
51734         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
51735         * nis/nss_compat/compat-spwd.c (getspent_next_file)
51736         (internal_getspnam_r): Likewise.
51737         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
51738         (_nss_nis_getaliasbyname_r): Likewise.
51739         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
51740         (_nss_nis_getntohost_r): Likewise.
51741         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
51742         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
51743         (_nss_nis_getgrgid_r): Likewise.
51744         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
51745         (internal_nis_gethostent_r, internal_gethostbyname2_r)
51746         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
51747         (_nss_nis_gethostbyname4_r): Likewise.
51748         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
51749         (initgroups_netid): Likewise.
51750         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
51751         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
51752         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
51753         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
51754         (_nss_nis_getprotobynumber_r): Likewise.
51755         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
51756         (_nss_nis_getsecretkey): Likewise.
51757         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
51758         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
51759         (_nss_nis_getpwuid_r): Likewise.
51760         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
51761         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
51762         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
51763         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
51764         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
51765         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
51766         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
51767         Likewise.
51768         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
51769         (_nss_nisplus_getntohost_r): Likewise.
51770         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
51771         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
51772         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
51773         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
51774         Likewise.
51775         * nis/nss_nisplus/nisplus-initgroups.c
51776         (_nss_nisplus_initgroups_dyn): Likewise.
51777         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
51778         (_nss_nisplus_getnetbyaddr_r): Likewise.
51779         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
51780         (_nss_nisplus_getprotobynumber_r): Likewise.
51781         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
51782         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
51783         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
51784         Likewise.
51785         * nis/nss_nisplus/nisplus-service.c
51786         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
51787         (_nss_nisplus_getservbyport_r): Likewise.
51788         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
51789         (_nss_nisplus_getspnam_r): Likewise.
51790         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
51791         Likewise.
51792         * nscd/aicache.c (addhstaiX): Likewise.
51793         * nscd/cache.c (cache_search, prune_cache): Likewise.
51794         * nscd/connections.c (register_traced_file, send_ro_fd)
51795         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
51796         (main_loop_epoll): Likewise.
51797         * nscd/grpcache.c (addgrbyX): Likewise.
51798         * nscd/hstcache.c (addhstbyX): Likewise.
51799         * nscd/initgrcache.c (addinitgroupsX): Likewise.
51800         * nscd/mem.c (gc, mempool_alloc): Likewise.
51801         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
51802         (addinnetgrX): Likewise.
51803         * nscd/nscd-client.h (__nscd_acquire_maplock)
51804         (__nscd_drop_map_ref): Likewise.
51805         * nscd/nscd_getai.c (__nscd_getai): Likewise.
51806         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
51807         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
51808         Likewise.
51809         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
51810         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
51811         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
51812         (__nscd_get_map_ref): Likewise.
51813         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
51814         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
51815         Likewise.
51816         * nscd/pwdcache.c (addpwbyX): Likewise.
51817         * nscd/selinux.c (preserve_capabilities): Likewise.
51818         * nscd/servicescache.c (addservbyX): Likewise.
51819         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
51820         * posix/fnmatch.c (fnmatch): Likewise.
51821         * posix/getopt.c (_getopt_internal_r): Likewise.
51822         * posix/glob.c (glob, glob_in_dir): Likewise.
51823         * posix/wordexp.c (exec_comm_child): Likewise.
51824         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
51825         (getanswer_r, gaih_getanswer_slice): Likewise.
51826         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
51827         * resolv/res_init.c: Likewise.
51828         * resolv/res_mkquery.c (res_nmkquery): Likewise.
51829         * resolv/res_query.c (__libc_res_nquery): Likewise.
51830         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
51831         Likewise.
51832         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
51833         * stdio-common/perror.c (perror): Likewise.
51834         * stdio-common/printf_fp.c (___printf_fp): Likewise.
51835         * stdio-common/tmpnam.c (tmpnam): Likewise.
51836         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
51837         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
51838         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
51839         Likewise.
51840         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
51841         * stdlib/putenv.c (putenv): Likewise.
51842         * stdlib/setenv.c (__add_to_environ): Likewise.
51843         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
51844         * stdlib/strtol_l.c (INTERNAL): Likewise.
51845         * string/memmem.c (memmem): Likewise.
51846         * string/strerror.c (strerror): Likewise.
51847         * string/strnlen.c (__strnlen): Likewise.
51848         * string/test-memmem.c (simple_memmem): Likewise.
51849         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
51850         * sunrpc/pm_getport.c (__get_socket): Likewise.
51851         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
51852         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
51853         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
51854         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
51855         Likewise.
51856         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
51857         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
51858         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
51859         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
51860         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
51861         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
51862         Likewise.
51863         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
51864         Likewise.
51865         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
51866         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
51867         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
51868         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
51869         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
51870         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
51871         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
51872         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
51873         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
51874         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
51875         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
51876         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
51877         Likewise.
51878         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
51879         Likewise.
51880         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
51881         Likewise.
51882         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
51883         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
51884         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
51885         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
51886         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
51887         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
51888         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
51889         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
51890         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
51891         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
51892         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
51893         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
51894         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
51895         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
51896         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
51897         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
51898         Likewise.
51899         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
51900         Likewise.
51901         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
51902         Likewise.
51903         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
51904         Likewise.
51905         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
51906         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
51907         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
51908         Likewise.
51909         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
51910         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
51911         * sysdeps/posix/opendir.c (__opendirat): Likewise.
51912         * sysdeps/posix/sleep.c: Likewise.
51913         * sysdeps/posix/tempname.c: Likewise.
51914         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
51915         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
51916         Likewise.
51917         * sysdeps/powerpc/powerpc32/dl-machine.h
51918         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
51919         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
51920         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
51921         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
51922         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
51923         Likewise.
51924         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
51925         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
51926         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
51927         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
51928         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
51929         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
51930         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
51931         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
51932         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
51933         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
51934         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
51935         (elf_machine_lazy_rel): Likewise.
51936         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
51937         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
51938         (elf_machine_lazy_rel): Likewise.
51939         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
51940         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
51941         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
51942         * sysdeps/unix/grantpt.c (grantpt): Likewise.
51943         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
51944         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
51945         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
51946         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
51947         Likewise.
51948         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
51949         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
51950         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
51951         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
51952         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
51953         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
51954         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
51955         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
51956         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
51957         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
51958         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
51959         Likewise.
51960         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
51961         (__posix_fallocate64_l64): Likewise.
51962         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
51963         (posix_fallocate): Likewise.
51964         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
51965         Likewise.
51966         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
51967         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
51968         (getifaddrs_internal): Likewise.
51969         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
51970         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
51971         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
51972         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
51973         * sysdeps/unix/sysv/linux/posix_fallocate64.c
51974         (__posix_fallocate64_l64): Likewise.
51975         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
51976         Likewise.
51977         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
51978         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
51979         (__get_clockfreq): Likewise.
51980         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
51981         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
51982         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
51983         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
51984         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
51985         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
51986         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
51987         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
51988         Likewise.
51989         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
51990         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
51991         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
51992         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
51993         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
51994         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
51995         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
51996         Likewise.
51997         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
51998         (posix_fallocate): Likewise.
51999         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
52000         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
52001         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
52002         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
52003         (elf_machine_rela, elf_machine_rela_relative)
52004         (elf_machine_lazy_rel): Likewise.
52005         * time/asctime.c (asctime_internal): Likewise.
52006         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
52007         * time/tzset.c (__tzset_parse_tz): Likewise.
52008         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
52009         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
52010         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
52011         * wcsmbs/wcsmbsload.h: Likewise.
52012
52013         [BZ #15894]
52014         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
52015
52016         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
52017         (arena_get2): Remove THREAD_STATS conditionals.
52018         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
52019         (__malloc_stats, int): Likewise.
52020
52021 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
52022
52023         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
52024         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
52025
52026         * manual/setjmp.texi: Fix typos/grammar errors.
52027
52028         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
52029         Only return early when n is <= 0.  Delete unused return statement.
52030
52031         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
52032         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
52033         * debug/tst-longjmp_chk3.c: New file.
52034
52035         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
52036         (test_main): Replace code with set_fortify_handler call.
52037         * debug/test-strcpy_chk.c: Likewise.
52038         * debug/tst-chk1.c: Likewise.
52039         * debug/tst-longjmp_chk.c: Likewise.
52040         * test-skeleton.c: Include fcntl.h & paths.h
52041         (set_fortify_handler): Define.
52042
52043         * debug/tst-longjmp_chk.c: Add header comment and include
52044         ../test-skeleton.c.
52045         (do_test): Mark static.
52046         (TEST_FUNCTION): Define.
52047
52048         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
52049         (IP_PMTUDISC_INTERFACE): Likewise.
52050         (IP_MULTICAST_IF): Likewise.
52051         (IP_MULTICAST_TTL): Likewise.
52052         (IP_MULTICAST_LOOP): Likewise.
52053         (IP_ADD_MEMBERSHIP): Likewise.
52054         (IP_DROP_MEMBERSHIP): Likewise.
52055         (IP_UNBLOCK_SOURCE): Likewise.
52056         (IP_BLOCK_SOURCE): Likewise.
52057         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
52058         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
52059         (IP_MSFILTER): Likewise.
52060         (MCAST_JOIN_GROUP): Likewise.
52061         (MCAST_BLOCK_SOURCE): Likewise.
52062         (MCAST_UNBLOCK_SOURCE): Likewise.
52063         (MCAST_LEAVE_GROUP): Likewise.
52064         (MCAST_JOIN_SOURCE_GROUP): Likewise.
52065         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
52066         (MCAST_MSFILTER): Likewise.
52067         (IP_MULTICAST_ALL): Likewise.
52068         (IP_UNICAST_IF): Likewise.
52069
52070         * timezone/Makefile: Delete $(have-ksh) check.
52071         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
52072         * timezone/tzselect.ksh: Add +x mode bits.
52073
52074         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
52075         (ANON_INODE_FS_MAGIC): Likewise.
52076         (BDEVFS_MAGIC): Likewise.
52077         (BINFMTFS_MAGIC): Likewise.
52078         (BTRFS_TEST_MAGIC): Likewise.
52079         (CRAMFS_MAGIC_WEND): Likewise.
52080         (DEBUGFS_MAGIC): Likewise.
52081         (ECRYPTFS_SUPER_MAGIC): Likewise.
52082         (EXT3_SUPER_MAGIC): Likewise.
52083         (EXT4_SUPER_MAGIC): Likewise.
52084         (FUTEXFS_SUPER_MAGIC): Likewise.
52085         (HOSTFS_SUPER_MAGIC): Likewise.
52086         (HUGETLBFS_MAGIC): Likewise.
52087         (MINIX3_SUPER_MAGIC): Likewise.
52088         (MTD_INODE_FS_MAGIC): Likewise.
52089         (NILFS_SUPER_MAGIC): Likewise.
52090         (OPENPROM_SUPER_MAGIC): Likewise.
52091         (PIPEFS_MAGIC): Likewise.
52092         (PSTOREFS_MAGIC): Likewise.
52093         (QNX6_SUPER_MAGIC): Likewise.
52094         (RAMFS_MAGIC): Likewise.
52095         (REISERFS_SUPER_MAGIC_STRING): Likewise.
52096         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
52097         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
52098         (SECURITYFS_MAGIC): Likewise.
52099         (SELINUX_MAGIC): Likewise.
52100         (SMACK_MAGIC): Likewise.
52101         (SOCKFS_MAGIC): Likewise.
52102         (SQUASHFS_MAGIC): Likewise.
52103         (STACK_END_MAGIC): Likewise.
52104         (TMPFS_MAGIC): Likewise.
52105         (USBDEVICE_SUPER_MAGIC): Likewise.
52106         (V9FS_MAGIC): Likewise.
52107         (XENFS_SUPER_MAGIC): Likewise.
52108         (CRAMFS_MAGIC): Fix typo in comment.
52109         (EXT2_SUPER_MAGIC): Update comment.
52110         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
52111
52112 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
52113
52114         * sysdeps/arm: Move directory from ports/sysdeps/arm.
52115         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
52116         * sysdeps/unix/sysv/linux/arm: Move directory from
52117         ports/sysdeps/unix/sysv/linux/arm.
52118         * README: Update listing for arm-*-linux-gnueabi.
52119
52120         * README: Remove mention of am33.
52121
52122 2014-02-07  Roland McGrath  <roland@hack.frob.com>
52123
52124         * bits/sigset.h (__sigemptyset): Use a statement expression rather
52125         than the comma operator, to avoid "rhs of comma has no effect"
52126         compiler warnings.
52127         (__sigfillset, __sigandset, __sigorset): Likewise.
52128         * include/signal.h (__sigemptyset): Likewise.
52129         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
52130
52131 2014-02-07  Allan McRae  <allan@archlinux.org>
52132
52133         * version.h (RELEASE): Set to "development".
52134         (VERSION): Set to "2.19.90"
52135         * NEWS: Add 2.20 section.
52136
52137 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
52138
52139         [BZ #16529]
52140         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
52141
52142 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
52143
52144         * manual/contrib.texi: Update entry for Carlos O'Donell,
52145         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
52146
52147 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
52148
52149         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
52150
52151         * sysdeps/unix/sysv/linux/kernel-features.h
52152         [__LINUX_KERNEL_VERSION >= 0x020621]
52153         (__ASSUME_PROC_PID_TASK_COMM): Define.
52154
52155 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
52156
52157         [BZ #16398]
52158         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
52159         conversion when destination buffer does not have enough space.
52160         * libio/tst-ftell-partial-wide.c: New test case.
52161         * libio/Makefile (tests): Add tst-ftell-partial-wide.
52162
52163         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
52164         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
52165         Leonard and Allan McRae.
52166
52167 2014-02-04  David S. Miller  <davem@davemloft.net>
52168
52169         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
52170         32-bit.
52171
52172 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52173
52174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
52175         New file
52176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
52177         New file
52178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
52179         New file.
52180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
52181         New file.
52182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
52183         New file.
52184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
52185         New file.
52186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
52187         New file.
52188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
52189         New file.
52190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
52191         New file.
52192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
52193         New file.
52194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
52195         New file.
52196         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
52197         New file.
52198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
52199         New file.
52200
52201 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52202
52203         * nptl/shlib-versions: Change powerpc*le start to 2.17.
52204         * shlib-versions: Likewise.
52205
52206 2014-02-04  Roland McGrath  <roland@hack.frob.com>
52207             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52208
52209         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
52210         (abilist-pattern): New variable, set to %-le.abilist.
52211
52212         * Makerules (abilist-pattern): New variable.
52213         (vpath): Use $(abilist-pattern) in place of %.abilist.
52214         (check-abi-% pattern rule): Likewise.
52215         (check-abi, update-abi): Likewise.
52216
52217 2014-02-04  Eric Wong  <normalperson@yhbt.net>
52218
52219         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
52220
52221 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
52222
52223         * manual/startup.texi: Add next, previous, and top entries for
52224         the `Program Arguments' and `Environment Variables' nodes.
52225
52226 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
52227
52228         * manual/macros.texi: Add comments before MTASC-safety macros.
52229
52230         * manual/users.texi: Document MTASC-safety properties.
52231
52232         * manual/threads.texi (pthread_key_create, pthread_key_delete)
52233         (pthread_getspecific, pthread_setspecific): Format with
52234         @deftypefun, and add @safety note.
52235         * manual/signal.texi: Move comments that analyze the above
52236         functions to their home place.
52237
52238 2014-02-03  Allan McRae  <allan@archlinux.org>
52239
52240         * po/sl.po: Update Slovenian translation from translation project.
52241
52242 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
52243
52244         * manual/time.texi (timegm): Add missing blank after @c.
52245         Reported by Joseph Myers <joseph@codesourcery.com>.
52246
52247 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
52248
52249         * manual/check-safety.sh: New.
52250         * manual/Makefile ($(objpfx)stamp-summary): Run it.
52251
52252         * manual/terminal.texi: Document MTASC-safety properties.
52253
52254         * manual/filesys.texi: Document MTASC-safety properties.
52255
52256         * manual/errno.texi: Document MTASC-safety properties.
52257
52258         * manual/intro.texi: Document safety identifiers and
52259         conditionals.
52260
52261         * manual/string.texi (wcstok): Fix prototype.
52262         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
52263
52264         * manual/time.texi: Document MTASC-safety properties.
52265
52266         * manual/string.texi: Document MTASC-safety properties.
52267
52268         * manual/threads.texi: Document MTASC-safety properties.
52269
52270         * manual/stdio.texi: Document MTASC-safety properties.
52271
52272         * manual/syslog.texi: Document MTASC-safety properties.
52273
52274         * manual/sysinfo.texi: Document MTASC-safety properties.
52275
52276         * manual/startup.texi: Document MTASC-safety properties.
52277
52278         * manual/socket.texi: Document MTASC-safety properties.
52279
52280         * manual/signal.texi: Document MTASC-safety properties.
52281
52282 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
52283
52284         * manual/setjmp.texi: Document MTASC-safety properties.
52285
52286         * manual/search.texi: Document MTASC-safety properties.
52287
52288         * manual/resource.texi: Document MTASC-safety properties.
52289
52290         * manual/process.texi: Document MTASC-safety properties.
52291
52292         * manual/platform.texi: Document MTASC-safety properties.
52293
52294         * manual/pipe.texi: Document MTASC-safety properties.
52295
52296         * manual/pattern.texi: Document MTASC-safety properties.
52297
52298         * manual/message.texi: Document MTASC-safety properties.
52299
52300         [BZ #12751]
52301         * manual/memory.texi: Document MTASC-safety properties.
52302
52303         * manual/math.texi: Document MTASC-safety properties.
52304
52305         * manual/locale.texi: Document MTASC-safety properties.
52306
52307         * manual/llio.texi: Document MTASC-safety properties.
52308
52309         * manual/libdl.texi: New.
52310
52311         * manual/lang.texi: Document MTASC-safety properties.
52312
52313         * manual/job.texi: Document MTASC-safety properties.
52314
52315         * manual/getopt.texi: Document MTASC-safety properties.
52316
52317         * manual/ctype.texi: Document MTASC-safety properties.
52318
52319 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
52320
52321         [BZ #16046]
52322         * csu/libc-tls.c (static_map): Remove variable.
52323         (__libc_setup_tls): Use main executable's link map for TLS data.
52324         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
52325         casing for LM_ID_BASE and GL(dl_nns).
52326         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
52327         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
52328         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
52329         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
52330         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
52331         member.
52332         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
52333         l_phnum members.
52334
52335 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
52336
52337         * manual/debug.texi: Document MTASC-safety properties.
52338
52339 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
52340
52341         [BZ #16510]
52342         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
52343         of __x86_64__ when disabling x87 inline functions.
52344
52345 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
52346
52347         * manual/charset.texi: Document MTASC-safety properties.
52348
52349         * manual/crypt.texi: Document MTASC-safety properties.
52350
52351         * manual/conf.texi: Document MTASC-safety properties.
52352
52353         * manual/arith.texi: Document MTASC-safety properties.
52354
52355         * manual/argp.texi: Document MTASC-safety properties.
52356
52357         * manual/macros.texi: Introduce macros to document multi
52358         thread, asynchronous signal and asynchronous cancellation
52359         safety properties.
52360         * manual/intro.texi: Introduce the properties themselves.
52361
52362 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52363
52364         * sysdeps/sh/sh4/Makefile: New file.
52365
52366 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
52367
52368         * math/gen-libm-test.pl ($srcdir): New variable.
52369         ($auto_input): Use it.
52370
52371 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
52372
52373         [BZ #16506]
52374         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
52375         access beyond array bounds when parsing netgroups file.
52376
52377         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
52378         the old buffer before realloc.
52379
52380 2014-01-27  Allan McRae  <allan@archlinux.org>
52381
52382         * po/fr.po: Update French translation from translation project.
52383
52384 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52385
52386         * sysdeps/sh/libm-test-ulps: Regenerate.
52387
52388 2014-01-24  David S. Miller  <davem@davemloft.net>
52389
52390         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
52391
52392 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52393
52394         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
52395         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
52396
52397 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
52398
52399         [BZ #16474]
52400         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
52401         string pointers after reallocation.
52402
52403 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52404
52405         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
52406         __SH4A__ instead of __SH_FPU_ANY__.
52407
52408 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52409
52410         * sysdeps/sh/fpu_control.h: New file.
52411         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
52412         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
52413         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
52414         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
52415         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
52416         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
52417         * sysdeps/sh/sys/ucontext.h: Remove.
52418         * sysdeps/sh/sys: Remove directory.
52419
52420 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52421
52422         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
52423         s390/sys/ucontext.h.
52424         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
52425         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
52426
52427 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
52428
52429         [BZ #15605]
52430         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
52431
52432 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52433
52434         [BZ #16431]
52435         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
52436         Adjust the vDSO correctly for internal calls.
52437         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
52438
52439 2014-01-20  Allan McRae  <allan@archlinux.org>
52440
52441         * po/ca.po: Update Catalan translation from translation project.
52442
52443 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
52444
52445         * sysdeps/s390/sotruss-lib.c: New file.
52446
52447 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52448
52449         [BZ #16430]
52450         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
52451         (__GI___gettimeofday): Alias for a different internal symbol to avoid
52452         local calls issues by not having a PLT stub required for IFUNC calls.
52453         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
52454
52455 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
52456
52457         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
52458         * math/test-fpucw-static.c: Likewise.
52459
52460 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52461
52462         [BZ #16453]
52463         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
52464
52465 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52466
52467         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
52468         implementation for powerpc.
52469
52470 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
52471
52472         [BZ #14782]
52473         * sysdeps/posix/system.c (__libc_system): Do not enable
52474         asynchronous cancellation.
52475
52476 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52477
52478         [BZ #16427]
52479         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
52480         handling only for numbers special also in the IEEE case.
52481
52482 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52483
52484         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
52485
52486 2014-01-11  Allan McRae  <allan@archlinux.org>
52487
52488         * po/bg.po: Update Bulgarian translation from translation project.
52489
52490         * po/de.po: Update German translation from translation project.
52491
52492 2014-01-10  Roland McGrath  <roland@hack.frob.com>
52493
52494         * sysdeps/generic/gcc-compat.h: New file.
52495
52496 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52497
52498         * benchtests/asin-inputs: Correct slow inputs.
52499         * benchtests/acos-inputs: Likewise.
52500
52501 2014-01-10  Allan McRae  <allan@archlinux.org>
52502
52503         * po:sv.po: Update Swedish translation from translation project.
52504
52505         * po/vi.po: Update Vietnamese translation from translation project.
52506
52507         * po/eo.po: Update Esperanto translation from translation project.
52508
52509         * po/cs.po: Update Czech translation from translation project.
52510
52511         * po/nl.po: Update Dutch translation from translation project.
52512
52513         * po/pl.po: Update Polish translation from translation project.
52514
52515         * po/ru.po: Update Russian translation from translation project.
52516
52517         * po/uk.po: Update Ukrainian translation from translation project.
52518
52519 2014-01-08  Brooks Moses  <bmoses@google.com>
52520
52521         * elf/dl-load.c: Fix comment typo.
52522
52523 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
52524
52525         * po/header.pot: Rename to...
52526         * po/pot.header: ... this.
52527         * po/Makefile: Use pot.header.
52528
52529 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
52530             Maxim Kuvyrkov  <maxim@kugelworks.com>
52531
52532         [BZ #16394]
52533         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
52534         SRC and DEST against LEN.
52535
52536 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52537
52538         [BZ #16414]
52539         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
52540         implementation.
52541         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
52542
52543 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52544
52545         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52546
52547 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
52548
52549         [BZ #16408]
52550         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
52551         for large positive arguments.
52552
52553 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
52554
52555         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
52556
52557         * math/auto-libm-test-in: Mark various tests with
52558         xfail-rounding:ldbl-128ibm.
52559         * math/auto-libm-test-out: Regenerated.
52560
52561         [BZ #16407]
52562         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
52563         Increase overflow threshold.
52564
52565 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
52566
52567         [BZ #14286]
52568         * stdio-common/vfprintf.c: Check for integer overflow.
52569
52570 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52571
52572         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
52573         the first argument and return value of __tls_get_addr_internal.
52574
52575 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52576
52577         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
52578         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
52579
52580 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52581
52582         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
52583         * sysdeps/s390/rtld-global-offsets.sym: New file.
52584         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
52585         GLIBC_2.19 symbol.
52586         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
52587         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
52588         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
52589         ... this.
52590         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
52591         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
52592         ... this.
52593         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
52594         Regenerate.
52595         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
52596         Regenerate.
52597         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
52598         halfs of GPRs for high_gprs contexts.
52599         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
52600         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
52601         field.
52602         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
52603         uc_flags field.
52604         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
52605         64 bit versions:
52606         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
52607         for high GPRs (uc_high_gprs) and for future extensions
52608         (__reserved).
52609         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
52610         for future extensions (__reserved).
52611         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
52612         64 bit versions:
52613         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
52614         SC_HIGHGPRS offset definition.
52615         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
52616         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
52617
52618         * Versions.def: Add GLIBC_2.19 for libpthread.
52619         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
52620         siglongjmp for libpthread with GLIBC_2.19 symver.
52621         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
52622         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
52623         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
52624         * sysdeps/s390/__longjmp.c: New file.
52625         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
52626         * sysdeps/s390/longjmp.c: New file.
52627         * sysdeps/s390/setjmp.S: New file.
52628         * sysdeps/s390/sigjmp.S: New file.
52629         * sysdeps/s390/v1-longjmp.c: New file.
52630         * sysdeps/s390/v1-setjmp.h: New file.
52631         * sysdeps/s390/v1-sigjmp.c: New file.
52632         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
52633         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
52634         GLIBC_2.19 version.
52635         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
52636         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
52637         versioned symbols for ____longjmp_chk.
52638         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
52639         Likewise.
52640         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
52641         Regenerate.
52642         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
52643         Regenerate.
52644         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
52645         Regenerate.
52646         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
52647         Regenerate.
52648         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
52649         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
52650         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
52651         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
52652         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
52653         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
52654         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
52655         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
52656         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
52657         * sysdeps/s390/rtld-__longjmp.c: New file.
52658         * sysdeps/s390/rtld-setjmp.S: New file.
52659
52660 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
52661
52662         [BZ #16400]
52663         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
52664         Return -__logl (x) for small positive arguments without evaluating
52665         a polynomial.
52666
52667 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
52668
52669         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
52670         Rename to ...
52671         (__ptrace_peeksiginfo_args): ... this.
52672         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
52673         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
52674         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
52675
52676 2014-01-06  Allan McRae  <allan@archlinux.org>
52677
52678         * inet/netinet/in.h: Fix typo in comment.
52679
52680 2014-01-05  Andreas Jaeger  <aj@suse.de>
52681
52682         * sysdeps/i386/fpu/libm-test-ulps: Update.
52683
52684 2014-01-05  Allan McRae  <allan@archlinux.org>
52685
52686         * po/libc.pot: Regenerated.
52687
52688         * malloc/memusagestat.c: Fix gettext call formatting.
52689
52690 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
52691
52692         * nscd/nscd.c: Improve usage() output.
52693
52694 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
52695
52696         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
52697         * sysdeps/unix/sysv/linux/configure: Regenerated.
52698         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
52699         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
52700
52701 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
52702
52703         [BZ #16390]
52704         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
52705         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
52706
52707 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52708
52709         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
52710         extra tokens at end of #undef directive.
52711         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
52712         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
52713         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
52714
52715 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
52716
52717         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
52718
52719         * math/auto-libm-test-in: Mark various tests with
52720         xfail-rounding:ldbl-128ibm.
52721         * math/auto-libm-test-out: Regenerated.
52722
52723 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
52724
52725         [BZ #16386]
52726         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
52727         numbers with subnormal high part when calculating exponent.
52728
52729         [BZ #16385]
52730         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
52731         fabs.
52732
52733         [BZ #16384]
52734         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
52735         M_LN2l.
52736         (__ieee754_acoshl): Use __log1pl not __log1p.
52737
52738 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
52739
52740         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
52741         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
52742         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
52743         (grow_heap, heap_trim, _int_new_arena, get_free_list)
52744         (reused_arena, arena_get2): Convert to GNU style.
52745         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
52746         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
52747         (memalign_check, __malloc_set_state): Likewise.
52748         * malloc/mallocbug.c (main): Likewise.
52749         * malloc/malloc.c (__malloc_assert, malloc_init_state)
52750         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
52751         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
52752         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
52753         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
52754         (__posix_memalign, malloc_info): Likewise.
52755         * malloc/malloc.h: Likewise.
52756         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
52757         (mallochook, memalignhook, reallochook, mabort): Likewise.
52758         * malloc/mcheck.h: Likewise.
52759         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
52760         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
52761         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
52762         * malloc/morecore.c (__default_morecore): Likewise.
52763         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
52764         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
52765         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
52766         (print_and_abort): Likewise.
52767         * malloc/obstack.h: Likewise.
52768         * malloc/set-freeres.c (__libc_freeres): Likewise.
52769         * malloc/tst-mallocstate.c (main): Likewise.
52770         * malloc/tst-mtrace.c (main): Likewise.
52771         * malloc/tst-realloc.c (do_test): Likewise.
52772
52773 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
52774
52775         [BZ #16366]
52776         * nscd/netgroupcache.c (do_notfound): New function.
52777         (addgetnetgrentX): Use it.
52778
52779         [BZ # 16365]
52780         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
52781         NSS_STATUS_NOTFOUND.
52782
52783 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
52784
52785         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
52786         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52787
52788 2014-01-01  Allan McRae  <allan@archlinux.org>
52789
52790         * scripts/update-copyrights: Update configure input file suffix.
52791
52792         * NEWS: Update copyright year.
52793         * catgets/gencat.c: Likewise.
52794         * csu/version.c: Likewise.
52795         * debug/catchsegv.sh: Likewise.
52796         * debug/pcprofiledump.c: Likewise.
52797         * debug/xtrace.sh: Likewise.
52798         * elf/ldconfig.c: Likewise.
52799         * elf/ldd.bash.in: Likewise.
52800         * elf/pldd.c: Likewise.
52801         * elf/sotruss.ksh: Likewise.
52802         * elf/sprof.c: Likewise.
52803         * iconv/iconv_prog.c: Likewise.
52804         * iconv/iconvconfig.c: Likewise.
52805         * locale/programs/locale.c: Likewise.
52806         * locale/programs/localedef.c: Likewise.
52807         * login/programs/pt_chown.c: Likewise.
52808         * malloc/memusage.sh: Likewise.
52809         * malloc/memusagestat.c: Likewise.
52810         * malloc/mtrace.pl: Likewise.
52811         * manual/libc.texinfo: Likewise.
52812         * nscd/nscd.c: Likewise.
52813         * nss/getent.c: Likewise.
52814         * nss/makedb.c: Likewise.
52815         * posix/getconf.c: Likewise.
52816         * scripts/test-installation.pl: Likewise.
52817
52818         * All files with FSF copyright notices: Update copyright dates
52819         using scripts/update-copyrights.
52820         * intl/plural.c: Regenerated.
52821         * locale/programs/charmap-kw.h: Likewise.
52822         * locale/programs/locfile-kw.h: Likewise.
52823
52824 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
52825
52826         * sysdeps/unix/sysv/linux/configure: Regenerated.
52827         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
52828         the linux/fanotify.h header.
52829         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
52830         HAVE_LINUX_FANOTIFY_H is defined.
52831
52832 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
52833
52834         * benchtests/cos-inputs: New inputs.
52835         * benchtests/sin-inputs: Likewise.
52836
52837         * benchtests/atan-inputs: New inputs. Fix name of multiple
52838         precision fallback inputs.
52839
52840         * benchtests/atanh-inputs: New inputs.
52841         * benchtests/tanh-inputs: Likewise.
52842
52843         * benchtests/acosh-inputs: New inputs.
52844         * benchtests/asinh-inputs: Likewise.
52845
52846         * benchtests/cosh-inputs: New inputs.
52847         * benchtests/sinh-inputs: Likewise.
52848
52849         * benchtests/acos-inputs: Add more inputs.
52850         * benchtests/asin-inputs: Likewise.
52851
52852 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
52853
52854         [BZ #16375]
52855         * manual/arith.texi: Fix spelling.
52856         * manual/charset.texi: Likewise.
52857         * manual/errno.texi: Likewise.
52858         * manual/filesys.texi: Likewise.
52859         * manual/lang.texi: Likewise.
52860         * manual/llio.texi: Likewise.
52861         * manual/locale.texi: Likewise.
52862         * manual/message.texi: Likewise.
52863         * manual/resource.texi: Likewise.
52864         * manual/search.texi: Likewise.
52865         * manual/setjmp.texi: Likewise.
52866         * manual/stdio.texi: Likewise.
52867         * manual/string.texi: Likewise.
52868         * manual/sysinfo.texi: Likewise.
52869         * manual/time.texi: Likewise.
52870
52871 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
52872
52873         * po/sl.po: New file.
52874
52875 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
52876
52877         * .gitignore: Add core/.gdbinit/.gdb_history.
52878
52879 2013-12-27  Allan McRae  <allan@archlinux.org>
52880
52881         [BZ #16369]
52882         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
52883         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
52884
52885 2013-12-24  Brooks Moses  <bmoses@google.com>
52886
52887         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
52888         all compilers that claim C++98 compliance, not just GCC.
52889         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
52890         Likewise.
52891
52892 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
52893
52894         * NEWS: Restore accidentally deleted bug-fix entries.
52895
52896 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
52897             Ondřej Bílka  <neleai@seznam.cz>
52898
52899         [BZ #15073]
52900         * malloc/malloc.c (_int_free): Perform sanity check only if we
52901         have_lock.
52902
52903 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
52904
52905         [BZ #12986]
52906         * manual/stdio.texi (String Input Conversions): Clarify that character
52907         classes are not supported.
52908
52909 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52910
52911         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52912
52913 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
52914
52915         [BZ #16337]
52916         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
52917         Calculate results for small negative arguments directly rather
52918         than using reflection formula with special underflow handling.
52919
52920         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
52921         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
52922         sysdeps/unix/bsd/bsd4.4/syscalls.list.
52923         (fchflags): Likewise.
52924         (revoke): Likewise.
52925         (setlogin): Likewise.
52926         (sigaltstack): Likewise.
52927         (wait4): Likewise.
52928         (sigblock): Remove.
52929         (sigsetmask): Likewise.
52930         (wait3): Likewise.
52931         (waitpid): Likewise.
52932         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
52933         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
52934         file.
52935         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
52936         * sysdeps/unix/bsd/Makefile: ... here.
52937         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
52938         * sysdeps/unix/bsd/Versions: ... here.
52939         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
52940         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
52941         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
52942         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
52943         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
52944         * sysdeps/unix/bsd/sigblock.c: ... here.
52945         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
52946         * sysdeps/unix/bsd/sigsetmask.c: ... here.
52947         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
52948         * sysdeps/unix/bsd/sigvec.c: ... here.
52949         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
52950         * sysdeps/unix/bsd/tcdrain.c: ... here.
52951         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
52952         * sysdeps/unix/bsd/tcgetattr.c: ... here.
52953         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
52954         * sysdeps/unix/bsd/tcsetattr.c: ... here.
52955         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
52956         * sysdeps/unix/bsd/wait.c: ... here.
52957         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
52958         * sysdeps/unix/bsd/wait3.c: ... here.
52959         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
52960         * sysdeps/unix/bsd/waitpid.c: ... here.
52961
52962 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
52963
52964         [BZ #16356]
52965         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
52966         round-to-nearest for [!USE_AS_EXPM1L].
52967         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
52968         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
52969         more tests of exp and exp10.  Expect some exp10 tests to miss
52970         exceptions or fail in directed rounding modes.
52971         * math/auto-libm-test-out: Regenerated.
52972         * math/libm-test.inc (exp10_tonearest_test_data): New array.
52973         (exp10_test_tonearest): New function.
52974         (exp10_towardzero_test_data): New array.
52975         (exp10_test_towardzero): New function.
52976         (exp10_downward_test_data): New array.
52977         (exp10_test_downward): New function.
52978         (exp10_upward_test_data): New array.
52979         (exp10_test_upward): New function.
52980         (main): Call the new functions.
52981         * sysdeps/i386/fpu/libm-test-ulps: Update.
52982         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52983
52984 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
52985
52986         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
52987         asinh, atan, atan2, atanh, cbrt, cos and cosh.
52988         * math/auto-libm-test-out: Regenerated.
52989         * math/libm-test.inc (acosh_test_data): Add more tests.
52990         (atanh_test_data): Likewise.
52991         (ceil_test_data): Likewise.
52992         (copysign_test_data): Likewise.
52993         * sysdeps/i386/fpu/libm-test-ulps: Update.
52994         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52995
52996         * timezone/checktab.awk: Update from tzcode 2013i.
52997         * timezone/private.h: Likewise.
52998         * timezone/scheck.c: Likewise.
52999         * timezone/tzfile.h: Likewise.
53000         * timezone/tzselect.ksh: Likewise.
53001         * timezone/zdump.c: Likewise.
53002         * timezone/zic.c: Likewise.
53003
53004         * math/auto-libm-test-in: Add tests of cpow.
53005         * math/auto-libm-test-out: Regenerated.
53006         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
53007         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53008         mpc_cc_c.
53009         (func_calc_desc): Add mpc_cc_c union field.
53010         (test_functions): Add cpow.
53011         (special_fill_2pi): New function.
53012         (special_real_inputs): Add 2pi.
53013         (calc_generic_results): Handle mpc_cc_c.
53014         * sysdeps/i386/fpu/libm-test-ulps: Update.
53015         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53016
53017         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
53018         csqrt, ctan and ctanh.
53019         * math/auto-libm-test-out: Regenerated.
53020         * math/libm-test.inc (TEST_COND_x86_64): New macro.
53021         (TEST_COND_x86): Likewise.
53022         (ccos_test_data): Use AUTO_TESTS_c_c.
53023         (ccosh_test_data): Likewise.
53024         (cexp_test_data): Likewise.
53025         (clog_test_data): Likewise.
53026         (csqrt_test_data): Likewise.
53027         (ctan_test_data): Likewise.
53028         (ctan_tonearest_test_data): Likewise.
53029         (ctan_towardzero_test_data): Likewise.
53030         (ctan_downward_test_data): Likewise.
53031         (ctan_upward_test_data): Likewise.
53032         (ctanh_test_data): Likewise.
53033         (ctanh_tonearest_test_data): Likewise.
53034         (ctanh_towardzero_test_data): Likewise.
53035         (ctanh_downward_test_data): Likewise.
53036         (ctanh_upward_test_data): Likewise.
53037         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53038         mpc_c_c.
53039         (func_calc_desc): Add mpc_c_c union field.
53040         (FUNC_mpc_c_c): New macro.
53041         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
53042         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
53043         ctanh.
53044         (special_fill_min_subnorm_p120): New function.
53045         (special_real_inputs): Add min_subnorm_p120.
53046         (calc_generic_results): Handle mpc_c_c.
53047         * sysdeps/i386/fpu/libm-test-ulps: Update.
53048         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53049
53050 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
53051
53052         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
53053         (do_sin_slow): New functions.
53054         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
53055         (cslow2, csloww1, csloww2): Use the new functions.
53056
53057         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
53058         Use M to change sign of result instead of X.  Assume X is
53059         positive.
53060         (csloww1): Likewise.
53061         (__sin): Adjust.
53062         (__cos): Adjust.
53063
53064         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
53065         arguments A and DA.
53066         (__sin): Adjust.
53067         (__cos): Likewise.
53068
53069         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
53070         (__cos): Likewise.
53071         (sloww1): Don't adjust sign of DX.
53072         (csloww1): Likewise.
53073         (sloww2): Use X directly and don't adjust sign of DX.
53074         (csloww2): Likewise.
53075
53076 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
53077
53078         * math/auto-libm-test-in: Add tests of cabs and carg.
53079         * math/auto-libm-test-out: Regenerated.
53080         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
53081         (carg_test_data): Likewise.
53082         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53083         mpc_c_f.
53084         (func_calc_desc): Add mpc_c_f union field.
53085         (test_functions): Add cabs and carg.
53086         (calc_generic_results): Handle mpc_c_f.
53087
53088         * sysdeps/powerpc/powerpc32/libgcc-compat.S
53089         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
53090         as a macro and a compat symbol.
53091         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
53092         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
53093         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
53094         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
53095         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
53096         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
53097         not use .hidden.
53098         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
53099         Likewise.
53100         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
53101         Likewise.
53102         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
53103         Likewise.
53104         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
53105         Likewise.
53106         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
53107         Likewise.
53108         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
53109         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
53110         from GLIBC_2.3.2.
53111
53112 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53113
53114         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53115
53116 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
53117
53118         * manual/texinfo.tex: Update to version 2013-11-26.10 with
53119         trailing whitespace removed.
53120         * scripts/config.guess: Update to version 2013-11-29.
53121         * scripts/config.sub: Update to version 2013-10-01.
53122
53123         * math/auto-libm-test-in: Add tests of sincos.
53124         * math/auto-libm-test-out: Regenerated.
53125         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
53126         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53127         mpfr_f_11.
53128         (func_calc_desc): Add mpfr_f_11 union field.
53129         (test_functions): Add sincos.
53130         (calc_generic_results): Handle mpfr_f_11.
53131         * sysdeps/i386/fpu/libm-test-ulps: Update.
53132         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53133
53134 2013-12-19  Andreas Schwab  <schwab@suse.de>
53135
53136         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
53137         CALL_MCOUNT.
53138         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
53139         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
53140         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
53141
53142 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
53143
53144         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
53145         * sysdeps/i386/fpu/libm-test-ulps: Update.
53146         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53147
53148         [BZ #16293]
53149         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
53150         round-to-nearest mode when using frndint.
53151         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
53152         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
53153         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
53154         Likewise.
53155         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
53156         sinh test to fail.
53157         * math/auto-libm-test-out: Regenerated.
53158         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
53159         (TEST_COND_x86): Likewise.
53160         (expm1_tonearest_test_data): New array.
53161         (expm1_test_tonearest): New function.
53162         (expm1_towardzero_test_data): New array.
53163         (expm1_test_towardzero): New function.
53164         (expm1_downward_test_data): New array.
53165         (expm1_test_downward): New function.
53166         (expm1_upward_test_data): New array.
53167         (expm1_test_upward): New function.
53168         (main): Run the new test functions.
53169         * sysdeps/i386/fpu/libm-test-ulps: Update.
53170         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53171
53172         * include/features.h: Update comment documenting feature test
53173         macros.  Mention _DEFAULT_SOURCE in comment.
53174         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
53175         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
53176         _BSD_SOURCE and _SVID_SOURCE.
53177         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
53178         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
53179         !_SVID_SOURCE]: Likewise.
53180         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
53181         (__USE_POSIX_IMPLICITLY): Define.
53182         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
53183         (_POSIX_SOURCE): Undefine and redefine.
53184         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
53185         (_POSIX_C_SOURCE): Likewise.
53186         * manual/creature.texi (_DEFAULT_SOURCE): Document.
53187         (Feature Test Macros): Update documentation of default features.
53188
53189 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
53190
53191         * benchtests/Makefile: Add bench-strtok.
53192         * benchtests/bench-strtok.c: New file: strtok benchtest.
53193
53194 2013-12-19  Allan McRae  <allan@archlinux.org>
53195
53196         * manual/install.texi: Suppress menu for plain text output.
53197         * INSTALL: Regenerated.
53198
53199 2013-12-18  Brooks Moses  <bmoses@google.com>
53200
53201         [BZ #15846]
53202         * misc/getauxval.c: Include errno.h.
53203         (__getauxval): Set errno to ENOENT if the requested type is not
53204         found.
53205         * misc/sys/auxv.h (getauxval): Document that it may set errno;
53206         don't declare with __attribute_const__.
53207         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
53208         * manual/startup.texi: Document that getauxval sets errno.
53209
53210 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
53211
53212         * math/auto-libm-test-in: Add tests of jn and yn.
53213         * math/auto-libm-test-out: Regenerated.
53214         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
53215         (yn_test_data): Likewise.
53216         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53217         mpfr_if_f.
53218         (func_calc_desc): Add mpfr_if_f union field.
53219         (FUNC_mpfr_if_f): New macro.
53220         (test_functions): Add jn and yn.
53221         (calc_generic_results): Assert type of second input for
53222         mpfr_ff_f.  Handle mpfr_if_f.
53223         (output_for_one_input_case): Disable all checking for arguments
53224         fitting floating-point types in case of an integer argument.
53225         * sysdeps/i386/fpu/libm-test-ulps: Update.
53226         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53227
53228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
53229         Don't expect fegetround reference in libm.so.
53230
53231 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53232
53233         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
53234         $(config-cflags-nofma).
53235
53236 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
53237
53238         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
53239         * math/auto-libm-test-out: Regenerated.
53240
53241         [BZ #16338]
53242         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
53243         to determine exponent and adjust argument to have exponent of -1.
53244         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
53245         log2.
53246         * math/auto-libm-test-out: Regenerated.
53247         * sysdeps/i386/fpu/libm-test-ulps: Update.
53248         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53249
53250 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
53251
53252         * manual/probes.texi: Remove cases when per-thread arenas are
53253         disabled.
53254
53255 2013-12-18  Andreas Schwab  <schwab@suse.de>
53256
53257         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
53258         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
53259         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
53260         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
53261         * sysdeps/i386/i686/multiarch/Makefile: Update.
53262         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
53263
53264 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
53265
53266         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
53267         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
53268
53269 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
53270
53271         [BZ #15968]
53272         Support TZ transition times < 00:00:00.
53273         This is needed for version-3 tz-format files; it supports time
53274         stamps past 2037 for America/Godthab (the only entry in the tz
53275         database for which this change is relevant).
53276         * manual/time.texi (TZ Variable): Document transition times
53277         from -167:59:59 through -00:00:01.
53278         * time/tzset.c (tz_rule): Time of day is now signed.
53279         (__tzset_parse_tz): Parse negative time of day.
53280
53281         Document TZ transition times >= 25:00:00.
53282         * manual/time.texi (TZ Variable): Document transition times from
53283         25:00:00 through 167:59:59.  These are already supported, and this
53284         support will help with version-3 tz-format files.
53285
53286         * manual/time.texi (TZ Variable): Modernize North America example
53287         to reflect current (i.e., 2007-and-later) daylight saving rules.
53288
53289         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
53290
53291 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
53292
53293         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
53294         * sysdeps/unix/bsd/bits/stat.h: Likewise.
53295         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
53296         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
53297         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
53298         * sysdeps/unix/bsd/bsdstat.h: Likewise.
53299         * sysdeps/unix/bsd/clock.c: Likewise.
53300         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
53301         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
53302         * sysdeps/unix/bsd/init-posix.c: Likewise.
53303         * sysdeps/unix/bsd/poll.c: Likewise.
53304         * sysdeps/unix/bsd/ptsname.c: Likewise.
53305         * sysdeps/unix/bsd/seekdir.c: Likewise.
53306         * sysdeps/unix/bsd/setegid.c: Likewise.
53307         * sysdeps/unix/bsd/seteuid.c: Likewise.
53308         * sysdeps/unix/bsd/setgid.c: Likewise.
53309         * sysdeps/unix/bsd/setrgid.c: Likewise.
53310         * sysdeps/unix/bsd/setruid.c: Likewise.
53311         * sysdeps/unix/bsd/setsid.c: Likewise.
53312         * sysdeps/unix/bsd/setuid.c: Likewise.
53313         * sysdeps/unix/bsd/sigaction.c: Likewise.
53314         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
53315         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
53316         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
53317         * sysdeps/unix/bsd/telldir.c: Likewise.
53318         * sysdeps/unix/bsd/times.c: Likewise.
53319         * sysdeps/unix/bsd/usleep.c: Likewise.
53320
53321         * misc/Makefile (install-lib): Remove libbsd-compat.a.
53322         ($(objpfx)libbsd-compat.a): Remove rule.
53323
53324         * include/features.h (__FAVOR_BSD): Do not define.
53325         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
53326         features conflicting with POSIX.
53327         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
53328         (_BSD_SOURCE): Remove description of not being a subset of other
53329         feature test macros.
53330         * manual/job.texi (getpgrp): Do not document BSD version.
53331         (getpgid): Do not document by reference to BSD getpgrp.
53332         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
53333         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
53334         * signal/signal.h [__FAVOR_BSD]: Likewise.
53335         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
53336         instead of making contents conditional on [__FAVOR_BSD].
53337         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
53338
53339 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53340
53341         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53342
53343 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
53344
53345         [BZ #16314]
53346         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
53347         values below 2**-450, not 2**-500.
53348         * math/auto-libm-test-in: Don't allow spurious underflow from
53349         hypot.
53350         * math/auto-libm-test-out: Regenerated.
53351
53352         [BZ #16316]
53353         [BZ #16330]
53354         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
53355         values of ha and hb and sort them after adjusting subnormal
53356         arguments.
53357         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
53358         Likewise.
53359         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
53360         values of ea and eb and sort them after adjusting subnormal
53361         arguments.
53362         * math/auto-libm-test-in: Do not expect some hypot tests of
53363         subnormals to fail.  Add more hypot tests.
53364         * math/auto-libm-test-out: Regenerated.
53365
53366 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
53367
53368         [BZ #13304]
53369         * sysdeps/sh/s_fma.c: New file.
53370         * sysdeps/sh/s_fmaf.c: New file.
53371         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
53372         version.
53373         * sysdeps/sh/Implies: Add sh/soft-fp.
53374
53375 2013-12-16  Roland McGrath  <roland@hack.frob.com>
53376
53377         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
53378         level of indirection to members `objname', `errstring', `malloced'.
53379         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
53380         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
53381         it as the __longjmp argument (just pass 1 instead).
53382         (_dl_catch_error): Initialize C with argument pointers and address of
53383         volatile local ERRCODE rather than copying values out of C at return.
53384
53385 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
53386
53387         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
53388         * math/auto-libm-test-out: Regenerated.
53389         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
53390         (hypot_test_data): Likewise.
53391         (pow_test_data): Likewise.
53392         (pow_tonearest_test_data): Likewise.
53393         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53394         mpfr_ff_f.
53395         (func_calc_desc): Add mpfr_ff_f union field.
53396         (FUNC_mpfr_ff_f): New macro.
53397         (test_functions): Add atan2, hypot and pow.
53398         (special_fill_min): New function.
53399         (special_fill_minus_min): Likewise.
53400         (special_fill_min_subnorm): Likewise.
53401         (special_fill_minus_min_subnorm): Likewise.
53402         (special_real_inputs): Add min, -min, min_subnorm and
53403         -min_subnorm.
53404         (calc_generic_results): Handle mpfr_ff_f.
53405         * sysdeps/i386/fpu/libm-test-ulps: Update.
53406         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53407
53408 2013-12-16  Will Newton  <will.newton@linaro.org>
53409
53410         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
53411         (Aligned Memory Blocks): Add documentation for aligned_alloc
53412         and suggest it as an alternative to posix_memalign.
53413         (Hooks for Malloc): Document __memalign_hook is also called
53414         for aligned_alloc.  (Summary of Malloc): Add summary for
53415         aligned alloc.  Document __memalign_hook is also called
53416         for aligned_alloc.
53417
53418 2013-12-16  Will Newton  <will.newton@linaro.org>
53419
53420         * manual/memory.texi (Malloc Examples): Clarify default
53421         alignment documentation.  Suggest posix_memalign rather
53422         than memalign or valloc.
53423         (Aligned Memory Blocks): Remove suggestion to use memalign
53424         or valloc.  Remove obsolete comment about BSD.
53425         Document memalign errno values and mark the function obsolete.
53426         Document posix_memalign returned error codes.  Mark valloc
53427         as obsolete.  (Hooks for Malloc): __memalign_hook is also
53428         called for posix_memalign and valloc.
53429         (Summary of Malloc): Add posix_memalign to function summary.
53430         __memalign_hook is also called for posix_memalign and valloc.
53431
53432 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
53433
53434         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
53435         TAYLOR_SIN.
53436         (__sin): Adjust.
53437         (__cos): Likewise.
53438         (sloww): Use mynumber union.  Expand ternary operator into
53439         if-else statements.
53440         (cslow): use mynumber union.
53441
53442 2013-12-16  Allan McRae  <allan@archlinux.org>
53443
53444         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
53445         * configure: Regenerated.
53446
53447         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
53448
53449         [BZ #14120]
53450         * configure.ac: Added --enable-maintainer-mode. Check for
53451         autoconf when enabled.
53452         * configure: Regenerated.
53453
53454         * nscd/nscd.service: New file.
53455         * nscd/nscd.tmpfiles: New file.
53456
53457 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
53458
53459         [BZ #12100]
53460         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
53461         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
53462         * sysdeps/x86_64/multiarch/strstr.c: ... here.
53463         (strstr): Add __strstr_sse2_unaligned ifunc.
53464         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
53465         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
53466         (strcasestr): Remove __strcasestr_sse42 ifunc.
53467         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
53468         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
53469         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
53470
53471 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
53472
53473         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
53474         * sysdeps/sh/bits/fenv.h: ... here.
53475         * sysdeps/sh/sh4/fpu/bits: Remove directory.
53476
53477 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53478
53479         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
53480
53481         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
53482         hypotf multiarch implementations.
53483         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
53484         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
53485         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
53486         multiarch hypot for PPC64.
53487         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
53488         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
53489         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
53490         multiarch hypotf for PPC64.
53491
53492         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
53493         modff multiarch implementations.
53494         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
53495         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
53496         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
53497         multiarch modf for PPC64.
53498         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
53499         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
53500         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
53501         multiarch modff for PPC64.
53502
53503         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
53504         and logl multiarch implementations.
53505         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
53506         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
53507         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
53508         multiarch logb for PPC64.
53509         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
53510         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
53511         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
53512         multiarch logb for PPC64.
53513         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
53514         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
53515         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
53516         multiarch logb for PPC64.
53517
53518         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
53519         isinff multiarch implementation.
53520         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
53521         file.
53522         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
53523         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
53524         multiarch isinf for PPC64.
53525         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
53526         file.
53527         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
53528         multiarch isinff for PPC64.
53529
53530         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
53531         finitef multiarch implementation.
53532         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
53533         file.
53534         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
53535         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
53536         multiarch finite for PPC64.
53537         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
53538         file.
53539         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
53540         multiarch finitef for PPC64.
53541
53542         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
53543         lrint multiarch implementation.
53544         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
53545         file.
53546         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
53547         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
53548         multiarch llrint for PPC64.
53549         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
53550         multiarch lrint for PPC64.
53551
53552         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
53553         copysignf multiarch implementation.
53554         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
53555         file.
53556         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
53557         file.
53558         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
53559         multiarch copysign for PPC64.
53560         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
53561         multiarch copysignf for PPC64.
53562
53563         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
53564         multiarch implementation.
53565         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
53566         file.
53567         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
53568         file.
53569         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
53570         file.
53571         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
53572         file.
53573         multiarch llround for PPC64.
53574         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
53575         multiarch trunc for PPC64.
53576         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
53577         multiarch truncf for PPC64.
53578
53579         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
53580         multiarch implementation.
53581         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
53582         file.
53583         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
53584         file.
53585         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
53586         file.
53587         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
53588         file.
53589         multiarch llround for PPC64.
53590         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
53591         multiarch round for PPC64.
53592         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
53593         multiarch roundf for PPC64.
53594
53595         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
53596         multiarch implementation.
53597         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
53598         file.
53599         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
53600         file.
53601         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
53602         file.
53603         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
53604         file.
53605         multiarch llround for PPC64.
53606         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
53607         multiarch floor for PPC64.
53608         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
53609         multiarch floorf for PPC64.
53610
53611         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
53612         multiarch implementation.
53613         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
53614         file.
53615         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
53616         file.
53617         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
53618         file.
53619         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
53620         file.
53621         multiarch llround for PPC64.
53622         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
53623         multiarch ceil for PPC64.
53624         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
53625         multiarch ceilf for PPC64.
53626
53627         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
53628         multiarch implementation.
53629         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
53630         file.
53631         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
53632         file.
53633         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
53634         file.
53635         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
53636         multiarch llround for PPC64.
53637         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
53638         multiarch lround for PPC64.
53639
53640         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
53641         multiarch implementation.
53642         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
53643         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
53644         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
53645         file.
53646         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
53647         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
53648         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
53649         multiarch isnan for PPC64.
53650         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
53651         multiarch isnanf for PPC64.
53652
53653         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
53654         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
53655         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
53656         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
53657         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
53658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
53659
53660         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
53661         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
53662         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
53663         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
53664
53665         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
53666         multiarch implementations.
53667         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53668         (__libc_ifunc_impl_list): Likewise.
53669         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
53670         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
53671         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
53672         multiarch stpcpy for PPC64.
53673
53674         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
53675         multiarch implementations.
53676         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53677         (__libc_ifunc_impl_list): Likewise.
53678         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
53679         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
53680         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
53681         multiarch strcpy for PPC64.
53682
53683         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
53684         redefine function name.
53685         (_wordcopy_fwd_dest_aligned): Likewise.
53686         (_wordcopy_bwd_aligned): Likewise.
53687         (_wordcopy_bwd_dest_aligned): Likewise.
53688         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
53689         multiarch implementations.
53690         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53691         (__libc_ifunc_impl_list): Likewise.
53692         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
53693         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
53694         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
53695         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
53696         multiarch wcscpy for PPC64.
53697
53698         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
53699         multiarch implementations.
53700         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53701         (__libc_ifunc_impl_list): Likewise.
53702         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
53703         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
53704         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
53705         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
53706         multiarch wcscpy for PPC64.
53707
53708         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
53709         multiarch implementations.
53710         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53711         (__libc_ifunc_impl_list): Likewise.
53712         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
53713         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
53714         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
53715         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
53716         multiarch wcsrchr for PPC64.
53717
53718         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
53719         multiarch implementations.
53720         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53721         (__libc_ifunc_impl_list): Likewise.
53722         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
53723         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
53724         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
53725         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
53726         multiarch wcschr for PPC64.
53727
53728         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
53729         multiarch implementations.
53730         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53731         (__libc_ifunc_impl_list): Likewise.
53732         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
53733         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
53734         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
53735         multiarch strchrnul for PPC64.
53736
53737         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
53738         implementations.
53739         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53740         (__libc_ifunc_impl_list): Likewise.
53741         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
53742         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
53743         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
53744         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
53745         strchr for PPC64.
53746
53747         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
53748         implementations.
53749         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53750         (__libc_ifunc_impl_list): Likewise.
53751         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
53752         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
53753         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
53754         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
53755         strncmp for PPC64.
53756
53757         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
53758         multiarch implementations.
53759         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53760         (__libc_ifunc_impl_list): Likewise.
53761         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
53762         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
53763         strncasecmp for PPC64.
53764         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
53765         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
53766         multiarch strncasecmp_l for PPC64.
53767
53768         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
53769         multiarch implementations.
53770         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
53771         (__libc_ifunc_impl_list): Likewise.
53772         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
53773         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
53774         multiarch strcasecmp for PPC64.
53775         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
53776         file.
53777         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
53778         multiarch strcasecmp_l for PPC64.
53779
53780         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
53781         implementations.
53782         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53783         (__libc_ifunc_impl_list): Likewise.
53784         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
53785         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
53786         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
53787         strnlen for PPC64.
53788
53789         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
53790         implementations.
53791         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53792         (__libc_ifunc_impl_list): Likewise.
53793         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
53794         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
53795         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
53796         strlen for PPC64.
53797
53798         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
53799         implementations.
53800         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53801         (__libc_ifunc_impl_list): Likewise.
53802         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
53803         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
53804         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
53805         rawmemrchr for PPC64.
53806
53807         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
53808         implementation.
53809         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53810         (__libc_ifunc_impl_list): Likewise.
53811         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
53812         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
53813         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
53814         memrchr for PPC64.
53815
53816         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
53817         implementation.
53818         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53819         (__libc_ifunc_impl_list): Likewise.
53820         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
53821         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
53822         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
53823         memchr for PPC64.
53824
53825         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
53826         implementation.
53827         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53828         (__libc_ifunc_impl_list): Likewise.
53829         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
53830         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
53831         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
53832         mempcpy for PPC64.
53833
53834         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
53835         avoid cretion of __bzero symbol.
53836         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
53837         Likewise.
53838         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
53839         Likewise.
53840         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
53841         Likewise.
53842         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
53843         multiarch implementations.
53844         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53845         (__libc_ifunc_impl_list): Likewise.
53846         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
53847         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
53848         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
53849         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
53850         bzero for PPC32.
53851         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
53852         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
53853         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
53854         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
53855         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
53856         memset for PPC64.
53857         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
53858
53859         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
53860         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
53861         implementations.
53862         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53863         (__libc_ifunc_impl_list): Likewise.
53864         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
53865         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
53866         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
53867         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
53868         memcmp for PPC64.
53869
53870         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
53871         multiarch for POWER/PPC64.
53872         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
53873         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
53874         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
53875         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
53876         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
53877         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
53878         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
53879         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
53880         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
53881         memcpy for PPC64.
53882
53883         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
53884         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
53885         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
53886         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
53887         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
53888         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
53889         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
53890         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
53891         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
53892         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
53893         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
53894         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
53895         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
53896         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
53897         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
53898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
53899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
53900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
53901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
53902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
53903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
53904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
53905
53906 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
53907
53908         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
53909
53910 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
53911
53912         * benchtests/Makefile (bench): Add exp2 and log2.
53913         (LDLIBS-bench-exp2): Add -lm.
53914         (LDLIBS-bench-log2): Likewise.
53915         * benchtests/exp2-inputs: New inputs file.
53916         * benchtests/log2-inputs: New inputs file.
53917         * benchtests/log-inputs: Add new inputs.
53918         * benchtests/tan-inputs: Likewise.
53919
53920 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
53921
53922         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
53923         definition...
53924         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
53925         (csloww2): ... from here.
53926
53927         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
53928         instead of structures.
53929         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
53930         (POLYNOMIAL): Likewise.
53931         (TAYLOR_SLOW): Likewise.
53932         (__sin): Likewise.
53933         (__cos): Likewise.
53934         (slow1): Likewise.
53935         (slow2): Likewise.
53936         (sloww): Likewise.
53937         (sloww1); Likewise.
53938         (sloww2): Likewise.
53939         (bsloww1): Likewise.
53940         (bsloww2): Likewise.
53941         (cslow2): Likewise.
53942         (csloww): Likewise.
53943         (csloww1): Likewise.
53944         (csloww2): Likewise.
53945
53946 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
53947
53948         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
53949         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
53950         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
53951         * malloc/hooks.c (realloc_check): Likewise.
53952
53953         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
53954         * malloc/arena.c: Remove PER_THREAD conditional.
53955         [!PER_THREAD]: Remove code.
53956         (ptmalloc_unlock_all2): Likewise.
53957         (ptmalloc_init): Likewise.
53958         (_int_new_arena): Likewise.
53959         (arena_get2): Likewise.
53960         * malloc/hooks.c (__malloc_get_state): Likewise.
53961         (__malloc_set_state): Likewise.
53962         * malloc/malloc.c: Likewise.
53963         (struct malloc_state): Likewise.
53964         (struct malloc_par): Likewise.
53965         (__libc_realloc): Likewise.
53966         (__libc_mallopt): Likewise.
53967
53968 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53969
53970         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
53971
53972 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
53973
53974         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
53975         macro to a function.  Check for zero perturb_byte.
53976         (_int_malloc, _int_free): Remove zero perturb_byte checks.
53977
53978         * malloc/malloc.c: (force_reg): Remove.
53979         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
53980         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
53981         force_reg by atomic_forced_read.
53982         * malloc/arena.c (ptmalloc_init): Likewise.
53983         * malloc/hooks.c (top_check): Likewise.
53984
53985 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53986
53987         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53988
53989 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
53990
53991         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
53992
53993 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
53994
53995         * math/auto-libm-test-in: Add tests of lgamma.
53996         * math/auto-libm-test-out: Regenerated.
53997         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
53998         (M_LOG_2_SQRT_PIl): Likewise.
53999         (lgamma_test_data): Use AUTO_TESTS_f_f1.
54000         * math/gen-auto-libm-tests.c (func_calc_method): Add value
54001         mpfr_f_f1.
54002         (func_calc_desc): Add mpfr_f_f1 union field.
54003         (ARGS1): New macro.
54004         (ARGS2): Likewise.
54005         (ARGS3): Likewise.
54006         (ARGS4): Likewise.
54007         (RET1): Likewise.
54008         (RET2): Likewise.
54009         (CALC): Likewise.
54010         (FUNC): Likewise.
54011         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
54012         (test_functions): Add lgamma.
54013         (calc_generic_results): Handle mpfr_f_f1.
54014         * sysdeps/i386/fpu/libm-test-ulps: Update.
54015         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54016
54017 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54018
54019         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
54020         __mpn_add_n for PowerPC64/POWER7.
54021         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
54022         __mpn_sub_n for PowerPC64/POWER7.
54023
54024         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
54025         __mpn_addmul_1 for PowerPC64.
54026         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
54027         __mpn_submul_1 for PowerPC64.
54028         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
54029         for PowerPC64.
54030         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
54031         for PowerPC64.
54032
54033 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
54034
54035         [BZ #15089]
54036         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
54037
54038 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54039
54040         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
54041
54042         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
54043         add multiarch folders.
54044         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
54045         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
54046         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
54047         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
54048         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
54049         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
54050         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
54051         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
54052         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
54053         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
54054         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
54055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
54056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
54057         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
54058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
54059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
54060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
54061
54062         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
54063         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
54064         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
54065         New file.
54066         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
54067         New file.
54068         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
54069         multiarch __ieee754_hypot for PowerPC32.
54070         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
54071         New file.
54072         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
54073         New file.
54074         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
54075         multiarch __ieee754_hypotf for PowerPC32.
54076
54077         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
54078         long_double_symbol only if __logbl is defined.
54079         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
54080         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
54081         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
54082         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
54083         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
54084         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
54085         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
54086         path for implementation.
54087         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
54088         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
54089         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
54090         logb, and logbl multiarch implementations for PowerPC32.
54091         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
54092         file.
54093         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
54094         file.
54095         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
54096         multiarch logb for PowerPC32.
54097         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
54098         file.
54099         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
54100         file.
54101         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
54102         multiarch logbf for PowerPC32.
54103         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
54104         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
54105         file.
54106         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
54107         multiarch logbl implementation for PowerPC32.
54108
54109         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
54110         and modff multiarch implementations.
54111         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
54112         New file.
54113         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
54114         New file.
54115         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
54116         multiarch modf for PowerPC32.
54117         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
54118         New file.
54119         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
54120         New file.
54121         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
54122         multiarch modff for PowerPC32.
54123
54124         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
54125         and lrintf multiarch implementations.
54126         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
54127         New file.
54128         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
54129         New file.
54130         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
54131         multiarch lrint for PowerPC32.
54132         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
54133         file: multiarch lrintf for PowerPC32.
54134
54135         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
54136         and lroundf multiarch implementations.
54137         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
54138         New file.
54139         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
54140         New file.
54141         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
54142         New file.
54143         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
54144         multiarch lround for PowerPC32.
54145         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
54146         file: multiarch lroundf for PowerPC32.
54147
54148         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
54149         copysign and copysignf multiarch implementations.
54150         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
54151         New file.
54152         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
54153         New file.
54154         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
54155         file: multiarch copysign for PowerPC32.
54156         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
54157         file: multiarch copysignf for PowerPC32.
54158
54159         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
54160         and truncf multiarch implementations.
54161         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
54162         New file.
54163         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
54164         file.
54165         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
54166         multiarch trunc for PowerPC32.
54167         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
54168         New file.
54169         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
54170         New file.
54171         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
54172         multiarch truncf for PowerPC32.
54173
54174         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
54175         and roundf multiarch implementations.
54176         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
54177         New file.
54178         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
54179         file.
54180         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
54181         multiarch round for PowerPC32.
54182         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
54183         New file.
54184         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
54185         New file.
54186         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
54187         multiarch roundf for PowerPC32.
54188
54189         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
54190         and floorf multiarch implementations.
54191         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
54192         New file.
54193         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
54194         file.
54195         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
54196         multiarch floor for PowerPC32.
54197         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
54198         New file.
54199         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
54200         New file.
54201         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
54202         multiarch floorf for PowerPC32.
54203
54204         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
54205         and ceilf multiarch implementations.
54206         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
54207         New file.
54208         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
54209         file.
54210         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
54211         multiarch ceil for PowerPC32.
54212         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
54213         New file.
54214         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
54215         file.
54216         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
54217         multiarch ceilf for PowerPC32.
54218
54219         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
54220         is defined.
54221         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
54222         FINITEF is defined.
54223         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
54224         and finitef multiarch implementations.
54225         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
54226         New file.
54227         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
54228         file.
54229         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
54230         multiarch finite for PowerPC32.
54231         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
54232         New file.
54233         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
54234         file: multiarch finitef for PowerPC32.
54235
54236         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
54237         and isinff multiarch implementations.
54238         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
54239         file.
54240         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
54241         file.
54242         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
54243         multiarch isinf for PowerPC32.
54244         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
54245         New file.
54246         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
54247         multiarch isinff for PowerPC32.
54248
54249         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
54250         alias when __isnan is defined.
54251         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
54252         and isnanf multiarch implementations.
54253         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
54254         file.
54255         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
54256         file.
54257         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
54258         file.
54259         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
54260         file.
54261         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
54262         multiarch isnan for PowerPC32.
54263         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
54264         New file.
54265         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
54266         New file.
54267         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
54268         multiarch isnanf for PowerPC32.
54269
54270         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
54271         and sqrtf multiarch implementations.
54272         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
54273         file.
54274         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
54275         file.
54276         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
54277         multiarch sqrt for PowerPC32.
54278         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
54279         file.
54280         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
54281         file.
54282         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
54283         multiarch sqrtf for PowerPC32.
54284
54285         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
54286         and llroundf multiarch implementations.
54287         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
54288         New file.
54289         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
54290         New file.
54291         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
54292         New file.
54293         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
54294         file: multiarch llround for PowerPC32.
54295         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
54296         file: multiarch llroundf for PowerPC32.
54297
54298         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
54299         multiarch PowerPC32 fpu implementations.
54300         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
54301         New file.
54302         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
54303         New file.
54304         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
54305         multiarch llrint for PowerPC32.
54306         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
54307         New file.
54308         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
54309         New file.
54310         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
54311         file.
54312
54313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
54314
54315         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
54316         file.
54317         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
54318         file.
54319         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
54320         file.
54321         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
54322         multiarch wordcopy for PPC32.
54323         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
54324         wordcopy objects.
54325         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54326         (__libc_ifunc_impl_list): Likewise.
54327         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
54328         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
54329         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
54330         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
54331         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
54332         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
54333
54334         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
54335         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
54336         file.
54337         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
54338         file.
54339         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
54340         file.
54341         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
54342         multiarch wcscpy for PPC32.
54343         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
54344         multiarch objects.
54345         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54346         (__libc_ifunc_impl_list): Likewise.
54347         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
54348         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
54349         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
54350         sysdeps/powerpc/power6/wcscpy.c.
54351
54352         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
54353         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
54354         file.
54355         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
54356         file.
54357         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
54358         file.
54359         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
54360         multiarch wcsrchr for PPC32.
54361         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
54362         multiarch objects.
54363         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54364         (__libc_ifunc_impl_list): Likewise.
54365         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
54366         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
54367         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
54368         sysdeps/powerpc/power6/wcsrchr.c.
54369
54370         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
54371         file.
54372         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
54373         file.
54374         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
54375         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
54376         multiarch wcschr for PPc32.
54377         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
54378         multiarch objects.
54379         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54380         (__libc_ifunc_impl_list): Likewise.
54381         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
54382         * sysdeps/powerpc/power6/wcschr.c: ... to here.
54383         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
54384         sysdeps/powerpc/power6/wcschr.c.
54385
54386         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
54387         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
54388         file.
54389         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
54390         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
54391         file: multiarch strchr for PPC32.
54392         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
54393         multiarch objects.
54394         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54395         (__libc_ifunc_impl_list): Likewise.
54396
54397         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
54398         name.
54399         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
54400         file.
54401         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
54402         file.
54403         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
54404         multiarch strchrnul for PPC32.
54405         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
54406         multiarch objects.
54407         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54408         (__libc_ifunc_impl_list): Likewise.
54409
54410         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
54411         file.
54412         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
54413         multiarch strncasecmp for PPC32.
54414         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
54415         file.
54416         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
54417         multiarch strncasecmp_l for PPC32.
54418         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
54419         strncasecmp multiarch objects.
54420         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54421         (__libc_ifunc_impl_list): Likewise.
54422
54423         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
54424         file.
54425         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
54426         multiarch strncasecmp for PPC32.
54427         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
54428         New file.
54429         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
54430         multiarch strcasecmp_l for PPC32.
54431         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
54432         multiarch objects.
54433         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54434         (__libc_ifunc_impl_list): Likewise.
54435
54436         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
54437         file.
54438         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
54439         file.
54440         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
54441         multiarch strncmp for PPC32.
54442         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
54443         multiarch objects.
54444         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54445         (__libc_ifunc_impl_list): Likewise.
54446
54447         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
54448         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
54449         file.
54450         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
54451         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
54452         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
54453         multiarch objects.
54454         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54455         (__libc_ifunc_impl_list): Likewise.
54456
54457         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
54458         file.
54459         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
54460         file.
54461         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
54462         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
54463         multiarch objects.
54464         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54465         (__libc_ifunc_impl_list): Likewise.
54466
54467         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
54468         file.
54469         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
54470         file.
54471         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
54472         multiarch rawmemchr for PPC32.
54473         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
54474         multiarch objects.
54475         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54476         (__libc_ifunc_impl_list): Likewise.
54477
54478         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
54479         file.
54480         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
54481         file.
54482         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
54483         file: memrchr multiarch for PPC32.
54484         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
54485         multiarch objects.
54486         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54487         (__libc_ifunc_impl_list): Likewise.
54488
54489         * string/memchr.c (__memchr): Using macro to redefine symbol name.
54490         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
54491         file.
54492         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
54493         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
54494         multiarch memchr for PPC32.
54495         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
54496         multiarch objects.
54497         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54498         (__libc_ifunc_impl_list): Likewise.
54499
54500         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
54501         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
54502         file.
54503         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
54504         file.
54505         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
54506         file: multiarch mempcpy for PPC32.
54507         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
54508         multiarch objects.
54509         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54510         (__libc_ifunc_impl_list): Likewise.
54511
54512         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
54513         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
54514         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
54515         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
54516         multiarch bzero for PPC32.
54517         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
54518         file.
54519         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
54520         file.
54521         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
54522         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
54523         file: multiarch memset for PPC32.
54524         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
54525         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
54526         memset multiarch objects.
54527         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54528         (__libc_ifunc_impl_list): Likewise.
54529
54530         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
54531         file.
54532         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
54533         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
54534         memcmp for PPC32.
54535         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
54536         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
54537         multiarch objects.
54538         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54539         (__libc_ifunc_impl_list): Likewise.
54540
54541         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
54542         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
54543         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
54544         file.
54545         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
54546         file.
54547         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
54548         file.
54549         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
54550         multiarch memcpy for PPC32.
54551         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
54552         multiarch objects.
54553         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54554         (__libc_ifunc_impl_list): Likewise.
54555
54556         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
54557         support multiarch for POWER/PPC32.
54558         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
54559         Likewise.
54560         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
54561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
54562         Implies file to make multiarch folder appers before the fpu and
54563         default folder for power4 configuration.
54564
54565 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
54566
54567         * scripts/bench.pl: Append volatile keyword to type.
54568
54569 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
54570
54571         * sysdeps/sh/sotruss-lib.c: New file.
54572         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
54573
54574 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54575
54576         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54577
54578 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
54579
54580         [BZ #6810]
54581         * math/w_tgamma.c: Include <errno.h>.
54582         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
54583         * math/w_tgammaf.c: Include <errno.h>.
54584         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
54585         * math/w_tgammal.c: Include <errno.h>.
54586         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
54587         * math/auto-libm-test-in: Do not allow missing errno on tgamma
54588         underflow.  Add more tgamma tests.
54589         * math/auto-libm-test-out: Regenerated.
54590         * sysdeps/i386/fpu/libm-test-ulps: Update.
54591         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54592
54593         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
54594         sin, sinh, tan, tanh, tgamma, y0 and y1.
54595         * math/auto-libm-test-out: Regenerated.
54596         * math/libm-test.inc (TEST_COND_x86_64): New macro.
54597         (TEST_COND_x86): Likewise.
54598         (M_E2l): Remove macro.
54599         (M_E3l): Likewise.
54600         (M_2_SQRT_PIl): Likewise.
54601         (M_SQRT_PIl): Likewise.
54602         (M_1_DIV_El): Likewise.
54603         (log_test_data): Use AUTO_TESTS_f_f.
54604         (log10_test_data): Likewise.
54605         (log1p_test_data): Likewise.
54606         (log2_test_data): Likewise.
54607         (sin_test_data): Likewise.
54608         (sin_tonearest_test_data): Likewise.
54609         (sin_towardzero_test_data): Likewise.
54610         (sin_downward_test_data): Likewise.
54611         (sin_upward_test_data): Likewise.
54612         (sinh_test_data): Likewise.
54613         (sinh_tonearest_test_data): Likewise.
54614         (sinh_towardzero_test_data): Likewise.
54615         (sinh_downward_test_data): Likewise.
54616         (sinh_upward_test_data): Likewise.
54617         (tan_test_data): Likewise.
54618         (tan_tonearest_test_data): Likewise.
54619         (tan_towardzero_test_data): Likewise.
54620         (tan_downward_test_data): Likewise.
54621         (tan_upward_test_data): Likewise.
54622         (tanh_test_data): Likewise.
54623         (tgamma_test_data): Likewise.
54624         (y0_test_data): Likewise.
54625         (y1_test_data): Likewise.
54626         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
54627         (special_real_inputs): Add pi/4.
54628         * sysdeps/i386/fpu/libm-test-ulps: Update.
54629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54630
54631 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54632
54633         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
54634         "longjmp_target" static probes.
54635         (__longjmp): Rename to __longjmp_symbol.
54636         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
54637         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
54638         on which longjmp to generate.
54639         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
54640         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
54641         probe.
54642         (__sigsetjmp): Rename to __sigsetjmp_symbol.
54643         (__sigjmp_save): Rename to __sigjmp_save_symbol.
54644         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
54645         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
54646         and __sigjmp_save_symbol based on which sigsetjmp to generated.
54647         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
54648         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
54649         __longjmp_symbol based on which __longjmp to generate.
54650         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
54651         probe.
54652         (setjmp): Rename to setjmp_symbol.
54653         (__sigsetjmp): Rename to __sigsetjmp_symbol.
54654         (_setjmp): Rename to _setjmp_symbol.
54655         (__sigsetjmp): Rename to __sigsetjmp_symbol.
54656         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
54657         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
54658         which setjmp to generate.
54659         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
54660         "longjmp_target" static probes.
54661
54662 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
54663
54664         * benchtests/README: Add note about output arguments.
54665         * benchtests/bench-sincos.c: Remove file.
54666         * benchtests/sincos-inputs: New file.
54667         * scripts/bench.pl: Identify output arguments and define
54668         static variables for them.
54669
54670         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
54671
54672         [BZ #15941]
54673         * Makefile (INSTALL): Add install-plain.texi as the primary
54674         dependency.
54675         * manual/install-plain.texi: New file.
54676         * manual/install.texi: Include node directive only for
54677         non-plaintext output.
54678
54679 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
54680
54681         * stdlib/longlong.h: Update from GCC.
54682
54683         [BZ #6807]
54684         [BZ #15901]
54685         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
54686         * math/w_j0f.c (y0f): Likewise.
54687         * math/w_j0l.c (__y0l): Likewise.
54688         * math/w_j1.c (y1): Likewise.
54689         * math/w_j1f.c (y1f): Likewise.
54690         * math/w_j1l.c (__y1l): Likewise.
54691         * math/w_jn.c (yn): Likewise.
54692         * math/w_jnf.c (ynf): Likewise.
54693         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
54694         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
54695         value for Bessel function domain errors outside _SVID_ mode.
54696         Adjust sign of return value for yn (negative integer, 0).
54697         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
54698         by zero in return for negative x and set sign appropriately for
54699         negative n.
54700         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
54701         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
54702         * math/libm-test.inc (y0_test_data): Add more tests and adjust
54703         expectations in error cases.
54704         (y1_test_data): Likewise.
54705         (yn_test_data): Likewise.
54706         * sysdeps/i386/fpu/libm-test-ulps: Update.
54707         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54708
54709 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54710
54711         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
54712         "64" to "64-v1".  Add "64-v2".
54713         (abi-64-options): Rename to ...
54714         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
54715         (abi-64-condition): Rename to ...
54716         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
54717         (abi-64-ld-soname): Rename to ...
54718         (abi-64-v1-ld-soname): ... this.
54719         (abi-64-v2-options): Define.
54720         (abi-64-v2-condition): Likewise.
54721         (abi-64-v2-ld-soname): Likewise.
54722         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
54723         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
54724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
54725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
54726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
54727
54728 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54729             Alan Modra  <amodra@gmail.com>
54730
54731         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
54732         New versions for use with the ELFv2 ABI.
54733         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
54734         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
54735         declaration.
54736         (struct La_ppc64v2_retval): Likewise.
54737         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
54738         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
54739         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
54740         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
54741         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
54742         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
54743         Do not save or restore CR.
54744         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
54745         (_dl_profile_resolve): Do no save or restore CR.  Support extended
54746         return values for ELFv2 ABI.  Fix location of FPR return registers.
54747         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
54748         updated values for _CALL_ELF == 2.
54749         (La_regs, La_retval, int_retval): Likewise.
54750
54751 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54752
54753         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
54754         (FRAME_MIN_SIZE_PARM): Likewise.
54755         (FRAME_BACKCHAIN): Likewise.
54756         (FRAME_CR_SAVE): Likewise.
54757         (FRAME_LR_SAVE): Likewise.
54758         (FRAME_TOC_SAVE): Likewise.
54759         (FRAME_PARM_SAVE): Likewise.
54760         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
54761         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
54762         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
54763         (call_mcount_parm_offset): New macro.
54764         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
54765         (PROF): Use symbolic stack frame offsets.
54766         (TAIL_CALL_SYSCALL_ERROR): Likewise.
54767         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
54768         Redefine in terms of FRAME_MIN_SIZE.
54769         (_dl_runtime_resolve): Use symbolic stack frame offsets.
54770         (_dl_profile_resolve): Likewise.  Update comment.
54771         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
54772         symbols stack frame offsets.
54773         (__sigsetjmp): Likewise.
54774         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
54775         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
54776         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
54777         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
54778
54779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
54780         (FRAME_BACKCHAIN): Remove.
54781         (FRAME_CR_SAVE): Likewise.
54782         (FRAME_LR_SAVE): Likewise.
54783         (FRAME_COMPILER_DW): Likewise.
54784         (FRAME_LINKER_DW): Likewise.
54785         (FRAME_TOC_SAVE): Likewise.
54786         (FRAME_PARM_SAVE): Likewise.
54787         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
54788         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
54789         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
54790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
54791         (CHECK_SP): Use symbolic stack frame offsets.
54792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
54793         zone" instead of caller's parameter save area for temp storage.
54794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
54795         Likewise.  Also, use symbolic stack frame offsets.
54796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
54797         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
54798         our own stack frame instead of the caller's.
54799         (__socket): Use symbolic stack frame offsets.
54800
54801 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54802             Alan Modra  <amodra@gmail.com>
54803
54804         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
54805         Define.
54806         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
54807         (PPC64_LOCAL_ENTRY_OFFSET): Define.
54808         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
54809         New function.
54810         (elf_machine_fixup_plt): Call it.
54811         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
54812         reloc arguments.
54813         (elf_machine_rela): Update call to elf_machine_plt_conflict.
54814         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
54815         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
54816         r2 before calling target.
54817
54818 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54819             Alan Modra  <amodra@gmail.com>
54820
54821         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
54822         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
54823         versions of macros to support ELFv2 ABI.
54824         (LOCALENTRY): New macro.
54825         (ENTRY, EALIGN): Use it.
54826         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
54827         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
54828         fall through into ENTRY entry point.
54829         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
54830         Only define if _CALL_ELF != 2.
54831
54832         (elf_machine_matches_host): Verify ABI version matches.
54833         (RTLD_START): Use LOCALENTRY.
54834         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
54835         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
54836         (PLT_ENTRY_WORDS): New macro.
54837         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
54838         (elf_machine_runtime_setup): Support ELFv2 ABI.
54839         (elf_machine_fixup_plt): Likewise.
54840         (elf_machine_plt_conflict): Likewise.
54841         (resolve_ifunc): Likewise.
54842         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
54843         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
54844         Likewise.
54845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
54846         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
54847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
54848         (makecontext): Support ELFv2 ABI.
54849         * elf/elf.h (EF_PPC64_ABI): Define.
54850
54851 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54852
54853         * sysdeps/powerpc/powerpc64/sysdep.h
54854         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
54855         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
54856         (ENTRY) [ASSEMBLER]: ... but instead here ...
54857         (EALIGN) [ASSEMBLER]: ... and here.
54858         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
54859         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
54860         (ENTRY_2) [!ASSEMBLER]: Use it.
54861         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
54862         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
54863         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
54864         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
54865         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
54866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
54867         Use PPC64_LOAD_FUNCPTR.
54868
54869         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
54870
54871 2013-12-04  Alan Modra  <amodra@gmail.com>
54872
54873         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
54874         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
54875         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
54876         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
54877
54878         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
54879         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
54880         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
54881         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
54882         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
54883         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
54884
54885 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54886
54887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
54888         (__makecontext): Fix incorrect CFI when backtracing out of
54889         context created via makecontext.
54890         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
54891         (__setcontext): Fix incorrect CFI during switch to new context.
54892         (__novec_setcontext): Likewise.
54893
54894 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
54895
54896         [BZ #4772]
54897         * time/strptime_l.c (__strptime_internal): Allow modifiers
54898         in strptime.
54899         * time/tst-strptime.c (day_tests): Add testcase.
54900
54901 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
54902
54903         * scripts/bench.pl: Skip over blank lines.
54904
54905 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54906
54907         [BZ #926]
54908         * manual/time.texi (Calendar Time): Clarify what timezone functions
54909         use.
54910
54911 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54912
54913         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54914
54915 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
54916
54917         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
54918         implementation.
54919         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
54920         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
54921         * debug/memset_chk.c (__memset_chk): Likewise.
54922         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
54923         * debug/strncpy_chk.c: Likewise.
54924
54925 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
54926
54927         [BZ #15268]
54928         [BZ #15425]
54929         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
54930         (__ieee754_exp): For possibly underflowing results, check size of
54931         result and force underflow exception if required.
54932         * math/auto-libm-test-in: Add more tests of exp.
54933         * math/auto-libm-test-out: Regenerated.
54934         * sysdeps/i386/fpu/libm-test-ulps: Update.
54935         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54936
54937         [BZ #16283]
54938         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
54939         * math/w_exp2f.c (__exp2f): Likewise.
54940         * math/w_exp2l.c (__exp2l): Likewise.
54941         * math/auto-libm-test-in: Do not allow missing errno on exp2
54942         underflow.
54943         * math/auto-libm-test-out: Regenerated.
54944
54945 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
54946
54947         [BZ #16274]
54948         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
54949         handle filename validation.
54950         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
54951         (do_open): Delete.
54952
54953 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
54954
54955         [BZ #6786]
54956         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
54957         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
54958         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
54959         <float.h>.
54960         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
54961         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
54962         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
54963         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
54964         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
54965         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
54966         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
54967         * math/auto-libm-test-in: Don't allow missing errno from erfc.
54968         Add more erfc tests.
54969         * math/auto-libm-test-out: Regenerated.
54970         * sysdeps/i386/fpu/libm-test-ulps: Update.
54971         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54972
54973         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
54974         exp2, expm1, j0 and j1.
54975         * math/auto-libm-test-out: Regenerated.
54976         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
54977         (erfc_test_data): Likewise.
54978         (exp_test_data): Likewise.
54979         (exp_tonearest_test_data): Likewise.
54980         (exp_towardzero_test_data): Likewise.
54981         (exp_downward_test_data): Likewise.
54982         (exp_upward_test_data): Likewise.
54983         (exp10_test_data): Likewise.
54984         (exp2_test_data): Likewise.
54985         (expm1_test_data): Likewise.
54986         (j0_test_data): Likewise.
54987         (j1_test_data): Likewise.
54988         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
54989         (input_flag_type): Add flag_xfail_rounding.
54990         (input_flags): Add xfail-rounding.
54991         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
54992         (output_for_one_input_case): Handle flag_xfail_rounding.
54993         * sysdeps/i386/fpu/libm-test-ulps: Update.
54994         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54995
54996 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
54997
54998         [BZ #16289]
54999         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
55000         division by 0.
55001
55002 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
55003
55004         [BZ #16195]
55005         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
55006         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
55007         (STAP_PROBE0): New macro.
55008         (STAP_PROBE1): Likewise.
55009         (STAP_PROBE2): Likewise.
55010         (STAP_PROBE3): Likewise.
55011         (STAP_PROBE4): Likewise.
55012
55013 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
55014
55015         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
55016
55017 2013-12-02  Steve Ellcey  <sellcey@mips.com>
55018
55019         * benchtests/Makefile (bench): Add sqrt.
55020         (LDLIBS-bench-sqrt): New.
55021         * benchtests/sqrt-input: New.
55022
55023 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
55024
55025         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
55026         (GAIH_EAI): Likewise.
55027         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
55028         (gaih_inet): Likewise.
55029         (getaddrinfo): Don't use GAIH_EAI.
55030
55031         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
55032         (struct gaih): Remove definition.
55033
55034 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
55035
55036         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
55037         Use HERRNOP directly.
55038
55039 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55040
55041         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55042
55043 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
55044
55045         * math/gen-auto-libm-tests.c (test_functions): Add more
55046         single-argument functions.
55047         (special_fill_pi_2): New function.
55048         (special_fill_minus_pi_2): Likewise.
55049         (special_fill_pi_6): Likewise.
55050         (special_fill_minus_pi_6): Likewise.
55051         (special_fill_pi_3): Likewise.
55052         (special_fill_2pi_3): Likewise.
55053         (special_fill_e): Likewise.
55054         (special_fill_1_e): Likewise.
55055         (special_fill_e_minus_1): Likewise.
55056         (special_real_inputs): Add more special inputs.
55057         (output_for_one_input_case): Do not require ERANGE on underflow to
55058         zero if round-to-nearest result does not underflow to zero, unless
55059         exact results required.
55060         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
55061         atan, atanh, cbrt, cos and cosh.
55062         * math/auto-libm-test-out: Regenerated.
55063         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
55064         (acos_tonearest_test_data): Likewise.
55065         (acos_towardzero_test_data): Likewise.
55066         (acos_downward_test_data): Likewise.
55067         (acos_upward_test_data): Likewise.
55068         (acosh_test_data): Likewise.
55069         (asin_test_data): Likewise.
55070         (asin_tonearest_test_data): Likewise.
55071         (asin_towardzero_test_data): Likewise.
55072         (asin_upward_test_data): Likewise.
55073         (asinh_test_data): Likewise.
55074         (atan_test_data): Likewise.
55075         (atanh_test_data): Likewise.
55076         (cbrt_test_data): Likewise.
55077         (cos_test_data): Likewise.
55078         (cos_tonearest_test_data): Likewise.
55079         (cos_towardzero_test_data): Likewise.
55080         (cos_downward_test_data): Likewise.
55081         (cos_upward_test_data): Likewise.
55082         (cosh_test_data): Likewise.
55083         (cosh_tonearest_test_data): Likewise.
55084         (cosh_towardzero_test_data): Likewise.
55085         (cosh_downward_test_data): Likewise.
55086         (cosh_upward_test_data): Likewise.
55087         * sysdeps/i386/fpu/libm-test-ulps: Update.
55088         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55089
55090 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
55091
55092         [BZ #6787]
55093         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
55094         * math/w_exp10f.c (__exp10f): Likewise.
55095         * math/w_exp10l.c (__exp10l): Likewise.
55096         * math/libm-test.inc (exp10_test_data): Add more tests and expect
55097         errno settings in existing tests.
55098
55099         [BZ #14032]
55100         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
55101         precision control set to double precision.
55102         * sysdeps/i386/fpu/w_sqrt.c: New file.
55103         * math/auto-libm-test-in: Add more tests.
55104         * math/auto-libm-test-out: Update.
55105
55106         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
55107         (sqrt_test_tonearest): New function.
55108         (sqrt_towardzero_test_data): New variable.
55109         (sqrt_test_towardzero): New function.
55110         (sqrt_downward_test_data): New variable.
55111         (sqrt_test_downward): New function.
55112         (sqrt_upward_test_data): New variable.
55113         (sqrt_test_upward): New function.
55114         (main): Call the new functions.
55115
55116         * math/gen-auto-libm-tests.c: New file.
55117         * math/auto-libm-test-in: Likewise.
55118         * math/auto-libm-test-out: New generated file.
55119         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
55120         variables.
55121         (%beautify): Add generated representations of zero.
55122         (top level): Set $auto_input and call parse_auto_input.
55123         (beautify): Remove trailing "f" from hex float constants.
55124         (parse_args): Handle XFAIL_TEST.
55125         (convert_condition): New function.
55126         (or_value): Likewise.
55127         (or_cond_value): Likewise.
55128         (generate_testfile): Handle AUTO_TESTS_* lines.
55129         (parse_auto_input): New function.
55130         * math/libm-test.inc (XFAIL_TEST): New macro.
55131         (ERRNO_UNCHANGED): Update value.
55132         (ERRNO_EDOM): Likewise.
55133         (ERRNO_ERANGE): Likewise.
55134         (IGNORE_RESULT): Likewise.
55135         (TEST_COND_flt_32): New macro.
55136         (TEST_COND_dbl_64): Likewise.
55137         (TEST_COND_ldbl_96_intel): Likewise.
55138         (TEST_COND_ldbl_96_m68k): Likewise.
55139         (TEST_COND_ldbl_128): Likewise.
55140         (TEST_COND_ldbl_128ibm): Likewise.
55141         (TEST_COND_long32): Likewise.
55142         (TEST_COND_long64): Likewise.
55143         (TEST_COND_before_rounding): Likewise.
55144         (TEST_COND_after_rounding): Likewise.
55145         (enable_test): Handle XFAIL_TEST flag.
55146         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
55147         with finite results.
55148         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
55149         auto-libm-test-out.
55150
55151 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
55152             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55153
55154         [BZ #16214]
55155         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
55156         __tls_get_addr_internal instead of __tls_get_offset in order to
55157         avoid GOT pointer dependency.  Make rtld export
55158         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
55159         __tls_get_addr since we are a __tls_get_offset platform.
55160         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
55161         GOT pointer being set up before.
55162         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
55163
55164 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
55165
55166         * manual/math.texi (Errors in Math Functions): Document accuracy
55167         goals.
55168
55169         [BZ #15004]
55170         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
55171         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
55172         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
55173         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
55174         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
55175         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
55176         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
55177         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
55178         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
55179         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
55180         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
55181         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
55182         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
55183         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
55184         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
55185         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
55186
55187         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
55188         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
55189         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
55190         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
55191         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
55192         Likewise.
55193         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
55194         Likewise.
55195         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
55196         Likewise.
55197         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
55198         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
55199         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
55200         atomic-feupdateenv and flt-rounds.
55201         * sysdeps/powerpc/nofpu/Versions (libc): Add
55202         __atomic_feholdexcept, __atomic_feclearexcept,
55203         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
55204         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
55205         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
55206         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
55207         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
55208         here.
55209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
55210         Update.
55211
55212         * manual/arith.texi (FP Exceptions): Document that exceptions may
55213         not be raised when matherr is used.
55214         (Math Error Reporting): Document overflow in directed rounding
55215         modes.  Document that errno may not be set when finite values are
55216         returned on overflow.  Document intent to set errno on underflow
55217         only for underflow to zero.
55218
55219         [BZ #16271]
55220         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
55221         round-to-nearest then adjust result for other rounding modes.
55222         * include/fenv.h (fegetround): Use libm_hidden_proto.
55223         * math/fegetround.c (fegetround): Use libm_hidden_def.
55224         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
55225         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
55226         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
55227         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
55228         Likewise.
55229         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
55230         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
55231         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
55232         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
55233
55234 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
55235
55236         [BZ #16077]
55237         * nss/Versions (libnss_files): Add
55238         _nss_files_gethostbyname3_r.
55239         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
55240         New function.
55241         (HOST_DB_LOOKUP): Remove macro.
55242         (_nss_files_gethostbyname_r): Implement function without the
55243         HOST_DB_LOOKUP macro.
55244         (_nss_files_gethostbyname2_r): Likewise.
55245
55246 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
55247
55248         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
55249
55250 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
55251
55252         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
55253         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
55254         warning.
55255
55256 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55257
55258         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
55259         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
55260         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
55261         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
55262         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
55263         __fe_nomask_env_priv and attribute_hidden.
55264         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
55265         (libc_feupdateenv_test_ppc): Likewise.
55266         (libc_feresetround_ppc): Likewise.
55267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
55268         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
55269         compat_symbol macro.
55270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
55271         (__fe_nomask_env): Likewise.
55272         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
55273
55274 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55275
55276         * string/Makefile: Remove ifunc tests.
55277         * string/test-string.h: Define TEST_IFUNC.
55278         * string/test-bcopy-ifunc.c: Remove.
55279         * string/test-bzero-ifunc.c: Likewise.
55280         * string/test-memccpy-ifunc.c: Likewise.
55281         * string/test-memchr-ifunc.c: Likewise.
55282         * string/test-memcmp-ifunc.c: Likewise.
55283         * string/test-memcpy-ifunc.c: Likewise.
55284         * string/test-memmem-ifunc.c: Likewise.
55285         * string/test-memmove-ifunc.c: Likewise.
55286         * string/test-mempcpy-ifunc.c: Likewise.
55287         * string/test-memrchr-ifunc.c: Likewise.
55288         * string/test-memset-ifunc.c: Likewise.
55289         * string/test-rawmemchr-ifunc.c: Likewise.
55290         * string/test-stpcpy-ifunc.c: Likewise.
55291         * string/test-stpncpy-ifunc.c: Likewise.
55292         * string/test-strcasecmp-ifunc.c: Likewise.
55293         * string/test-strcasestr-ifunc.c: Likewise.
55294         * string/test-strcat-ifunc.c: Likewise.
55295         * string/test-strchr-ifunc.c: Likewise.
55296         * string/test-strchrnul-ifunc.c: Likewise.
55297         * string/test-strcmp-ifunc.c: Likewise.
55298         * string/test-strcpy-ifunc.c: Likewise.
55299         * string/test-strcspn-ifunc.c: Likewise.
55300         * string/test-strlen-ifunc.c: Likewise.
55301         * string/test-strncasecmp-ifunc.c: Likewise.
55302         * string/test-strncat-ifunc.c: Likewise.
55303         * string/test-strncmp-ifunc.c: Likewise.
55304         * string/test-strncpy-ifunc.c: Likewise.
55305         * string/test-strnlen-ifunc.c: Likewise.
55306         * string/test-strpbrk-ifunc.c: Likewise.
55307         * string/test-strrchr-ifunc.c: Likewise.
55308         * string/test-strspn-ifunc.c: Likewise.
55309         * string/test-strstr-ifunc.c: Likewise.
55310
55311 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55312
55313         * benchtests/Makefile: Remove ifunc tests.
55314         * benchtests/bench-string.h: Define TEST_IFUNC.
55315         * benchtests/bench-bcopy-ifunc.c: Remove.
55316         * benchtests/bench-bzero-ifunc.c: Likewise.
55317         * benchtests/bench-memccpy-ifunc.c: Likewise.
55318         * benchtests/bench-memchr-ifunc.c: Likewise.
55319         * benchtests/bench-memcmp-ifunc.c: Likewise.
55320         * benchtests/bench-memcpy-ifunc.c: Likewise.
55321         * benchtests/bench-memmem-ifunc.c: Likewise.
55322         * benchtests/bench-memmove-ifunc.c: Likewise.
55323         * benchtests/bench-mempcpy-ifunc.c: Likewise.
55324         * benchtests/bench-memrchr-ifunc.c: Likewise.
55325         * benchtests/bench-memset-ifunc.c: Likewise.
55326         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
55327         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
55328         * benchtests/bench-stpcpy-ifunc.c: Likewise.
55329         * benchtests/bench-stpncpy-ifunc.c: Likewise.
55330         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
55331         * benchtests/bench-strcasestr-ifunc.c: Likewise.
55332         * benchtests/bench-strcat-ifunc.c: Likewise.
55333         * benchtests/bench-strchr-ifunc.c: Likewise.
55334         * benchtests/bench-strchrnul-ifunc.c: Likewise.
55335         * benchtests/bench-strcmp-ifunc.c: Likewise.
55336         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
55337         * benchtests/bench-strcpy-ifunc.c: Likewise.
55338         * benchtests/bench-strcspn-ifunc.c: Likewise.
55339         * benchtests/bench-strlen-ifunc.c: Likewise.
55340         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
55341         * benchtests/bench-strncat-ifunc.c: Likewise.
55342         * benchtests/bench-strncmp-ifunc.c: Likewise.
55343         * benchtests/bench-strncpy-ifunc.c: Likewise.
55344         * benchtests/bench-strnlen-ifunc.c: Likewise.
55345         * benchtests/bench-strpbrk-ifunc.c: Likewise.
55346         * benchtests/bench-strrchr-ifunc.c: Likewise.
55347         * benchtests/bench-strsep-ifunc.c: Likewise.
55348         * benchtests/bench-strspn-ifunc.c: Likewise.
55349         * benchtests/bench-strstr-ifunc.c: Likewise.
55350
55351 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55352
55353         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
55354
55355 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55356
55357         * resolv/netdb.h: Use __glibc_reserved instead __unused.
55358         * rt/aio.h: Likewise.
55359         * sysdeps/gnu/bits/utmp.h: Likewise.
55360         * sysdeps/gnu/bits/utmpx.h: Likewise.
55361         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
55362         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
55363         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
55364         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
55365         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
55366         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
55367         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
55368         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
55369         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
55370         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
55371         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
55372         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
55373         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
55374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
55375         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
55376         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
55377         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
55378         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
55379         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
55380         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
55381         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
55382         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
55383         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
55384         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
55385         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
55386         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
55387         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
55388         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
55389         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
55390         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
55391         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
55392         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
55393         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
55394         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
55395         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
55396         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
55397         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
55398         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
55399         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
55400         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
55401         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
55402         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
55403
55404 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
55405
55406         [BZ #16245]
55407         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
55408         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
55409
55410 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
55411
55412         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
55413         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
55414         Likewise.
55415
55416 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55417
55418         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
55419         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
55420         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
55421         (__fesetround): Remove define.
55422         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
55423         rounding and exceptions handling.
55424         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
55425         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
55426         (__fe_nomask_env): Likewise.
55427         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
55428         __fegetround instead of fegetround.
55429         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
55430         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
55431
55432 2013-11-21  Roland McGrath  <roland@hack.frob.com>
55433
55434         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
55435         it's there.
55436
55437         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
55438
55439 2013-11-21  Meador Inge  <meadori@codesourcery.com>
55440
55441         [BZ #11157]
55442         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
55443         (encrypt_r): Likewise.
55444         * malloc/obstack.h (obstack_free): Likewise.
55445         * posix/unistd.h (encrypt): Likewise.
55446
55447 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
55448
55449         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
55450         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
55451         DL_CALL_DT_FINI() that call the functions directly.
55452         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
55453         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
55454         * elf/dl-fini.c: Likewise.
55455
55456 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
55457
55458         * malloc/hooks.c (memalign_check): Add alignment rounding.
55459         * malloc/malloc.c (_mid_memalign): New function.
55460         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
55461         Implement by calling _mid_memalign.
55462         * manual/probes.texi (Memory Allocation Probes): Remove
55463         memory_valloc_retry and memory_pvalloc_retry.
55464
55465 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
55466
55467         * locale/programs/locarchive.c (open_archive): Add const
55468         qualifier to ARCHIVEFNAME and copy default fname to
55469         DEFAULT_FNAME.
55470
55471         [BZ #15601]
55472         * libio/tst-widetext.input: Rename Oriya to Odia.
55473         * locale/iso-639.def: Likewise.
55474
55475         * manual/probes.texi (Mathematical Function Probes): Add
55476         documentation for sin, cos, asin and acos probes.
55477         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
55478         (__sin32): Add slowasin probe.
55479         (__cos32): Add slowacos probe.
55480         (__mpsin): Add slowsin probe.
55481         (__mpcos): Add slowcos probe.
55482
55483 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
55484
55485         [BZ #15483]
55486         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
55487         thread-local __sim_exceptions_thread and global
55488         __sim_exceptions_global.
55489         (__sim_disabled_exceptions): Change to thread-local
55490         __sim_disabled_exceptions_thread and global
55491         __sim_disabled_exceptions_global.
55492         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
55493         and global __sim_round_mode_global.
55494         (__simulate_exceptions): Use thread-local floating-point state and
55495         set global state from it as needed.
55496         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
55497         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
55498         __sim_round_mode_thread.
55499         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
55500         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
55501         and global __sim_exceptions_global.
55502         (__sim_disabled_exceptions): Change to thread-local
55503         __sim_disabled_exceptions_thread and global
55504         __sim_disabled_exceptions_global.
55505         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
55506         and global __sim_round_mode_global.
55507         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
55508         (SIM_SET_GLOBAL): Likewise.
55509         * sysdeps/powerpc/soft-fp/sfp-machine.h
55510         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
55511         __sim_round_mode_thread.
55512         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
55513         __sim_disabled_exceptions_thread.
55514         (__sim_exceptions): Change to __sim_exceptions_thread.
55515         (__sim_disabled_exceptions): Change to
55516         __sim_disabled_exceptions_thread.
55517         (__sim_round_mode): Change to __sim_round_mode_thread.
55518         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
55519         thread-local floating-point state and set global state from it as
55520         needed.
55521         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
55522         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
55523         (__sim_disabled_exceptions): Remove extern declaration.
55524         (feenableexcept): Use thread-local floating-point state and set
55525         global state from it as needed.
55526         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
55527         extern declaration.
55528         (__sim_disabled_exceptions): Likewise.
55529         (__sim_round_mode): Likewise.
55530         (__fegetenv): Use thread-local floating-point state.
55531         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
55532         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
55533         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
55534         floating-point state and set global state from it as needed.
55535         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
55536         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
55537         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
55538         Likewise.
55539         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
55540         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
55541         Likewise.
55542         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
55543         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
55544         Use __sim_round_mode_thread.
55545         * math/test-fenv-tls.c: New file.
55546         * math/Makefile (tests): Add test-fenv-tls.
55547         ($(objpfx)test-fenv-tls): Depend on
55548         $(common-objpfx)nptl/libpthread.so.
55549
55550 2013-11-19  Andreas Schwab  <schwab@suse.de>
55551
55552         * locale/programs/locale.c (show_info): Decode wordarray elements.
55553         * locale/categories.def (LC_MONETARY): Add element for
55554         _NL_MONETARY_CRNCYSTR.
55555         * locale/C-monetary.c (conversion_rate): New variable.
55556         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
55557         element.
55558
55559 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
55560
55561         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
55562         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
55563
55564 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
55565
55566         * elf/Makefile (tst-auxv): New test.
55567         * elf/tst-auxv.c: New
55568         * elf/rtld.c (dl_main): Adjust AT_EXECFN
55569
55570 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
55571
55572         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
55573         (hidden_proto): Caller changed.
55574         (hidden_tls_proto): New macro.
55575         (libc_hidden_tls_proto): Likewise.
55576         (rtld_hidden_tls_proto): Likewise.
55577         (libm_hidden_tls_proto): Likewise.
55578         (libresolv_hidden_tls_proto): Likewise.
55579         (librt_hidden_tls_proto): Likewise.
55580         (libdl_hidden_tls_proto): Likewise.
55581         (libnss_files_hidden_tls_proto): Likewise.
55582         (libnsl_hidden_tls_proto): Likewise.
55583         (libnss_nisplus_hidden_tls_proto): Likewise.
55584         (libutil_hidden_tls_proto): Likewise.
55585
55586 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
55587
55588         [BZ #10253]
55589         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
55590         (decompose_rpath): Defer expansion to fillin_rpath.
55591         (_dl_init_paths): Pass linkmap to fillin_rpath.
55592
55593 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
55594
55595         * benchtests/Makefile: Add strsep.
55596         * benchtests/bench-strsep.c: New file: strsep benchtest.
55597         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
55598
55599 2013-11-18  Andreas Schwab  <schwab@suse.de>
55600
55601         * locale/programs/locale.c (show_info) [case byte]: Check for
55602         '\377' instead of '\177'.
55603         * locale/C-monetary.c (not_available): Always use "\377".
55604         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
55605         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
55606         detect unavailable sign_posn locale elements.
55607         * locale/localeconv.c (__localeconv): For grouping and
55608         mon_grouping handle "\177" and "\377" like no grouping.
55609         (INT_ELEM): New macro.  Use it to set all numeric members.
55610         * locale/programs/ld-monetary.c (monetary_read)
55611         <tok_mon_grouping>: Normalize single -1 to the empty string.
55612         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
55613         Likewise.
55614
55615 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
55616
55617         [BZ #16055]
55618         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
55619         when we match (nil).
55620         * stdio-common/tst-sscanf.c (struct test): Add testcase.
55621
55622 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
55623
55624         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
55625         (NO_TEST_INLINE): Update value.
55626         (ERRNO_UNCHANGED): Likewise.
55627         (ERRNO_EDOM): Likewise.
55628         (ERRNO_ERANGE): Likewise.
55629         (IGNORE_RESULT): Likewise.
55630         (check_float_internal): Check signs of NaN results if
55631         TEST_NAN_SIGN used.
55632         (check_complex): Pass TEST_NAN_SIGN flag through to second
55633         check_float_internal call.
55634         (copysign_test_data): Add tests with quiet NaNs as second
55635         argument.  Use TEST_NAN_SIGN.
55636         (fabs_test_data): Add test of negative quiet NaN argument.  Use
55637         TEST_NAN_SIGN.
55638         (signbit_test_data): Add tests of quiet NaN argument.
55639         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
55640
55641         * math/gen-libm-test.pl (show_exceptions): Take extra argument
55642         $ignore_result.
55643         (parse_args): Handle function results specified as IGNORE.
55644         * math/libm-test.inc (IGNORE_RESULT): New macro.
55645         (check_float_internal): Do not check numerical result if flag
55646         IGNORE_RESULT set.
55647         (check_complex): Pass through IGNORE_RESULT to second
55648         check_float_internal call.
55649         (check_int): Do not check numerical result if flag IGNORE_RESULT
55650         set.
55651         (check_long): Likewise.
55652         (check_bool): Likewise.
55653         (check_longlong): Likewise.
55654         (lrint_test_data): Add tests of infinite and NaN arguments.
55655         (lrint_tonearest_test_data): Likewise.
55656         (lrint_towardzero_test_data): Likewise.
55657         (lrint_downward_test_data): Likewise.
55658         (lrint_upward_test_data): Likewise.
55659         (llrint_test_data): Likewise.
55660         (llrint_tonearest_test_data): Likewise.
55661         (llrint_towardzero_test_data): Likewise.
55662         (llrint_downward_test_data): Likewise.
55663         (llrint_upward_test_data): Likewise.
55664         (lround_test_data): Likewise.
55665         (llround_test_data): Likewise.
55666
55667         * math/libm-test.inc (NO_TEST_INLINE): New macro.
55668         (ERRNO_UNCHANGED): Update value.
55669         (ERRNO_EDOM): Likewise.
55670         (ERRNO_ERANGE): Likewise.
55671         (NO_TEST_INLINE_FLOAT): New macro.
55672         (NO_TEST_INLINE_DOUBLE): Likewise.
55673         (enable_test): New function.
55674         (RUN_TEST_f_f): Check enable_test before running test.
55675         (RUN_TEST_2_f): Likewise.
55676         (RUN_TEST_fff_f): Likewise.
55677         (RUN_TEST_c_f): Likewise.
55678         (RUN_TEST_f_f1): Likewise.
55679         (RUN_TEST_fF_f1): Likewise.
55680         (RUN_TEST_fI_f1): Likewise.
55681         (RUN_TEST_ffI_f1): Likewise.
55682         (RUN_TEST_c_c): Likewise.
55683         (RUN_TEST_cc_c): Likewise.
55684         (RUN_TEST_f_i): Likewise.
55685         (RUN_TEST_f_i_tg): Likewise.
55686         (RUN_TEST_ff_i_tg): Likewise.
55687         (RUN_TEST_f_b): Likewise.
55688         (RUN_TEST_f_b_tg): Likewise.
55689         (RUN_TEST_f_l): Likewise.
55690         (RUN_TEST_f_L): Likewise.
55691         (RUN_TEST_fFF_11): Likewise.
55692         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
55693         conditionals.
55694         (cosh_test_data): Likewise.
55695         (exp_test_data): Likewise.
55696         (expm1_test_data): Likewise.
55697         (hypot_test_data): Likewise.
55698         (pow_test_data): Likewise.
55699         (sinh_test_data): Likewise.
55700         (tanh_test_data): Likewise.
55701         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
55702         flags argument.
55703
55704         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
55705         tests with quiet NaN input and output.
55706         (acosh_test_data): Likewise.
55707         (asin_test_data): Likewise.
55708         (asinh_test_data): Likewise.
55709         (atan_test_data): Likewise.
55710         (atanh_test_data): Likewise.
55711         (atan2_test_data): Likewise.
55712         (cbrt_test_data): Likewise.
55713         (cos_test_data): Likewise.
55714         (cosh_test_data): Likewise.
55715         (erf_test_data): Likewise.
55716         (erfc_test_data): Likewise.
55717         (exp_test_data): Likewise.
55718         (exp10_test_data): Likewise.
55719         (exp2_test_data): Likewise.
55720         (expm1_test_data): Likewise.
55721         (hypot_test_data): Likewise.
55722         (j0_test_data): Likewise.
55723         (j1_test_data): Likewise.
55724         (jn_test_data): Likewise.
55725         (lgamma_test_data): Likewise.
55726         (log_test_data): Likewise.
55727         (log10_test_data): Likewise.
55728         (log1p_test_data): Likewise.
55729         (log2_test_data): Likewise.
55730         (pow_test_data): Likewise.
55731         (scalb_test_data): Likewise.
55732         (sin_test_data): Likewise.
55733         (sincos_test_data): Likewise.
55734         (sinh_test_data): Likewise.
55735         (tan_test_data): Likewise.
55736         (tanh_test_data): Likewise.
55737         (tgamma_test_data): Likewise.
55738         (y0_test_data): Likewise.
55739         (y1_test_data): Likewise.
55740         (yn_test_data): Likewise.
55741
55742         [BZ #16167]
55743         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
55744         argument being NaN and avoid computations with second argument in
55745         that case.
55746         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
55747         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
55748         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
55749
55750 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
55751
55752         * locale/iso-639.def: Add Chitwani Tharu (the).
55753
55754 2013-11-14  Andreas Schwab  <schwab@suse.de>
55755
55756         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
55757         word instead of empty string.
55758
55759 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55760
55761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
55762         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
55763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
55764         (__fe_nomask_env): Likewise.
55765
55766 2013-11-13  Steve Ellcey  <sellcey@mips.com>
55767
55768         * benchtests/bench-timing.h: Include time.h.
55769
55770 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
55771
55772         [BZ #15997]
55773         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
55774         to 3.4.0 for x32.
55775         * sysdeps/unix/sysv/linux/configure: Regenerated.
55776
55777 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
55778
55779         [BZ #16151]
55780         * stdlib/strtod_l.c (round_and_return): Do not consider
55781         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
55782         exponent one less than half the least subnormal exponent.
55783         * stdlib/test-strtod-round-data: Add more tests.
55784         * stdlib/tst-strtod-round.c (tests): Regenerated.
55785
55786 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55787
55788         [BZ #14143]
55789         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
55790         (__fe_mask_env): Likewise.
55791         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
55792         libm_hidden_proto and add function prototype.
55793         (__fe_mask_env): Add function prototype.
55794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
55795         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
55796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
55797         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
55798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
55799         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
55800
55801 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55802
55803         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
55804         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
55805
55806 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55807
55808         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
55809         of htab_find_slot().
55810
55811 2013-11-11  David S. Miller  <davem@davemloft.net>
55812
55813         [BZ #16150]
55814         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
55815         symbol in the non-vis3 case in static builds.
55816         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
55817         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
55818         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
55819         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
55820
55821 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
55822
55823         [BZ #387]
55824         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
55825         it is empty.
55826
55827 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55828
55829         * benchtests/Makefile: Add bench-strtod.
55830         * benchtests/bench-strtod.c: New file: strtod benchtest
55831
55832 2013-11-11  Andreas Schwab  <schwab@suse.de>
55833
55834         [BZ #16153]
55835         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
55836         terminating NUL in key length.
55837
55838 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55839
55840         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
55841         Add artificial ODP entry for vDSO symbol for PPC64.
55842         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
55843         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
55844
55845 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
55846
55847         [BZ #15374]
55848         * nss/getent.c (services_keys): Recognize services starting with digit.
55849
55850 2013-11-06  David S. Miller  <davem@davemloft.net>
55851
55852         [BZ #15985]
55853         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
55854         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
55855
55856 2013-11-06  Will Newton  <will.newton@linaro.org>
55857
55858         * manual/memory.texi (Malloc Examples): Remove register
55859         keyword from examples.
55860
55861 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
55862
55863         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
55864
55865 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
55866
55867         [BZ #6981]
55868         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
55869         depending on [__GCC_IEC_559 > 0].
55870         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
55871         depending on [__GCC_IEC_559_COMPLEX > 0].
55872
55873 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
55874
55875         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
55876         to iso-639.def.
55877
55878 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
55879
55880         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
55881
55882 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
55883
55884         [BZ #16112]
55885         * malloc/malloc (malloc_info): Do not handle first bin as
55886         special case.
55887
55888 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
55889
55890         * locale/iso-639.def: Add Central Nahuatl (nhn).
55891
55892 2013-11-01  Bruno Haible  <bruno@clisp.org>
55893
55894         [BZ #7003]
55895         * manual/math.texi (BSD Random): Specify range upper bound as
55896         in POSIX.
55897
55898 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
55899
55900         * locale/iso-639.def: Add Meadow Mari (mhr).
55901
55902 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
55903
55904         [BZ #14752], [BZ #15763]
55905         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
55906         Validate name.
55907         * rt/tst_shm.c: Add test for escaping directory.
55908
55909 2013-10-31  Andreas Schwab  <schwab@suse.de>
55910
55911         [BZ #15917]
55912         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
55913         followed by 'x' as part of digit sequence.
55914         * stdio-common/tst-sscanf.c (double_tests2): New tests.
55915
55916 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
55917
55918         [BZ #16037]
55919         * configure.ac: allow GNU Make 4.0 and greater.
55920         * configure: Regenerated.
55921
55922 2013-10-30  Will Newton  <will.newton@linaro.org>
55923
55924         [BZ #16038]
55925         * malloc/hooks.c (memalign_check): Limit alignment to the
55926         maximum representable power of two.
55927         * malloc/malloc.c (__libc_memalign): Likewise.
55928         * malloc/tst-memalign.c (do_test): Add test for very
55929         large alignment values.
55930         * malloc/tst-posix_memalign.c (do_test): Likewise.
55931
55932 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
55933
55934         [BZ #11087]
55935         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
55936         (munmap_chunk): Likewise.
55937         (mremap_chunk): Likewise.
55938
55939 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
55940
55941         [BZ #15799]
55942         * stdlib/div.c (div): Remove obsolete code.
55943         * stdlib/ldiv.c (ldiv): Likewise.
55944         * stdlib/lldiv.c (lldiv): Likewise.
55945
55946 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
55947
55948         [BZ #16071]
55949         * nss/nss_files/files-XXX.c (get_contents_ret): New
55950         enumerator.
55951         (get_contents): New function.
55952         (internal_getent): Use it.  Expand size of LINEBUFLEN.
55953
55954 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
55955
55956         * configure.in: Moved to ...
55957         * configure.ac: ... here. Change reference to configure.in
55958         to configure.ac.
55959         * sysdeps/arm/preconfigure.ac: ... here.
55960         configure.in to configure.ac.
55961         * sysdeps/gnu/configure.in: Moved to ...
55962         * sysdeps/gnu/configure.ac: ... here.
55963         * sysdeps/i386/configure.in: Moved to ...
55964         * sysdeps/i386/configure.ac: ... here.
55965         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
55966         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
55967         * sysdeps/mach/configure.in: Moved to ...
55968         * sysdeps/mach/configure.ac: ... here.
55969         * sysdeps/mach/hurd/configure.in: Moved to ...
55970         * sysdeps/mach/hurd/configure.ac: ... here.
55971         * sysdeps/powerpc/configure.in: Moved to ...
55972         * sysdeps/powerpc/configure.ac: ... here.
55973         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
55974         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
55975         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
55976         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
55977         * sysdeps/s390/s390-32/configure.in: Moved to ...
55978         * sysdeps/s390/s390-32/configure.ac: ... here.
55979         * sysdeps/s390/s390-64/configure.in: Moved to ...
55980         * sysdeps/s390/s390-64/configure.ac: ... here.
55981         * sysdeps/sh/configure.in: Moved to ...
55982         * sysdeps/sh/configure.ac: ... here.
55983         * sysdeps/sparc/configure.in: Moved to ...
55984         * sysdeps/sparc/configure.ac: ... here.
55985         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
55986         * sysdeps/unix/sysv/linux/configure.ac: ... here.
55987         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
55988         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
55989         * sysdeps/x86_64/configure.in: Moved to ...
55990         * sysdeps/x86_64/configure.ac: ... here.
55991         * sysdeps/x86_64/preconfigure.in: Moved to ...
55992         * sysdeps/x86_64/preconfigure.ac: ... here.
55993         * aclocal.m4: Change reference to configure.in to configure.ac.
55994         * config.h.in: Likewise.
55995         * manual/install.texi: Likewise.
55996         * manual/maint.texi: Likewise.
55997         * Makefile: Likewise.
55998         * malloc/Makefile: Likewise.
55999         * nscd/Makefile: Likewise.
56000         * Makeconfig: Change reference to configure.in and
56001         preconfigure.in to configure.ac and preconfigure.ac
56002         respectively.
56003         * INSTALL: Regenerated.
56004         * configure: Likewise.
56005         * sysdeps/gnu/configure: Likewise.
56006         * sysdeps/i386/configure: Likewise.
56007         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
56008         * sysdeps/mach/configure: Likewise.
56009         * sysdeps/mach/hurd/configure: Likewise.
56010         * sysdeps/powerpc/configure: Likewise.
56011         * sysdeps/powerpc/powerpc32/configure: Likewise.
56012         * sysdeps/powerpc/powerpc64/configure: Likewise.
56013         * sysdeps/s390/s390-32/configure: Likewise.
56014         * sysdeps/s390/s390-64/configure: Likewise.
56015         * sysdeps/sh/configure: Likewise.
56016         * sysdeps/sparc/configure: Likewise.
56017         * sysdeps/unix/sysv/linux/configure: Likewise.
56018         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
56019         * sysdeps/x86_64/configure: Likewise.
56020         * sysdeps/x86_64/preconfigure: Likewise.
56021
56022 2013-10-29  Andreas Schwab  <schwab@suse.de>
56023
56024         * stdio-common/Makefile (tst-swscanf-ENV): Define.
56025
56026 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
56027
56028         * benchtests/pow-inputs: Add new inputs.
56029
56030         * benchtests/exp-inputs: Add new inputs.
56031
56032         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
56033         conditional check for return value.
56034         (__cos32): Likewise.
56035
56036 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56037
56038         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
56039         to provide a boost for large inputs with word alignment.
56040         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
56041         implementation based on optimized PPC64 strcpy.
56042         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
56043         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
56044         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
56045         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
56046
56047 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
56048
56049         [BZ #2801]
56050         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
56051
56052 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
56053
56054         [BZ #14876]
56055         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
56056         * time/tst-strptime.c (day_tests): Add testcase.
56057
56058 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
56059
56060         [BZ #14029]
56061         * manual/pattern.texi: Acknowledge that fnmatch can fail.
56062
56063 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
56064
56065         [BZ #16074]
56066         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
56067         MAP_FAILED on error.
56068
56069 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
56070
56071         [BZ #16072]
56072         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
56073         heap for large requests.
56074
56075 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
56076
56077         [BZ #9954]
56078         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
56079         result if the result has no associated interface.
56080         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
56081         interface for all 127.X.Y.Z addresses.
56082
56083 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
56084
56085         * locale/iso-639.def: Add Ligurian (lij)
56086
56087 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
56088
56089         [BZ #15825]
56090         * sunrpc/rpc_main.c: Document rpcgen -5.
56091
56092 2013-10-19  Michael Stahl  <mstahl@redhat.com>
56093
56094         * elf/rtld.c (do_preload): Print the reason why preloading failed.
56095
56096 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
56097
56098         [BZ #10278]
56099         * posix/glob.c: Match only directories when trailing slash is present.
56100         * posix/tst-gnuglob.c (my_opendir): Do not open files.
56101         (main): Add testcase.
56102
56103 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
56104
56105         [BZ #15670]
56106         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
56107
56108 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
56109
56110         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
56111         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
56112         AUTH_DES and cindex for FIPS 140-2.
56113         (DES Encryption): Add cindex FIPS 46-3.
56114
56115         * locale/locarchive.h (struct locarhandle): Add fname.
56116         * locale/programs/localedef.c (main): Pass ARGV[remaining]
56117         if an optional argument was specified to --list-archive,
56118         otherwise NULL.
56119         * locale/programs/locarchive.c (show_archive_content): Take new
56120         argument fname and pass it via ah.fname to open_archive.
56121         * locale/programs/localedef.h: Update decl.
56122         (open_archive): If AH->fname is non-null, open that file
56123         rather than the default file name, and don't ignore ENOENT.
56124         (create_archive): Set AH.fname to NULL.
56125         (delete_locales_from_archive): Likewise.
56126         (add_locales_to_archive): Likewise.
56127         * locale/programs/locfile.c (write_all_categories): Likewise.
56128
56129 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
56130             Aldy Hernandez  <aldyh@redhat.com>
56131
56132         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
56133         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
56134         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
56135         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
56136         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
56137         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
56138         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
56139         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
56140         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
56141         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
56142         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
56143         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
56144         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
56145         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
56146         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
56147         Likewise.
56148         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
56149         Likewise.
56150         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
56151         Likewise.
56152         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
56153         Likewise.
56154         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
56155         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
56156         Likewise.
56157         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
56158         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
56159         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
56160         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
56161         Likewise.
56162         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
56163         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
56164         * sysdeps/powerpc/preconfigure: Likewise.
56165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
56166         Likewise.
56167         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
56168         Replace contents of file by #include of <fenv_libc.h>.
56169         * sysdeps/powerpc/soft-fp/sfp-machine.h
56170         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
56171         and <sys/prctl.h>.
56172         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
56173         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
56174         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
56175         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
56176         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
56177         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
56178         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
56179         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
56180         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
56181         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
56182         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
56183         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
56184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
56185         Allow copysignl PLT reference to be missing.
56186
56187 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
56188             Joseph Myers  <joseph@codesourcery.com
56189
56190         [BZ #15948]
56191         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
56192         single character.
56193         (add_to_tablewc): Assert sequence of wide characters is nonempty.
56194
56195 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56196
56197         * elf/tst-tls-dlinfo.c: Don't include tls.h.
56198         * elf/tst-tls1.c: Likewise.
56199         * elf/tst-tls10.h: Likewise.
56200         * elf/tst-tls14.c: Likewise.
56201         * elf/tst-tls2.c: Likewise.
56202         * elf/tst-tls3.c: Likewise.
56203         * elf/tst-tls4.c: Likewise.
56204         * elf/tst-tls5.c: Likewise.
56205         * elf/tst-tls6.c: Likewise.
56206         * elf/tst-tls7.c: Likewise.
56207         * elf/tst-tls8.c: Likewise.
56208         * elf/tst-tls9.c: Likewise.
56209         * elf/tst-tlsmod1.c: Likewise.
56210         * elf/tst-tlsmod13.c: Likewise.
56211         * elf/tst-tlsmod13a.c: Likewise.
56212         * elf/tst-tlsmod14a.c: Likewise.
56213         * elf/tst-tlsmod16a.c: Likewise.
56214         * elf/tst-tlsmod16b.c: Likewise.
56215         * elf/tst-tlsmod2.c: Likewise.
56216         * elf/tst-tlsmod3.c: Likewise.
56217         * elf/tst-tlsmod4.c: Likewise.
56218         * elf/tst-tlsmod5.c: Likewise.
56219         * elf/tst-tlsmod6.c: Likewise.
56220
56221 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
56222
56223         [BZ #12486]
56224         * malloc/malloc.c: remove checks for statistics.
56225
56226 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
56227
56228         [BZ #15277]
56229         * inet/inet_net.c (inet_network): Detect additional invalid strings.
56230         * inet/tst-network.c: Add testcase.
56231
56232 2013-10-17  Andreas Schwab  <schwab@suse.de>
56233
56234         [BZ #15218]
56235         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
56236         to determine canonical name.
56237
56238 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
56239
56240         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
56241         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
56242         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
56243         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
56244         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
56245         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
56246         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
56247         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
56248         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
56249         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
56250         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
56251         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
56252         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
56253         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
56254         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
56255         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
56256         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
56257         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
56258         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
56259         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
56260         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
56261         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
56262         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
56263         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
56264         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
56265         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
56266         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
56267         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
56268         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
56269         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
56270         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
56271         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
56272         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
56273         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
56274         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
56275         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
56276         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
56277         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
56278         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
56279         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
56280         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
56281         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
56282         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
56283         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
56284         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
56285         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
56286         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
56287         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
56288         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
56289         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
56290         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
56291         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
56292         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
56293         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
56294         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
56295         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
56296         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
56297         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
56298
56299 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
56300
56301         [BZ #16041]
56302         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
56303         make result into a quiet NaN.
56304
56305 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
56306
56307         * soft-fp/adddf3.c: Fix horizontal whitespace.
56308         * soft-fp/addsf3.c: Likewise.
56309         * soft-fp/addtf3.c: Likewise.
56310         * soft-fp/divdf3.c: Likewise.
56311         * soft-fp/divsf3.c: Likewise.
56312         * soft-fp/divtf3.c: Likewise.
56313         * soft-fp/double.h: Likewise.
56314         * soft-fp/eqdf2.c: Likewise.
56315         * soft-fp/eqsf2.c: Likewise.
56316         * soft-fp/eqtf2.c: Likewise.
56317         * soft-fp/extenddftf2.c: Likewise.
56318         * soft-fp/extended.h: Likewise.
56319         * soft-fp/extendsfdf2.c: Likewise.
56320         * soft-fp/extendsftf2.c: Likewise.
56321         * soft-fp/extendxftf2.c: Likewise.
56322         * soft-fp/fixdfdi.c: Likewise.
56323         * soft-fp/fixdfsi.c: Likewise.
56324         * soft-fp/fixdfti.c: Likewise.
56325         * soft-fp/fixsfdi.c: Likewise.
56326         * soft-fp/fixsfsi.c: Likewise.
56327         * soft-fp/fixsfti.c: Likewise.
56328         * soft-fp/fixtfdi.c: Likewise.
56329         * soft-fp/fixtfsi.c: Likewise.
56330         * soft-fp/fixtfti.c: Likewise.
56331         * soft-fp/fixunsdfdi.c: Likewise.
56332         * soft-fp/fixunsdfsi.c: Likewise.
56333         * soft-fp/fixunsdfti.c: Likewise.
56334         * soft-fp/fixunssfdi.c: Likewise.
56335         * soft-fp/fixunssfsi.c: Likewise.
56336         * soft-fp/fixunssfti.c: Likewise.
56337         * soft-fp/fixunstfdi.c: Likewise.
56338         * soft-fp/fixunstfsi.c: Likewise.
56339         * soft-fp/fixunstfti.c: Likewise.
56340         * soft-fp/floatdidf.c: Likewise.
56341         * soft-fp/floatdisf.c: Likewise.
56342         * soft-fp/floatditf.c: Likewise.
56343         * soft-fp/floatsidf.c: Likewise.
56344         * soft-fp/floatsisf.c: Likewise.
56345         * soft-fp/floatsitf.c: Likewise.
56346         * soft-fp/floattidf.c: Likewise.
56347         * soft-fp/floattisf.c: Likewise.
56348         * soft-fp/floattitf.c: Likewise.
56349         * soft-fp/floatundidf.c: Likewise.
56350         * soft-fp/floatundisf.c: Likewise.
56351         * soft-fp/floatunditf.c: Likewise.
56352         * soft-fp/floatunsidf.c: Likewise.
56353         * soft-fp/floatunsisf.c: Likewise.
56354         * soft-fp/floatunsitf.c: Likewise.
56355         * soft-fp/floatuntidf.c: Likewise.
56356         * soft-fp/floatuntisf.c: Likewise.
56357         * soft-fp/floatuntitf.c: Likewise.
56358         * soft-fp/fmadf4.c: Likewise.
56359         * soft-fp/fmasf4.c: Likewise.
56360         * soft-fp/fmatf4.c: Likewise.
56361         * soft-fp/gedf2.c: Likewise.
56362         * soft-fp/gesf2.c: Likewise.
56363         * soft-fp/getf2.c: Likewise.
56364         * soft-fp/ledf2.c: Likewise.
56365         * soft-fp/lesf2.c: Likewise.
56366         * soft-fp/letf2.c: Likewise.
56367         * soft-fp/muldf3.c: Likewise.
56368         * soft-fp/mulsf3.c: Likewise.
56369         * soft-fp/multf3.c: Likewise.
56370         * soft-fp/negdf2.c: Likewise.
56371         * soft-fp/negsf2.c: Likewise.
56372         * soft-fp/negtf2.c: Likewise.
56373         * soft-fp/op-1.h: Likewise.
56374         * soft-fp/op-2.h: Likewise.
56375         * soft-fp/op-4.h: Likewise.
56376         * soft-fp/op-8.h: Likewise.
56377         * soft-fp/op-common.h: Likewise.
56378         * soft-fp/quad.h: Likewise.
56379         * soft-fp/single.h: Likewise.
56380         * soft-fp/soft-fp.h: Likewise.
56381         * soft-fp/sqrtdf2.c: Likewise.
56382         * soft-fp/sqrtsf2.c: Likewise.
56383         * soft-fp/sqrttf2.c: Likewise.
56384         * soft-fp/subdf3.c: Likewise.
56385         * soft-fp/subsf3.c: Likewise.
56386         * soft-fp/subtf3.c: Likewise.
56387         * soft-fp/truncdfsf2.c: Likewise.
56388         * soft-fp/trunctfdf2.c: Likewise.
56389         * soft-fp/trunctfsf2.c: Likewise.
56390         * soft-fp/trunctfxf2.c: Likewise.
56391         * soft-fp/unorddf2.c: Likewise.
56392         * soft-fp/unordsf2.c: Likewise.
56393         * soft-fp/unordtf2.c: Likewise.
56394
56395 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
56396
56397         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
56398         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
56399
56400 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
56401
56402         * elf/dl-libc.c: Clear initfini list after freeing.
56403
56404 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
56405
56406         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
56407         * soft-fp/addsf3.c: Likewise.
56408         * soft-fp/addtf3.c: Likewise.
56409         * soft-fp/divdf3.c: Likewise.
56410         * soft-fp/divsf3.c: Likewise.
56411         * soft-fp/divtf3.c: Likewise.
56412         * soft-fp/double.h: Likewise.
56413         * soft-fp/eqdf2.c: Likewise.
56414         * soft-fp/eqsf2.c: Likewise.
56415         * soft-fp/eqtf2.c: Likewise.
56416         * soft-fp/extenddftf2.c: Likewise.
56417         * soft-fp/extended.h: Likewise.
56418         * soft-fp/extendsfdf2.c: Likewise.
56419         * soft-fp/extendsftf2.c: Likewise.
56420         * soft-fp/extendxftf2.c: Likewise.
56421         * soft-fp/fixdfdi.c: Likewise.
56422         * soft-fp/fixdfsi.c: Likewise.
56423         * soft-fp/fixdfti.c: Likewise.
56424         * soft-fp/fixsfdi.c: Likewise.
56425         * soft-fp/fixsfsi.c: Likewise.
56426         * soft-fp/fixsfti.c: Likewise.
56427         * soft-fp/fixtfdi.c: Likewise.
56428         * soft-fp/fixtfsi.c: Likewise.
56429         * soft-fp/fixtfti.c: Likewise.
56430         * soft-fp/fixunsdfdi.c: Likewise.
56431         * soft-fp/fixunsdfsi.c: Likewise.
56432         * soft-fp/fixunsdfti.c: Likewise.
56433         * soft-fp/fixunssfdi.c: Likewise.
56434         * soft-fp/fixunssfsi.c: Likewise.
56435         * soft-fp/fixunssfti.c: Likewise.
56436         * soft-fp/fixunstfdi.c: Likewise.
56437         * soft-fp/fixunstfsi.c: Likewise.
56438         * soft-fp/fixunstfti.c: Likewise.
56439         * soft-fp/floatdidf.c: Likewise.
56440         * soft-fp/floatdisf.c: Likewise.
56441         * soft-fp/floatditf.c: Likewise.
56442         * soft-fp/floatsidf.c: Likewise.
56443         * soft-fp/floatsisf.c: Likewise.
56444         * soft-fp/floatsitf.c: Likewise.
56445         * soft-fp/floattidf.c: Likewise.
56446         * soft-fp/floattisf.c: Likewise.
56447         * soft-fp/floattitf.c: Likewise.
56448         * soft-fp/floatundidf.c: Likewise.
56449         * soft-fp/floatundisf.c: Likewise.
56450         * soft-fp/floatunsidf.c: Likewise.
56451         * soft-fp/floatunsisf.c: Likewise.
56452         * soft-fp/floatuntidf.c: Likewise.
56453         * soft-fp/floatuntisf.c: Likewise.
56454         * soft-fp/floatuntitf.c: Likewise.
56455         * soft-fp/fmadf4.c: Likewise.
56456         * soft-fp/fmasf4.c: Likewise.
56457         * soft-fp/fmatf4.c: Likewise.
56458         * soft-fp/gedf2.c: Likewise.
56459         * soft-fp/gesf2.c: Likewise.
56460         * soft-fp/getf2.c: Likewise.
56461         * soft-fp/ledf2.c: Likewise.
56462         * soft-fp/lesf2.c: Likewise.
56463         * soft-fp/letf2.c: Likewise.
56464         * soft-fp/muldf3.c: Likewise.
56465         * soft-fp/mulsf3.c: Likewise.
56466         * soft-fp/multf3.c: Likewise.
56467         * soft-fp/negdf2.c: Likewise.
56468         * soft-fp/negsf2.c: Likewise.
56469         * soft-fp/negtf2.c: Likewise.
56470         * soft-fp/op-1.h: Likewise.
56471         * soft-fp/op-2.h: Likewise.
56472         * soft-fp/op-4.h: Likewise.
56473         * soft-fp/op-8.h: Likewise.
56474         * soft-fp/op-common.h: Likewise.
56475         * soft-fp/quad.h: Likewise.
56476         * soft-fp/single.h: Likewise.
56477         * soft-fp/soft-fp.h: Likewise.
56478         * soft-fp/sqrtdf2.c: Likewise.
56479         * soft-fp/sqrtsf2.c: Likewise.
56480         * soft-fp/sqrttf2.c: Likewise.
56481         * soft-fp/subdf3.c: Likewise.
56482         * soft-fp/subsf3.c: Likewise.
56483         * soft-fp/subtf3.c: Likewise.
56484         * soft-fp/truncdfsf2.c: Likewise.
56485         * soft-fp/trunctfdf2.c: Likewise.
56486         * soft-fp/trunctfsf2.c: Likewise.
56487         * soft-fp/trunctfxf2.c: Likewise.
56488         * soft-fp/unorddf2.c: Likewise.
56489         * soft-fp/unordsf2.c: Likewise.
56490         * soft-fp/unordtf2.c: Likewise.
56491
56492 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
56493
56494         [BZ #15672]
56495         * misc/error.c (error_tail): Fix possible buffer overflow.
56496
56497 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
56498
56499         [BZ #13028]
56500         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
56501         address.
56502
56503 2013-10-14  P. J. McDermott  <pj@pehjota.net>
56504
56505         [BZ #832]
56506         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
56507         testing pipefail option.
56508
56509 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
56510
56511         * soft-fp/double.h: Indent preprocessor directives inside #if.
56512         * soft-fp/extended.h: Likewise.
56513         * soft-fp/op-2.h: Likewise.
56514         * soft-fp/op-4.h: Likewise.
56515         * soft-fp/op-common.h: Likewise.
56516         * soft-fp/quad.h: Likewise.
56517         * soft-fp/single.h: Likewise.
56518         * soft-fp/soft-fp.h: Likewise.
56519
56520 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
56521
56522         * iconv/iconv_prog.c: Fix typos.
56523         * stdio-common/psiginfo-data.h: Likewise.
56524
56525 2013-10-12   Reuben Thomas <rrt@sc3d.org>
56526
56527         [BZ #15764]
56528         * locale/setlocale.c: Fix typo.
56529
56530 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
56531
56532         [BZ #16036]
56533         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
56534         signaling NaN arguments.
56535         * soft-fp/unordsf2.c (__unordsf2): Likewise.
56536         * soft-fp/unordtf2.c (__unordtf2): Likewise.
56537
56538         [BZ #14910]
56539         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
56540         unordered operands.
56541         * soft-fp/gesf2.c (__gesf2): Likewise.
56542         * soft-fp/getf2.c (__getf2): Likewise.
56543         * soft-fp/ledf2.c (__ledf2): Likewise.
56544         * soft-fp/lesf2.c (__lesf2): Likewise.
56545         * soft-fp/letf2.c (__letf2): Likewise.
56546
56547         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
56548         * soft-fp/eqsf2.c (__eqsf2): Likewise.
56549         * soft-fp/eqtf2.c (__eqtf2): Likewise.
56550         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
56551         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
56552         * soft-fp/fixdfti.c (__fixdfti): Likewise.
56553         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
56554         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
56555         * soft-fp/fixsfti.c (__fixsfti): Likewise.
56556         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
56557         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
56558         * soft-fp/fixtfti.c (__fixtfti): Likewise.
56559         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
56560         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
56561         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
56562         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
56563         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
56564         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
56565         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
56566         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
56567         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
56568         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
56569         * soft-fp/floatdisf.c (__floatdisf): Likewise.
56570         * soft-fp/floatsisf.c (__floatsisf): Likewise.
56571         * soft-fp/floattidf.c (__floattidf): Likewise.
56572         * soft-fp/floattisf.c (__floattisf): Likewise.
56573         * soft-fp/floattitf.c (__floattitf): Likewise.
56574         * soft-fp/floatundidf.c (__floatundidf): Likewise.
56575         * soft-fp/floatundisf.c (__floatundisf): Likewise.
56576         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
56577         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
56578         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
56579         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
56580         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
56581         * soft-fp/gesf2.c (__gesf2): Likewise.
56582         * soft-fp/getf2.c (__getf2): Likewise.
56583         * soft-fp/ledf2.c (__ledf2): Likewise.
56584         * soft-fp/lesf2.c (__lesf2): Likewise.
56585         * soft-fp/letf2.c (__letf2): Likewise.
56586
56587         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
56588         Undefine and redefine.
56589         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
56590         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
56591         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
56592         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
56593         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56594         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
56595         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56596         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
56597         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56598         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
56599         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56600         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
56601         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56602         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
56603         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56604
56605         [BZ #16032]
56606         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
56607         without decrementing exponent if mantissa >= that for the
56608         denominator, not >.
56609         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
56610         denominator, not >.  Decrement exponent in < case instead of
56611         incrementing in >= case.
56612         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
56613         without decrementing exponent if mantissa >= that for the
56614         denominator, not >.
56615
56616         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
56617         computing saturated result for unsigned overflow.
56618
56619 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
56620             Jeff Law  <law@redhat.com>
56621
56622         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
56623         (atan2Mp): Add systemtap probe marker.
56624         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
56625         (__ieee754_log): Add systemtap probe marker.
56626         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
56627         (atanMp): Add systemtap probe marker.
56628         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
56629         (tanMp): Add systemtap probe marker.
56630         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
56631         (__slowexp): Add systemtap probe marker.
56632         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
56633         (__slowpow): Add systemtap probe marker.
56634         * manual/probes.texi: Document probes.
56635
56636 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
56637
56638         [BZ #15362]
56639         * libio/fileops.c (_IO_new_file_write): Return count of bytes
56640         written.
56641         (_IO_new_file_xsputn): Don't return EOF if nothing has been
56642         written.
56643         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
56644         written to buffer but not flushed.
56645         * libio/iofwrite_u.c:  Likewise.
56646         * libio/iopadn.c:  Return bytes returned even if EOF was
56647         encountered.
56648         * libio/iowpadn.c:  Likewise.
56649         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
56650         if _IO_padn does not write the whole buffer.
56651         [!COMPILE_WPRINTF] (PAD): Likewise.
56652
56653 2013-10-10  David S. Miller  <davem@davemloft.net>
56654
56655         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
56656         directory block.
56657
56658 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
56659
56660         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
56661         instead of FSF address.
56662         * soft-fp/fixdfti.c: Likewise.
56663         * soft-fp/fixsfti.c: Likewise.
56664         * soft-fp/fixtfti.c: Likewise.
56665         * soft-fp/fixunsdfti.c: Likewise.
56666         * soft-fp/fixunssfti.c: Likewise.
56667         * soft-fp/fixunstfti.c: Likewise.
56668         * soft-fp/floattidf.c: Likewise.
56669         * soft-fp/floattisf.c: Likewise.
56670         * soft-fp/floattitf.c: Likewise.
56671         * soft-fp/floatuntidf.c: Likewise.
56672         * soft-fp/floatuntisf.c: Likewise.
56673         * soft-fp/floatuntitf.c: Likewise.
56674         * soft-fp/trunctfxf2.c: Likewise.
56675
56676         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
56677         * soft-fp/fixdfti.c: Likewise.
56678         * soft-fp/fixsfti.c: Likewise.
56679         * soft-fp/fixtfti.c: Likewise.
56680         * soft-fp/fixunsdfti.c: Likewise.
56681         * soft-fp/fixunssfti.c: Likewise.
56682         * soft-fp/fixunstfti.c: Likewise.
56683         * soft-fp/floattidf.c: Likewise.
56684         * soft-fp/floattisf.c: Likewise.
56685         * soft-fp/floattitf.c: Likewise.
56686         * soft-fp/floatuntidf.c: Likewise.
56687         * soft-fp/floatuntisf.c: Likewise.
56688         * soft-fp/floatuntitf.c: Likewise.
56689         * soft-fp/trunctfxf2.c: Likewise.
56690
56691 2013-10-10  David S. Miller  <davem@davemloft.net>
56692
56693         * sysdeps/sparc/fpu/libm-test-ulps: Update.
56694
56695 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
56696
56697         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
56698         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
56699         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
56700         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
56701         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
56702         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
56703         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
56704
56705         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
56706         for NaNs before doing comparisons on argument.
56707         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
56708         Likewise.
56709
56710 2013-10-10  Will Newton  <will.newton@linaro.org>
56711
56712         * malloc/hooks.c (memalign_check): Ensure the value of bytes
56713         passed to _int_memalign does not overflow.
56714
56715 2013-10-10  Torvald Riegel  <triegel@redhat.com>
56716
56717         * scripts/bench.pl: Add include-sources directive.
56718         * benchtests/README: Update documentation.
56719
56720 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
56721
56722         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
56723         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
56724         instead of FP_INIT_ROUNDMODE.
56725         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
56726         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
56727
56728         [BZ #16034]
56729         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
56730         copy class of input value.
56731         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
56732         not handle exceptions.
56733         * soft-fp/negsf2.c (__negsf2): Likewise.
56734         * soft-fp/negtf2.c (__negtf2): Likewise.
56735         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
56736
56737 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
56738
56739         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
56740         semicolon.  From Linux kernel.
56741
56742 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
56743
56744         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
56745
56746 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
56747
56748         [BZ #156]
56749         * manual/socket.texi: Added statement about buffer
56750         for gethostbyname2_r.
56751
56752 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
56753
56754         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
56755         Use .p2align directive instead, throughout.
56756         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
56757         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
56758         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
56759         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
56760         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
56761         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
56762         * sysdeps/x86_64/strchr.S: Likewise.
56763         * sysdeps/x86_64/strrchr.S: Likewise.
56764
56765 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
56766
56767         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
56768
56769         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
56770
56771         * sysdeps/generic/math_private.h (__mpsin1): Remove
56772         declaration.
56773         (__mpcos1): Likewise.
56774         (__mpsin): New argument __range_reduce.
56775         (__mpcos): Likewise.
56776         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
56777         (slow): Use __mpsin and __mpcos.
56778         (slow1): Likewise.
56779         (slow2): Likewise.
56780         (sloww): Likewise.
56781         (sloww1): Likewise.
56782         (sloww2): Likewise.
56783         (bsloww): Likewise.
56784         (bsloww1): Likewise.
56785         (bsloww2): Likewise.
56786         (cslow2): Likewise.
56787         (csloww): Likewise.
56788         (csloww1): Likewise.
56789         (csloww2): Likewise.
56790         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
56791         range_reduce.  Merge in __mpsin1.
56792         (__mpcos): Likewise.
56793         (__mpsin1): Remove.
56794         (__mpcos1): Likewise.
56795
56796 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
56797
56798         * locale/loadlocale.c (_nl_intern_locale_data): Use
56799         LOCFILE_ALIGNED_P.
56800         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
56801         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
56802         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
56803         obstack data is appropriately aligned.
56804         (obstack_int32_grow_fast): Likewise.
56805         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
56806         * locale/programs/locfile.c (add_locale_uint32): Likewise.
56807         (add_locale_uint32_array): Likewise.
56808
56809 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
56810
56811         * benchtests/Makefile: Remove ARGLIST and RET variables.
56812         ($(objpfx)bench-%.c): Pass only function name to the script.
56813         * benchtests/README: Update documentation.
56814         * benchtests/acos-inputs: Add new directives.
56815         * benchtests/acosh-inputs: Likewise.
56816         * benchtests/asin-inputs: Likewise.
56817         * benchtests/asinh-inputs: Likewise.
56818         * benchtests/atan-inputs: Likewise.
56819         * benchtests/atanh-inputs: Likewise.
56820         * benchtests/cos-inputs: Likewise.
56821         * benchtests/cosh-inputs: Likewise.
56822         * benchtests/exp-inputs: Likewise.
56823         * benchtests/log-inputs: Likewise.
56824         * benchtests/pow-inputs: Likewise.
56825         * benchtests/rint-inputs: Likewise.
56826         * benchtests/sin-inputs: Likewise.
56827         * benchtests/sinh-inputs: Likewise.
56828         * benchtests/tan-inputs: Likewise.
56829         * benchtests/tanh-inputs: Likewise.
56830         * scripts/bench.pl: Add support for new directives.
56831
56832 2013-10-07  Alan Modra  <amodra@gmail.com>
56833
56834         * README: Fix careless merge.
56835
56836 2013-10-05  Alan Modra  <amodra@gmail.com>
56837
56838         * NEWS: Mention powerpc64le support and bugs fixed.
56839         * README: Both big-endian and little-endian powerpc64 supported.
56840
56841 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
56842
56843         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
56844         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
56845         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
56846         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
56847
56848 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
56849
56850         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
56851         match prototype.
56852
56853 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
56854
56855         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
56856         Move -mhard-float appending from
56857         ports/sysdeps/powerpc/powerpc32/Makefile.
56858         [$(with-fp) = yes] (ASFLAGS): Likewise.
56859         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
56860         * sysdeps/powerpc/nofpu: Move directory from
56861         ports/sysdeps/powerpc/nofpu.
56862         * sysdeps/powerpc/soft-fp: Move directory from
56863         ports/sysdeps/powerpc/soft-fp.
56864         * sysdeps/powerpc/powerpc32/405: Move directory from
56865         ports/sysdeps/powerpc/powerpc32/405.
56866         * sysdeps/powerpc/powerpc32/440: Move directory from
56867         ports/sysdeps/powerpc/powerpc32/440.
56868         * sysdeps/powerpc/powerpc32/464: Move directory from
56869         ports/sysdeps/powerpc/powerpc32/464.
56870         * sysdeps/powerpc/powerpc32/476: Move directory from
56871         ports/sysdeps/powerpc/powerpc32/476.
56872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
56873         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
56874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
56875         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
56876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
56877         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
56878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
56879         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
56880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
56881         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
56882         * README: Update for powerpc-*-linux-gnu software floating point
56883         support in libc.
56884
56885         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
56886         case to powerpc/powerpc32*.
56887         * sysdeps/unix/sysv/linux/configure: Regenerated.
56888
56889         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
56890         (_FPU_MASK_OM): Define as 0x04.
56891         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
56892         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
56893         0x00c10080.
56894         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
56895         0x0000003c.
56896         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
56897
56898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
56899         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
56900         getcontext_e500.
56901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
56902         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
56903         setcontext_e500.
56904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
56905         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
56906         and setcontext_e500.
56907
56908 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
56909
56910         * locale/iso-3166.def: Update iso-1366.def and related occurrences
56911
56912 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
56913
56914         * manual/threads.texi (Default Thread Attributes): Fix typo.
56915
56916 2013-10-04  Will Newton  <will.newton@linaro.org>
56917
56918         * malloc/Makefile: Add tst-memalign.
56919         * malloc/tst-memalign.c: New file.
56920
56921         * malloc/tst-posix_memalign.c: Add comments.
56922         (do_test): Add comments and call free on all potentially
56923         allocated pointers. Add space after cast.
56924
56925         * malloc/tst-pvalloc.c: Add comments.
56926         (do_test): Add comments and call free on all potentially
56927         allocated pointers. Remove duplicate check for NULL pointer.
56928         Add space after cast.
56929
56930         * malloc/tst-valloc.c: Add comments.
56931         (do_test): Add comments and call free on all potentially
56932         allocated pointers. Remove duplicate check for NULL pointer.
56933         Add space after cast.
56934
56935 2013-10-04  Alan Modra  <amodra@gmail.com>
56936
56937         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
56938         Use stdint types in rather than __attribute__((mode())).
56939         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
56940
56941 2013-10-04  Alan Modra  <amodra@gmail.com>
56942
56943         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
56944         Correct handling of unaligned relocs for little-endian.
56945         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
56946
56947 2013-10-04  Alan Modra  <amodra@gmail.com>
56948
56949         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
56950         * configure: Regenerate.
56951         * nptl/shlib-versions: Powerpc*le starts at 2.18.
56952         * shlib-versions: Likewise.
56953
56954 2013-10-04  Alan Modra  <amodra@gmail.com>
56955
56956         * string/tester.c (test_memrchr): Increment reported test cycle.
56957
56958 2013-10-04  Alan Modra  <amodra@gmail.com>
56959
56960         * string/test-memcpy.c (do_one_test): When reporting errors, print
56961         string address and don't overrun end of string.
56962
56963 2013-10-04  Alan Modra  <amodra@gmail.com>
56964
56965         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
56966         insrdi.  Make better use of reg selection to speed exit slightly.
56967         Schedule entry path a little better.  Remove useless "are we done"
56968         checks on entry to main loop.  Handle wrapping around zero address.
56969         Correct main loop count.  Handle single left-over word from main
56970         loop inline rather than by using loop_small.  Remove extra word
56971         case in loop_small caused by wrong loop count.  Add little-endian
56972         support.
56973         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
56974         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
56975         cache hint.
56976         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
56977         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
56978         support.  Avoid rlwimi.
56979         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
56980
56981 2013-10-04  Alan Modra  <amodra@gmail.com>
56982
56983         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
56984         insrdi.  Formatting.
56985         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
56986         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
56987         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
56988         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
56989         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
56990         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
56991
56992 2013-10-04  Alan Modra  <amodra@gmail.com>
56993
56994         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
56995         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
56996         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
56997         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
56998         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
56999         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
57000         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
57001         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
57002         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
57003         use of regs.  Use power7 mtocrf.  Tidy function tails.
57004
57005 2013-10-04  Alan Modra  <amodra@gmail.com>
57006
57007         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
57008         Formatting.  Consistently use rXXX register defines or rN defines.
57009         Use early exit labels that avoid restoring unused non-volatile regs.
57010         Make cr field use more consistent with rWORDn compares.  Rename
57011         regs used as shift registers for unaligned loop, using rN defines
57012         for short lifetime/multiple use regs.
57013         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
57014         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
57015         addi 1,1,64 to pop stack frame.  Simplify return value code.
57016         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
57017
57018 2013-10-04  Alan Modra  <amodra@gmail.com>
57019
57020         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
57021         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
57022         rather than rlwimi.
57023         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
57024         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
57025         little-endian support.  Correct typos.
57026         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
57027         rather than rlwimi.
57028         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
57029         in loop and entry code to keep "and." results.
57030         (strchr): Add little-endian support.  Comment.  Move cntlzd
57031         earlier in tail.
57032         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
57033
57034 2013-10-04  Alan Modra  <amodra@gmail.com>
57035
57036         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
57037         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
57038         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
57039         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
57040
57041 2013-10-04  Alan Modra  <amodra@gmail.com>
57042
57043         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
57044         (rTMP): Define as r11.
57045         (strcmp): Add little-endian support.  Optimise tail.
57046         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
57047         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
57048         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
57049         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
57050         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
57051         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
57052         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
57053
57054 2013-10-04  Alan Modra  <amodra@gmail.com>
57055
57056         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
57057         little-endian support.  Remove unnecessary "are we done" tests.
57058         Handle "s" wrapping around zero and extremely large "size".
57059         Correct main loop count.  Handle single left-over word from main
57060         loop inline rather than by using small_loop.  Correct comments.
57061         Delete "zero" tail, use "end_max" instead.
57062         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
57063
57064 2013-10-04  Alan Modra  <amodra@gmail.com>
57065
57066         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
57067         support.  Don't branch over align.
57068         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
57069         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
57070         support.  Rearrange tmp reg use to suit.  Comment.
57071         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
57072
57073 2013-10-04  Alan Modra  <amodra@gmail.com>
57074
57075         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
57076
57077 2013-10-04  Alan Modra  <amodra@gmail.com>
57078
57079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
57080         conditional form of branch and link when obtaining pc.
57081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
57082
57083 2013-10-04  Alan Modra  <amodra@gmail.com>
57084
57085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
57086         HIWORD/LOWORD.
57087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
57088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
57089
57090 2013-10-04  Alan Modra  <amodra@gmail.com>
57091
57092         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
57093         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
57094         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
57095         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
57096         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
57097         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
57098         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
57099         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
57100         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
57101         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
57102
57103 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57104             Alistair Popple <alistair@ozlabs.au.ibm.com>
57105             Alan Modra <amodra@gmail.com>
57106
57107         [BZ #15723]
57108         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
57109         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
57110         _dl_hwcap access for little-endian.
57111         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
57112         destroy vmx regs when saving unaligned.
57113         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
57114         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
57115         destroy vmx regs when saving unaligned.
57116
57117 2013-10-04  Alan Modra  <amodra@gmail.com>
57118
57119         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
57120         Don't use a union to pack hi/low value.
57121
57122 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57123
57124         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
57125         for little-endian.
57126         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
57127         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
57128         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
57129         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
57130         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
57131
57132 2013-10-04  Alan Modra  <amodra@gmail.com>
57133
57134         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
57135         constants to usual value for .cst8 section, and remove redundant
57136         high address load.
57137         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
57138         constant for 0x1p52.  Load little-endian words of double from
57139         correct stack offsets.
57140
57141 2013-10-04  Alan Modra  <amodra@gmail.com>
57142
57143         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
57144         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
57145         words of double from correct stack offsets.
57146         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
57147         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
57148         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
57149         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
57150         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
57151         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
57152         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
57153         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
57154         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
57155         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
57156         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
57157         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
57158         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
57159         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
57160         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
57161         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
57162         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
57163
57164 2013-10-04  Alan Modra  <amodra@gmail.com>
57165
57166         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
57167         64-bit int/double union.
57168         (_FPU_SETCW): Likewise.
57169         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
57170         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
57171
57172 2013-10-04  Alan Modra  <amodra@gmail.com>
57173
57174         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
57175         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
57176
57177 2013-10-04  Alan Modra  <amodra@gmail.com>
57178
57179         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
57180         use vector int constants.
57181         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
57182
57183 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57184
57185         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
57186         array with long long.
57187         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
57188         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
57189         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
57190         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
57191         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
57192         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
57193         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
57194         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
57195         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
57196         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
57197         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
57198         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
57199         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
57200
57201 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57202
57203         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
57204         (__signbit): Likewise.  Correct for little-endian.
57205         (__signbitl): Call __signbit.
57206         (lrint): Correct for little-endian.
57207         (lrintf): Call lrint.
57208
57209 2013-10-04  Alan Modra  <amodra@gmail.com>
57210
57211         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
57212         union 32-bit int array member with 64-bit int array.
57213         (t515, tm256): Double rather than long double.
57214         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
57215
57216 2013-10-04  Alan Modra  <amodra@gmail.com>
57217
57218         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
57219         Delete.
57220         (IEEE854_LONG_DOUBLE_BIAS): Delete.
57221         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
57222         version of math_ldbl.h.
57223
57224 2013-10-04  Alan Modra  <amodra@gmail.com>
57225
57226         [BZ #15734], [BZ #15735]
57227         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
57228         all uses of ieee875 long double macros and unions.  Simplify test
57229         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
57230         ldbl_extract_mantissa value for ix,iy exponents.  Properly
57231         normalize after ldbl_extract_mantissa, and don't add hidden bit
57232         already handled.  Don't treat low word of ieee854 mantissa like
57233         low word of IBM long double and mask off bit when testing for
57234         zero.
57235         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
57236         all uses of ieee875 long double macros and unions.  Simplify tests
57237         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
57238         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
57239         two1022, instead use their values.  Recognise that tests for large
57240         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
57241         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
57242         Rewrite all uses of ieee875 long double macros and unions.  Simplify
57243         test for 0.0L and nan.  Correct negation.
57244         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
57245         ieee875 long double macros and unions.  Correct output for large
57246         magnitude x.  Correct absolute value calculation.
57247         (__erfcl): Likewise.
57248         * math/libm-test.inc: Add tests for errors discovered in IBM long
57249         double versions of fmodl, remainderl, erfl and erfcl.
57250
57251 2013-10-04  Alan Modra  <amodra@gmail.com>
57252
57253         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
57254         all uses of ieee854 long double macros and unions.  Simplify tests
57255         for long doubles that are fully specified by the high double.
57256         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
57257         Likewise.
57258         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
57259         Remove dead code too.
57260         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
57261         (__ieee754_ynl): Likewise.
57262         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
57263         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
57264         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
57265         Remove dead code too.
57266         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
57267         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
57268         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
57269         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
57270         Simplify.
57271         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
57272         Simplify.
57273         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
57274         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
57275         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
57276         Comment on variable precision.
57277         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
57278         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
57279         Likewise.
57280         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
57281         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
57282         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
57283         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
57284         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
57285
57286 2013-10-04  Alan Modra  <amodra@gmail.com>
57287
57288         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
57289         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
57290         all uses of ieee854 long double macros and unions.
57291         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
57292         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
57293         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
57294         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
57295         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
57296         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
57297         Likewise.
57298         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
57299         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
57300         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
57301         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
57302         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
57303         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
57304         Simplify sign and nan test too.
57305         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
57306         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
57307         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
57308         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
57309         Likewise.
57310         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
57311         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
57312         Likewise.
57313         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
57314         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
57315         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
57316         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
57317         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
57318         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
57319
57320 2013-10-04  Alan Modra  <amodra@gmail.com>
57321
57322         * stdio-common/printf_size.c (__printf_size): Don't use
57323         union ieee854_long_double in fpnum union.
57324         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
57325         signbit macro to retrieve sign from long double.
57326         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
57327         retrieve sign from long double.
57328         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
57329         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
57330         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
57331         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
57332         * math/test-misc.c (main): Don't use union ieee854_long_double.
57333
57334 2013-10-04  Alan Modra  <amodra@gmail.com>
57335
57336         [BZ #15680]
57337         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
57338         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
57339         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
57340         calculation.  Remove unnecessary test for denormal exponent.
57341         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
57342         Correct handling of denormals.  Avoid undefined shift behaviour.
57343         Correct normalisation of low mantissa when low double is denormal.
57344         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
57345         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
57346         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
57347         Correct normalisation of low mantissa.  Test for overflow of high
57348         mantissa and normalise.
57349         (ldbl_nearbyint): Use more readable constant for two52.
57350         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
57351         (__mpn_construct_long_double): Fix test for overflow of high
57352         mantissa and correct normalisation.  Avoid undefined shift.
57353
57354 2013-10-04  Alan Modra  <amodra@gmail.com>
57355
57356         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
57357         (union ibm_extended_long_double): Define as an array of ieee754_double.
57358         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
57359         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
57360         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
57361         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
57362         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
57363         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
57364         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
57365         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
57366         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
57367         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
57368         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57369
57370 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
57371
57372         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
57373         page size instead of calling getpagesize.
57374
57375         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
57376         (LOCFILE_ALIGN_MASK): Likewise.
57377         (LOCFILE_ALIGN_UP): Likewise.
57378         (LOCFILE_ALIGNED_P): Likewise.
57379         * locale/programs/ld-collate.c (collate_output): Use the new
57380         macros instead of __alignof__ (int32_t).
57381         * locale/weight.h (findidx): Likewise.
57382
57383 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
57384
57385         [BZ #431]
57386         * manual/string.texi: Fix strncat and wcsncat.
57387
57388 2013-10-03  Brooks Moses  <bmoses@google.com>
57389
57390         [BZ #15915]
57391         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
57392         * Makerules: ...here, and adjust associated comments.
57393
57394 2013-10-02  Will Newton  <will.newton@linaro.org>
57395
57396         * malloc/Makefile: Add tst-pvalloc.
57397         * malloc/tst-pvalloc.c: New file.
57398
57399 2013-10-02  Will Newton  <will.newton@linaro.org>
57400
57401         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
57402         improve test coverage.
57403
57404 2013-10-02  Will Newton  <will.newton@linaro.org>
57405
57406         * malloc/Makefile: Add tst-posix_memalign.
57407         * malloc/tst-posix_memalign.c: New file.
57408
57409 2013-10-01  Eric Blake  <eblake@redhat.com>
57410
57411         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
57412         Use __THROWNL rather than __THROW on static functions.
57413
57414 2013-09-30  Petr Machata  <pmachata@redhat.com>
57415
57416         * elf/elf.h (R_AARCH64_ABS16): New macro.
57417         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
57418         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
57419         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
57420         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
57421         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
57422         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
57423         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
57424         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
57425         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
57426         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
57427         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
57428         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
57429         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
57430         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
57431         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
57432         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
57433         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
57434         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
57435         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
57436         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
57437         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
57438         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
57439         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
57440         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
57441         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
57442         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
57443         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
57444         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
57445         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
57446         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
57447         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
57448         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
57449         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
57450         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
57451         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
57452         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
57453         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
57454         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
57455         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
57456         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
57457         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
57458         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
57459         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
57460         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
57461         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
57462         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
57463         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
57464         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
57465         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
57466         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
57467         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
57468         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
57469         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
57470         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
57471         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
57472         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
57473         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
57474         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
57475         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
57476         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
57477         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
57478         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
57479         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
57480         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
57481         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
57482         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
57483         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
57484         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
57485         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
57486         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
57487         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
57488         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
57489         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
57490         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
57491         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
57492         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
57493         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
57494         (R_AARCH64_TLSDESC_LDR): Likewise.
57495         (R_AARCH64_TLSDESC_ADD): Likewise.
57496         (R_AARCH64_TLSDESC_CALL): Likewise.
57497
57498 2013-09-30  Andreas Schwab  <schwab@suse.de>
57499
57500         [BZ #15048]
57501         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
57502         the nss database lookup.
57503         * nscd/initgrcache.c (addinitgroupsX): Likewise.
57504         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
57505
57506 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
57507
57508         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
57509
57510 2013-09-28  P. J. McDermott  <pj@pehjota.net>
57511
57512         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
57513         ${Bash-specific parameter/pattern/string} parameter expansion.
57514         * sysdeps/unix/make-syscalls.sh: Likewise.
57515
57516 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
57517
57518         * sysdeps/sh/stackguard-macros.h: New file.
57519
57520 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
57521
57522         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
57523         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
57524         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
57525         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
57526         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
57527         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
57528
57529 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57530
57531         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
57532         Fix thread ID register.
57533
57534 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
57535
57536         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
57537         [POSIX || UNIX98]: Require rather than permitting all symbols from
57538         <time.h>.
57539         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
57540         element of struct sched_param.
57541         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
57542         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
57543         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
57544         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
57545         constant.
57546
57547 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
57548
57549         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
57550         argument calculation.
57551
57552 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
57553
57554         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
57555         Expect macro.
57556         [POSIX] (pthread_attr_t): Do not require type.
57557         [POSIX] (pthread_cond_t): Likewise.
57558         [POSIX] (pthread_condattr_t): Likewise.
57559         [POSIX] (pthread_key_t): Likewise.
57560         [POSIX] (pthread_mutex_t): Likewise.
57561         [POSIX] (pthread_mutexattr_t): Likewise.
57562         [POSIX] (pthread_once_t): Likewise.
57563         [POSIX] (pthread_t): Likewise.
57564         [POSIX-based standards] (pthread_atfork): Expect function.
57565
57566 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
57567             Richard Sandiford  <richard@codesourcery.com>
57568
57569         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
57570         (swap_endianness_p): New extern variable.
57571         (set_big_endian): New inline function.
57572         (maybe_swap_uint32): Likewise.
57573         (maybe_swap_uint32_array): Likewise.
57574         (maybe_swap_uint32_obstack): Likewise.
57575         * locale/programs/locfile.c: Include <stdbool.h>.
57576         (swap_endianness_p): New variable.
57577         (add_locale_uint32): Call maybe_swap_uint32.
57578         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
57579         (write_locale_data): Call maybe_swap_uint32_array.
57580         * locale/programs/ld-collate.c (obstack_int32_grow): Call
57581         maybe_swap_uint32.
57582         (obstack_int32_grow_fast): Likewise.
57583         (output_weightwc): Call maybe_swap_uint32_obstack.
57584         (collate_output): Likewise.
57585         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
57586         (OPT_LITTLE_ENDIAN): Likewise.
57587         (options): Add --little-endian and --big-endian options.
57588         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
57589         * locale/programs/locarchive.c: Include "locfile.h".
57590         (GET): New macro.
57591         (SET): Likewise.
57592         (INC): Likewise.
57593         (create_archive): Use the new macros to access fields of
57594         structures directly mapped from or written to locale archives.
57595         (oldlocrecentcmp): Likewise.
57596         (enlarge_archive): Likewise.
57597         (insert_name): Likewise.
57598         (add_alias): Likewise.
57599         (add_locale): Likewise.
57600         (delete_locales_from_archive): Likewise.
57601         (show_archive_content): Likewise.
57602         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
57603         locale data.
57604
57605 2013-09-24  Roland McGrath  <roland@hack.frob.com>
57606
57607         * manual/freemanuals.texi: Updated from (newly) canonical copy at
57608         http://www.gnu.org/doc/freemanuals.texi.
57609         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
57610
57611 2013-09-24  Will Newton  <will.newton@linaro.org>
57612
57613         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
57614         macro.
57615
57616 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
57617
57618         * locale/hashval.h (compute_hashval): Interpret bytes of key as
57619         unsigned char.
57620
57621 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
57622
57623         * manual/threads.texi (POSIX Threads): Fix a typo.
57624
57625 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
57626
57627         [BZ #14547]
57628         * string/tst-strcoll-overflow.c: New test case.
57629         * string/Makefile (xtests): Add tst-strcoll-overflow.
57630         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
57631         cache if string sizes may cause integer overflow.
57632
57633         [BZ #14547]
57634         * string/strcoll_l.c (coll_seq): New members rule, idx,
57635         save_idx and back_us.
57636         (get_next_seq_nocache): New function.
57637         (do_compare_nocache): New function.
57638         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
57639         when malloc fails.
57640
57641 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
57642
57643         [BZ #15754]
57644         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
57645         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
57646         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
57647
57648         [BZ #15754]
57649         * elf/Makefile (tests): Add tst-ptrguard1.
57650         (tests-static): Add tst-ptrguard1-static.
57651         (tst-ptrguard1-ARGS): Define.
57652         (tst-ptrguard1-static-ARGS): Define.
57653         * elf/tst-ptrguard1.c: New file.
57654         * elf/tst-ptrguard1-static.c: New file.
57655         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
57656         * sysdeps/i386/stackguard-macros.h: Likewise.
57657         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
57658         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
57659         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
57660         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
57661         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
57662         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
57663
57664 2013-09-23  Hector Marco  <hecmargi@upv.es>
57665             Ismael Ripoll  <iripoll@disca.upv.es>
57666             Carlos O'Donell  <carlos@redhat.com>
57667
57668         [BZ #15754]
57669         * sysdeps/generic/stackguard-macros.h: Define
57670         __pointer_chk_guard_local and POINTER_CHK_GUARD.
57671         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
57672         Define __pointer_chk_guard_local.
57673         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
57674         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
57675
57676 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
57677
57678         [BZ #15859]
57679         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
57680
57681 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
57682
57683         * include/string.h (__ffs): Declare as hidden.
57684         * string/ffs.c (__ffs): Define as hidden.
57685         * sysdeps/i386/ffs.c (__ffs): Likewise.
57686         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
57687         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
57688         * sysdeps/s390/ffs.c (__ffs): Likewise.
57689         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
57690
57691 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
57692
57693         * NEWS: Mention malloc probes.
57694
57695         * malloc/arena.c (new_heap): New memory_heap_new probe.
57696         (grow_heap): New memory_heap_more probe.
57697         (shrink_heap): New memory_heap_less probe.
57698         (heap_trim): New memory_heap_free probe.
57699         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
57700         (systrim): New memory_sbrk_less probe.
57701         * manual/probes.texi: Document them.
57702
57703         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
57704         * manual/probes.texi: Document it.
57705
57706         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
57707         (__libc_realloc): Add memory_realloc_retry probe.
57708         (__libc_memalign): Add memory_memalign_retry probe.
57709         (__libc_valloc): Add memory_valloc_retry probe.
57710         (__libc_pvalloc): Add memory_pvalloc_retry probe.
57711         (__libc_calloc): Add memory_calloc_retry probe.
57712         * manual/probes.texi: Document them.
57713
57714         * malloc/arena.c (get_free_list): Add probe
57715         memory_arena_reuse_free_list.
57716         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
57717         and memory_arena_reuse.
57718         (arena_get2) [!PER_THREAD]: Likewise.
57719         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
57720         memory_arena_reuse_realloc.
57721         * manual/probes.texi: Document them.
57722
57723         * malloc/malloc.c (__libc_free): Add
57724         memory_mallopt_free_dyn_thresholds probe.
57725         (__libc_mallopt): Add multiple memory_mallopt probes.
57726         * manual/probes.texi: Document them.
57727
57728         * malloc/malloc.c: Include stap-probe.h.
57729         (__libc_mallopt): Add memory_mallopt probe.
57730         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
57731         * manual/probes.texi: New.
57732         * manual/Makefile (chapters): Add probes.
57733         * manual/threads.texi: Set next node.
57734
57735 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
57736
57737         [BZ #15963, #13985]
57738         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
57739         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
57740         Add `Chinese' to `nan' entry name.
57741
57742 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
57743
57744         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
57745         (POLYNOMIAL): Likewise.
57746         (TAYLOR_SINCOS): Likewise.
57747         (TAYLOR_SLOW): Likewise.
57748         (__sin): Use TAYLOR_SINCOS.
57749         (__cos): Likewise.
57750         (slow): Use TAYLOR_SLOW.
57751         (sloww): Likewise.
57752         (bsloww): Likewise.
57753         (csloww): Likewise.
57754
57755 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
57756
57757         * stdlib/strtod_l.c: Fix buffer overrun.
57758
57759 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
57760
57761         * benchtests/Makefile (bench): Add sincos.
57762         * benchtests/bench-sincos.c: New file.
57763
57764         * math/libm-test.inc (cos_test_data): New test inputs.
57765         (sin_test_data): Likewise.
57766
57767         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
57768         macro.
57769         (__sin): Use it.
57770         (__cos): Likewise.
57771         (slow1): Likewise.
57772         (slow2): Likewise.
57773         (sloww1): Likewise.
57774         (sloww2): Likewise.
57775         (bsloww1): Likewise.
57776         (bsloww2): Likewise.
57777         (cslow2): Likewise.
57778         (csloww1): Likewise.
57779         (csloww2): Likewise.
57780
57781         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
57782         function.
57783         (__sin): Use it.
57784         (__cos): Likewise.
57785
57786         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
57787         gotos.
57788         (__cos): Likewise.
57789
57790 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
57791
57792         * config.h.in (HAVE_MIPS_NAN2008): New macro.
57793         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
57794         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
57795         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
57796         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
57797         * elf/cache.c (print_entry): Handle the new cache flags.
57798
57799 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
57800             Aldy Hernandez  <aldyh@redhat.com>
57801
57802         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
57803         Change condition to [_SOFT_FLOAT].
57804         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
57805         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
57806         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
57807         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
57808         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
57809         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
57810         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
57811         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
57812         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
57813         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
57814         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
57815         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
57816         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
57817         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
57818         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
57819         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
57820         declaration.
57821
57822 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
57823
57824         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
57825         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
57826         (__longjmp): Use LOAD_GP to load saved GPRs.
57827         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
57828         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
57829         (__sigsetjmp): Use SAVE_GP to save GPRs.
57830
57831         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
57832         Do not append -msoft-float.
57833         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
57834
57835 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
57836
57837         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
57838
57839 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
57840
57841         [BZ #15966]
57842         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
57843         (_FPU_GETCW): Use initial "__" on variable and field names but not
57844         on macro parameter name.
57845         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
57846         parentheses around reference to macro parameter.
57847
57848 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
57849
57850         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
57851         prototype.
57852         (ctype_startup): Use uint32_t in cast and sizeof for
57853         ctype->charnames.
57854
57855 2013-09-11  Jia Liu  <proljc@gmail.com>
57856
57857         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
57858         __daddr_t_defined.
57859         [__FreeBSD__]: Likewise.
57860
57861 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
57862
57863         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
57864         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
57865         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
57866         (strchr): Remove __strchr_sse42 ifunc selection.
57867         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
57868         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
57869
57870 2013-09-11  Will Newton  <will.newton@linaro.org>
57871
57872         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
57873         parameter to RES. Remove hardcoded 1000 value.
57874         * benchtests/bench-skeleton.c (main): Pass RES parameter
57875         to TIMING_INIT and multiply result by 1000.
57876
57877 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57878
57879         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
57880
57881 2013-09-11  Andreas Schwab  <schwab@suse.de>
57882
57883         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
57884         if not defined.
57885         (O_TMPFILE) [__USE_GNU]: Define.
57886         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
57887         Define.
57888
57889 2013-09-11  Will Newton  <will.newton@linaro.org>
57890
57891         [BZ #15857]
57892         * malloc/malloc.c (__libc_memalign): Check the value of bytes
57893         does not overflow.
57894
57895 2013-09-11  Will Newton  <will.newton@linaro.org>
57896
57897         [BZ #15856]
57898         * malloc/malloc.c (__libc_valloc): Check the value of bytes
57899         does not overflow.
57900
57901 2013-09-11  Will Newton  <will.newton@linaro.org>
57902
57903         [BZ #15855]
57904         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
57905         does not overflow.
57906
57907 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
57908
57909         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
57910         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
57911         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
57912         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
57913         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
57914
57915 2013-09-10  Allan McRae  <allan@archlinux.org>
57916
57917         [BZ #15748]
57918         * manual/arith.texi (Parsing of Floats): Clarify
57919         cross-reference.
57920
57921         [BZ #15849]
57922         * manual/install.texi (Running make install): Mention
57923         --enable-pt-chown.
57924         * INSTALL: Regenerated.
57925
57926 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
57927
57928         * csu/init-first.c (_init): Remove the !SHARED condition around
57929         FPU control word initialization.
57930         * elf/dl-support.c (_dl_fpu_control): New variable.
57931         (_dl_aux_init) <AT_FPUCW>: Initialize it.
57932         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
57933         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
57934         * math/test-fpucw-static.c: New file.
57935         * math/test-fpucw-ieee.c: New file.
57936         * math/test-fpucw-ieee-static.c: New file.
57937         * math/Makefile (tests): Add `test-fpucw-ieee' and
57938         `$(tests-static)'.
57939         (tests-static): New variable.
57940         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
57941         dependency to...
57942         [($(build-shared),yes)]
57943         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
57944         ... this.
57945         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
57946         New dependency.
57947
57948 2013-09-09  Allan McRae  <allan@archlinux.org>
57949
57950         [BZ #15939]
57951         * manual/string.texi (Collation Functions): Fix typo in
57952         strcoll example.
57953         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
57954
57955         [BZ #15893]
57956         * stdlib/isomac.c (get_null_defines): Fix memory leak.
57957
57958         [BZ #15892]
57959         * libio/memstream.c (open_memstream): Fix memory leak.
57960         * libio/wmemstream.c (open_wmemstream): Likewise.
57961
57962         [BZ #15895]
57963         * nscd/netgroupcache.c: Fix nesting of ifdefs.
57964
57965 2013-09-09  Will Newton  <will.newton@linaro.org>
57966
57967         * malloc/Makefile: Add tst-realloc to tests.
57968         * malloc/tst-realloc.c: New file.
57969
57970 2013-09-09  Allan McRae  <allan@archlinux.org>
57971
57972         [BZ #15844]
57973         * COPYING: Update from GNU website to fix FSF address.
57974         * COPYING.LIB: Likewise.
57975
57976 2013-09-06  David S. Miller  <davem@davemloft.net>
57977
57978         * po/zh_TW.po: Update Chinese (traditional) translation from
57979         translation project.
57980
57981 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
57982             Joseph Myers  <joseph@codesourcery.com>
57983
57984         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
57985         "localeinfo.h".
57986         (obstack_chunk_alloc): New macro.
57987         (obstack_chunk_free): Likewise.
57988         (record_offset): New function.
57989         (init_locale_data): Likewise.
57990         (align_locale_data): Likewise.
57991         (add_locale_empty): Likewise.
57992         (add_locale_raw_data): Likewise.
57993         (add_locale_raw_obstack): Likewise.
57994         (add_locale_string): Likewise.
57995         (add_locale_wstring): Likewise.
57996         (add_locale_uint32): Likewise.
57997         (add_locale_uint32_array): Likewise.
57998         (add_locale_char): Likewise.
57999         (start_locale_structure): Likewise.
58000         (end_locale_structure): Likewise.
58001         (start_locale_prelude): Likewise.
58002         (end_locale_prelude): Likewise.
58003         (write_locale_data): Take locale_file structure rather than an
58004         iovec.
58005         * locale/programs/locfile.h: Include "obstack.h".
58006         (struct locale_file): Change to store locale file contents instead
58007         of header.
58008         (init_locale_data): New prototype.
58009         (align_locale_data): Likewise.
58010         (add_locale_empty): Likewise.
58011         (add_locale_raw_data): Likewise.
58012         (add_locale_raw_obstack): Likewise.
58013         (add_locale_string): Likewise.
58014         (add_locale_wstring): Likewise.
58015         (add_locale_uint32): Likewise.
58016         (add_locale_uint32_array): Likewise.
58017         (add_locale_char): Likewise.
58018         (start_locale_structure): Likewise.
58019         (end_locale_structure): Likewise.
58020         (start_locale_prelude): Likewise.
58021         (end_locale_prelude): Likewise.
58022         (write_locale_data): Update prototype.
58023         * locale/programs/3level.h (struct TABLE): Remove result field.
58024         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
58025         Use new locale_file interface.
58026         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
58027         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
58028         * locale/programs/ld-address.c (address_output): Use new
58029         locale_file interface.
58030         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
58031         NO_ADD_LOCALE.
58032         (collate_finish): Don't call collseq_table_finalize.
58033         (collate_output): Use new locale_file interface.
58034         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
58035         in file.
58036         (NO_FINALIZE): Change to NO_ADD_LOCALE.
58037         (TABLE): Move defines earlier in file.
58038         (ELEMENT): Likewise.
58039         (DEFAULT): Likewise.
58040         (wctrans_table_add): Move macro and inline function earlier in
58041         file.
58042         (struct wctype_table): Move type earlier in file.
58043         (add_locale_wctype_table): New static prototype.
58044         (struct locale_ctype_t): Use logical types instead of struct iovec
58045         pointers for members.
58046         (ctype_output): Use new locale_file interface.
58047         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
58048         new locale_file interface.
58049         (allocate_arrays): Update for use of new locale_file interface.
58050         * locale/programs/ld-identification.c (identification_output): Use
58051         new locale_file interface.
58052         * locale/programs/ld-measurement.c (measurement_output): Likewise.
58053         * locale/programs/ld-messages.c (messages_output): Likewise.
58054         * locale/programs/ld-monetary.c (monetary_output): Likewise.
58055         * locale/programs/ld-name.c (name_output): Likewise.
58056         * locale/programs/ld-numeric.c (numeric_output): Likewise.
58057         * locale/programs/ld-paper.c (paper_output): Likewise.
58058         * locale/programs/ld-telephone.c (telephone_output): Likewise.
58059         * locale/programs/ld-time.c (time_output): Likewise.
58060
58061 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58062
58063         * benchtests/Makefile: Add memrchr benchmark.
58064         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
58065         benchmark as memrchr.
58066         * benchtests/bench-memrchr-ifunc.c: New file.
58067         * benchtests/bench-memrchr.c: New file.
58068
58069 2013-09-06   Will Newton  <will.newton@linaro.org>
58070
58071         * benchtests/Makefile (string-bench): Add memcpy.
58072
58073 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
58074             Cong Wang  <amwang@redhat.com>
58075
58076         [BZ #15850]
58077         * sysdeps/unix/sysv/linux/bits/in.h
58078         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
58079         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
58080         before __USE_KERNEL_IPV6_DEFS uses.
58081         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
58082         IPPROTO_BEETPH.
58083         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
58084         sockaddr_in6, or ipv6_mreq.
58085
58086 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58087
58088         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
58089         memory access for final bytes in some large inputs.
58090         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
58091
58092 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58093
58094         * string/test-memrchr.c: New file.
58095         * string/test-memrchr-ifunc.c: New file.
58096         * string/Makefile: Add new memrchr testcase.
58097
58098 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
58099
58100         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
58101         fanotify_init returns EPERM.
58102
58103 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
58104
58105         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
58106         errors.
58107         (top level): Treat second token from macro or constant entries for
58108         allowed headers as allowed.
58109         * include/complex.h: Condition internal declarations on
58110         [!_ISOMAC].
58111         * include/fenv.h: Condition include of <stdbool.h> and internal
58112         declarations on [!_ISOMAC].
58113
58114 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
58115
58116         [BZ #15923]
58117         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
58118
58119 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
58120
58121         * configure.in (--enable-versioning): Remove configure option.
58122         (libc_cv_asm_symver_directive): Remove configure test.
58123         (libc_cv_ld_version_script_option): Likewise.
58124         (VERSIONING): Remove variable and AC_SUBST.
58125         (DO_VERSIONING): Remove AC_DEFINE.
58126         * configure: Regenerated.
58127         * config.h.in (DO_VERSIONING): Remove macro.
58128         * Makerules [$(versioning) = yes]: Change conditionals to
58129         [$(build-shared) = yes].
58130         * config.make.in (versioning): Remove variable.
58131         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
58132         [$(build-shared) = yes].
58133         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
58134         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
58135         * elf/Makefile [$(versioning) = yes]: Change conditionals to
58136         [$(build-shared) = yes].
58137         * extra-lib.mk [$(versioning) = yes]: Likewise.
58138         * hurd/Makefile [$(versioning) = yes]: Likewise.
58139         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
58140         [SHARED].
58141         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
58142         [SHARED].
58143         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
58144         [SHARED && !NO_HIDDEN].
58145         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
58146         [SHARED].
58147         [SHARED && DO_VERSIONING]: Likewise..
58148         * libio/Makefile [$(versioning) = yes]: Change conditionals to
58149         [$(build-shared) = yes].
58150         * manual/install.texi (--disable-versioning): Remove
58151         documentation.
58152         * INSTALL: Regenerated.
58153         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
58154         to [SHARED].
58155         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
58156         [$(build-shared) = yes].
58157         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
58158         * sysdeps/i386/i686/multiarch/strstr-c.c
58159         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
58160         [SHARED && !NO_HIDDEN].
58161         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
58162         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
58163         * sysdeps/powerpc/powerpc32/dl-machine.c
58164         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
58165         * sysdeps/powerpc/powerpc32/sysdep.h
58166         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
58167         to [SHARED && PIC && !NO_HIDDEN].
58168         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
58169         conditional to [SHARED].
58170
58171 2013-09-04   Will Newton  <will.newton@linaro.org>
58172
58173         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
58174         * benchtests/bench-string.h: Include bench-timing.h instead
58175         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
58176         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
58177         call to HP_TIMING_DIFF_INIT.
58178         * benchtests/bench-memccpy.c: Use bench-timing.h macros
58179         instead of hp-timing.h macros.
58180         * benchtests/bench-memchr.c: Likewise.
58181         * benchtests/bench-memcmp.c: Likewise.
58182         * benchtests/bench-memcpy.c: Likewise.
58183         * benchtests/bench-memmem.c: Likewise.
58184         * benchtests/bench-memmove.c: Likewise.
58185         * benchtests/bench-memset.c: Likewise.
58186         * benchtests/bench-rawmemchr.c: Likewise.
58187         * benchtests/bench-strcasecmp.c: Likewise.
58188         * benchtests/bench-strcasestr.c: Likewise.
58189         * benchtests/bench-strcat.c: Likewise.
58190         * benchtests/bench-strchr.c: Likewise.
58191         * benchtests/bench-strcmp.c: Likewise.
58192         * benchtests/bench-strcpy.c: Likewise.
58193         * benchtests/bench-strcpy_chk.c: Likewise.
58194         * benchtests/bench-strlen.c: Likewise.
58195         * benchtests/bench-strncasecmp.c: Likewise.
58196         * benchtests/bench-strncat.c: Likewise.
58197         * benchtests/bench-strncmp.c: Likewise.
58198         * benchtests/bench-strncpy.c: Likewise.
58199         * benchtests/bench-strnlen.c: Likewise.
58200         * benchtests/bench-strpbrk.c: Likewise.
58201         * benchtests/bench-strrchr.c: Likewise.
58202         * benchtests/bench-strspn.c: Likewise.
58203         * benchtests/bench-strstr.c: Likewise.
58204
58205 2013-09-04  Will Newton  <will.newton@linaro.org>
58206
58207         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
58208
58209 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
58210
58211         [BZ #15427]
58212         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
58213         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
58214         * math/libm-test.inc (lgamma_test_data): Add more tests.
58215         * sysdeps/i386/fpu/libm-test-ulps: Update.
58216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58217
58218 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
58219
58220         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
58221         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
58222         Add ifunc.
58223         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
58224         Add strcmp-sse2-unaligned
58225         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
58226
58227 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
58228
58229         * Versions.def (libc): Add GLIBC_2.19.
58230
58231 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
58232
58233         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
58234         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
58235
58236 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
58237
58238         [BZ #14155]
58239         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
58240         intermediate calculations in recurrence.
58241         (__ieee754_ynf): Likewise.
58242         * math/libm-test.inc (jn_test_data): Do not allow spurious
58243         underflow exception.  Add more tests.
58244         (yn_test_data): Add more tests.
58245         * sysdeps/i386/fpu/libm-test-ulps: Update.
58246         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58247
58248 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
58249
58250         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
58251
58252 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
58253
58254         * csu/init-first.c: Fix then/than typos.
58255         * locale/programs/ld-collate.c: Likewise.
58256         * locale/programs/linereader.h: Likewise.
58257         * manual/charset.texi: Likewise.
58258         * manual/filesys.texi: Likewise.
58259         * manual/stdio.texi: Likewise.
58260         * manual/string.texi: Likewise.
58261         * stdlib/fmtmsg.c: Likewise.
58262         * sysdeps/i386/stpncpy.S: Likewise.
58263         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
58264         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
58265         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
58266         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
58267
58268 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
58269
58270         * elf/dl-open.c: Fix typos.
58271         * iconvdata/gbbig5.c: Likewise.
58272         * iconvdata/iso-2022-jp.c: Likewise.
58273         * iconv/gconv_int.h: Likewise.
58274         * iconv/loop.c: Likewise.
58275         * nis/rpcsvc/nis.h: Likewise.
58276         * resolv/ns_name.c: Likewise.
58277         * stdio-common/vfscanf.c: Likewise.
58278         * streams/stropts.h: Likewise.
58279         * sunrpc/rpc_thread.c: Likewise.
58280         * sysdeps/i386/strpbrk.S: Likewise.
58281         * sysdeps/ieee754/k_standard.c: Likewise.
58282         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
58283         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
58284         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
58285         * sysdeps/mach/hurd/profil.c: Likewise.
58286         * sysdeps/s390/dl-procinfo.h: Likewise.
58287         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
58288         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
58289         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
58290         * sysdeps/x86_64/dl-trampoline.S: Likewise.
58291         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
58292
58293 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
58294
58295         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
58296         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
58297
58298 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
58299
58300         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
58301         aix specific files.
58302         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
58303         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
58304         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
58305         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
58306         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
58307         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
58308         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
58309         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
58310
58311 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
58312             Roland McGrath  <roland@hack.frob.com>
58313
58314         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
58315         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
58316
58317 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
58318
58319         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
58320         __executable_start symbol instead of _start.
58321
58322 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
58323
58324         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
58325         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
58326         Move macros to...
58327         * sysdeps/gnu/ldsodefs.h: ... this new file.
58328
58329         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
58330         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
58331         instead of ELFOSABI_LINUX.
58332
58333         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
58334         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
58335         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
58336         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
58337         Likewise.
58338         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
58339         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
58340         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
58341         Likewise.
58342         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
58343         (ibm_extended_long_double): Add ieee_nan member.
58344         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
58345         (do_test): New function.
58346
58347         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
58348         TEST_TRUNC.
58349         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
58350         functions, renamed from truncdfsf_test, trunctfsf_test,
58351         trunctfdf_test.
58352         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
58353         functions.
58354         (do_test): Run all these.
58355
58356 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
58357
58358         * argp/argp-help.c: Fix typos.
58359         * argp/argp-parse.c: Likewise.
58360         * debug/backtracesyms.c: Likewise.
58361         * elf/elf.h: Likewise.
58362         * malloc/malloc.c: Likewise.
58363         * nis/nis_print.c: Likewise.
58364         * resolv/res_comp.c: Likewise.
58365         * stdlib/stdlib.h: Likewise.
58366         * sunrpc/clnt_tcp.c: Likewise.
58367         * sunrpc/clnt_udp.c: Likewise.
58368         * sunrpc/clnt_unix.c: Likewise.
58369         * sysdeps/unix/bsd/ptsname.c: Likewise.
58370         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
58371         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
58372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
58373         Likewise.
58374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
58375         Likewise.
58376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
58377         Likewise.
58378         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
58379
58380 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
58381
58382         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
58383         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
58384
58385 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
58386
58387         [BZ #15897]
58388         * dlfcn/Makefile (tests): Add bug-dl-leaf.
58389         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
58390         ($(objpfx)bug-dl-leaf): New rule.
58391         ($(objpfx)bug-dl-leaf.so): Likewise.
58392         ($(objpfx)bug-dl-leaf.out): Likewise.
58393         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
58394         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
58395         * dlfcn/bug-dl-leaf.c: New test.
58396         * dlfcn/bug-dl-leaf-lib.c: Likewise.
58397         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
58398         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
58399         (dlclose): Likewise.
58400         (dlmopen): Likewise.
58401
58402 2013-08-27  Roland McGrath  <roland@hack.frob.com>
58403
58404         * include/netdb.h [!_ISOMAC]:
58405         Don't include <tls.h>.
58406         (h_errno, __libc_h_errno): Move declaration and macros out of
58407         [_LIBC_REENTRANT].
58408
58409         * include/resolv.h [_RESOLV_H_]:
58410         Don't include <tls.h>.
58411         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
58412         * resolv/res_libc.c: Don't include <tls.h>.
58413         (_res): Use __attribute__ ((nocommon)) in place of
58414         __attribute__ ((section (".bss"))).
58415
58416         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
58417         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
58418
58419         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
58420
58421         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
58422         only under [SIOCGIFCONF && SIOCGIFNETMASK].
58423
58424         * resolv/res_mkquery.c: Include <sys/time.h>.
58425
58426         * inet/ifreq.c: Moved to ...
58427         * sysdeps/unix/ifreq.c: ... here.
58428         * inet/ifreq.c: New file, true stub version.
58429
58430         * socket/sa_len.c: New file.
58431         * socket/Makefile (aux): Add it.
58432         * sysdeps/unix/sysv/linux/Makefile
58433         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
58434         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
58435         and #include <socket/sa_len.c>.
58436         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
58437         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
58438
58439         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
58440         * bits/socket.h: ... here.
58441
58442         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
58443         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
58444         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
58445
58446 2013-08-27  Andreas Schwab  <schwab@suse.de>
58447
58448         [BZ #15736]
58449         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
58450         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
58451         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
58452         * string/test-strcasecmp.c (test_main): Run tests in several
58453         locales.
58454         * string/test-strncasecmp.c (test_main): Likewise.
58455
58456         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
58457         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
58458         to __strcasecmp_nonascii and __strncasecmp_nonascii.
58459         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
58460         (__strncasecmp_ssse3) [PIC]: Likewise.
58461
58462 2013-08-26  Roland McGrath  <roland@hack.frob.com>
58463
58464         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
58465
58466         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
58467         instead of explicitly declaring xdecrypt.
58468         * nis/nss_nis/nis-publickey.c: Likewise.
58469
58470 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
58471
58472         [BZ #15890]
58473         * nscd/aicache.c: Include res_hconf.h.
58474         (addhstaiX): Initialize res_hconf.
58475
58476 2013-08-26  Andreas Schwab  <schwab@suse.de>
58477
58478         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
58479         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
58480
58481 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
58482
58483         * nscd/aicache.c (addhstaiX): Fix indentation.
58484
58485 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
58486
58487         * configure.ac: Quote $build_pt_chown test.
58488         * configure: Regenerated.
58489
58490 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
58491
58492         [BZ #15532]
58493         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
58494         * math/s_cexpf.c (__cexpf): Likewise.
58495         * math/s_cexpl.c (__cexpl): Likewise.
58496         * math/libm-test.inc (cexp_test_data): Correct expected return
58497         value for NaN + i0.  Add another test.
58498
58499 2013-08-22  David S. Miller  <davem@davemloft.net>
58500
58501         * po/ca.po: Update Catalan translation from translation project.
58502         * po/uk.po: Add Ukrainian translations from translation project.
58503
58504 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
58505
58506         [BZ #15797]
58507         * math/s_fdim.c (__fdim): Check for infinite arguments if result
58508         is infinite, not alongside NaN test.
58509         * math/s_fdimf.c (__fdimf): Likewise.
58510         * math/s_fdiml.c (__fdiml): Likewise.
58511         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
58512         errno is unchanged.
58513
58514 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
58515
58516         * argp/argp-help.c: Fix typos.
58517         * crypt/speeds.c: Likewise.
58518         * csu/check_fds.c: Likewise.
58519         * elf/dl-load.c: Likewise.
58520         * elf/dl-open.c: Likewise.
58521         * elf/reldep3.c: Likewise.
58522         * elf/reldep.c: Likewise.
58523         * elf/sprof.c: Likewise.
58524         * iconv/iconv_charmap.c: Likewise.
58525         * iconv/skeleton.c: Likewise.
58526         * iconv/strtab.c: Likewise.
58527         * io/lockf64.c: Likewise.
58528         * libio/libioP.h: Likewise.
58529         * resolv/gai_notify.c: Likewise.
58530         * resolv/ns_name.c: Likewise.
58531         * resolv/ns_samedomain.c: Likewise.
58532         * resolv/res_send.c: Likewise.
58533         * stdlib/random.c: Likewise.
58534         * sunrpc/rpc/xdr.h: Likewise.
58535         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
58536         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
58537         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
58538         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
58539         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
58540         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
58541         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
58542         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
58543         * sysdeps/mach/hurd/check_fds.c: Likewise.
58544         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
58545         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
58546         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
58547         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
58548         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
58549         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
58550         * sysdeps/pthread/aio_notify.c: Likewise.
58551         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
58552         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
58553         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
58554         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
58555         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
58556
58557 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
58558
58559         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
58560         version if bit_Slow_SSE4_2 is set.
58561         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
58562         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
58563
58564 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58565
58566         [BZ #15867]
58567         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
58568         trampoline stack frame information.
58569         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
58570         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
58571         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
58572         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
58573         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
58574         * sysdeps/unix/sysv/linux/powerpc/init-first.c
58575         (_libc_vdso_platform_setup): Initialize the signal trampolines.
58576         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
58577         sa_flags value.
58578         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
58579         interrupting a syscall and set with option SA_SIGINFO.
58580
58581 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
58582
58583         [BZ #15531]
58584         * math/s_cproj.c (__cproj): Only return an infinity if one part of
58585         argument is infinite.
58586         * math/s_cprojf.c (__cprojf): Likewise.
58587         * math/s_cprojl.c (__cprojl): Likewise.
58588         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
58589         * math/libm-test.inc (cproj_test_data): Add more tests.
58590
58591         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
58592
58593         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
58594         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
58595         size.  Use __ffs to determine corresponding shift.
58596
58597 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
58598             Roland McGrath  <roland@hack.frob.com>
58599
58600         * Makefile (INSTALL): Remove trailing blank lines from output of
58601         makeinfo.
58602
58603 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58604
58605         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
58606         Align 32 bit compat elf_greg to 8 bytes.
58607
58608 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
58609
58610         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
58611
58612 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
58613
58614         * string/strcoll_l.c (coll_seq): New structure.
58615         (get_next_seq_cached): New function.
58616         (get_next_seq): New function.
58617         (do_compare): New function.
58618         (STRCOLL): Use GNU style definition.  Simplify implementation
58619         by using get_next_seq, get_next_seq_cached and do_compare.
58620
58621 2013-08-16  Florian Weimer  <fweimer@redhat.com>
58622
58623         [BZ #14699]
58624         CVE-2013-4237
58625         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
58626         member.
58627         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
58628         member.
58629         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
58630         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
58631         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
58632         conditional.
58633         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
58634         GETDENTS_64BIT_ALIGNED.
58635         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
58636         * manual/filesys.texi (Reading/Closing Directory): Document
58637         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
58638         strongly.
58639         * manual/conf.texi (Limits for Files): Add portability note to
58640         NAME_MAX, PATH_MAX.
58641         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
58642
58643 2013-08-13  Andreas Schwab  <schwab@suse.de>
58644
58645         [BZ #15749]
58646         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
58647         of fabs.
58648         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
58649         LDBL_MAX_EXP >= 16384]: Add tests for it.
58650
58651 2013-08-12  David S. Miller  <davem@davemloft.net>
58652
58653         * version.h (RELEASE): Set to "development".
58654         (VERSION): Set to "2.18.90".
58655         * NEWS: Add 2.19 section.
58656
58657 2013-08-03  David S. Miller  <davem@davemloft.net>
58658
58659         * po/ko.po: Update Korean translation from translation project.
58660
58661 2013-08-01  David S. Miller  <davem@davemloft.net>
58662
58663         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
58664         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
58665         Bilka.
58666
58667 2013-07-30  David S. Miller  <davem@davemloft.net>
58668
58669         * po/fr.po: Update French translation from translation project.
58670
58671 2013-07-28  David S. Miller  <davem@davemloft.net>
58672
58673         * po/cs.po: Update Czech translation from translation project.
58674
58675         * po/sv.po: Update Swedish translation from translation project.
58676
58677 2013-07-27  David S. Miller  <davem@davemloft.net>
58678
58679         * po/eo.po: Update Esperanto translation from translation project.
58680
58681         * po/vi.po: Update Vietnamese translation from translation project.
58682
58683         * po/de.po: Update German translation from translation project.
58684
58685 2013-07-26  David S. Miller  <davem@davemloft.net>
58686
58687         * po/bg.po: Update Bulgarian translation from translation project.
58688
58689         * po/nl.po: Update Dutch translation from translation project.
58690         * po/pl.po: Update Polish translation from translation project.
58691         * po/ru.po: Update Russian translation from translation project.
58692
58693 2013-07-24  David S. Miller  <davem@davemloft.net>
58694
58695         * po/libc.pot: Update.
58696
58697 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58698
58699         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
58700         variable page size.
58701         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
58702         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
58703         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
58704
58705 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58706
58707         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
58708
58709 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
58710             Andreas Schwab  <schwab@suse.de>
58711             Roland McGrath  <roland@hack.frob.com>
58712             Joseph Myers  <joseph@codesourcery.com>
58713             Carlos O'Donell  <carlos@redhat.com>
58714
58715         [BZ #15755]
58716         * config.h.in: Define HAVE_PT_CHOWN.
58717         * config.make.in (build-pt-chown): New variable.
58718         * configure.in (--enable-pt_chown): New configure option.
58719         * configure: Regenerate.
58720         * login/Makefile: Include Makeconfig.  Build pt_chown only if
58721         build-pt-chown is enabled.
58722         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
58723         pt_chown to fix pty ownership.
58724         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
58725         CLOSE_ALL_FDS.
58726         * manual/install.texi (Configuring and compiling): Mention
58727         --enable-pt_chown. Add @findex for grantpt.
58728         * INSTALL: Regenerate.
58729
58730 2013-07-20  David S. Miller  <davem@davemloft.net>
58731
58732         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
58733         difference between 32-bit and 64-bit.
58734
58735 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
58736
58737         [BZ #15711]
58738         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
58739         Avoid system header dependency with -ffreestanding.
58740         ($(objpfx)bits/syscall%d): Likewise.
58741
58742 2013-07-13  David S. Miller  <davem@davemloft.net>
58743
58744         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
58745         underflows from atanl/atan2l due to bug 15319.
58746         (casinh_test_data): Likewise.
58747
58748 2013-07-07  David S. Miller  <davem@davemloft.net>
58749
58750         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
58751
58752 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
58753
58754         * sysdeps/i386/fpu/libm-test-ulps: Update.
58755         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58756
58757 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
58758
58759         * configure.in (--enable-lock-elision): Fix message text.
58760         * INSTALL: Regenerate.
58761         * configure: Regenerate.
58762
58763 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58764
58765         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
58766
58767 2013-07-03  Andreas Jaeger  <aj@suse.de>
58768
58769         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
58770         define.
58771         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
58772         (ptrace_peeksiginfo_args): Add.
58773         (__ptrace_peeksiginfo_flags): Add.
58774         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
58775         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
58776         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
58777
58778 2013-07-03  Allan McRae  <allan@archlinux.org>
58779
58780         * sysdeps/i386/fpu/libm-test-ulps: Update.
58781
58782 2013-07-02  David S. Miller  <davem@davemloft.net>
58783
58784         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58785
58786 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
58787
58788         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58789
58790 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
58791
58792         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
58793         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58794
58795 2013-07-02  Andi Kleen <ak@linux.intel.com>
58796
58797         * config.h.in (ENABLE_LOCK_ELISION): Add.
58798         * configure.in (--enable-lock-elision): Add option.
58799         * manual/install.texi: Document --enable lock elision.
58800         * configure: Regenerate
58801         * INSTALL: Regenerate.
58802
58803 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
58804
58805         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
58806         SSE4.2 strcasecmp for libc.a.
58807         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
58808
58809 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
58810
58811         [BZ #13304]
58812         * soft-fp/op-common.h (_FP_FMA): New macro.
58813         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
58814         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
58815         (_FP_MUL_MEAT_1_imm): ... here.
58816         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
58817         (_FP_MUL_MEAT_1_wide): ... here.
58818         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
58819         (_FP_MUL_MEAT_1_hard): ... here.
58820         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
58821         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
58822         (_FP_MUL_MEAT_2_wide): ... here.
58823         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
58824         (_FP_MUL_MEAT_2_wide_3mul): ... here.
58825         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
58826         (_FP_MUL_MEAT_2_gmp): ... here.
58827         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
58828         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
58829         (_FP_MUL_MEAT_4_wide): ... here.
58830         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
58831         (_FP_MUL_MEAT_4_gmp): ... here.
58832         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
58833         (_FP_WFRACBITS_DW_S): Likewise.
58834         (_FP_WFRACXBITS_DW_S): Likewise.
58835         (_FP_HIGHBIT_DW_S): Likewise.
58836         (FP_FMA_S): Likewise.
58837         (_FP_FRAC_HIGH_DW_S): Likewise.
58838         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
58839         (_FP_WFRACBITS_DW_D): Likewise.
58840         (_FP_WFRACXBITS_DW_D): Likewise.
58841         (_FP_HIGHBIT_DW_D): Likewise.
58842         (FP_FMA_D): Likewise.
58843         (_FP_FRAC_HIGH_DW_D): Likewise.
58844         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
58845         (_FP_WFRACBITS_DW_E): Likewise.
58846         (_FP_WFRACXBITS_DW_E): Likewise.
58847         (_FP_HIGHBIT_DW_E): Likewise.
58848         (FP_FMA_E): Likewise.
58849         (_FP_FRAC_HIGH_DW_E): Likewise.
58850         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
58851         (_FP_WFRACBITS_DW_Q): Likewise.
58852         (_FP_WFRACXBITS_DW_Q): Likewise.
58853         (_FP_HIGHBIT_DW_Q): Likewise.
58854         (FP_FMA_Q): Likewise.
58855         (_FP_FRAC_HIGH_DW_Q): Likewise.
58856         * soft-fp/fmasf4.c: New file.
58857         * soft-fp/fmadf4.c: Likewise.
58858         * soft-fp/fmatf4.c: Likewise.
58859
58860 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
58861
58862         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
58863         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
58864         Silvermont.
58865         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
58866         macro.
58867         (index_Slow_SSE4_2): Likewise.
58868         (index_Prefer_PMINUB_for_stringop): Likewise.
58869         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
58870         bit_Slow_SSE4_2 is set.
58871         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
58872         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
58873
58874 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58875
58876         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
58877         rtld_global._dl_hwcap2.
58878         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
58879         POWER8.
58880         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
58881         POWER8 feature descriptions defined in _dl_hwcap2.
58882         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
58883         string handling for POWER8 feature bits.
58884         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
58885         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
58886         _dl_powerpc_cap_flags.
58887         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
58888         * sysdeps/powerpc/rtld-global-offsets.sym
58889         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
58890         _dl_hwcap2 in the rtld_global_ro structure.
58891
58892 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58893
58894         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
58895         hardware capabilities in support of AT_HWCAP2.
58896         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
58897         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
58898         GLRO(dl_hwcap2).
58899         (_dl_show_auxv): Add support for calling _dl_procinfo to display
58900         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
58901         explicitly the unknown a_type display mechanism is used.
58902         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
58903         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
58904         struct member.
58905         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
58906         to macro prototype for AT_HWCAP2 support.
58907         * sysdeps/i386/dl-procinfo.h: Likewise.
58908         * sysdeps/s390/dl-procinfo.h: Likewise.
58909         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
58910         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
58911         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
58912         return -1 for unknown a_type display fallback.
58913         * sysdeps/sparc/dl-procinfo.h: Likewise.
58914         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
58915         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
58916
58917 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
58918
58919         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
58920         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
58921
58922 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
58923
58924         [BZ #12492]
58925         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
58926         mprotect making __stack_prot writable.
58927
58928 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
58929             Joseph Myers  <joseph@codesourcery.com>
58930
58931         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
58932         as being properly aligned.
58933
58934 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
58935
58936         * dlfcn/modstatic5.c: New file.
58937         * dlfcn/tststatic5.c: New file.
58938         * dlfcn/Makefile (tests): Add tststatic5.
58939         (tests-static): Likewise.
58940         (modules-names): Add modstatic5.
58941         (tststatic5-ENV): New variable.
58942         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
58943
58944         [BZ #15022]
58945         * elf/dl-support.c (_dl_main_map): New variable.
58946         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
58947         (_dl_nns, _dl_load_adds): Set to 1.
58948         (_dl_initial_searchlist): Refer to _dl_main_map.
58949         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
58950         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
58951         call to _dl_get_origin.
58952         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
58953         around call_map.
58954         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
58955         * dlfcn/modstatic3.c: New file.
58956         * dlfcn/tststatic3.c: New file.
58957         * dlfcn/tststatic4.c: New file.
58958         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
58959         (tests-static): Likewise.
58960         (modules-names): Add modstatic3.
58961         (tststatic3-ENV, tststatic4-ENV): New variables.
58962         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
58963         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
58964
58965 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
58966
58967         * configure.in (CC): Require GCC version 4.4 or later.
58968         * configure: Regenerated.
58969         * manual/install.texi (Tools for Compilation): Update GCC version
58970         requirement.
58971         * INSTALL: Regenerated.
58972
58973 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
58974
58975         [BZ #15674]
58976         * string/test-memcmp.c (check2): New.
58977         (main): Call check2.
58978
58979         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
58980
58981 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
58982
58983         [BZ #15022]
58984         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
58985         over to...
58986         (dl_open_worker) [!SHARED]: ... here.
58987
58988 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58989
58990         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
58991
58992 2013-06-25  Richard Henderson  <rth@redhat.com>
58993
58994         * locale/programs/locarchive.c: Include <libc-internal.h>
58995
58996 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
58997
58998         * manual/texinfo.tex: Update to version 2013-06-21.17, with
58999         trailing whitespace removed.
59000
59001 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
59002
59003         [BZ #10283]
59004         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
59005         * locale/programs/locarchive.c: Include libc-mmap.h.
59006         (prepare_address_space): Take two new outputs (the mmap base and len).
59007         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
59008         values.
59009         (create_archive): Declare new mmap base and len values for
59010         prepare_address_space, and store the result in ah.
59011         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
59012         (enlarge_archive): If ah->mmap_base is not NULL, use that and
59013         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
59014         Declare new mmap base and len values for
59015         prepare_address_space, and store the result in new_ah.
59016         (open_archive): Declare new mmap base and len values for
59017         prepare_address_space, and store the result in ah.
59018         (close_archive): If ah->mmap_base is not NULL, use that and
59019         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
59020         * sysdeps/generic/libc-mmap.h: New file.
59021
59022 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
59023
59024         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
59025         (ALIGN_UP): Likewise.
59026         (PTR_ALIGN_DOWN): Likewise.
59027         (PTR_ALIGN_UP): Likewise.
59028
59029 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59030
59031         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
59032         entry mapped to PPC_PLATFORM_POWER8.
59033         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
59034         POWER8.
59035         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
59036         (_dl_string_platform): Add case for exporting platform position for
59037         POWER8.
59038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
59039         search path to sysdeps/powerpc/powerpc32/power8 directory.
59040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
59041         search path to sysdeps/powerpc/powerpc64/power8 directory.
59042         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
59043         power7 directories.
59044         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
59045         power7 directories.
59046
59047 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
59048
59049         * INSTALL: Regenerate.
59050
59051         * nscd/connections.c (nscd_init): Fix comment.
59052
59053 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
59054
59055         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
59056
59057         [BZ #15667]
59058         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
59059         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
59060
59061 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
59062
59063         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
59064         DL_DST_REQ_STATIC.
59065         (DL_DST_REQ_STATIC): Remove macro.
59066
59067 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
59068
59069         [BZ #7006]
59070         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
59071         with a shift of 0 bits.
59072
59073 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
59074
59075         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
59076         $(tststatic-ENV).
59077
59078 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
59079
59080         [BZ #15655]
59081         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
59082
59083 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59084
59085         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
59086         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
59087         accepts -fno-tree-loop-distribute-patterns.
59088         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
59089         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
59090         recursive call.
59091         * string/memset.c (memset): Likewise.
59092         * string/test-memmove.c (simple_memmove): Disable loop transformation
59093         to library calls.
59094         * string/test-memset.c (simple_memset): Likewise.
59095         * benchtests/bench-memmove.c (simple_memmove): Likewise.
59096         * benchtests/bench-memset.c (simple_memset): Likewise.
59097         * configure: Regenerated.
59098
59099 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
59100
59101         * math/test-misc.c (main): Ignore fesetround failure when failures
59102         of subsequent rounding tests would be ignored.
59103
59104         [BZ #15654]
59105         * math/fedisblxcpt.c (fedisableexcept): Return 0.
59106         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
59107         * math/fegetenv.c (__fegetenv): Return 0.
59108         * math/fegetexcept.c (fegetexcept): Return 0.
59109         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
59110         FE_TONEAREST.
59111         * math/feholdexcpt.c (feholdexcept): Return 0.
59112         * math/fesetenv.c (__fesetenv): Return 0.
59113         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
59114         argument FE_TONEAREST.
59115         * math/feupdateenv.c (__feupdateenv): Return 0.
59116         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
59117
59118 2013-06-18  Roland McGrath  <roland@hack.frob.com>
59119
59120         * elf/rtld-Rules (rtld-compile-command.S): New variable.
59121         (rtld-compile-command.s, rtld-compile-command.c): New variables.
59122         ($(objpfx)rtld-%.os rules): Use them.
59123
59124 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59125
59126         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
59127         fields.
59128
59129 2013-06-17  Roland McGrath  <roland@hack.frob.com>
59130
59131         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
59132         length of target pattern, then descending length of dependency pattern.
59133         * configure.in (AWK): Require gawk 3.1.2 or newer.
59134         * manual/install.texi (Tools for Compilation): Say that we do.
59135         * configure: Regenerated.
59136
59137         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
59138         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
59139         * scripts/sysd-rules.awk: ... this new script.
59140         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
59141         than a glob-style pattern.
59142
59143 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
59144
59145         * math/test-misc.c (main): Do not treat incorrectly rounded
59146         conversions as failure unless ROUNDING_TESTS passes.
59147
59148 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
59149
59150         [BZ #15631]
59151         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
59152         restore exception state around main square root computation, then
59153         check for inexactness explicitly.
59154
59155         * math/libm-test.inc (fma_test_data): Add another test.
59156
59157 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
59158
59159         * manual/threads.texi (Non-POSIX Extensions): New document
59160         node.  Document pthread_getattr_default_np and
59161         pthread_setattr_default_np.
59162
59163         * Versions.def (libpthread): Add GLIBC_2.18.
59164         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
59165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
59166         Likewise.
59167         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
59168         Likewise.
59169         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
59170         Likewise.
59171         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
59172         Likewise.
59173         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
59174         Likewise.
59175         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
59176         Likewise.
59177         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
59178         Likewise.
59179         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
59180         Likewise.
59181         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
59182         Likewise.
59183
59184 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
59185
59186         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
59187         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
59188
59189 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
59190             H.J. Lu  <hjl.tools@gmail.com>
59191
59192         [BZ #15627]
59193         * sysdeps/x86_64/rtld-memset.c: Remove file.
59194         * sysdeps/x86_64/rtld-memset.S: New file.
59195
59196 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
59197
59198         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
59199         (test_in_one_mode): Take arguments for whether the rounding mode
59200         is supported for each floating-point type.
59201         (do_test): Pass new arguments to test_in_one_mode using
59202         ROUNDING_TESTS.
59203
59204 2013-06-13  Roland McGrath  <roland@hack.frob.com>
59205
59206         * posix/tst-waitid.c (do_test): Distinguish different instances of
59207         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
59208         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
59209         before entering the kernel for waitpid.
59210
59211 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
59212
59213         * NEWS: Fix note on clock function precision.  Text by Roland
59214         McGrath.
59215
59216 2013-06-13  Roland McGrath  <roland@hack.frob.com>
59217
59218         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
59219         it into place only when and if the sanity check passes.
59220
59221 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
59222
59223         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
59224         output for whether conversion result is exact.  Take argument
59225         indicating whether type is IBM long double.
59226         (round_for_all): Change need_exact field to ibm_ld.
59227         * stdlib/tst-strtod-round.c (struct exactness): New type.
59228         (struct test): Change bool ld_ok field to struct exactness exact.
59229         (TEST): Update all definitions for change to field.
59230         (tests): Regenerate array contents.
59231         (test_in_one_mode): Take pointer to new field instead of old ld_ok
59232         field value.  Check for IBM long double here.
59233         (do_test): Update calls to test_in_one_mode.
59234
59235 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
59236
59237         [BZ #12515]
59238         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
59239         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
59240
59241 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59242
59243         [BZ #15605]
59244         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
59245         generated by the compiler on loop optimizations.
59246         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
59247         general definitions.
59248
59249 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
59250
59251         * math/bug-nextafter.c: Include <math-tests.h>.
59252         (main): Only test for exceptions if EXCEPTION_TESTS is true for
59253         the relevant type.
59254         * math/bug-nexttoward.c: Include <math-tests.h>.
59255         (main): Only test for exceptions if EXCEPTION_TESTS is true for
59256         the relevant type.
59257         * math/test-misc.c: Include <math-tests.h>.
59258         (main): Only test for exceptions if EXCEPTION_TESTS is true for
59259         the relevant type.
59260
59261 2013-06-12  Andreas Jaeger  <aj@suse.de>
59262
59263         * po/ia.po: Update Interlingua translation from translation
59264         project.
59265
59266 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
59267
59268         * include/fenv.h: Include stdbool.h.
59269         (struct rm_ctx): New structure.
59270         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
59271         Define macro.
59272         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
59273         (SET_RESTORE_ROUNDF): Likewise.
59274         (SET_RESTORE_ROUNDL): Likewise.
59275         (SET_RESTORE_ROUND_NOEX): Likewise.
59276         (SET_RESTORE_ROUND_NOEXF): Likewise.
59277         (SET_RESTORE_ROUND_NOEXL): Likewise.
59278         (SET_RESTORE_ROUND_53BIT): Likewise.
59279         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
59280         (libc_feresetround_noexf_ctx): Likewise.
59281         (libc_feresetround_noexl_ctx): Likewise.
59282         (libc_feholdsetround_53bit_ctx): Likewise.
59283         (libc_feresetround_53bit_ctx): Likewise.
59284         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
59285         (libc_feholdexcept_setround_sse_ctx): New function.
59286         (libc_fesetenv_sse_ctx): Likewise.
59287         (libc_feupdateenv_sse_ctx): Likewise.
59288         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
59289         (libc_feholdexcept_setround_387_ctx): Likewise.
59290         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
59291         (libc_feholdsetround_387_prec_ctx): Likewise.
59292         (libc_feholdsetround_387_ctx): Likewise.
59293         (libc_feholdsetround_387_53bit_ctx): Likewise.
59294         (libc_feholdsetround_sse_ctx): Likewise.
59295         (libc_feresetround_sse_ctx): Likewise.
59296         (libc_feresetround_387_ctx): Likewise.
59297         (libc_feupdateenv_387_ctx): Likewise.
59298         (libc_feholdexcept_setroundf_ctx): Define macro.
59299         (libc_fesetenvf_ctx): Likewise.
59300         (libc_feupdateenvf_ctx): Likewise.
59301         (libc_feholdsetroundf_ctx): Likewise.
59302         (libc_feresetroundf_ctx): Likewise.
59303         (libc_feholdexcept_setround_ctx): Likewise.
59304         (libc_fesetenv_ctx): Likewise.
59305         (libc_feupdateenv_ctx): Likewise.
59306         (libc_feholdsetround_ctx): Likewise.
59307         (libc_feresetround_ctx): Likewise.
59308         (libc_feholdexcept_setroundl_ctx): Likewise.
59309         (libc_feupdateenvl_ctx): Likewise.
59310         (libc_feholdsetroundl_ctx): Likewise.
59311         (libc_feresetroundl_ctx): Likewise.
59312         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
59313         (libc_feresetround_53bit_ctx): Likewise.
59314
59315 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59316
59317         * locale/iso-639.def: Convert to UTF-8.
59318
59319 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
59320
59321         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
59322         (EXCEPTION_TESTS_double): Likewise.
59323         (EXCEPTION_TESTS_long_double): Likewise.
59324         (EXCEPTION_TESTS): Likewise.
59325         * math/libm-test.inc (test_exceptions): Only test exceptions if
59326         EXCEPTION_TESTS (FLOAT).
59327
59328 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59329
59330         * benchtests/Makefile (string-bench): Add strcpy_chk and
59331         stpcpy_chk.
59332         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
59333         * benchtests/bench-stpcpy_chk.c: New file.
59334         * benchtests/bench-strcpy_chk-ifunc.c: New file.
59335         * benchtests/bench-strcpy_chk.c: New file.
59336         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
59337         code.
59338         (do_test): Likewise.
59339
59340 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59341
59342         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
59343         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
59344         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
59345         with tabs where appropriate.
59346         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
59347         dl-procinfo.h.
59348         [PPC_PLATFORM_PPC440]: Likewise.
59349         [PPC_PLATFORM_PPC464]: Likewise.
59350         [PPC_PLATFORM_PPC476]: Likewise.
59351         (_dl_string_platform): Add support for detecting ppc405, ppc440,
59352         ppc464, and ppc476 platform strings merging from ports/
59353         dl-procinfo.h.
59354
59355 2013-06-11  Andreas Schwab  <schwab@suse.de>
59356
59357         [BZ #14991]
59358         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
59359         (from_ucs4_idx): Regenerate.
59360         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
59361         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
59362         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
59363         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
59364         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
59365         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
59366         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
59367         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
59368         from FROM_LOOP and TO_LOOP specific macros.
59369         (BODY): Handle combining characters.
59370         * iconvdata/BIG5HKSCS.irreversible: Update.
59371         * iconvdata/BIG5HKSCS.precomposed: New file.
59372         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
59373         characters.
59374         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
59375
59376 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59377
59378         * include/sys/time.h: Fix indentation and add copyright header.
59379
59380         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
59381         (do_test): Likewise.
59382         * string/test-memchr.c (do_one_test): Likewise.
59383         (do_test): Likewise.
59384         * string/test-memcmp.c (do_one_test): Likewise.
59385         (do_test): Likewise.
59386         * string/test-memcpy.c (do_one_test): Likewise.
59387         (do_test): Likewise.
59388         * string/test-memmem.c (do_one_test): Likewise.
59389         (do_test): Likewise.
59390         (do_random_tests): Likewise.
59391         * string/test-memmove.c (do_one_test): Likewise.
59392         (do_test): Likewise.
59393         * string/test-memset.c (do_one_test): Likewise.
59394         (do_test): Likewise.
59395         * string/test-rawmemchr.c (do_one_test): Likewise.
59396         (do_test): Likewise.
59397         * string/test-strcasecmp.c (do_one_test): Likewise.
59398         (do_test): Likewise.
59399         * string/test-strcasestr.c (do_one_test): Likewise.
59400         (do_test): Likewise.
59401         * string/test-strcat.c (do_one_test): Likewise.
59402         (do_test): Likewise.
59403         * string/test-strchr.c (do_one_test): Likewise.
59404         (do_test): Likewise.
59405         * string/test-strcmp.c (do_one_test): Likewise.
59406         (do_test): Likewise.
59407         * string/test-strcpy.c (do_one_test): Likewise.
59408         (do_test): Likewise.
59409         * string/test-string.h: Likewise.
59410         (test_init): Likewise.
59411         * string/test-strlen.c (do_one_test): Likewise.
59412         (do_test): Likewise.
59413         * string/test-strncasecmp.c (do_one_test): Likewise.
59414         (do_test): Likewise.
59415         * string/test-strncat.c (do_one_test): Likewise.
59416         (do_test): Likewise.
59417         * string/test-strncmp.c (do_one_test): Likewise.
59418         (do_test_limit): Likewise.
59419         (do_test): Likewise.
59420         * string/test-strncpy.c (do_one_test): Likewise.
59421         (do_test): Likewise.
59422         * string/test-strnlen.c (do_one_test): Likewise.
59423         (do_test): Likewise.
59424         * string/test-strpbrk.c (do_one_test): Likewise.
59425         (do_test): Likewise.
59426         * string/test-strrchr.c (do_one_test): Likewise.
59427         (do_test): Likewise.
59428         * string/test-strspn.c (do_one_test): Likewise.
59429         (do_test): Likewise.
59430         * string/test-strstr.c (do_one_test): Likewise.
59431         (do_test): Likewise.
59432
59433         * benchtests/Makefile (string-bench): Add string benchmarks.
59434         * benchtests/bench-bcopy-ifunc.c: New file.
59435         * benchtests/bench-bcopy.c: New file.
59436         * benchtests/bench-bzero-ifunc.c: New file.
59437         * benchtests/bench-bzero.c: New file.
59438         * benchtests/bench-memccpy-ifunc.c: New file.
59439         * benchtests/bench-memccpy.c: New file.
59440         * benchtests/bench-memchr-ifunc.c: New file.
59441         * benchtests/bench-memchr.c: New file.
59442         * benchtests/bench-memcmp-ifunc.c: New file.
59443         * benchtests/bench-memcmp.c: New file.
59444         * benchtests/bench-memmem-ifunc.c: New file.
59445         * benchtests/bench-memmem.c: New file.
59446         * benchtests/bench-memmove-ifunc.c: New file.
59447         * benchtests/bench-memmove.c: New file.
59448         * benchtests/bench-mempcpy-ifunc.c: New file.
59449         * benchtests/bench-mempcpy.c: New file.
59450         * benchtests/bench-memset-ifunc.c: New file.
59451         * benchtests/bench-memset.c: New file.
59452         * benchtests/bench-rawmemchr-ifunc.c: New file.
59453         * benchtests/bench-rawmemchr.c: New file.
59454         * benchtests/bench-stpcpy-ifunc.c: New file.
59455         * benchtests/bench-stpcpy.c: New file.
59456         * benchtests/bench-stpncpy-ifunc.c: New file.
59457         * benchtests/bench-stpncpy.c: New file.
59458         * benchtests/bench-strcasecmp-ifunc.c: New file.
59459         * benchtests/bench-strcasecmp.c: New file.
59460         * benchtests/bench-strcasestr-ifunc.c: New file.
59461         * benchtests/bench-strcasestr.c: New file.
59462         * benchtests/bench-strcat-ifunc.c: New file.
59463         * benchtests/bench-strcat.c: New file.
59464         * benchtests/bench-strchr-ifunc.c: New file.
59465         * benchtests/bench-strchr.c: New file.
59466         * benchtests/bench-strchrnul-ifunc.c: New file.
59467         * benchtests/bench-strchrnul.c: New file.
59468         * benchtests/bench-strcmp-ifunc.c: New file.
59469         * benchtests/bench-strcmp.c: New file.
59470         * benchtests/bench-strcpy-ifunc.c: New file.
59471         * benchtests/bench-strcpy.c: New file.
59472         * benchtests/bench-strcspn-ifunc.c: New file.
59473         * benchtests/bench-strcspn.c: New file.
59474         * benchtests/bench-strlen-ifunc.c: New file.
59475         * benchtests/bench-strlen.c: New file.
59476         * benchtests/bench-strncasecmp-ifunc.c: New file.
59477         * benchtests/bench-strncasecmp.c: New file.
59478         * benchtests/bench-strncat-ifunc.c: New file.
59479         * benchtests/bench-strncat.c: New file.
59480         * benchtests/bench-strncmp-ifunc.c: New file.
59481         * benchtests/bench-strncmp.c: New file.
59482         * benchtests/bench-strncpy-ifunc.c: New file.
59483         * benchtests/bench-strncpy.c: New file.
59484         * benchtests/bench-strnlen-ifunc.c: New file.
59485         * benchtests/bench-strnlen.c: New file.
59486         * benchtests/bench-strpbrk-ifunc.c: New file.
59487         * benchtests/bench-strpbrk.c: New file.
59488         * benchtests/bench-strrchr-ifunc.c: New file.
59489         * benchtests/bench-strrchr.c: New file.
59490         * benchtests/bench-strspn-ifunc.c: New file.
59491         * benchtests/bench-strspn.c: New file.
59492         * benchtests/bench-strstr-ifunc.c: New file.
59493         * benchtests/bench-strstr.c: New file.
59494
59495         * benchtests/Makefile: Disable parallel execution of targets.
59496         (string-bench): Add memcpy.
59497         (benchset): New variable to store a list of benchmark sets.
59498         (bench-func): Renamed from bench.
59499         (bench-set): New target.
59500         (bench): Depend on bench-func and bench-set.
59501         * benchtests/README: Add section on benchmark sets.
59502         * benchtests/bench-memcpy-ifunc.c: New file.
59503         * benchtests/bench-memcpy.c: New file.
59504         * benchtests/bench-string.h: New file.
59505
59506 2013-06-11  Andreas Schwab  <schwab@suse.de>
59507
59508         [BZ #15577]
59509         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
59510         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
59511         values in the triple.
59512         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
59513         terminator in the group key.
59514
59515 2013-06-11  Andreas Jaeger  <aj@suse.de>
59516
59517         * po/zh_TW.po: Update Chinese (traditional) translation from
59518         translation project.
59519
59520 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59521
59522         * include/time.h (__clock_gettime): Add libc_hidden_proto.
59523         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
59524         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
59525         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
59526         (clock_getcpuclockid): Likewise.
59527         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
59528         Add weak_alias and libc_hidden_def.
59529         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
59530         * rt/clock_gettime.c (clock_gettime): Rename to
59531         __clock_gettime.  Add weak_alias and libc_hidden_def.
59532         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
59533         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
59534         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
59535         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
59536         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
59537         Likewise.
59538         * rt/clock_settime.c (clock_settime): Rename to
59539         __clock_settime.  Add weak_alias and libc_hidden_def.
59540         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
59541
59542 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
59543
59544         * mach/err_boot.sub: Remove trailing whitespace.
59545         * mach/err_ipc.sub: Likewise.
59546         * mach/err_mach.sub: Likewise.
59547
59548         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
59549         (ROUNDING_TESTS_double): Likewise.
59550         (ROUNDING_TESTS_long_double): Likewise.
59551         (ROUNDING_TESTS): Likewise.
59552         * math/libm-test.inc: Include <math-tests.h>.
59553         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
59554         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
59555         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
59556         (IF_ROUND_INIT_FE_UPWARD): Likewise.
59557
59558 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
59559
59560         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
59561         of assigning.
59562
59563 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
59564
59565         * sysdeps/gnu/errlist.awk: Do not generate space at end of
59566         otherwise empty TRANS lines.
59567         * sysdeps/gnu/errlist.c: Regenerated.
59568
59569         * catgets/gencat.c (error_print): Use (void) in function
59570         definition.
59571         * crypt/crypt_util.c (__init_des): Likewise.
59572         * crypt/speeds.c (Stop): Likewise.
59573         (main): Likewise.
59574         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
59575         * inet/ruserpass.c (token): Likewise.
59576         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
59577         * intl/localealias.c (extend_alias_table): Likewise.
59578         * intl/plural-exp.c (init_germanic_plural): Likewise.
59579         * libio/fcloseall.c (__fcloseall): Likewise.
59580         * libio/genops.c (_IO_flush_all): Likewise.
59581         (_IO_flush_all_linebuffered): Likewise.
59582         (_IO_cleanup): Likewise.
59583         (_IO_iter_begin): Likewise.
59584         (_IO_iter_end): Likewise.
59585         (_IO_list_lock): Likewise.
59586         (_IO_list_unlock): Likewise.
59587         (_IO_list_resetlock): Likewise.
59588         * libio/getchar.c (getchar): Likewise.
59589         * libio/getchar_u.c (getchar_unlocked): Likewise.
59590         * libio/getwchar.c (getwchar): Likewise.
59591         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
59592         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
59593         * login/getpt.c (__getpt): Likewise.
59594         * login/tst-utmp.c (main): Likewise.
59595         * malloc/hooks.c (__malloc_check_init): Likewise.
59596         * malloc/malloc.c (__malloc_stats): Likewise.
59597         * malloc/mtrace.c (tr_break): Likewise.
59598         (mtrace): Likewise.
59599         (muntrace): Likewise.
59600         * misc/fstab.c (endfsent): Likewise.
59601         * misc/getclktck.c (__getclktck): Likewise.
59602         * misc/getdtsz.c (__getdtablesize): Likewise.
59603         * misc/gethostid.c (gethostid): Likewise.
59604         * misc/getpagesize.c (__getpagesize): Likewise.
59605         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
59606         (__get_nprocs): Likewise.
59607         (__get_phys_pages): Likewise.
59608         (__get_avphys_pages): Likewise.
59609         * misc/getttyent.c (getttyent): Likewise.
59610         (setttyent): Likewise.
59611         (endttyent): Likewise.
59612         * misc/getusershell.c (getusershell): Likewise.
59613         (endusershell): Likewise.
59614         (setusershell): Likewise.
59615         (initshells): Likewise.
59616         * misc/hsearch.c (__hdestroy): Likewise.
59617         * misc/sync.c (sync): Likewise.
59618         * misc/syslog.c (closelog_internal): Likewise.
59619         (closelog): Likewise.
59620         * misc/ttyslot.c (ttyslot): Likewise.
59621         * misc/vhangup.c (vhangup): Likewise.
59622         * posix/fork.c (__fork): Likewise.
59623         * posix/getegid.c (__getegid): Likewise.
59624         * posix/geteuid.c (__geteuid): Likewise.
59625         * posix/getgid.c (__getgid): Likewise.
59626         * posix/getpid.c (__getpid): Likewise.
59627         * posix/getppid.c (__getppid): Likewise.
59628         * posix/getuid.c (__getuid): Likewise.
59629         * posix/pause.c (pause): Likewise.
59630         * posix/setpgrp.c (setpgrp): Likewise.
59631         * posix/setsid.c (__setsid): Likewise.
59632         * posix/test-vfork.c (noop): Likewise.
59633         * resolv/gethnamaddr.c (_endhtent): Likewise.
59634         (_gethtent): Likewise.
59635         (ht_endhostent): Likewise.
59636         (gethostent): Likewise.
59637         (dns_service): Likewise.
59638         * stdlib/drand48.c (drand48): Likewise.
59639         * stdlib/lrand48.c (lrand48): Likewise.
59640         * stdlib/mrand48.c (mrand48): Likewise.
59641         * stdlib/rand.c (rand): Likewise.
59642         * stdlib/random.c (__random): Likewise.
59643         * stdlib/setenv.c (clearenv): Likewise.
59644         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
59645         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
59646         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
59647         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
59648         (__get_nprocs): Likewise.
59649         (__get_phys_pages): Likewise.
59650         (__get_avphys_pages): Likewise.
59651         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
59652         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
59653         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
59654         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
59655         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
59656         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
59657         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
59658         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
59659         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
59660         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
59661         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
59662         * sysdeps/mach/hurd/sync.c (sync): Likewise.
59663         * sysdeps/posix/clock.c (clock): Likewise.
59664         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
59665         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
59666         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
59667         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
59668         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
59669         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
59670         (__get_nprocs_conf): Likewise.
59671         (__get_phys_pages): Likewise.
59672         (__get_avphys_pages): Likewise.
59673         * time/clock.c (clock): Likewise.
59674         * time/tzset.c (__tzname_max): Likewise.
59675
59676 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
59677
59678         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
59679         (__bswap_32): Do not use "register".
59680         * crypt/crypt.c (_ufc_doit_r): Likewise.
59681         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
59682         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
59683         * gmon/gmon.c (__monstartup): Likewise.
59684         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
59685         * hurd/hurdmalloc.c (more_memory): Likewise.
59686         (malloc): Likewise.
59687         (free): Likewise.
59688         (realloc): Likewise.
59689         (malloc_fork_prepare): Likewise.
59690         (malloc_fork_parent): Likewise.
59691         (malloc_fork_child): Likewise.
59692         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
59693         (_svcauth_des): Likewise.
59694         * inet/inet_lnaof.c (inet_lnaof): Likewise.
59695         * inet/inet_net.c (inet_network): Likewise.
59696         * inet/inet_netof.c (inet_netof): Likewise.
59697         * inet/rcmd.c (__validuser2_sa): Likewise.
59698         * io/fts.c (fts_open): Likewise.
59699         (fts_load): Likewise.
59700         (fts_close): Likewise.
59701         (fts_read): Likewise.
59702         (fts_children): Likewise.
59703         (fts_build): Likewise.
59704         (fts_stat): Likewise.
59705         (fts_sort): Likewise.
59706         (fts_alloc): Likewise.
59707         (fts_lfree): Likewise.
59708         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
59709         (_IO_file_xsgetn): Likewise.
59710         (_IO_file_xsgetn_mmap): Likewise.
59711         * libio/iofopncook.c (_IO_cookie_read): Likewise.
59712         (_IO_cookie_write): Likewise.
59713         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
59714         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
59715         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
59716         * malloc/obstack.c (_obstack_begin): Likewise.
59717         (_obstack_begin_1): Likewise.
59718         (_obstack_newchunk): Likewise.
59719         (_obstack_allocated_p): Likewise.
59720         (obstack_free): Likewise.
59721         (_obstack_memory_used): Likewise.
59722         * misc/getttyent.c (getttynam): Likewise.
59723         (getttyent): Likewise.
59724         (skip): Likewise.
59725         (value): Likewise.
59726         * misc/getusershell.c (initshells): Likewise.
59727         * misc/syslog.c (__vsyslog_chk): Likewise.
59728         * misc/ttyslot.c (ttyslot): Likewise.
59729         * nis/nis_hash.c (__nis_hash): Likewise.
59730         * posix/fnmatch_loop.c (FCT): Likewise.
59731         * posix/getconf.c (print_all): Likewise.
59732         (main): Likewise.
59733         * posix/getopt.c (exchange): Likewise.
59734         * posix/glob.c (globfree): Likewise.
59735         (prefix_array): Likewise.
59736         (__glob_pattern_type): Likewise.
59737         * resolv/arpa/nameser.h (NS_GET16): Likewise.
59738         (NS_GET32): Likewise.
59739         (NS_PUT16): Likewise.
59740         (NS_PUT32): Likewise.
59741         * resolv/gethnamaddr.c (getanswer): Likewise.
59742         (gethostbyname2): Likewise.
59743         (gethostbyaddr): Likewise.
59744         (_gethtent): Likewise.
59745         (_gethtbyname2): Likewise.
59746         (_gethtbyaddr): Likewise.
59747         * resolv/ns_print.c (dst_s_get_int16): Likewise.
59748         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
59749         * resolv/res_init.c (__res_vinit): Likewise.
59750         (net_mask): Likewise.
59751         * resolv/res_mkquery.c (outchar): Likewise.
59752         (PRINT): Likewise.
59753         * stdio-common/printf_fp.c (outchar): Likewise.
59754         (PRINT): Likewise.
59755         * stdio-common/printf_fphex.c (outchar): Likewise.
59756         (PRINT): Likewise.
59757         * stdio-common/printf_size.c (outchar): Likewise.
59758         (PRINT): Likewise.
59759         * stdio-common/test_rdwr.c (main): Likewise.
59760         * stdio-common/tfformat.c (matches): Likewise.
59761         * stdio-common/vfprintf.c (outchar): Likewise.
59762         (printf_unknown): Likewise.
59763         (buffered_vfprintf): Likewise.
59764         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
59765         * stdio-common/xbug.c (AppendToBuffer): Likewise.
59766         (ReadFile): Likewise.
59767         * stdlib/qsort.c (SWAP): Likewise.
59768         (_quicksort): Likewise.
59769         * stdlib/setenv.c (__add_to_environ): Likewise.
59770         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
59771         * stdlib/strtol_l.c (__strtol_l): Likewise.
59772         * stdlib/tst-strtod.c (main): Likewise.
59773         * stdlib/tst-strtol.c (main): Likewise.
59774         * stdlib/tst-strtoll.c (main): Likewise.
59775         * string/bits/string2.h (__strcmp_cc): Likewise.
59776         (__strcmp_cg): Likewise.
59777         (__strcspn_c1): Likewise.
59778         (__strcspn_c2): Likewise.
59779         (__strcspn_c3): Likewise.
59780         (__strspn_c1): Likewise.
59781         (__strspn_c2): Likewise.
59782         (__strspn_c3): Likewise.
59783         (__strsep_1c): Likewise.
59784         (__strsep_2c): Likewise.
59785         (__strsep_3c): Likewise.
59786         * string/memccpy.c (__memccpy): Likewise.
59787         * string/stpcpy.c (__stpcpy): Likewise.
59788         * string/strcmp.c (strcmp): Likewise.
59789         * string/strrchr.c (strrchr): Likewise.
59790         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
59791         Likewise.
59792         * sysdeps/mach/hurd/getcwd.c
59793         (_hurd_canonicalize_directory_name_internal): Likewise.
59794         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
59795         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
59796         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
59797         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
59798         Likewise, in both definitions.
59799         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
59800         definitions.
59801         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
59802         64] (__bswap_64): Likewise.
59803         * time/test_time.c (main): Likewise.
59804         * time/tzfile.c (__tzfile_read): Likewise.
59805         (__tzfile_compute): Likewise.
59806         * time/tzset.c (__tzset_parse_tz): Likewise.
59807         (tzset_internal): Likewise.
59808         (compute_change): Likewise.
59809         * wcsmbs/wcscat.c (__wcscat): Likewise.
59810         * wcsmbs/wcschr.c (wcschr): Likewise.
59811         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
59812         * wcsmbs/wcscspn.c (wcscspn): Likewise.
59813         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
59814         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
59815         * wcsmbs/wcsspn.c (wcsspn): Likewise.
59816         * wcsmbs/wcsstr.c (wcsstr): Likewise.
59817         * wcsmbs/wmemchr.c (wmemchr): Likewise.
59818         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
59819         * wcsmbs/wmemset.c (wmemset): Likewise.
59820
59821 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
59822
59823         * scripts/config.guess: Update to version 2013-05-16.
59824         * scripts/config.sub: Update to version 2013-04-24.
59825         * scripts/install-sh: Update to version 2011-11-20.07.
59826         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
59827         * scripts/move-if-change: Update to version 2012-01-06 07:23.
59828
59829 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
59830
59831         * debug/fgetws_u_chk.c: Fix leading whitespaces.
59832         * elf/sln.c: Likewise.
59833         * hurd/hurd/ioctl.h: Likewise.
59834         * hurd/hurdmalloc.c: Likewise.
59835         * hurd/xattr.c: Likewise.
59836         * include/shlib-compat.h: Likewise.
59837         * inet/ruserpass.c: Likewise.
59838         * libio/iofgets_u.c: Likewise.
59839         * libio/iofgetws_u.c: Likewise.
59840         * locale/programs/ld-identification.c: Likewise.
59841         * locale/programs/ld-time.c: Likewise.
59842         * mach/msg-destroy.c: Likewise.
59843         * nss/nss_files/files-netgrp.c: Likewise.
59844         * resolv/res_data.c: Likewise.
59845         * soft-fp/op-1.h: Likewise.
59846         * soft-fp/op-2.h: Likewise.
59847         * soft-fp/op-4.h: Likewise.
59848         * soft-fp/op-common.h: Likewise.
59849         * stdio-common/printf_fphex.c: Likewise.
59850         * stdlib/strtod_l.c: Likewise.
59851         * sunrpc/rpc/clnt.h: Likewise.
59852         * sysdeps/generic/framestate.c: Likewise.
59853         * sysdeps/i386/bsd-_setjmp.S: Likewise.
59854         * sysdeps/i386/bsd-setjmp.S: Likewise.
59855         * sysdeps/i386/__longjmp.S: Likewise.
59856         * sysdeps/i386/setjmp.S: Likewise.
59857         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
59858         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
59859         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
59860         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
59861         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
59862         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
59863         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
59864         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
59865         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
59866         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
59867         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
59868         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
59869         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
59870         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
59871         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
59872         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
59873         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
59874         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
59875         * sysdeps/ieee754/support.c: Likewise.
59876         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
59877         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
59878         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
59879         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
59880         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
59881         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
59882         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
59883         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
59884         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
59885         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
59886         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
59887         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
59888         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
59889         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
59890         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
59891         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
59892         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
59893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
59894
59895 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
59896
59897         * posix/transbug.c: Remove executable mode.
59898
59899 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
59900
59901         * crypt/speeds.c: Remove trailing whitespace.
59902         * dlfcn/default.c: Likewise.
59903         * elf/ifuncdep2.c: Likewise.
59904         * elf/ifuncmain1.c: Likewise.
59905         * elf/ifuncmain1vis.c: Likewise.
59906         * elf/testobj.h: Likewise.
59907         * elf/tst-stackguard1.c: Likewise.
59908         * gmon/sys/gmon.h: Likewise.
59909         * hurd/hurdmsg.c: Likewise.
59910         * hurd/new-fd.c: Likewise.
59911         * hurd/ports-get.c: Likewise.
59912         * iconvdata/ibm1008_420.c: Likewise.
59913         * inet/tst-getni1.c: Likewise.
59914         * inet/tst-getni2.c: Likewise.
59915         * libio/ioungetc.c: Likewise.
59916         * libio/wfiledoalloc.c: Likewise.
59917         * manual/libm-err-tab.pl: Likewise.
59918         * math/w_dremf.c: Likewise.
59919         * misc/ftruncate.c: Likewise.
59920         * posix/bug-glob2.c: Likewise.
59921         * posix/tst-pcre.c: Likewise.
59922         * posix/wait4.c: Likewise.
59923         * resolv/README: Likewise.
59924         * resolv/res_debug.h: Likewise.
59925         * resolv/tst-inet_ntop.c: Likewise.
59926         * setjmp/bug269-setjmp.c: Likewise.
59927         * soft-fp/extended.h: Likewise.
59928         * soft-fp/op-1.h: Likewise.
59929         * soft-fp/op-2.h: Likewise.
59930         * soft-fp/op-4.h: Likewise.
59931         * soft-fp/op-8.h: Likewise.
59932         * soft-fp/testit.c: Likewise.
59933         * stdio-common/bug16.c: Likewise.
59934         * stdlib/random.c: Likewise.
59935         * sunrpc/rpcsvc/rquota.x: Likewise.
59936         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
59937         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
59938         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
59939         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
59940         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
59941         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
59942         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
59943         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
59944         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
59945         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
59946         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
59947         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
59948         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
59949         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
59950         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
59951         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
59952         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
59953         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
59954         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
59955         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
59956         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
59957         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
59958         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
59959         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
59960         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
59961         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
59962         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
59963         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
59964         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
59965         * sysdeps/ieee754/s_lib_version.c: Likewise.
59966         * sysdeps/mach/hurd/check_fds.c: Likewise.
59967         * sysdeps/mach/hurd/getsockname.c: Likewise.
59968         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
59969         * sysdeps/mach/hurd/recvfrom.c: Likewise.
59970         * sysdeps/powerpc/bits/link.h: Likewise.
59971         * sysdeps/powerpc/dl-procinfo.c: Likewise.
59972         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
59973         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
59974         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
59975         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
59976         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
59977         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
59978         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
59979         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
59980         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
59981         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
59982         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
59983         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
59984         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
59985         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
59986         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
59987         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
59988         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
59989         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
59990         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
59991         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
59992         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
59993         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
59994         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
59995         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
59996         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
59997         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
59998         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
59999         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
60000         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
60001         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
60002         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
60003         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
60004         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
60005         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
60006         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
60007         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
60008         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
60009         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
60010         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
60011         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
60012         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
60013         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
60014         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
60015         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
60016         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
60017         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
60018         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
60019         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
60020         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
60021         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
60022         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
60023         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
60024         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
60025         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
60026         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
60027         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
60028         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
60029         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
60030         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
60031         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
60032         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
60033         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
60034         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
60035         * sysdeps/powerpc/sysdep.h: Likewise.
60036         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
60037         * sysdeps/s390/s390-64/sub_n.S: Likewise.
60038         * sysdeps/sh/dl-trampoline.S: Likewise.
60039         * sysdeps/sh/memset.S: Likewise.
60040         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
60041         * sysdeps/sh/strlen.S: Likewise.
60042         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
60043         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
60044         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
60045         * sysdeps/sparc/sparc32/rem.S: Likewise.
60046         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
60047         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
60048         * sysdeps/sparc/sparc32/strchr.S: Likewise.
60049         * sysdeps/sparc/sparc32/udiv.S: Likewise.
60050         * sysdeps/sparc/sparc32/urem.S: Likewise.
60051         * sysdeps/sparc/sparc64/add_n.S: Likewise.
60052         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
60053         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
60054         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
60055         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
60056         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
60057         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
60058         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
60059         * sysdeps/unix/bsd/times.c: Likewise.
60060         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
60061         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
60062         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
60063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
60064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
60065         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
60066         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
60067         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
60068         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
60069         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
60070         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
60071         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
60072         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
60073         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
60074         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
60075         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
60076         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
60077         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
60078         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
60079         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
60080         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
60081         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
60082         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
60083         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
60084         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
60085         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
60086         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
60087         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
60088         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
60089         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
60090         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
60091         * sysdeps/x86_64/strcspn.S: Likewise.
60092
60093 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
60094
60095         * locale/C-translit.h: Revert #include <stdint.h> because this is a
60096         generated file.  Regenerate properly from gen-translit.pl.
60097         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
60098         locale/C-translit.h.
60099
60100 2013-06-05  Andreas Schwab  <schwab@suse.de>
60101
60102         [BZ #15100]
60103         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
60104         week as 6 instead of -1.
60105         * time/tst-strptime.c (day_tests): Add test case.
60106
60107 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
60108
60109         * sysdeps/generic/math_private.h
60110         (libc_feholdexcept_setround_53bit): Replace with
60111         libc_feholdsetround_53bit.
60112         (libc_feupdateenv_53bit): Replace with
60113         libc_feresetround_53bit.
60114         (SET_RESTORE_ROUND_53BIT): Adjust.
60115
60116 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
60117
60118         * string/test-strchrnul.c: Add copyright header.
60119
60120         * posix/tst-getaddrinfo4.c: Increase test timeout.
60121
60122 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
60123
60124         [BZ #15536]
60125         * math/libm-test.inc (MAX_EXP): Remove
60126         (MIN_EXP): Define.
60127         (ulp): Use MIN_EXP - MANT_DIG.
60128         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
60129
60130 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
60131
60132         * po/be.po: Revert last change.
60133         * po/zh_CN.po: Likewise.
60134         * po/header.pot: Likewise.
60135
60136 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
60137
60138         * Makefile ($(common-objpfx)linkobj/libc.so): Define
60139         link-libc-deps to empty as target-specific variable.
60140         * Makerules (link-libc-args): New variable.
60141         (libc-for-link): Likewise.
60142         (link-libc-deps): Likewise.
60143         (lib%.so): Depend on $(link-libc-deps).  Link with
60144         $(link-libc-args).
60145         (build-module): Link with $(link-libc-args).
60146         (build-module-asneeded): Likewise.
60147         (build-module-helper-objlist): Filter out $(link-libc-deps) from
60148         list of objects.
60149         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
60150         target-specific variable.
60151         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
60152         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
60153         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
60154         libc.
60155         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
60156         libc and ld.so.
60157         ($(objpfx)libpcprofile.so): Likewise.
60158         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
60159         libc_nonshared.a.
60160         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
60161         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
60162         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
60163         $(link-libc-deps).
60164         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
60165         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
60166         * login/Makefile ($(objpfx)libutil.so): Likewise.
60167         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
60168         * math/Makefile ($(objpfx)libm.so): Likewise.
60169         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
60170         $(objpfx)libnsl.so): Define libc-for-link as target-specific
60171         variable instead of depending directly on libc.
60172         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
60173         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
60174         $(link-libc-deps).
60175         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
60176         libc.
60177         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
60178         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
60179         ($(objpfx)libanl.so): Likewise.
60180         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
60181         ld.so.
60182         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
60183         $(link-libc-deps).
60184         * sysdeps/i386/fpu/Makefile: Remove file.
60185         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
60186         ($(objpfx)libm.so): Remove dependency on ld.so.
60187
60188 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
60189
60190         [BZ # 15553]
60191         * nis/yp_xdr.c (XDRMAXNAME): Define.
60192         (XDRMAXRECORD): Define.
60193         (xdr_domainname): Use XDRMAXNAME.
60194         (xdr_mapname): Likewise.
60195         (xdr_peername): Likewise.
60196         (xdr_keydat): Use XDRMAXRECORD.
60197         (xdr_valdat): Likewise.
60198
60199 2013-05-30  Jeff Law  <law@redhat.com>
60200
60201         [BZ #14256]
60202         * manual/errno.texi (ESTALE): Update to account for more than
60203         just NFS file systems.
60204         * sysdeps/gnu/errlist.c: Regenerated.
60205
60206 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
60207
60208         [BZ #15465]
60209         * elf/Makefile (tests): Add tst-null-argv.
60210         (modules-names):  Add tst-null-argv-lib.
60211         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
60212         (tst-null-argv-ENV): Set environment for tst-null-argv.
60213         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
60214         (RTLD_PROGNAME): New macro.
60215         * elf/tst-null-argv.c: New test case.
60216         * elf/tst-null-argv-lib.c: Library for test case.
60217         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
60218         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
60219         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
60220         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
60221         * elf/dl-init.c (call_init): Likewise.
60222         (_dl_init): Likewise.
60223         * elf/dl-load.c (print_search_path): Likewise.
60224         (_dl_map_object): Likewise.
60225         * elf/dl-lookup.c (do_lookup_x): Likewise.
60226         (add_dependency): Likewise.
60227         (_dl_lookup_symbol_x): Likewise.
60228         (_dl_debug_bindings): Likewise.
60229         * elf/dl-open.c (_dl_show_scope): Likewise.
60230         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
60231         * elf/dl-version.c (match_symbol): Likewise.
60232         (_dl_check_map_versions): Likewise.
60233         * elf/rtld.c (dl_main): Likewise.
60234         (print_unresolved): Use RTLD_PROGNAME.
60235         (print_missing_version): Likewise.
60236         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
60237         (elf_machine_rela): Likewise.
60238         * sysdeps/powerpc/powerpc32/dl-machine.c
60239         (__process_machine_rela): Likewise.
60240         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
60241         Likewise.
60242         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
60243         Likewise.
60244         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
60245         Likewise.
60246         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
60247         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
60248         Likewise.
60249         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
60250         Likewise.
60251         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
60252
60253 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
60254
60255         * po/be.po: Add descriptive title.
60256         * po/zh_CN.po: Likewise.
60257         * po/header.pot: Likewise.
60258
60259 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
60260
60261         * locale/programs/locarchive.c (create_archive): Inlucde fname in
60262         error message.
60263         (enlarge_archive): Likewise.
60264
60265 2013-05-28  Ben North  <ben@redfrontdoor.org>
60266
60267         * manual/arith.texi (frexp): It is the magnitude of the return
60268         value which lies in [0.5, 1), not the return value itself.
60269
60270 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60271
60272         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60273
60274 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
60275
60276         * stdio-common/bug26.c (main): Correct fscanf template.
60277
60278         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
60279         declare _dl_skip_args.
60280
60281         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
60282         Don't declare.
60283
60284         * manual/platform.texi: Add missing @end deftypefun.
60285
60286 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
60287
60288         [BZ #15529]
60289         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
60290         bit of mantissa of 2^16382.
60291         * math/libm-test.inc (hypot_test_data): Add more tests.
60292
60293         * math/libm-test.inc: Add drem and pow10 to list of tested
60294         functions.
60295         (pow10_test): New function.
60296         (drem_test): Likewise.
60297         (drem_test_tonearest): Likewise.
60298         (drem_test_towardzero): Likewise.
60299         (drem_test_downward): Likewise.
60300         (drem_test_upward): Likewise.
60301         (main): Call the new functions.
60302
60303         * math/libm-test.inc (finite_test_data): Remove.
60304         (finite_test): Run tests from isfinite_test_data.
60305         (gamma_test_data): Remove.
60306         (gamma_test): Run tests from lgamma_test_data.
60307         * sysdeps/i386/fpu/libm-test-ulps: Update.
60308         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60309
60310 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60311
60312         * manual/platform.texi: Add PowerPC PPR function set documentation.
60313         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
60314         implementation.
60315
60316 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
60317
60318         * math/libm-test.inc (MAX_EXP): Define.
60319         (ULPDIFF): Define.
60320         (ulp): New function.
60321         (check_float_internal): Use ULPDIFF.
60322         (cpow_test): Disable failing test.
60323         (check_ulp): Test ulp() implementation.
60324         (main): Call check_ulp before starting tests.
60325
60326 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
60327
60328         * math/gen-libm-test.pl (generate_testfile): Do not handle
60329         START_DATA and END_DATA.
60330         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
60331         END_DATA.
60332         (acos_tonearest_test_data): Likewise.
60333         (acos_towardzero_test_data): Likewise.
60334         (acos_downward_test_data): Likewise.
60335         (acos_upward_test_data): Likewise.
60336         (acosh_test_data): Likewise.
60337         (asin_test_data): Likewise.
60338         (asin_tonearest_test_data): Likewise.
60339         (asin_towardzero_test_data): Likewise.
60340         (asin_downward_test_data): Likewise.
60341         (asin_upward_test_data): Likewise.
60342         (asinh_test_data): Likewise.
60343         (atan_test_data): Likewise.
60344         (atanh_test_data): Likewise.
60345         (atan2_test_data): Likewise.
60346         (cabs_test_data): Likewise.
60347         (cacos_test_data): Likewise.
60348         (cacosh_test_data): Likewise.
60349         (carg_test_data): Likewise.
60350         (casin_test_data): Likewise.
60351         (casinh_test_data): Likewise.
60352         (catan_test_data): Likewise.
60353         (catanh_test_data): Likewise.
60354         (cbrt_test_data): Likewise.
60355         (ccos_test_data): Likewise.
60356         (ccosh_test_data): Likewise.
60357         (ceil_test_data): Likewise.
60358         (cexp_test_data): Likewise.
60359         (cimag_test_data): Likewise.
60360         (clog_test_data): Likewise.
60361         (clog10_test_data): Likewise.
60362         (conj_test_data): Likewise.
60363         (copysign_test_data): Likewise.
60364         (cos_test_data): Likewise.
60365         (cos_tonearest_test_data): Likewise.
60366         (cos_towardzero_test_data): Likewise.
60367         (cos_downward_test_data): Likewise.
60368         (cos_upward_test_data): Likewise.
60369         (cosh_test_data): Likewise.
60370         (cosh_tonearest_test_data): Likewise.
60371         (cosh_towardzero_test_data): Likewise.
60372         (cosh_downward_test_data): Likewise.
60373         (cosh_upward_test_data): Likewise.
60374         (cpow_test_data): Likewise.
60375         (cproj_test_data): Likewise.
60376         (creal_test_data): Likewise.
60377         (csin_test_data): Likewise.
60378         (csinh_test_data): Likewise.
60379         (csqrt_test_data): Likewise.
60380         (ctan_test_data): Likewise.
60381         (ctan_tonearest_test_data): Likewise.
60382         (ctan_towardzero_test_data): Likewise.
60383         (ctan_downward_test_data): Likewise.
60384         (ctan_upward_test_data): Likewise.
60385         (ctanh_test_data): Likewise.
60386         (ctanh_tonearest_test_data): Likewise.
60387         (ctanh_towardzero_test_data): Likewise.
60388         (ctanh_downward_test_data): Likewise.
60389         (ctanh_upward_test_data): Likewise.
60390         (erf_test_data): Likewise.
60391         (erfc_test_data): Likewise.
60392         (exp_test_data): Likewise.
60393         (exp_tonearest_test_data): Likewise.
60394         (exp_towardzero_test_data): Likewise.
60395         (exp_downward_test_data): Likewise.
60396         (exp_upward_test_data): Likewise.
60397         (exp10_test_data): Likewise.
60398         (exp2_test_data): Likewise.
60399         (expm1_test_data): Likewise.
60400         (fabs_test_data): Likewise.
60401         (fdim_test_data): Likewise.
60402         (finite_test_data): Likewise.
60403         (floor_test_data): Likewise.
60404         (fma_test_data): Likewise.
60405         (fma_towardzero_test_data): Likewise.
60406         (fma_downward_test_data): Likewise.
60407         (fma_upward_test_data): Likewise.
60408         (fmax_test_data): Likewise.
60409         (fmin_test_data): Likewise.
60410         (fmod_test_data): Likewise.
60411         (fpclassify_test_data): Likewise.
60412         (frexp_test_data): Likewise.
60413         (gamma_test_data): Likewise.
60414         (hypot_test_data): Likewise.
60415         (ilogb_test_data): Likewise.
60416         (isfinite_test_data): Likewise.
60417         (isgreater_test_data): Likewise.
60418         (isgreaterequal_test_data): Likewise.
60419         (isinf_test_data): Likewise.
60420         (isless_test_data): Likewise.
60421         (islessequal_test_data): Likewise.
60422         (islessgreater_test_data): Likewise.
60423         (isnan_test_data): Likewise.
60424         (isnormal_test_data): Likewise.
60425         (issignaling_test_data): Likewise.
60426         (isunordered_test_data): Likewise.
60427         (j0_test_data): Likewise.
60428         (j1_test_data): Likewise.
60429         (jn_test_data): Likewise.
60430         (ldexp_test_data): Likewise.
60431         (lgamma_test_data): Likewise.
60432         (lrint_test_data): Likewise.
60433         (lrint_tonearest_test_data): Likewise.
60434         (lrint_towardzero_test_data): Likewise.
60435         (lrint_downward_test_data): Likewise.
60436         (lrint_upward_test_data): Likewise.
60437         (llrint_test_data): Likewise.
60438         (llrint_tonearest_test_data): Likewise.
60439         (llrint_towardzero_test_data): Likewise.
60440         (llrint_downward_test_data): Likewise.
60441         (llrint_upward_test_data): Likewise.
60442         (log_test_data): Likewise.
60443         (log10_test_data): Likewise.
60444         (log1p_test_data): Likewise.
60445         (log2_test_data): Likewise.
60446         (logb_test_data): Likewise.
60447         (logb_downward_test_data): Likewise.
60448         (lround_test_data): Likewise.
60449         (llround_test_data): Likewise.
60450         (modf_test_data): Likewise.
60451         (nearbyint_test_data): Likewise.
60452         (nextafter_test_data): Likewise.
60453         (nexttoward_test_data): Likewise.
60454         (pow_test_data): Likewise.
60455         (pow_tonearest_test_data): Likewise.
60456         (pow_towardzero_test_data): Likewise.
60457         (pow_downward_test_data): Likewise.
60458         (pow_upward_test_data): Likewise.
60459         (remainder_test_data): Likewise.
60460         (remainder_tonearest_test_data): Likewise.
60461         (remainder_towardzero_test_data): Likewise.
60462         (remainder_downward_test_data): Likewise.
60463         (remainder_upward_test_data): Likewise.
60464         (remquo_test_data): Likewise.
60465         (rint_test_data): Likewise.
60466         (rint_tonearest_test_data): Likewise.
60467         (rint_towardzero_test_data): Likewise.
60468         (rint_downward_test_data): Likewise.
60469         (rint_upward_test_data): Likewise.
60470         (round_test_data): Likewise.
60471         (scalb_test_data): Likewise.
60472         (scalbn_test_data): Likewise.
60473         (scalbln_test_data): Likewise.
60474         (signbit_test_data): Likewise.
60475         (sin_test_data): Likewise.
60476         (sin_tonearest_test_data): Likewise.
60477         (sin_towardzero_test_data): Likewise.
60478         (sin_downward_test_data): Likewise.
60479         (sin_upward_test_data): Likewise.
60480         (sincos_test_data): Likewise.
60481         (sinh_test_data): Likewise.
60482         (sinh_tonearest_test_data): Likewise.
60483         (sinh_towardzero_test_data): Likewise.
60484         (sinh_downward_test_data): Likewise.
60485         (sinh_upward_test_data): Likewise.
60486         (sqrt_test_data): Likewise.
60487         (tan_test_data): Likewise.
60488         (tan_tonearest_test_data): Likewise.
60489         (tan_towardzero_test_data): Likewise.
60490         (tan_downward_test_data): Likewise.
60491         (tan_upward_test_data): Likewise.
60492         (tanh_test_data): Likewise.
60493         (tgamma_test_data): Likewise.
60494         (trunc_test_data): Likewise.
60495         (y0_test_data): Likewise.
60496         (y1_test_data): Likewise.
60497         (yn_test_data): Likewise.
60498         (significand_test_data): Likewise.
60499
60500         * math/gen-libm-test.pl (@functions): Remove variable.
60501         (generate_testfile): Don't handle START and END lines.
60502         * math/libm-test.inc (START): New macro.
60503         (END): Likewise.
60504         (END_COMPLEX): Likewise.
60505         (acos_test): Use END macro without arguments.
60506         (acos_test_tonearest): Likewise.
60507         (acos_test_towardzero): Likewise.
60508         (acos_test_downward): Likewise.
60509         (acos_test_upward): Likewise.
60510         (acosh_test): Likewise.
60511         (asin_test): Likewise.
60512         (asin_test_tonearest): Likewise.
60513         (asin_test_towardzero): Likewise.
60514         (asin_test_downward): Likewise.
60515         (asin_test_upward): Likewise.
60516         (asinh_test): Likewise.
60517         (atan_test): Likewise.
60518         (atanh_test): Likewise.
60519         (atan2_test): Likewise.
60520         (cabs_test): Likewise.
60521         (cacos_test): Use END_COMPLEX macro without arguments.
60522         (cacosh_test): Likewise.
60523         (carg_test): Use END macro without arguments.
60524         (casin_test): Use END_COMPLEX macro without arguments.
60525         (casinh_test): Likewise.
60526         (catan_test): Likewise.
60527         (catanh_test): Likewise.
60528         (cbrt_test): Use END macro without arguments.
60529         (ccos_test): Use END_COMPLEX macro without arguments.
60530         (ccosh_test): Likewise.
60531         (ceil_test): Use END macro without arguments.
60532         (cexp_test): Use END_COMPLEX macro without arguments.
60533         (cimag_test): Use END macro without arguments.
60534         (clog_test): Use END_COMPLEX macro without arguments.
60535         (clog10_test): Likewise.
60536         (conj_test): Likewise.
60537         (copysign_test): Use END macro without arguments.
60538         (cos_test): Likewise.
60539         (cos_test_tonearest): Likewise.
60540         (cos_test_towardzero): Likewise.
60541         (cos_test_downward): Likewise.
60542         (cos_test_upward): Likewise.
60543         (cosh_test): Likewise.
60544         (cosh_test_tonearest): Likewise.
60545         (cosh_test_towardzero): Likewise.
60546         (cosh_test_downward): Likewise.
60547         (cosh_test_upward): Likewise.
60548         (cpow_test): Use END_COMPLEX macro without arguments.
60549         (cproj_test): Likewise.
60550         (creal_test): Use END macro without arguments.
60551         (csin_test): Use END_COMPLEX macro without arguments.
60552         (csinh_test): Likewise.
60553         (csqrt_test): Likewise.
60554         (ctan_test): Likewise.
60555         (ctan_test_tonearest): Likewise.
60556         (ctan_test_towardzero): Likewise.
60557         (ctan_test_downward): Likewise.
60558         (ctan_test_upward): Likewise.
60559         (ctanh_test): Likewise.
60560         (ctanh_test_tonearest): Likewise.
60561         (ctanh_test_towardzero): Likewise.
60562         (ctanh_test_downward): Likewise.
60563         (ctanh_test_upward): Likewise.
60564         (erf_test): Use END macro without arguments.
60565         (erfc_test): Likewise.
60566         (exp_test): Likewise.
60567         (exp_test_tonearest): Likewise.
60568         (exp_test_towardzero): Likewise.
60569         (exp_test_downward): Likewise.
60570         (exp_test_upward): Likewise.
60571         (exp10_test): Likewise.
60572         (exp2_test): Likewise.
60573         (expm1_test): Likewise.
60574         (fabs_test): Likewise.
60575         (fdim_test): Likewise.
60576         (finite_test): Likewise.
60577         (floor_test): Likewise.
60578         (fma_test): Likewise.
60579         (fma_test_towardzero): Likewise.
60580         (fma_test_downward): Likewise.
60581         (fma_test_upward): Likewise.
60582         (fmax_test): Likewise.
60583         (fmin_test): Likewise.
60584         (fmod_test): Likewise.
60585         (fpclassify_test): Likewise.
60586         (frexp_test): Likewise.
60587         (gamma_test): Likewise.
60588         (hypot_test): Likewise.
60589         (ilogb_test): Likewise.
60590         (isfinite_test): Likewise.
60591         (isgreater_test): Likewise.
60592         (isgreaterequal_test): Likewise.
60593         (isinf_test): Likewise.
60594         (isless_test): Likewise.
60595         (islessequal_test): Likewise.
60596         (islessgreater_test): Likewise.
60597         (isnan_test): Likewise.
60598         (isnormal_test): Likewise.
60599         (issignaling_test): Likewise.
60600         (isunordered_test): Likewise.
60601         (j0_test): Likewise.
60602         (j1_test): Likewise.
60603         (jn_test): Likewise.
60604         (ldexp_test): Likewise.
60605         (lgamma_test): Likewise.
60606         (lrint_test): Likewise.
60607         (lrint_test_tonearest): Likewise.
60608         (lrint_test_towardzero): Likewise.
60609         (lrint_test_downward): Likewise.
60610         (lrint_test_upward): Likewise.
60611         (llrint_test): Likewise.
60612         (llrint_test_tonearest): Likewise.
60613         (llrint_test_towardzero): Likewise.
60614         (llrint_test_downward): Likewise.
60615         (llrint_test_upward): Likewise.
60616         (log_test): Likewise.
60617         (log10_test): Likewise.
60618         (log1p_test): Likewise.
60619         (log2_test): Likewise.
60620         (logb_test): Likewise.
60621         (logb_test_downward): Likewise.
60622         (lround_test): Likewise.
60623         (llround_test): Likewise.
60624         (modf_test): Likewise.
60625         (nearbyint_test): Likewise.
60626         (nextafter_test): Likewise.
60627         (nexttoward_test): Likewise.
60628         (pow_test): Likewise.
60629         (pow_test_tonearest): Likewise.
60630         (pow_test_towardzero): Likewise.
60631         (pow_test_downward): Likewise.
60632         (pow_test_upward): Likewise.
60633         (remainder_test): Likewise.
60634         (remainder_test_tonearest): Likewise.
60635         (remainder_test_towardzero): Likewise.
60636         (remainder_test_downward): Likewise.
60637         (remainder_test_upward): Likewise.
60638         (remquo_test): Likewise.
60639         (rint_test): Likewise.
60640         (rint_test_tonearest): Likewise.
60641         (rint_test_towardzero): Likewise.
60642         (rint_test_downward): Likewise.
60643         (rint_test_upward): Likewise.
60644         (round_test): Likewise.
60645         (scalb_test): Likewise.
60646         (scalbn_test): Likewise.
60647         (scalbln_test): Likewise.
60648         (signbit_test): Likewise.
60649         (sin_test): Likewise.
60650         (sin_test_tonearest): Likewise.
60651         (sin_test_towardzero): Likewise.
60652         (sin_test_downward): Likewise.
60653         (sin_test_upward): Likewise.
60654         (sincos_test): Likewise.
60655         (sinh_test): Likewise.
60656         (sinh_test_tonearest): Likewise.
60657         (sinh_test_towardzero): Likewise.
60658         (sinh_test_downward): Likewise.
60659         (sinh_test_upward): Likewise.
60660         (sqrt_test): Likewise.
60661         (tan_test): Likewise.
60662         (tan_test_tonearest): Likewise.
60663         (tan_test_towardzero): Likewise.
60664         (tan_test_downward): Likewise.
60665         (tan_test_upward): Likewise.
60666         (tanh_test): Likewise.
60667         (tgamma_test): Likewise.
60668         (trunc_test): Likewise.
60669         (y0_test): Likewise.
60670         (y1_test): Likewise.
60671         (yn_test): Likewise.
60672         (significand_test): Likewise.
60673
60674 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
60675
60676         [BZ #15381]
60677         * libio/genops.c (_IO_no_init): Initialize wide struct info.
60678
60679 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
60680
60681         [BZ #14894]
60682         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
60683         __ppc_mdoio and __ppc_mdoom.
60684         * manual/platform.texi: Document new functions __ppc_yield,
60685         __ppc_mdoio and __ppc_mdoom.
60686
60687 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
60688
60689         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
60690         (main): Mention "tls" pseudo-hwcap is legacy.
60691         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
60692
60693 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
60694
60695         * math/gen-libm-test.pl (parse_args): Output only string of
60696         arguments as text for test name, not full call or descriptions of
60697         tests for extra outputs.
60698         (generate_testfile): Do not pass function name to parse_args.
60699         Generate this_func variable from START.
60700         * math/libm-test.inc (struct test_f_f_data): Rename test_name
60701         field to arg_str.
60702         (struct test_ff_f_data): Likewise.
60703         (test_ff_f_data_nexttoward): Likewise.
60704         (struct test_fi_f_data): Likewise.
60705         (struct test_fl_f_data): Likewise.
60706         (struct test_if_f_data): Likewise.
60707         (struct test_fff_f_data): Likewise.
60708         (struct test_c_f_data): Likewise.
60709         (struct test_f_f1_data): Likewise.  Remove field extra_name.
60710         (struct test_fF_f1_data): Likewise.
60711         (struct test_ffI_f1_data): Likewise.
60712         (struct test_c_c_data): Rename test_name field to arg_str.
60713         (struct test_cc_c_data): Likewise.
60714         (struct test_f_i_data): Likewise.
60715         (struct test_ff_i_data): Likewise.
60716         (struct test_f_l_data): Likewise.
60717         (struct test_f_L_data): Likewise.
60718         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
60719         and extra2_name.
60720         (COMMON_TEST_SETUP): New macro.
60721         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
60722         (COMMON_TEST_CLEANUP): Likewise.
60723         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
60724         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
60725         macros.
60726         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
60727         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
60728         macros.
60729         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
60730         (RUN_TEST_fff_f): Take argument string.  Call new setup and
60731         cleanup macros.
60732         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
60733         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
60734         macros.
60735         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
60736         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
60737         macros.
60738         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
60739         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
60740         cleanup macros.
60741         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
60742         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
60743         cleanup macros.
60744         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
60745         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
60746         cleanup macros.
60747         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
60748         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
60749         macros.
60750         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
60751         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
60752         macros.
60753         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
60754         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
60755         macros.
60756         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
60757         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
60758         cleanup macros.
60759         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
60760         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
60761         cleanup macros.
60762         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
60763         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
60764         macros.
60765         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
60766         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
60767         cleanup macros.
60768         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
60769         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
60770         macros.
60771         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
60772         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
60773         macros.
60774         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
60775         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
60776         cleanup macros.
60777         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
60778
60779 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
60780
60781         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
60782         to _sifields.sigfault.
60783         (si_addr_lsb): Define new macro.
60784         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
60785         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
60786         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
60787
60788 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
60789
60790         [BZ #15441]
60791         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
60792         returns -1.
60793         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
60794         null return -1.
60795         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
60796         loading the domain.
60797
60798 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
60799
60800         * math/gen-libm-test.pl (parse_args): Do not include expected
60801         result in test name.
60802         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
60803         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
60804         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
60805         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
60806         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
60807         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60808
60809 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
60810
60811         * benchtests/Makefile: Sort function entries.
60812
60813         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
60814         tanh, asinh, acosh, atanh.
60815         * benchtests/acos-inputs: New file.
60816         * benchtests/acosh-inputs: New file.
60817         * benchtests/asin-inputs: New file.
60818         * benchtests/asinh-inputs: New file.
60819         * benchtests/atanh-inputs: New file.
60820         * benchtests/cosh-inputs: New file.
60821         * benchtests/log-inputs: New file.
60822         * benchtests/sinh-inputs: New file.
60823         * benchtests/tanh-inputs: New file.
60824
60825 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
60826
60827         [BZ #15339]
60828         * posix/tst-getaddrinfo4.c: New test.
60829         * posix/Makefile (tests): Add it.
60830
60831 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
60832
60833         [BZ #15339]
60834         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
60835         when no services were used.
60836         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
60837         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
60838
60839 2013-05-21  Andreas Schwab  <schwab@suse.de>
60840
60841         [BZ #15014]
60842         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
60843         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
60844         successful.
60845         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
60846         redundant variable declarations and reallocation of buffer when
60847         parsing as IPv6 address.  Always set NSS status when called from
60848         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
60849         buffer too small.  Correct computation of needed size.
60850         * nss/Makefile (tests): Add test-digits-dots.
60851         * nss/test-digits-dots.c: New test.
60852
60853 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
60854
60855         * benchtests/Makefile: Remove instructions for adding
60856         benchmark tests.
60857         * benchtests/README: New file to explain how to execute and
60858         enhance the benchmark tests.
60859
60860 2013-05-21  Andreas Schwab  <schwab@suse.de>
60861
60862         [BZ #15493]
60863         * setjmp/Makefile (tests): Add tst-sigsetjmp.
60864         * setjmp/tst-sigsetjmp.c: New test.
60865
60866 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
60867
60868         * sysdeps/x86_64/memset.S (memset): New implementation.
60869         (__bzero): Likewise.
60870         (__memset_tail): New function.
60871
60872 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
60873
60874         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
60875         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
60876         __memcpy_sse2_unaligned ifunc selection.
60877         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
60878         Add memcpy-sse2-unaligned.S.
60879         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
60880         Add: __memcpy_sse2_unaligned.
60881
60882 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
60883
60884         [BZ #15490]
60885         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
60886         math_force_eval before restoring floating-point envrionment.
60887         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
60888         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
60889         Likewise.
60890         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
60891         <math_private.h>.
60892         (__nearbyintl): Use math_force_eval before restoring
60893         floating-point environment.
60894         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
60895
60896         * math/gen-libm-test.pl (special_functions): Remove.
60897         (parse_args): Don't handle TEST_extra.  Handle functions with no
60898         return value.
60899         * math/libm-test.inc (struct test_sincos_data): Replace with
60900         struct test_fFF_11_data.
60901         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
60902         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
60903         (sincos_test_data): Change element type to struct
60904         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
60905         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
60906         RUN_TEST_LOOP_sincos.
60907         * math/README.libm-test: Don't mention special handling of
60908         individual functions.
60909         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
60910         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
60911         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
60912         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
60913         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
60914         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60915
60916         * math/gen-libm-test.pl (get_variable): Remove function.
60917         (parse_args): Don't show pointer parameters to call in test
60918         names.  Use "extra output N" in test names for extra outputs
60919         rather than naming variables.
60920
60921 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
60922
60923         [BZ #15488]
60924         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
60925         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
60926         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
60927         double tests.
60928         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
60929         disable.
60930         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
60931         check_long_double.
60932
60933         * math/gen-libm-test.pl (@tests): Remove variable.
60934         ($count): Likewise.
60935         (new_test): Remove function.
60936         (show_exceptions): New function.
60937         (special_functions): Use show_exceptions instead of new_test.
60938         (parse_args): Likewise.
60939         (generate_testfile): Pass only function name in generated call to
60940         print_max_error or print_complex_max_error.
60941         (get_ulps): Do not handle complex tests specially.
60942         (output_test): Rename to ...
60943         (get_all_ulps_for_test): ... this.  Return a string rather than
60944         printing to a file.  Require ulps to be present.
60945         (output_ulps): Generate arrays rather than #defines.
60946         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
60947         (struct ulp_data): New type.
60948         (BUILD_COMPLEX_ULP): Remove macro.
60949         (compare_ulp_data): New function.
60950         (find_ulps): Likewise.
60951         (find_test_ulps): Likewise.
60952         (find_function_ulps): Likewise.
60953         (find_complex_function_ulps): Likewise.
60954         (print_max_error): Determine allowed ulps using
60955         find_function_ulps.
60956         (print_complex_max_error): Determine allowed ulps using
60957         find_complex_function_ulps.
60958         (check_float_internal): Determine max ulps using find_test_ulps.
60959         (check_float): Do not take max_ulp parameter.  Update call to
60960         check_float_internal.
60961         (check_complex): Likewise.
60962         (check_int): Do not take max_ulp parameter.
60963         (check_long): Likewise.
60964         (check_bool): Likewise.
60965         (check_longlong): Likewise.
60966         (struct test_f_f_data): Remove max_ulp field.
60967         (struct test_ff_f_data): Likewise.
60968         (struct test_ff_f_data_nexttoward): Likewise.
60969         (struct test_fi_f_data): Likewise.
60970         (struct test_fl_f_data): Likewise.
60971         (struct test_if_f_data): Likewise.
60972         (struct test_fff_f_data): Likewise.
60973         (struct test_c_f_data): Likewise.
60974         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
60975         (struct test_fF_f1_data): Likewise.
60976         (struct test_ffI_f1_data): Likewise.
60977         (struct test_c_c_data): Remove max_ulp field.
60978         (struct test_cc_c_data): Likewise.
60979         (struct test_f_i_data): Likewise.
60980         (struct test_ff_i_data): Likewise.
60981         (struct test_f_l_data): Likewise.
60982         (struct test_f_L_data): Likewise.
60983         (struct test_sincos_data): Likewise.
60984         (RUN_TEST_f_f): Do not handle ulps.
60985         (RUN_TEST_LOOP_f_f): Likewise.
60986         (RUN_TEST_2_f): Likewise.
60987         (RUN_TEST_LOOP_2_f): Likewise.
60988         (RUN_TEST_fff_f): Likewise.
60989         (RUN_TEST_LOOP_fff_f): Likewise.
60990         (RUN_TEST_c_f): Likewise.
60991         (RUN_TEST_LOOP_c_f): Likewise.
60992         (RUN_TEST_f_f1): Likewise.
60993         (RUN_TEST_LOOP_f_f1): Likewise.
60994         (RUN_TEST_fF_f1): Likewise.
60995         (RUN_TEST_LOOP_fF_f1): Likewise.
60996         (RUN_TEST_fI_f1): Likewise.
60997         (RUN_TEST_LOOP_fI_f1): Likewise.
60998         (RUN_TEST_ffI_f1): Likewise.
60999         (RUN_TEST_LOOP_ffI_f1): Likewise.
61000         (RUN_TEST_c_c): Likewise.
61001         (RUN_TEST_LOOP_c_c): Likewise.
61002         (RUN_TEST_cc_c): Likewise.
61003         (RUN_TEST_LOOP_cc_c): Likewise.
61004         (RUN_TEST_f_i): Likewise.
61005         (RUN_TEST_LOOP_f_i): Likewise.
61006         (RUN_TEST_f_i_tg): Likewise.
61007         (RUN_TEST_LOOP_f_i_tg): Likewise.
61008         (RUN_TEST_ff_i_tg): Likewise.
61009         (RUN_TEST_LOOP_ff_i_tg): Likewise.
61010         (RUN_TEST_f_b): Likewise.
61011         (RUN_TEST_LOOP_f_b): Likewise.
61012         (RUN_TEST_f_b_tg): Likewise.
61013         (RUN_TEST_LOOP_f_b_tg): Likewise.
61014         (RUN_TEST_f_l): Likewise.
61015         (RUN_TEST_LOOP_f_l): Likewise.
61016         (RUN_TEST_f_L): Likewise.
61017         (RUN_TEST_LOOP_f_L): Likewise.
61018         (RUN_TEST_sincos): Likewise.
61019         (RUN_TEST_LOOP_sincos): Likewise.
61020
61021 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
61022
61023         [BZ #15480]
61024         [BZ #15485]
61025         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
61026         main case of finite arguments, set rounding mode to FE_TONEAREST
61027         and discard exceptions.
61028         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
61029         exceptions.
61030         (remainder_tonearest_test_data): New variable.
61031         (remainder_test_tonearest): New function.
61032         (remainder_towardzero_test_data): New variable.
61033         (remainder_test_towardzero): New function.
61034         (remainder_downward_test_data): New variable.
61035         (remainder_test_downward): New function.
61036         (remainder_upward_test_data): New variable.
61037         (remainder_test_upward): New function.
61038         (main): Call the new test functions.
61039
61040         * math/libm-test.inc (struct test_f_f1_data): Remove field
61041         extra_init.
61042         (struct test_fF_f1_data): Likewise.
61043         (struct test_ffI_f1_data): Likewise.
61044         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
61045         based on value of EXTRA_EXPECTED.
61046         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
61047         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
61048         EXTRA_VAR based on value of EXTRA_EXPECTED.
61049         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
61050         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
61051         EXTRA_VAR based on value of EXTRA_EXPECTED.
61052         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
61053         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
61054         EXTRA_VAR based on value of EXTRA_EXPECTED.
61055         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
61056         * math/gen-libm-test.pl (parse_args): Don't output initializers
61057         for extra output values.
61058
61059         * math/libm-test.inc (check_int): Expect result to be exactly
61060         equal to expected value and do not handle ulps.
61061         (check_long): Likewise.
61062         (check_longlong): Likewise.
61063
61064         * math/libm-test.inc (ceil_test_data): Test for "inexact"
61065         exceptions.
61066         (cimag_test_data): Likewise.
61067         (conj_test_data): Likewise.
61068         (copysign_test_data): Likewise.
61069         (cproj_test_data): Likewise.
61070         (creal_test_data): Likewise.
61071         (fabs_test_data): Likewise.
61072         (fdim_test_data): Likewise.
61073         (finite_test_data): Likewise.
61074         (floor_test_data): Likewise.
61075         (fmax_test_data): Likewise.
61076         (fmin_test_data): Likewise.
61077         (fmod_test_data): Likewise.
61078         (fpclassify_test_data): Likewise.
61079         (frexp_test_data): Likewise.
61080         (ilogb_test_data): Likewise.
61081         (isfinite_test_data): Likewise.
61082         (isgreater_test_data): Likewise.
61083         (isgreaterequal_test_data): Likewise.
61084         (isinf_test_data): Likewise.
61085         (isless_test_data): Likewise.
61086         (islessequal_test_data): Likewise.
61087         (islessgreater_test_data): Likewise.
61088         (isnan_test_data): Likewise.
61089         (isnormal_test_data): Likewise.
61090         (issignaling_test_data): Likewise.
61091         (isunordered_test_data): Likewise.
61092         (ldexp_test_data): Likewise.
61093         (lrint_test_data): Likewise.
61094         (lrint_test_data) [TEST_FLOAT]: Disable one test.
61095         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
61096         (lrint_tonearest_test_data): Test for "inexact" exceptions.
61097         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
61098         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
61099         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
61100         test input.
61101         (lrint_towardzero_test_data): Test for "inexact" exceptions.
61102         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
61103         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
61104         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
61105         that test input.
61106         (lrint_downward_test_data): Test for "inexact" exceptions.
61107         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
61108         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
61109         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
61110         test input.
61111         (lrint_upward_test_data): Test for "inexact" exceptions.
61112         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
61113         test input.
61114         (llrint_test_data): Test for "inexact" exceptions.
61115         (llrint_test_data) [TEST_FLOAT]: Disable one test.
61116         (llrint_tonearest_test_data): Test for "inexact" exceptions.
61117         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
61118         (llrint_towardzero_test_data): Test for "inexact" exceptions.
61119         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
61120         (llrint_downward_test_data): Test for "inexact" exceptions.
61121         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
61122         (llrint_upward_test_data): Test for "inexact" exceptions.
61123         (logb_test_data): Likewise.
61124         (logb_downward_test_data): Likewise.
61125         (nextafter_test_data): Likewise.
61126         (nexttoward_test_data): Likewise.
61127         (remainder_test_data): Likewise.
61128         (remquo_test_data): Likewise.
61129         (scalbn_test_data): Likewise.
61130         (scalbln_test_data): Likewise.
61131         (signbit_test_data): Likewise.
61132         (sqrt_test_data): Likewise.
61133         (significand_test_data): Likewise.
61134
61135 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
61136
61137         [BZ #15424]
61138         * benchtests/bench-modf.c (struct args): Mark arg0 as
61139         volatile.
61140         * scripts/bench.pl: Mark members of struct args as volatile.
61141
61142 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61143
61144         [BZ # 15497]
61145         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
61146         negative infinity on POWER6 or lower.
61147         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
61148
61149 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
61150
61151         [BZ #15442]
61152         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
61153         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
61154         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
61155         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
61156         (_FP_SETQNAN): New macro.
61157         (_FP_SETQNAN_SEMIRAW): Likewise.
61158         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
61159         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
61160         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
61161         (FP_EXTEND): Use _FP_FRAC_SNANP.
61162         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
61163         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
61164         into account.
61165         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
61166         New macro.
61167         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
61168         Likewise.
61169
61170 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
61171
61172         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
61173         with DIVIDE_BY_ZERO_EXCEPTION.
61174         (gamma_test_data): Likewise.
61175         (lgamma_test_data): Likewise.
61176         (log_test_data): Likewise.
61177         (log10_test_data): Likewise.
61178         (log2_test_data): Likewise.
61179         (tgamma_test_data): Likewise.
61180
61181         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
61182         (acos_test_tonearest): Likewise.
61183         (acos_test_towardzero): Likewise.
61184         (acos_test_downward): Likewise.
61185         (acos_test_upward): Likewise.
61186         (acosh_test): Likewise.
61187         (asin_test): Likewise.
61188         (asin_test_tonearest): Likewise.
61189         (asin_test_towardzero): Likewise.
61190         (asin_test_downward): Likewise.
61191         (asin_test_upward): Likewise.
61192         (asinh_test): Likewise.
61193         (atan_test): Likewise.
61194         (atanh_test): Likewise.
61195         (atan2_test): Likewise.
61196         (cabs_test): Likewise.
61197         (cacos_test): Likewise.
61198         (cacosh_test): Likewise.
61199         (casin_test): Likewise.
61200         (casinh_test): Likewise.
61201         (catan_test): Likewise.
61202         (catanh_test): Likewise.
61203         (cbrt_test): Likewise.
61204         (ccos_test): Likewise.
61205         (ccosh_test): Likewise.
61206         (cexp_test): Likewise.
61207         (clog_test): Likewise.
61208         (clog10_test): Likewise.
61209         (cos_test): Likewise.
61210         (cos_test_tonearest): Likewise.
61211         (cos_test_towardzero): Likewise.
61212         (cos_test_downward): Likewise.
61213         (cos_test_upward): Likewise.
61214         (cosh_test): Likewise.
61215         (cosh_test_tonearest): Likewise.
61216         (cosh_test_towardzero): Likewise.
61217         (cosh_test_downward): Likewise.
61218         (cosh_test_upward): Likewise.
61219         (cpow_test): Likewise.
61220         (csin_test): Likewise.
61221         (csinh_test): Likewise.
61222         (csqrt_test): Likewise.
61223         (ctan_test): Likewise.
61224         (ctan_test_tonearest): Likewise.
61225         (ctan_test_towardzero): Likewise.
61226         (ctan_test_downward): Likewise.
61227         (ctan_test_upward): Likewise.
61228         (ctanh_test): Likewise.
61229         (ctanh_test_tonearest): Likewise.
61230         (ctanh_test_towardzero): Likewise.
61231         (ctanh_test_downward): Likewise.
61232         (ctanh_test_upward): Likewise.
61233         (erf_test): Likewise.
61234         (erfc_test): Likewise.
61235         (exp_test): Likewise.
61236         (exp_test_tonearest): Likewise.
61237         (exp_test_towardzero): Likewise.
61238         (exp_test_downward): Likewise.
61239         (exp_test_upward): Likewise.
61240         (exp10_test): Likewise.
61241         (exp2_test): Likewise.
61242         (expm1_test): Likewise.
61243         (fmod_test): Likewise.
61244         (gamma_test): Likewise.
61245         (hypot_test): Likewise.
61246         (j0_test): Likewise.
61247         (j1_test): Likewise.
61248         (jn_test): Likewise.
61249         (lgamma_test): Likewise.
61250         (log_test): Likewise.
61251         (log10_test): Likewise.
61252         (log1p_test): Likewise.
61253         (log2_test): Likewise.
61254         (logb_test_downward): Likewise.
61255         (pow_test): Likewise.
61256         (pow_test_tonearest): Likewise.
61257         (pow_test_towardzero): Likewise.
61258         (pow_test_downward): Likewise.
61259         (pow_test_upward): Likewise.
61260         (remainder_test): Likewise.
61261         (remquo_test): Likewise.
61262         (sin_test): Likewise.
61263         (sin_test_tonearest): Likewise.
61264         (sin_test_towardzero): Likewise.
61265         (sin_test_downward): Likewise.
61266         (sin_test_upward): Likewise.
61267         (sincos_test): Likewise.
61268         (sinh_test): Likewise.
61269         (sinh_test_tonearest): Likewise.
61270         (sinh_test_towardzero): Likewise.
61271         (sinh_test_downward): Likewise.
61272         (sinh_test_upward): Likewise.
61273         (sqrt_test): Likewise.
61274         (tan_test): Likewise.
61275         (tan_test_tonearest): Likewise.
61276         (tan_test_towardzero): Likewise.
61277         (tan_test_downward): Likewise.
61278         (tan_test_upward): Likewise.
61279         (tanh_test): Likewise.
61280         (tgamma_test): Likewise.
61281         (y0_test): Likewise.
61282         (y1_test): Likewise.
61283         (yn_test): Likewise.
61284
61285         * math/gen-libm-test.pl (adjust_arg): Remove function.
61286         (special_function): Remove argument $in_func.  Only handle
61287         generating output for tables of tests, not inside functions.
61288         (parse_args): Likewise.
61289         (generate_testfile): Remove variable $in_func.  Update call to
61290         parse_args.
61291         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
61292         (MINUS_ZERO_INIT): Rename macro to minus_zero.
61293         (PLUS_INFTY_INIT): Rename macro to plus_infty.
61294         (MINUS_INFTY_INIT): Rename macro to minus_infty.
61295         (QNAN_VALUE_INIT): Rename macro to qnan_value.
61296         (MAX_VALUE_INIT): Rename macro to max_value.
61297         (MIN_VALUE_INIT): Rename macro to min_value.
61298         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
61299         (plus_zero): Remove variable.
61300         (minus_zero): Likewise.
61301         (plus_infty): Likewise.
61302         (minus_infty): Likewise.
61303         (qnan_value): Likewise.
61304         (max_value): Likewise.
61305         (min_value): Likewise.
61306         (min_subnorm_value): Likewise.
61307
61308 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
61309
61310         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
61311         uint64_t or uint32_t usage.
61312         * crypt/sha256-block.c: Likewise.
61313         * crypt/sha256-crypt.c: Likewise.
61314         * crypt/sha256.c: Likewise.
61315         * crypt/sha512-block.c: Likewise.
61316         * crypt/sha512-crypt.c: Likewise.
61317         * crypt/sha512.c: Likewise.
61318         * debug/backtrace-tst.c: Likewise.
61319         * debug/pcprofiledump.c: Likewise.
61320         * elf/cache.c: Likewise.
61321         * elf/dl-cache.c: Likewise.
61322         * elf/dl-misc.c: Likewise.
61323         * elf/dl-profile.c: Likewise.
61324         * elf/dl-support.c: Likewise.
61325         * elf/ldconfig.c: Likewise.
61326         * elf/sprof.c: Likewise.
61327         * iconv/dummy-repertoire.c: Likewise.
61328         * iconv/iconv_charmap.c: Likewise.
61329         * iconv/skeleton.c: Likewise.
61330         * iconvdata/8bit-generic.c: Likewise.
61331         * iconvdata/cp737.h: Likewise.
61332         * iconvdata/cp775.h: Likewise.
61333         * iconvdata/ibm1008.h: Likewise.
61334         * iconvdata/ibm1025.h: Likewise.
61335         * iconvdata/ibm1046.h: Likewise.
61336         * iconvdata/ibm1097.h: Likewise.
61337         * iconvdata/ibm1112.h: Likewise.
61338         * iconvdata/ibm1122.h: Likewise.
61339         * iconvdata/ibm1123.h: Likewise.
61340         * iconvdata/ibm1124.h: Likewise.
61341         * iconvdata/ibm1129.h: Likewise.
61342         * iconvdata/ibm1130.h: Likewise.
61343         * iconvdata/ibm1132.h: Likewise.
61344         * iconvdata/ibm1133.h: Likewise.
61345         * iconvdata/ibm1137.h: Likewise.
61346         * iconvdata/ibm1140.h: Likewise.
61347         * iconvdata/ibm1141.h: Likewise.
61348         * iconvdata/ibm1142.h: Likewise.
61349         * iconvdata/ibm1143.h: Likewise.
61350         * iconvdata/ibm1144.h: Likewise.
61351         * iconvdata/ibm1145.h: Likewise.
61352         * iconvdata/ibm1146.h: Likewise.
61353         * iconvdata/ibm1147.h: Likewise.
61354         * iconvdata/ibm1148.h: Likewise.
61355         * iconvdata/ibm1149.h: Likewise.
61356         * iconvdata/ibm1153.h: Likewise.
61357         * iconvdata/ibm1154.h: Likewise.
61358         * iconvdata/ibm1155.h: Likewise.
61359         * iconvdata/ibm1156.h: Likewise.
61360         * iconvdata/ibm1157.h: Likewise.
61361         * iconvdata/ibm1158.h: Likewise.
61362         * iconvdata/ibm1160.h: Likewise.
61363         * iconvdata/ibm1161.h: Likewise.
61364         * iconvdata/ibm1162.h: Likewise.
61365         * iconvdata/ibm1163.h: Likewise.
61366         * iconvdata/ibm1164.h: Likewise.
61367         * iconvdata/ibm1166.h: Likewise.
61368         * iconvdata/ibm1167.h: Likewise.
61369         * iconvdata/ibm12712.h: Likewise.
61370         * iconvdata/ibm1390.h: Likewise.
61371         * iconvdata/ibm1399.h: Likewise.
61372         * iconvdata/ibm16804.h: Likewise.
61373         * iconvdata/ibm4517.h: Likewise.
61374         * iconvdata/ibm4899.h: Likewise.
61375         * iconvdata/ibm4909.h: Likewise.
61376         * iconvdata/ibm4971.h: Likewise.
61377         * iconvdata/ibm5347.h: Likewise.
61378         * iconvdata/ibm803.h: Likewise.
61379         * iconvdata/ibm856.h: Likewise.
61380         * iconvdata/ibm901.h: Likewise.
61381         * iconvdata/ibm902.h: Likewise.
61382         * iconvdata/ibm9030.h: Likewise.
61383         * iconvdata/ibm9066.h: Likewise.
61384         * iconvdata/ibm921.h: Likewise.
61385         * iconvdata/ibm922.h: Likewise.
61386         * iconvdata/ibm9448.h: Likewise.
61387         * iconvdata/isiri-3342.h: Likewise.
61388         * iconvdata/jis0201.h: Likewise.
61389         * include/link.h: Likewise.
61390         * include/netdb.h: Likewise.
61391         * inet/check_native.c: Likewise.
61392         * inet/check_pf.c: Likewise.
61393         * inet/getipv4sourcefilter.c: Likewise.
61394         * inet/getnameinfo.c: Likewise.
61395         * inet/getsourcefilter.c: Likewise.
61396         * inet/htonl.c: Likewise.
61397         * inet/setipv4sourcefilter.c: Likewise.
61398         * inet/setsourcefilter.c: Likewise.
61399         * inet/test-inet6_opt.c: Likewise.
61400         * inet/tst-network.c: Likewise.
61401         * locale/C-collate.c: Likewise.
61402         * locale/C-ctype.c: Likewise.
61403         * locale/C-time.c: Likewise.
61404         * locale/C-translit.h: Likewise.
61405         * locale/loadarchive.c: Likewise.
61406         * locale/programs/3level.h: Likewise.
61407         * locale/programs/charmap.c: Likewise.
61408         * locale/programs/charmap.h: Likewise.
61409         * locale/programs/ld-address.c: Likewise.
61410         * locale/programs/ld-collate.c: Likewise.
61411         * locale/programs/ld-ctype.c: Likewise.
61412         * locale/programs/ld-identification.c: Likewise.
61413         * locale/programs/ld-measurement.c: Likewise.
61414         * locale/programs/ld-messages.c: Likewise.
61415         * locale/programs/ld-monetary.c: Likewise.
61416         * locale/programs/ld-name.c: Likewise.
61417         * locale/programs/ld-numeric.c: Likewise.
61418         * locale/programs/ld-paper.c: Likewise.
61419         * locale/programs/ld-telephone.c: Likewise.
61420         * locale/programs/ld-time.c: Likewise.
61421         * locale/programs/linereader.c: Likewise.
61422         * locale/programs/locale.c: Likewise.
61423         * locale/programs/locarchive.c: Likewise.
61424         * locale/programs/locfile.h: Likewise.
61425         * locale/programs/repertoire.c: Likewise.
61426         * locale/programs/simple-hash.c: Likewise.
61427         * locale/programs/simple-hash.h: Likewise.
61428         * malloc/memusage.c: Likewise.
61429         * malloc/memusagestat.c: Likewise.
61430         * nis/nis_defaults.c: Likewise.
61431         * nis/nis_hash.c: Likewise.
61432         * nis/nis_print.c: Likewise.
61433         * nis/nis_xdr.c: Likewise.
61434         * nscd/connections.c: Likewise.
61435         * nscd/hstcache.c: Likewise.
61436         * nscd/nscd_gethst_r.c: Likewise.
61437         * nscd/nscd_getserv_r.c: Likewise.
61438         * nscd/nscd_helper.c: Likewise.
61439         * nscd/servicescache.c: Likewise.
61440         * nss/makedb.c: Likewise.
61441         * nss/nss_db/db-XXX.c: Likewise.
61442         * nss/nss_db/db-initgroups.c: Likewise.
61443         * nss/nss_db/db-netgrp.c: Likewise.
61444         * nss/nss_files/files-network.c: Likewise.
61445         * nss/nss_files/files-parse.c: Likewise.
61446         * posix/bug-regex5.c: Likewise.
61447         * posix/fnmatch_loop.c: Likewise.
61448         * posix/regcomp.c: Likewise.
61449         * posix/regexec.c: Likewise.
61450         * posix/tst-rfc3484-2.c: Likewise.
61451         * posix/tst-rfc3484-3.c: Likewise.
61452         * posix/tst-rfc3484.c: Likewise.
61453         * resolv/nss_dns/dns-canon.c: Likewise.
61454         * resolv/nss_dns/dns-network.c: Likewise.
61455         * resolv/res_init.c: Likewise.
61456         * resolv/res_mkquery.c: Likewise.
61457         * resolv/tst-aton.c: Likewise.
61458         * stdlib/cxa_atexit.c: Likewise.
61459         * stdlib/cxa_finalize.c: Likewise.
61460         * stdlib/gen-fpioconst.c: Likewise.
61461         * stdlib/strtol_l.c: Likewise.
61462         * string/tst-endian.c: Likewise.
61463         * sunrpc/auth_des.c: Likewise.
61464         * sunrpc/clnt_udp.c: Likewise.
61465         * sunrpc/rtime.c: Likewise.
61466         * sunrpc/svcauth_des.c: Likewise.
61467         * sunrpc/xdr.c: Likewise.
61468         * sunrpc/xdr_intXX_t.c: Likewise.
61469         * sunrpc/xdr_rec.c: Likewise.
61470         * sysdeps/generic/ldconfig.h: Likewise.
61471         * sysdeps/generic/ldsodefs.h: Likewise.
61472         * sysdeps/generic/memusage.h: Likewise.
61473         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
61474         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
61475         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
61476         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
61477         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
61478         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
61479         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
61480         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
61481         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
61482         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
61483         * sysdeps/posix/getaddrinfo.c: Likewise.
61484         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
61485         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
61486         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
61487         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
61488         * sysdeps/powerpc/test-gettimebase.c: Likewise.
61489         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
61490         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
61491         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
61492         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
61493         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
61494         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
61495         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
61496         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
61497         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
61498         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
61499         * sysdeps/x86_64/dl-tls.h: Likewise.
61500         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
61501         * time/alt_digit.c: Likewise.
61502         * time/era.c: Likewise.
61503         * wcsmbs/tst-c16c32-1.c: Likewise.
61504
61505 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
61506
61507         * math/libm-test.inc (struct test_sincos_data): New type.
61508         (RUN_TEST_LOOP_sincos): New macro.
61509         (sincos_test_data): New variable.
61510         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
61511
61512 2013-05-16  Richard Henderson  <rth@redhat.com>
61513
61514         * math/atest-exp2.c (LIMB64): New macro.
61515         (CONSTSZ): New macro.
61516         (mp_exp1, mp_exp_m1, mp_log2): New variables.
61517         (hexdig): Move ...
61518         (print_mpn_fp): ... to function scope.
61519         (read_mpn_hex): Remove.
61520         (get_log2): Remove.
61521         (exp2_mpn): Use mp_log2.
61522         (main): Use mp_exp1.
61523
61524 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
61525
61526         * math/libm-test.inc: Remove comment about not testing "inexact"
61527         exceptions.
61528         (INEXACT_EXCEPTION): New macro.
61529         (NO_INEXACT_EXCEPTION): Likewise.
61530         (INVALID_EXCEPTION_OK): Update value.
61531         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
61532         (OVERFLOW_EXCEPTION_OK): Likewise.
61533         (UNDERFLOW_EXCEPTION_OK): Likewise.
61534         (IGNORE_ZERO_INF_SIGN): Likewise.
61535         (ERRNO_UNCHANGED): Likewise.
61536         (ERRNO_EDOM): Likewise.
61537         (ERRNO_ERANGE): Likewise.
61538         (test_exceptions): Handle testing "inexact" exceptions.
61539         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
61540         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
61541         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
61542         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
61543         INEXACT_EXCEPTION.
61544         (rint_towardzero_test_data): Likewise.
61545         (rint_downward_test_data): Likewise.
61546         (rint_upward_test_data): Likewise.
61547
61548         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
61549         with OVERFLOW_EXCEPTION.
61550         (exp10_test_data): Likewise.
61551         (exp2_test_data): Likewise.
61552         (expm1_test_data): Likewise.
61553         (lgamma_test_data): Likewise.
61554         (pow_test_data): Likewise.
61555         (tgamma_test_data): Likewise.
61556         (yn_test_data): Remove duplicate test of overflow.
61557
61558         * math/libm-test.inc (struct test_cc_c_data): New type.
61559         (RUN_TEST_LOOP_cc_c): New macro.
61560         (cpow_test_data): New variable.
61561         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
61562
61563         * math/libm-test.inc (struct test_f_L_data): New type.
61564         (RUN_TEST_LOOP_f_L): New macro.
61565         (llrint_test_data): New variable.
61566         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
61567         (llrint_tonearest_test_data): New variable.
61568         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
61569         (llrint_towardzero_test_data): New variable.
61570         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
61571         (llrint_downward_test_data): New variable.
61572         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
61573         (llrint_upward_test_data): New variable.
61574         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
61575         (llround_test_data): New variable.
61576         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
61577
61578 2013-05-13  Peter Collingbourne  <pcc@google.com>
61579
61580         * math/atest-exp2.c (get_log2): Remove const attribute.
61581
61582 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
61583
61584         * math/libm-test.inc (struct test_f_l_data): New type.
61585         (RUN_TEST_LOOP_f_l): New macro.
61586         (lrint_test_data): New variable.
61587         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
61588         (lrint_tonearest_test_data): New variable.
61589         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
61590         (lrint_towardzero_test_data): New variable.
61591         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
61592         (lrint_downward_test_data): New variable.
61593         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
61594         (lrint_upward_test_data): New variable.
61595         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
61596         (lround_test_data): New variable.
61597         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
61598
61599 2013-05-15  Peter Collingbourne  <pcc@google.com>
61600
61601         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
61602         (EXTRACT_WORDS64) Use where appropriate.
61603         (INSERT_WORDS64) Likewise.
61604
61605         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
61606         constraints with x constraints.
61607         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
61608
61609         * malloc/obstack.c (_obstack_compat): Add initializer.
61610
61611 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
61612
61613         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
61614         si_trapno and add si_addr_lsb to _sifields.sigfault.
61615         (si_trapno): Remove macro.
61616         (si_addr_lsb): Define new macro.
61617         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
61618
61619 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
61620
61621         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
61622         instead of TEST_f_l.
61623         (llrint_test_tonearest): Likewise.
61624         (llrint_test_towardzero): Likewise.
61625         (llrint_test_downward): Likewise.
61626         (llrint_test_upward): Likewise.
61627         (llround_test): Likewise.
61628
61629         * math/libm-test.inc (struct test_f_i_data): Add comment.
61630         (RUN_TEST_LOOP_f_b): New macro.
61631         (RUN_TEST_LOOP_f_b_tg): Likewise.
61632         (finite_test_data): New variable.
61633         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
61634         (isfinite_test_data): New variable.
61635         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61636         (isinf_test_data): New variable.
61637         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61638         (isnan_test_data): New variable.
61639         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61640         (isnormal_test_data): New variable.
61641         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61642         (issignaling_test_data): New variable.
61643         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61644         (signbit_test_data): New variable.
61645         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61646
61647         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
61648         with INVALID_EXCEPTION.
61649         (acosh_test_data): Likewise.
61650         (asin_test_data): Likewise.
61651         (atanh_test_data): Likewise.
61652         (fmod_test_data): Likewise.
61653         (log_test_data): Likewise.
61654         (log10_test_data): Likewise.
61655         (log2_test_data): Likewise.
61656         (pow_test_data): Likewise.
61657         (sqrt_test_data): Likewise.
61658         (y0_test_data): Likewise.
61659         (y1_test_data): Likewise.
61660         (yn_test_data): Likewise.
61661
61662         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
61663         function contents.
61664
61665         * math/libm-test.inc (struct test_ff_i_data): New type.
61666         (RUN_TEST_LOOP_ff_i_tg): New macro.
61667         (isgreater_test_data): New variable.
61668         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61669         (isgreaterequal_test_data): New variable.
61670         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61671         (isless_test_data): New variable.
61672         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61673         (islessequal_test_data): New variable.
61674         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61675         (islessgreater_test_data): New variable.
61676         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61677         (isunordered_test_data): New variable.
61678         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61679
61680 2013-05-14  David S. Miller  <davem@davemloft.net>
61681
61682         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61683
61684 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
61685
61686         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
61687
61688         * math/libm-test.inc (struct test_fF_f1_data): Change type of
61689         extra_test to int.
61690         (struct test_f_i_data): Change type of max_ulp to int.
61691
61692         * math/libm-test.inc (test_ffI_f1_data): New type.
61693         (RUN_TEST_LOOP_ffI_f1): New macro.
61694         (remquo_test_data): New variable.
61695         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
61696
61697         * setjmp/tst-setjmp-fp.c: New file.
61698         * setjmp/Makefile (tests): Add tst-setjmp-fp.
61699         (link-libm): New variable.
61700         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
61701
61702         * math/libm-test.inc (struct test_f_i_data): New type.
61703         (RUN_TEST_LOOP_f_i): New macro.
61704         (RUN_TEST_LOOP_f_i_tg): Likewise.
61705         (fpclassify_test_data): New variable.
61706         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
61707         (ilogb_test_data): New variable.
61708         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
61709
61710         * math/libm-test.inc (scalbln_test): Correct function name in END
61711         call.
61712
61713         * math/libm-test.inc (struct test_f_f1_data): Add comment.
61714         (RUN_TEST_LOOP_fI_f1): New macro.
61715         (frexp_test_data): New variable.
61716         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
61717
61718         * math/libm-test.inc (struct test_fF_f1_data): New type.
61719         (RUN_TEST_LOOP_fF_f1): New macro.
61720         (modf_test_data): New variable.
61721         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
61722
61723         * math/libm-test.inc (struct test_f_f1_data): New type.
61724         (RUN_TEST_LOOP_f_f1): New macro.
61725         (gamma_test_data): New variable.
61726         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
61727         (lgamma_test_data): New variable.
61728         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
61729
61730 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
61731
61732         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
61733         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
61734         (main): Comment "tls" pseudo-hwcap.
61735
61736 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
61737
61738         * math/libm-test.inc (struct test_fl_f_data): New type.
61739         (RUN_TEST_LOOP_fl_f): New variable.
61740         (scalbln_test_data): New variable.
61741         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
61742
61743         * math/libm-test.inc (struct test_fi_f_data): New type.
61744         (RUN_TEST_LOOP_fi_f): New macro.
61745         (ldexp_test_data): New variable.
61746         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
61747         (scalbn_test_data): New variable.
61748         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
61749
61750         * math/libm-test.inc (struct test_c_f_data): New type.
61751         (RUN_TEST_LOOP_c_f): New macro.
61752         (cabs_test_data): New variable.
61753         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
61754         (carg_test_data): New variable.
61755         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
61756         (cimag_test_data): New variable.
61757         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
61758         (creal_test_data): New variable.
61759         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
61760
61761         * math/libm-test.inc (struct test_if_f_data): New type.
61762         (RUN_TEST_LOOP_if_f): New macro.
61763         (jn_test_data): New variable.
61764         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
61765         (yn_test_data): New variable.
61766         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
61767
61768         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
61769
61770 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61771
61772         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
61773         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
61774
61775 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
61776
61777         * benchtests/Makefile (CPPFLAGS-nonlib): Add
61778         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
61779         (bench-deps): Add bench-timing.h.
61780         * benchtests-bench-skeleton.c: Include bench-timing.h.
61781         (main): Use TIMING_* macros instead of clock_gettime.
61782         * benchtests/bench-timing.h: New file.
61783
61784         [BZ #14582]
61785         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
61786         Renamed from _LIB_VERSION.
61787         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
61788
61789 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
61790
61791         * math/libm-test.inc (struct test_fff_f_data): New type.
61792         (RUN_TEST_LOOP_fff_f): New macro.
61793         (fma_test_data): New variable.
61794         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
61795         (fma_towardzero_test_data): New variable.
61796         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
61797         (fma_downward_test_data): New variable.
61798         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
61799         (fma_upward_test_data): New variable.
61800         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
61801
61802         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
61803         (struct test_c_c_data): New type.
61804         (RUN_TEST_LOOP_c_c): New macro.
61805         (cacos_test_data): New variable.
61806         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
61807         (cacosh_test_data): New variable.
61808         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
61809         (casin_test_data): New variable.
61810         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
61811         (casinh_test_data): New variable.
61812         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
61813         (catan_test_data): New variable.
61814         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
61815         (catanh_test_data): New variable.
61816         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
61817         (ccos_test_data): New variable.
61818         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
61819         (ccosh_test_data): New variable.
61820         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
61821         (cexp_test_data): New variable.
61822         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
61823         (clog_test_data): New variable.
61824         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
61825         (clog10_test_data): New variable.
61826         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
61827         (conj_test_data): New variable.
61828         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
61829         (cproj_test_data): New variable.
61830         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
61831         (csin_test_data): New variable.
61832         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
61833         (csinh_test_data): New variable.
61834         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
61835         (csqrt_test_data): New variable.
61836         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
61837         (ctan_test_data): New variable.
61838         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
61839         (ctan_tonearest_test_data): New variable.
61840         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
61841         (ctan_towardzero_test_data): New variable.
61842         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
61843         (ctan_downward_test_data): New variable.
61844         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
61845         (ctan_upward_test_data): New variable.
61846         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
61847         (ctanh_test_data): New variable.
61848         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
61849         (ctanh_tonearest_test_data): New variable.
61850         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
61851         (ctanh_towardzero_test_data): New variable.
61852         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
61853         (ctanh_downward_test_data): New variable.
61854         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
61855         (ctanh_upward_test_data): New variable.
61856         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
61857         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
61858         of BUILD_COMPLEX.
61859
61860         * math/libm-test.inc (struct test_ff_f_data): New type.
61861         (struct test_ff_f_data_nexttoward): Likewise.
61862         (RUN_TEST_LOOP_2_f): New macro.
61863         (RUN_TEST_LOOP_ff_f): Likewise.
61864         (atan2_test_data): New variable.
61865         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
61866         (copysign_test_data): New variable.
61867         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
61868         (fdim_test_data): New variable.
61869         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
61870         (fmax_test_data): New variable.
61871         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
61872         (fmin_test_data): New variable.
61873         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
61874         (fmod_test_data): New variable.
61875         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
61876         (hypot_test_data): New variable.
61877         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
61878         (nextafter_test_data): New variable.
61879         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
61880         (nexttoward_test_data): New variable.
61881         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
61882         (pow_test_data): New variable.
61883         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
61884         (pow_tonearest_test_data): New variable.
61885         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
61886         (pow_towardzero_test_data): New variable.
61887         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
61888         (pow_downward_test_data): New variable.
61889         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
61890         (pow_upward_test_data): New variable.
61891         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
61892         (remainder_test_data): New variable.
61893         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
61894         (scalb_test_data): New variable.
61895         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
61896         * sysdeps/i386/fpu/libm-test-ulps: Update.
61897
61898 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
61899
61900         * math/libm-test.inc (fma_test): Use max_value instead of local
61901         variable fltmax.
61902         (nextafter_test): Likewise.
61903
61904         * math/libm-test.inc (acos_towardzero_test_data): New variable.
61905         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61906         (acos_downward_test_data): New variable.
61907         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61908         (acos_upward_test_data): New variable.
61909         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61910         (acosh_test_data): New variable.
61911         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
61912         (asin_test_data): New variable.
61913         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
61914         (asin_tonearest_test_data): New variable.
61915         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61916         (asin_towardzero_test_data): New variable.
61917         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61918         (asin_downward_test_data): New variable.
61919         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61920         (asin_upward_test_data): New variable.
61921         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61922         (asinh_test_data): New variable.
61923         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
61924         (atan_test_data): New variable.
61925         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
61926         (atanh_test_data): New variable.
61927         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
61928         (cbrt_test_data): New variable.
61929         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
61930         (ceil_test_data): New variable.
61931         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
61932         (cos_test_data): New variable.
61933         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
61934         (cos_tonearest_test_data): New variable.
61935         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61936         (cos_towardzero_test_data): New variable.
61937         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61938         (cos_downward_test_data): New variable.
61939         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61940         (cos_upward_test_data): New variable.
61941         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61942         (cosh_test_data): New variable.
61943         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
61944         (cosh_tonearest_test_data): New variable.
61945         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61946         (cosh_towardzero_test_data): New variable.
61947         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61948         (cosh_downward_test_data): New variable.
61949         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61950         (cosh_upward_test_data): New variable.
61951         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61952         (erf_test_data): New variable.
61953         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
61954         (erfc_test_data): New variable.
61955         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
61956         (exp_test_data): New variable.
61957         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
61958         (exp_tonearest_test_data): New variable.
61959         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61960         (exp_towardzero_test_data): New variable.
61961         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61962         (exp_downward_test_data): New variable.
61963         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61964         (exp_upward_test_data): New variable.
61965         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61966         (exp10_test_data): New variable.
61967         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
61968         (exp2_test_data): New variable.
61969         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
61970         (expm1_test_data): New variable.
61971         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
61972         (fabs_test_data): New variable.
61973         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
61974         (floor_test_data): New variable.
61975         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
61976         (j0_test_data): New variable.
61977         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
61978         (j1_test_data): New variable.
61979         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
61980         (log_test_data): New variable.
61981         (log_test): Run tests with RUN_TEST_LOOP_f_f.
61982         (log10_test_data): New variable.
61983         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
61984         (log1p_test_data): New variable.
61985         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
61986         (log2_test_data): New variable.
61987         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
61988         (logb_test_data): New variable.
61989         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
61990         (logb_downward_test_data): New variable.
61991         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61992         (nearbyint_test_data): New variable.
61993         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
61994         (rint_test_data): New variable.
61995         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
61996         (rint_tonearest_test_data): New variable.
61997         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61998         (rint_towardzero_test_data): New variable.
61999         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62000         (rint_downward_test_data): New variable.
62001         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62002         (rint_upward_test_data): New variable.
62003         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62004         (round_test_data): New variable.
62005         (round_test): Run tests with RUN_TEST_LOOP_f_f.
62006         (sin_test_data): New variable.
62007         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
62008         (sin_tonearest_test_data): New variable.
62009         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62010         (sin_towardzero_test_data): New variable.
62011         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62012         (sin_downward_test_data): New variable.
62013         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62014         (sin_upward_test_data): New variable.
62015         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62016         (sinh_test_data): New variable.
62017         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
62018         (sinh_tonearest_test_data): New variable.
62019         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62020         (sinh_towardzero_test_data): New variable.
62021         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62022         (sinh_downward_test_data): New variable.
62023         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62024         (sinh_upward_test_data): New variable.
62025         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62026         (sqrt_test_data): New variable.
62027         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
62028         (tan_test_data): New variable.
62029         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
62030         (tan_tonearest_test_data): New variable.
62031         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62032         (tan_towardzero_test_data): New variable.
62033         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62034         (tan_downward_test_data): New variable.
62035         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62036         (tan_upward_test_data): New variable.
62037         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62038         (tanh_test_data): New variable.
62039         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
62040         (tgamma_test_data): New variable.
62041         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
62042         (trunc_test_data): New variable.
62043         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
62044         (y0_test_data): New variable.
62045         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
62046         (y1_test_data): New variable.
62047         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
62048         (significand_test_data): New variable.
62049         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
62050
62051 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
62052
62053         [BZ #12387]
62054         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
62055
62056 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62057
62058         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
62059
62060 2013-05-10  Andreas Jaeger  <aj@suse.de>
62061
62062         [BZ #15448]
62063         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
62064         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
62065
62066 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
62067
62068         * math/gen-libm-test.pl (adjust_arg): New function.
62069         (special_functions): Handle generating output in both functions
62070         and arrays.
62071         (parse_args): Likewise.
62072         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
62073         $in_func argument to parse_args.
62074         * math/libm-test.inc (struct test_f_f_data): New type.
62075         (IF_ROUND_INIT_): New macro.
62076         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
62077         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
62078         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
62079         (IF_ROUND_INIT_FE_UPWARD): Likewise.
62080         (ROUND_RESTORE_): Likewise.
62081         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
62082         (ROUND_RESTORE_FE_TONEAREST): Likewise.
62083         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
62084         (ROUND_RESTORE_FE_UPWARD): Likewise.
62085         (RUN_TEST_LOOP_f_f): New macro.
62086         (acos_test_data): New variable.
62087         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
62088         (acos_tonearest_test_data): New variable.
62089         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62090
62091 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
62092
62093         * benchtests/bench-skeleton.c (startup): Fix coding style.
62094
62095 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
62096
62097         [BZ #6809]
62098         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
62099         negative infinity argument.
62100         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
62101         negative infinity argument.
62102         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
62103         negative infinity argument.
62104         * math/libm-test.inc (tgamma_test): Expect errno to be set for
62105         domain errors.
62106
62107 2013-05-10  Florian Weimer  <fweimer@redhat.com>
62108
62109         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
62110         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
62111         * iconv/iconv_prog.c (main): Likewise.
62112         * locale/programs/charmap-dir.c (charmap_readdir)
62113         (fopen_uncompressed): Likewise.
62114         * locale/programs/locfile.c (siblings_uncached)
62115         (write_locale_data): Use lstat64 instead of lstat.
62116         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
62117         stat.
62118
62119 2013-05-10  Andreas Jaeger  <aj@suse.de>
62120
62121         [BZ #15395]
62122         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
62123         localization.
62124         Include <locale.h>.
62125
62126 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
62127
62128         * elf/dl-close.c (_dl_close_worker): Add comments.
62129
62130 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
62131
62132         [BZ #15359]
62133         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
62134         high part of pi/2.
62135         (__ieee754_rem_pio2l): Update comments.
62136
62137         [BZ #15429]
62138         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
62139         high part of pi/2.
62140         (__ieee754_rem_pio2l): Update comments.
62141
62142         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
62143         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
62144
62145         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
62146         M_PI_4l.
62147
62148         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
62149         (M_PI_34_LOG10El): Likewise.
62150         (M_PI2_LOG10El): Likewise.
62151         (M_PI4_LOG10El): Likewise.
62152         (M_PI_LOG10El): Likewise.
62153
62154 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62155
62156         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62157
62158 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
62159
62160         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
62161         (MINUS_ZERO_INIT): Likewise.
62162         (PLUS_INFTY_INIT): Likewise.
62163         (MINUS_INFTY_INIT): Likewise.
62164         (QNAN_VALUE_INIT): Likewise.
62165         (MAX_VALUE_INIT): Likewise.
62166         (MIN_VALUE_INIT): Likewise.
62167         (MIN_SUBNORM_VALUE_INIT): Likewise.
62168         (plus_zero): Initialize with PLUS_ZERO_INIT.
62169         (minus_zero): Initialize with MINUS_ZERO_INIT.
62170         (plus_infty): Initialize with PLUS_INFTY_INIT.
62171         (minus_infty): Initialize with MINUS_INFTY_INIT.
62172         (qnan_value): Initialize with QNAN_VALUE_INIT.
62173         (max_value): Initialize with MAX_VALUE_INIT.
62174         (min_value): Initialize with MIN_VALUE_INIT.
62175         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
62176
62177         * math/libm-test.inc (RUN_TEST_if_f): New macro.
62178         (jn_test): Use TEST_if_f instead of TEST_ff_f.
62179         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
62180         (yn_test): Use TEST_if_f instead of TEST_ff_f.
62181
62182         * math/libm-test.inc (RUN_TEST_f_f): New macro.
62183         (RUN_TEST_2_f): Likewise.
62184         (RUN_TEST_ff_f): Likewise.
62185         (RUN_TEST_fi_f): Likewise.
62186         (RUN_TEST_fl_f): Likewise.
62187         (RUN_TEST_fff_f): Likewise.
62188         (RUN_TEST_c_f): Likewise.
62189         (RUN_TEST_f_f1): Likewise.
62190         (RUN_TEST_fF_f1): Likewise.
62191         (RUN_TEST_fI_f1): Likewise.
62192         (RUN_TEST_ffI_f1): Likewise.
62193         (RUN_TEST_c_c): Likewise.
62194         (RUN_TEST_cc_c): Likewise.
62195         (RUN_TEST_f_i): Likewise.
62196         (RUN_TEST_f_i_tg): Likewise.
62197         (RUN_TEST_ff_i_tg): Likewise.
62198         (RUN_TEST_f_b): Likewise.
62199         (RUN_TEST_f_b_tg): Likewise.
62200         (RUN_TEST_f_l): Likewise.
62201         (RUN_TEST_f_L): Likewise.
62202         (RUN_TEST_sincos): Likewise.
62203         * math/gen-libm-test.pl (new_test): Take new argument to indicate
62204         whether to show exceptions.  Do not include ");\n" in return
62205         value.
62206         (special_functions): Output call to RUN_TEST_sincos instead of
62207         check_float calls.  Update calls to new_test.
62208         (parse_args): Output call to single RUN_TEST_* macro instead of
62209         check_* calls and other assignments.  Update calls to new_test.
62210
62211         [BZ #2546]
62212         [BZ #2560]
62213         [BZ #5159]
62214         [BZ #15426]
62215         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
62216         input to result for tgamma overflow.
62217         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
62218         (gamma_coeff): New variable.
62219         (NCOEFF): New macro.
62220         (gamma_positive): New function.
62221         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
62222         underflow here.  Use gamma_positive instead of exp (lgamma) for
62223         other arguments.
62224         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
62225         (gamma_coeff): New variable.
62226         (NCOEFF): New macro.
62227         (gammaf_positive): New function.
62228         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
62229         underflow here.  Use gamma_positive instead of exp (lgamma) for
62230         other arguments.
62231         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
62232         (gamma_coeff): New variable.
62233         (NCOEFF): New macro.
62234         (gammal_positive): New function.
62235         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
62236         underflow here.  Use gamma_positive instead of exp (lgamma) for
62237         other arguments.
62238         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
62239         (gamma_coeff): New variable.
62240         (NCOEFF): New macro.
62241         (gammal_positive): New function.
62242         (__ieee754_gammal_r): Handle positive infinity, overflow and
62243         underflow here.  Handle NaN the same as positive infinity.  Remove
62244         check x < 0xffffffff for negative integers.  Use gamma_positive
62245         instead of exp (lgamma) for other arguments.
62246         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
62247         (gamma_coeff): New variable.
62248         (NCOEFF): New macro.
62249         (gammal_positive): New function.
62250         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
62251         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
62252         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
62253         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
62254         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
62255         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
62256         * sysdeps/generic/math_private.h (__gamma_productf): New
62257         prototype.
62258         (__gamma_product): Likewise.
62259         (__gamma_productl): Likewise.
62260         * math/Makefile (libm-calls): Add gamma_product.
62261         * math/libm-test.inc (tgamma_test): Add more tests.
62262         * sysdeps/i386/fpu/libm-test-ulps: Update.
62263         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62264
62265 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
62266
62267         * benchtests/bench-skeleton.c (main): Preheat CPU.
62268
62269 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
62270
62271         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
62272
62273 2013-05-07  Roland McGrath  <roland@hack.frob.com>
62274
62275         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
62276         and _dl_skip_args_internal.
62277
62278 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
62279
62280         * manual/message.texi (Message Translation): Talk about users.
62281         Message to key mapping impacts design.
62282
62283 2013-05-06  Roland McGrath  <roland@hack.frob.com>
62284
62285         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
62286
62287         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
62288
62289         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
62290         * sysdeps/wordsize-64/glob64.c: ... here.
62291
62292         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
62293         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
62294         New macros.
62295
62296         * debug/getlogin_r_chk.c: Moved to ...
62297         * login/getlogin_r_chk.c: ... here.
62298         * debug/Makefile (routines): Move getlogin_r_chk to ...
62299         * login/Makefile (routines): ... here.
62300         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
62301         * login/Versions (libc: GLIBC_2.4): ... here.
62302
62303         * io/poll.c (__poll): Renamed from poll.
62304         Add libc_hidden_def.
62305         (poll): Define as weak alias.
62306
62307         * debug/ptsname_r_chk.c: Moved to ...
62308         * login/ptsname_r_chk.c: ... here.
62309         * debug/Makefile (routines): Move ptsname_r_chk to ...
62310         * login/Makefile (routines): ... here.
62311         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
62312         * login/Versions (libc: GLIBC_2.4): ... here.
62313
62314         * posix/getlogin.c: Moved to ...
62315         * login/getlogin.c: ... here.
62316         * posix/getlogin_r.c: Moved to ...
62317         * login/getlogin_r.c: ... here.
62318         * posix/getlogin_r.c: Moved to ...
62319         * login/getlogin_r.c: ... here.
62320         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
62321         * login/Makefile (routines): ... here.
62322         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
62323         * login/Versions (libc: GLIBC_2.0): ... here.
62324
62325         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
62326         (setrlimit): Define as weak alias.
62327
62328         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
62329         Call __ names for open, ftruncate, and close.
62330         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
62331         (truncate): Define as weak alias.
62332
62333 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
62334
62335         * math/gen-libm-test.pl (parse_args): Initialize x before each
62336         test of frexp, modf and remquo.
62337
62338         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
62339         test signgam value.
62340
62341 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62342
62343         [BZ #15418]
62344         [BZ #15419]
62345         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
62346         internal tests.
62347         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
62348
62349 2013-05-06  Roland McGrath  <roland@hack.frob.com>
62350
62351         * elf/dl-writev.h: New file.
62352         * elf/dl-misc.c: Include it.
62353         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
62354         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
62355
62356 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
62357
62358         * math/libm-test.inc (noXFails): Remove variable.
62359         (noXPasses): Likewise.
62360         (BUILD_COMPLEX_INT): Remove macro.
62361         (print_screen): Remove xfail argument.
62362         (print_screen_max_error): Likewise.
62363         (update_stats): Likewise.
62364         (print_max_error): Likewise.  Update calls to other affected
62365         functions.
62366         (print_complex_max_error): Likewise.
62367         (test_single_exception): Update calls to print_screen.
62368         (test_single_errno): Likewise.
62369         (check_float_internal): Remove xfail argument.  Update calls to
62370         other affected functions.
62371         (check_float): Likewise.
62372         (check_complex): Likewise.
62373         (check_int): Likewise.
62374         (check_long): Likewise.
62375         (check_bool): Likewise.
62376         (check_longlong): Likewise.
62377         (main): Don't print noXFails and noXPasses.
62378         * math/gen-libm-test.pl (top level): Don't mention expected
62379         failure handling in comment.
62380         (new_test): Don't handle expected failures.
62381         (parse_args): Don't mention expected failure handling in comment.
62382         (generate_testfile): Don't handle expected failures.
62383         (parse_ulps): Likewise.
62384         (print_ulps_file): Likewise.
62385         (get_failure): Remove function.
62386         (output_test): Don't handle expected failures.
62387         * make/README.libm-test: Don't mention expected failure handling.
62388
62389         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
62390         (minus_zero): Likewise.
62391         (plus_infty): Likewise.
62392         (minus_infty): Likewise.
62393         (qnan_value): Likewise.
62394         (max_value): Likewise.
62395         (min_value): Likewise.
62396         (min_subnorm_value): Likewise.
62397         (initialize): Do not initialize those variables dynamically.
62398
62399 2013-05-03  Roland McGrath  <roland@hack.frob.com>
62400
62401         * io/open.c (__open_2): Moved to ...
62402         * io/open_2.c: ... this new file.
62403         * io/open64.c (__open64_2): Moved to ...
62404         * io/open64_2.c: ... this new file.
62405         * io/openat.c (__openat_2): Moved to ...
62406         * io/openat_2.c: ... this new file.
62407         * io/openat64.c (__openat64_2): Moved to ...
62408         * io/openat64_2.c: ... this new file.
62409         * io/Makefile (routines): Add them.
62410         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
62411         * sysdeps/unix/sysv/linux/open_2.c: File removed.
62412         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
62413         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
62414         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
62415         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
62416         (__openat64): Add hidden_ver.
62417         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
62418         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
62419
62420         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
62421         Separately conditionalize setting of GLRO(dl_sysinfo) so
62422         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
62423         as well, but the actual setting is only under [NEED_DL_SYSINFO].
62424
62425 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62426
62427         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
62428         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
62429         definition.
62430         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
62431         * sysdeps/unix/sysv/linux/powerpc/init-first.c
62432         (_libc_vdso_platform_setup): Add __vdso_time initialization.
62433         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
62434         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
62435
62436 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
62437
62438         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
62439         test signgam value.
62440
62441         * math/libm-test.inc (hypot_test): Do not use
62442         IGNORE_ZERO_INF_SIGN.
62443
62444 2013-05-03  Andreas Jaeger  <aj@suse.de>
62445
62446         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
62447         Linux 3.9.
62448         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
62449         (PF_MAX): Adjust for VSOCK change.
62450
62451 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62452
62453         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62454
62455 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
62456
62457         [BZ #15264]
62458         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
62459         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
62460         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
62461
62462 2013-05-02  David S. Miller  <davem@davemloft.net>
62463
62464         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62465
62466 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
62467
62468         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
62469
62470 2013-05-01  Roland McGrath  <roland@hack.frob.com>
62471
62472         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
62473
62474 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
62475
62476         [BZ #14952]
62477         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
62478         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
62479         Use __attribute__ ((__gnu_inline__)).
62480         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
62481         Don't use __attribute__ ((__gnu_inline__)).
62482
62483 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
62484
62485         [BZ #15423]
62486         * math/s_catan.c (__catan): Handle small real or imaginary part of
62487         input specially to avoid spurious underflow.
62488         * math/s_catanf.c (__catanf): Likewise.
62489         * math/s_catanh.c (__catanh): Likewise.
62490         * math/s_catanhf.c (__catanhf): Likewise.
62491         * math/s_catanhl.c (__catanhl): Likewise.
62492         * math/s_catanl.c (__catanl): Likewise.
62493         * math/libm-test.inc (catan_test): Add more tests.
62494         (catanh_test): Likewise.
62495         * sysdeps/i386/fpu/libm-test-ulps: Update.
62496         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62497
62498 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62499
62500         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62501
62502 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
62503
62504         [BZ #15416]
62505         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
62506         accurately for denominator in atan2.
62507         * math/s_catanf.c (__catanf): Likewise.
62508         * math/s_catanh.c (__catanh): Likewise.
62509         * math/s_catanhf.c (__catanhf): Likewise.
62510         * math/s_catanhl.c (__catanhl): Likewise.
62511         * math/s_catanl.c (__catanl): Likewise.
62512         * math/libm-test.inc (catan_test): Add more tests.
62513         (catanh_test): Likewise.
62514         * sysdeps/i386/fpu/libm-test-ulps: Update.
62515         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62516
62517 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
62518
62519         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
62520
62521         * benchtests/Makefile (bench): Remove slow benchmarks.
62522         * benchtests/atan-inputs: Add slow benchmark inputs.
62523         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
62524         (BENCH_FUNC): Accept variant offset.
62525         (VARIANT): Define.
62526         * benchtests/bench-skeleton.c (main): Run benchmark for each
62527         variant.
62528         * benchtests/cos-inputs: Add slow benchmark inputs.
62529         * benchtests/exp-inputs: Likewise.
62530         * benchtests/pow-inputs: Likewise.
62531         * benchtests/sin-inputs: Likewise.
62532         * benchtests/slowatan-inputs: Remove.
62533         * benchtests/slowatan.c: Remove.
62534         * benchtests/slowcos-inputs: Remove.
62535         * benchtests/slowcos.c: Remove.
62536         * benchtests/slowexp-inputs: Remove.
62537         * benchtests/slowexp.c: Remove.
62538         * benchtests/slowpow-inputs: Remove.
62539         * benchtests/slowpow.c: Remove.
62540         * benchtests/slowsin-inputs: Remove.
62541         * benchtests/slowsin.c: Remove.
62542         * benchtests/slowtan-inputs: Remove.
62543         * benchtests/slowtan.c: Remove.
62544         * benchtests/tan-inputs: Add slow benchmark inputs.
62545         * scripts/bench.pl: Parse comments and directives.
62546
62547         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
62548         in CPPFLAGS.
62549         ($(objpfx)bench-%.c): Remove *-ITER.
62550         * benchtests/bench-modf.c: Remove definition of ITER.
62551         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
62552         (main): Loop for DURATION seconds instead of fixed number of
62553         iterations.
62554         * scripts/bench.pl: Don't expect iterations in parameters.
62555
62556 2013-04-29  Roland McGrath  <roland@hack.frob.com>
62557
62558         * io/fchdir.c (__fchdir): Renamed from fchdir.
62559         (fchdir): Define as weak alias.
62560
62561 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
62562
62563         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
62564         (ERRNO_EDOM): Likewise.
62565         (ERRNO_ERANGE): Likewise.
62566         (noErrnoTests): New variable.
62567         (init_max_error): Set errno to 0.
62568         (test_single_errno): New function.
62569         (test_errno): Likewise.
62570         (check_float_internal): Call test_errno.  Set errno to 0.
62571         (check_complex): Refer to errno tests in comment.
62572         (check_int): Call test_errno.  Set errno to 0.
62573         (check_long): Likewise.
62574         (check_bool): Likewise.
62575         (check_longlong): Likewise.
62576         (cos_test): Use ERRNO_* flags for errno tests instead of
62577         check_int.
62578         (expm1_test): Likewise.
62579         (fmod_test): Likewise.
62580         (ilogb_test): Likewise.
62581         (lgamma_test): Likewise.
62582         (pow_test): Likewise.
62583         (remainder_test): Likewise.
62584         (sin_test): Likewise.
62585         (tan_test): Likewise.
62586         (yn_test): Likewise.
62587         (initialize): Set errno to 0.
62588         (main): Print number of errno tests.
62589         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
62590
62591 2013-04-29  Andreas Jaeger  <aj@suse.de>
62592
62593         [BZ #15084]
62594         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
62595         and RES_USEVC.
62596
62597         [BZ #15085]
62598         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
62599         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
62600         unimplemented.
62601
62602         [BZ #15380]
62603         * stdlib/random.c (__initstate): Return NULL if
62604         __initstate fails.
62605
62606         [BZ #15086]
62607         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
62608         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
62609         RES_SNGLKUPREOP.
62610
62611 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62612
62613         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62614
62615 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
62616
62617         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
62618         of individual tests.
62619         (casin_test): Likewise.
62620         (casinh_test): Likewise.
62621
62622 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
62623
62624         [BZ #15409]
62625         * math/s_catan.c (__catan): Handle arguments with large real or
62626         imaginary part separately without squaring.
62627         * math/s_catanf.c (__catanf): Likewise.
62628         * math/s_catanh.c (__catanh): Likewise.
62629         * math/s_catanhf.c (__catanhf): Likewise.
62630         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
62631         and redefine.
62632         (__catanhl): Handle arguments with large real or imaginary part
62633         separately without squaring.
62634         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
62635         and redefine.
62636         (__catanl): Handle arguments with large real or imaginary part
62637         separately without squaring.
62638         * math/libm-test.inc (catan_test): Add more tests.
62639         (catanh_test): Likewise.
62640         * sysdeps/i386/fpu/libm-test-ulps: Update.
62641         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62642
62643 2013-04-27  Andreas Jaeger  <aj@suse.de>
62644
62645         [BZ #15007]
62646         * stdlib/stdlib.h: Update guards for qecvt.
62647         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
62648         <stdlib.h>.
62649
62650 2013-04-27  Allan McRae  <allan@archlinux.org>
62651
62652         * sysdeps/i386/fpu/libm-test-ulps: Update.
62653
62654 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
62655
62656         [BZ #15406]
62657         * math/s_catan.c: Include <float.h>.
62658         (__catan): Ensure underflow exception occurs for underflowed
62659         result.
62660         * math/s_catanf.c: Include <float.h>.
62661         (__catanf): Ensure underflow exception occurs for underflowed
62662         result.
62663         * math/s_catanh.c: Include <float.h>.
62664         (__catanh): Ensure underflow exception occurs for underflowed
62665         result.
62666         * math/s_catanhf.c: Include <float.h>.
62667         (__catanhf): Ensure underflow exception occurs for underflowed
62668         result.
62669         * math/s_catanhl.c: Include <float.h>.
62670         (__catanhl): Ensure underflow exception occurs for underflowed
62671         result.
62672         * math/s_catanl.c: Include <float.h>.
62673         (__catanl): Ensure underflow exception occurs for underflowed
62674         result.
62675         * math/libm-test.inc (catan_test): Add more tests.
62676         (catanh_test): Likewise.
62677
62678         [BZ #15405]
62679         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
62680         underflowed result.
62681         * math/s_ccoshf.c (__ccoshf): Likewise.
62682         * math/s_ccoshl.c (__ccoshl): Likewise.
62683         * math/s_csin.c (__csin): Likewise.
62684         * math/s_csinf.c (__csinf): Likewise.
62685         * math/s_csinh.c (__csinh): Likewise.
62686         * math/s_csinhf.c (__csinhf): Likewise.
62687         * math/s_csinhl.c (__csinhl): Likewise.
62688         * math/s_csinl.c (__csinl): Likewise.
62689         * math/libm-test.inc (ccos_test): Add more tests.
62690         (ccosh_test): Likewise.
62691         (csin_test): Likewise.
62692         (csinh_test): Likewise.
62693
62694 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62695
62696         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
62697         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
62698         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
62699         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
62700         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
62701         powerpc/power5+/fpu folders.
62702         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
62703
62704
62705 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
62706
62707         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
62708
62709 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
62710
62711         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
62712         additions to variable.
62713         [$(config-machine) = x86_64] (modules-names): Likewise.
62714         ($(objpfx)tst-audit3): Remove dependency.
62715         ($(objpfx)tst-audit3.out): Likewise.
62716         ($(objpfx)tst-audit4): Likewise.
62717         ($(objpfx)tst-audit4.out): Likewise.
62718         ($(objpfx)tst-audit5): Likewise.
62719         ($(objpfx)tst-audit5.out): Likewise.
62720         ($(objpfx)tst-audit6): Likewise.
62721         ($(objpfx)tst-audit6.out): Likewise.
62722         ($(objpfx)tst-audit7): Likewise.
62723         ($(objpfx)tst-audit7.out): Likewise.
62724         (tst-audit3-ENV): Remove variable.
62725         (tst-audit4-ENV): Likewise.
62726         (tst-audit5-ENV): Likewise.
62727         (tst-audit6-ENV): Likewise.
62728         (tst-audit7-ENV): Likewise.
62729         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
62730         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
62731         addition to variable.
62732         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
62733         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
62734         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
62735         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
62736         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
62737         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
62738         tst-audit3, tst-audit4 and tst-audit5.
62739         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
62740         tst-audit6 and tst-audit7.
62741         [$(subdir) = elf] (modules-names): Add audit modules for those
62742         tests.
62743         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
62744         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
62745         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
62746         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
62747         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
62748         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
62749         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
62750         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
62751         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
62752         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
62753         [$(subdir) = elf] (tst-audit3-ENV): New variable.
62754         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
62755         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
62756         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
62757         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
62758         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
62759         Likewise.
62760         [$(subdir) = elf && $(config-cflags-avx) = yes]
62761         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
62762         [$(subdir) = elf && $(config-cflags-avx) = yes]
62763         (CFLAGS-tst-auditmod4a.c): Likewise.
62764         [$(subdir) = elf && $(config-cflags-avx) = yes]
62765         (CFLAGS-tst-auditmod4b.c): Likewise.
62766         [$(subdir) = elf && $(config-cflags-avx) = yes]
62767         (CFLAGS-tst-auditmod6b.c): Likewise.
62768         [$(subdir) = elf && $(config-cflags-avx) = yes]
62769         (CFLAGS-tst-auditmod6c.c): Likewise.
62770         [$(subdir) = elf && $(config-cflags-avx) = yes]
62771         (CFLAGS-tst-auditmod7b.c): Likewise.
62772         * elf/tst-audit3.c: Move to ...
62773         * sysdeps/x86_64/tst-audit3.c: ... here.
62774         * elf/tst-audit4.c: Move to ...
62775         * sysdeps/x86_64/tst-audit4.c: ... here.
62776         * elf/tst-audit5.c: Move to ...
62777         * sysdeps/x86_64/tst-audit5.c: ... here.
62778         * elf/tst-audit6.c: Move to ...
62779         * sysdeps/x86_64/tst-audit6.c: ... here.
62780         * elf/tst-audit7.c: Move to ...
62781         * sysdeps/x86_64/tst-audit7.c: ... here.
62782         * elf/tst-auditmod3a.c: Move to ...
62783         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
62784         * elf/tst-auditmod3b.c: Move to ...
62785         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
62786         * elf/tst-auditmod4a.c: Move to ...
62787         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
62788         * elf/tst-auditmod4b.c: Move to ...
62789         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
62790         * elf/tst-auditmod5a.c: Move to ...
62791         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
62792         * elf/tst-auditmod5b.c: Move to ...
62793         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
62794         * elf/tst-auditmod6a.c: Move to ...
62795         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
62796         * elf/tst-auditmod6b.c: Move to ...
62797         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
62798         * elf/tst-auditmod6c.c: Move to ...
62799         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
62800         * elf/tst-auditmod7a.c: Move to ...
62801         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
62802         * elf/tst-auditmod7b.c: Move to ...
62803         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
62804
62805 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
62806
62807         [BZ #15366]
62808         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
62809         define unconditionally.
62810         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
62811         define unconditionally.
62812         (INT8_C, INT16_C, etc.): Likewise.
62813
62814 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
62815
62816         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
62817         __ehdr_start with hidden visibility.
62818
62819         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
62820
62821 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
62822
62823         * math/libm-test.inc (cos_test): Use accurate hex constants.
62824         (sincost_test): Likewise.
62825
62826 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
62827
62828         * math/libm-test.inc (catan_test): Add more tests.
62829         (catanh_test): Likewise.
62830
62831         * math/s_catanf.c (__catanf): Use suffixed floating-point
62832         constants.
62833         * math/s_catanhf.c (__catanhf): Likewise.
62834         * math/s_catanhl.c (__catanhl): Likewise.
62835         * math/s_catanl.c (__catanl): Likewise.
62836
62837         [BZ #15394]
62838         * math/s_catan.c (__catan): Calculate imaginary part of result
62839         with log1p not log unless computing log of number close to 0.
62840         * math/s_catanf.c (__catanf): Likewise.
62841         * math/s_catanl.c (__catanl): Likewise.
62842         * math/s_catanh.c (__catanh): Calculate real part of result with
62843         log1p not log unless computing log of number close to 0.
62844         * math/s_catanhf.c (__catanhf): Likewise.
62845         * math/s_catanhl.c (__catanhl): Likewise.
62846         * math/libm-test.inc (catan_test): Add more tests.
62847         (catanh_test): Likewise.
62848         * sysdeps/i386/fpu/libm-test-ulps: Update.
62849         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62850
62851 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
62852
62853         * benchtests/Makefile: Mention files in which fast and slow
62854         paths of math functions are implemented.
62855
62856 2013-04-23  Roland McGrath  <roland@hack.frob.com>
62857
62858         * sysdeps/posix/timespec_get.c: New file.
62859
62860 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62861
62862         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
62863         POWER.
62864         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
62865         for POWER.
62866         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
62867         powerpc/power5/fpu folders.
62868         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
62869         * benchtests/Makefile: Add modf testcase.
62870         * benchtests/bench-modf.c: New file: Benchmark test for mo
62871
62872 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
62873
62874         [BZ #14888]
62875         * time/Makefile (tests): Add tst-strptime-whitespace.
62876         * time/strptime_l.c (get_number): Use ISSPACE.
62877         (__strptime_internal): Likewise.
62878         * time/tst-strptime-whitespace.c: New test case.
62879
62880 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
62881
62882         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
62883         member.
62884         (_nss_files_init): Set it here.
62885
62886 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
62887
62888         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
62889         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
62890         unsigned.
62891
62892 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
62893
62894         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
62895
62896 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
62897
62898         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
62899         size just once.
62900
62901 2013-04-21  David S. Miller  <davem@davemloft.net>
62902
62903         * po/ru.po: Update Russion translation from translation project.
62904
62905 2013-04-17  Adam Conrad  <adconrad@0c3.net>
62906
62907         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
62908         and setfsgid.
62909
62910 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
62911
62912         * configure.in: Remove i386 configure warning. Remove i386 case.
62913         * configure: Regenerate.
62914         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
62915         Add example to error message.
62916         * sysdeps/i386/configure: Regenerate.
62917
62918 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
62919
62920         * benchtests/Makefile (bench): Add cos, tan, slowcos and
62921         slowtan.
62922         * benchtests/cos-inputs: New file.
62923         * benchtests/slowcos-inputs: New file.
62924         * benchtests/slowcos.c: New file.
62925         * benchtests/slowtan-inputs: New file.
62926         * benchtests/slowtan.c: New file.
62927         * benchtests/tan-inputs: New file.
62928
62929 2013-04-16  Roland McGrath  <roland@hack.frob.com>
62930
62931         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
62932         considered kosher.
62933
62934 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
62935
62936         * benchtests/Makefile: Include cppflags-iterator.mk to add
62937         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
62938
62939         * Makefile.in (bench-clean): New target.
62940         * benchtests/Makefile (bench-clean): Likewise.
62941
62942 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
62943
62944         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
62945
62946 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
62947
62948         * stdio-common/tstdiomisc.c: Fix coding-style violation.
62949
62950 2013-04-15  Andreas Schwab  <schwab@suse.de>
62951
62952         * nscd/grpcache.c (cache_addgr): Properly check for short write.
62953         * nscd/initgrcache.c (addinitgroupsX): Likewise.
62954         * nscd/pwdcache.c (cache_addpw): Likewise.
62955         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
62956         more than recsize.
62957
62958 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
62959
62960         * benchtests/Makefile (bench): Write all output to
62961         bench-out.tmp together.
62962
62963 2013-04-15  Andreas Schwab  <schwab@suse.de>
62964
62965         * nscd/nscd.c (main): Don't fork again after closing files.
62966
62967 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
62968
62969         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
62970
62971         * benchtests/Rules (bench-deps): Collect dependencies into a
62972         single variable.  Add Makefile to dependencies.
62973         ($(objpfx)bench-%.c): Depend on bench-deps.
62974
62975 2013-04-12  Roland McGrath  <roland@hack.frob.com>
62976             Xavier Roche  <roche+kml2@exalead.com>
62977
62978         [BZ #15361]
62979         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
62980         just that it's a file descriptor.
62981         * manual/llio.texi (Synchronizing AIO Operations): Update description
62982         for EBADF error from aio_fsync.
62983
62984 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
62985
62986         * Rules (bench): Move target definition...
62987         * benchtests/Makefile: ... here.
62988
62989 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
62990
62991         * math/libm-test.inc (cos_test): Fix PI/2 test.
62992         (sincos_test): Likewise.
62993         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
62994         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
62995
62996 2013-04-11  Andreas Schwab  <schwab@suse.de>
62997
62998         [BZ #13988]
62999         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
63000         accept exponent character only when digits were seen.
63001         * stdio-common/Makefile (tests): Add bug26.
63002         * stdio-common/bug26.c: New file.
63003
63004         [BZ #14293]
63005         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
63006         non-freeable.
63007
63008 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
63009
63010         * Makeconfig (rtld-prefix): Define built linker prefix.
63011         * Rules (run-bench): Use it.
63012         * math/Makefile (run-regen-ulps): Likewise.
63013
63014         * Rules (bench): Remove eval.
63015
63016 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
63017             Roland McGrath  <roland@hack.frob.com>
63018             Ondrej Bilka  <neleai@seznam.cz>
63019
63020         [BZ #15346]
63021         * time/getdate.c: Include ctype.h and alloca.h.
63022         (__getdate_r): Trim leading and trailing spaces of input.
63023         * time/tst-getdate.c (tests): Add tests with leading and
63024         trailing spaces.
63025
63026 2013-04-08  Roland McGrath  <roland@hack.frob.com>
63027
63028         [BZ #14280]
63029         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
63030         when computing value.
63031
63032 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
63033
63034         * math/README.libm-test (How can I generate "libm-test-ulps"?):
63035         Use testrun.sh to run libm tests.
63036
63037         [BZ #15309]
63038         * elf/dl-open.c (dl_open_worker): memset all of seen array.
63039
63040 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
63041
63042         [BZ #15264]
63043         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
63044
63045 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
63046
63047         * Makefile.in (regen-ulps): New target.
63048         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
63049         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
63050         [ifneq (no,$(PERL)] (regen-ulps): New target.
63051         [ifeq (no,$(PERL)] (regen-ulps): New target.
63052         * math/libm-test.inc (ulps_file_name): Define.
63053         (output_dir): New variable.
63054         (options): Add "output-dir" option.
63055         (parse_opt): Handle 'o' case.
63056         (main): If output_dir is non-NULL use it as a prefix
63057         otherwise use "".
63058         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
63059
63060 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
63061
63062         [BZ #10060, #10062]
63063         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
63064         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
63065         fail configure if __sync_val_compare_and_swap is not inlined.
63066         * sysdeps/i386/configure: Regenerate.
63067         * configure.in: Build for i686 when configured for i386.
63068         * configure: Regenerate.
63069         * README: Remove i386 reference.
63070
63071 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
63072
63073         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
63074         * sysdeps/s390/s390-64/sysdep.h: Likewise.
63075
63076 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
63077
63078         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
63079         (lmsnanval): New variables.
63080         (F): Add conversion tests.
63081         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
63082         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
63083
63084         * stdio-common/tstdiomisc.c (F): Properly collect individual
63085         tests' results.
63086
63087         [BZ #14686, #15336]
63088         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
63089         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
63090         Instead, use input NaN values or generate a qNaN by arithmetic
63091         operation.  Also fix bugs to comply with the standard.
63092         * math/libm-test.inc (remainder_test): Add more tests.
63093
63094         [BZ #15335, #15342]
63095         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
63096         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
63097         input NaN values or generate a qNaN by arithmetic operation.
63098
63099         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
63100         unreachable code.
63101
63102         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
63103         definitions.
63104
63105 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
63106
63107         [BZ #14478]
63108         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
63109         underflowed result.
63110         * math/s_cexpf.c (__cexpf): Likewise.
63111         * math/s_cexpl.c (__cexpl): Likewise.
63112         * math/libm-test.inc (cexp_test): Add more tests.
63113
63114 2013-04-03  Andreas Schwab  <schwab@suse.de>
63115
63116         [BZ #15330]
63117         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
63118         order arrays from heap if bigger than alloca cutoff.
63119
63120 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
63121
63122         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
63123         (SNAN_TESTS_double): Refer to GCC PR56831.
63124         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
63125         GCC PR56828.
63126
63127 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
63128
63129         * Rules (bench): Move bench.out after the run is complete.
63130
63131         * Rules (bench): Echo currently running benchmark.
63132
63133         * benchtests/Makefile (bench): Add atan and slowatan.
63134         * benchtests/atan-inputs: New file.
63135         * benchtests/slowatan-inputs: New file.
63136         * benchtests/slowatan.c: New file.
63137
63138         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
63139         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
63140         its value.
63141
63142         [BZ #15305]
63143         * sysdeps/unix/sysv/linux/kernel-features.h
63144         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
63145         __ASSUME_XFS_RESTRICTED_CHOWN.
63146         * sysdeps/unix/sysv/linux/pathconf.c
63147         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
63148         Save and restore errno.
63149
63150 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
63151
63152         [BZ #15327]
63153         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
63154         arguments using __kernel_casinh.
63155         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
63156         arguments using __kernel_casinhf.
63157         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
63158         arguments using __kernel_casinhl.
63159         * math/libm-test.inc (cacosh_test): Add more tests.
63160         * sysdeps/i386/fpu/libm-test-ulps: Update.
63161         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63162
63163 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
63164
63165         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
63166         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
63167
63168         * bench/Makefile (bench): Add sin and slowsin.
63169         * benchtests/sin-inputs: New file.
63170         * benchtests/slowsin-inputs: New file.
63171         * benchtests/slowsin.c: New file.
63172
63173         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
63174         (bench): Add slowexp and slowpow.
63175         (exp-ITER): Increase iterations.
63176         (pow-ITER): Likewise.
63177         * benchtests/exp-inputs: Change input.
63178         * benchtests/pow-inputs: Likewise.
63179         * benchtests/slowexp-inputs: New file.
63180         * benchtests/slowexp.c: New file.
63181         * benchtests/slowpow-inputs: New file.
63182         * benchtests/slowpow.c: New file.
63183
63184 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63185
63186         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
63187         instructions.
63188         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
63189         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
63190         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
63191         * benchtests/Makefile: Add rint benchtest.
63192         * benchtests/rint-inputs: Input for rint benchtest.
63193
63194 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
63195
63196         * Versions.def (libm): Add GLIBC_2.18.
63197         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
63198         hidden libm prototypes.
63199         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
63200         * math/Makefile (libm-calls): Add s_issignaling.
63201         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
63202         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
63203         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
63204         declaration.
63205         * math/math.h [__USE_GNU] (issignaling): New macro.
63206         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
63207         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
63208         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
63209         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
63210         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
63211         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
63212         * manual/arith.texi (issignaling): New section.
63213         * manual/libm-err-tab.pl (@all_functions): Update comment.
63214         * math/gen-libm-test.pl (parse_args): Apply special handling for
63215         issignaling.
63216         * math/libm-test.inc (print_float, issignaling_test): New
63217         functions.
63218         (check_float_internal): Add issignaling checks.
63219         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
63220         default definition.
63221         * sysdeps/powerpc/math-tests.h: New file.
63222         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
63223         tests.
63224         * math/test-snan.c (TEST_FUNC): Likewise.
63225
63226 2013-03-30  David S. Miller  <davem@davemloft.net>
63227
63228         * po/de.po: Update from translation team.
63229
63230 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
63231
63232         [BZ #10357]
63233         * math/k_casinh.c (__kernel_casinh): Handle arguments with
63234         imaginary part less than 1.0 and real part less than 0.5
63235         specially.
63236         * math/k_casinhf.c (__kernel_casinhf): Likewise.
63237         * math/k_casinhl.c (__kernel_casinhl): Likewise.
63238         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
63239         (cacos_test): Add more tests.
63240         (casin_test): Likewise.
63241         (casinh_test): Likewise.
63242         * sysdeps/i386/fpu/libm-test-ulps: Update.
63243         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63244
63245 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
63246
63247         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
63248         ONE with its value.
63249
63250         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
63251         (__pow_mp): Replace ONE and MONE with their values.
63252         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
63253         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
63254         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
63255         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
63256         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
63257         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
63258
63259         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
63260
63261         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
63262         (__pow_mp): Replace ZERO and MZERO with their values.
63263         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
63264         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
63265         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
63266         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
63267         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
63268         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
63269         (__sqr): Likewise.
63270
63271         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
63272
63273         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
63274
63275 2013-03-28  Roland McGrath  <roland@hack.frob.com>
63276
63277         * include/stdlib.h [!SHARED] (__call_tls_dtors):
63278         Declare with __attribute__ ((weak)).
63279         * stdlib/exit.c (__libc_atexit) [!SHARED]:
63280         Call __call_tls_dtors only if it's not NULL.
63281
63282 2013-03-28  Roland McGrath  <roland@hack.frob.com>
63283
63284         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
63285         didn't do it already, then set _dl_phdr and _dl_phnum based on the
63286         magic __ehdr_start linker symbol if it's defined.
63287         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
63288         them up here if it was already done.
63289
63290         * elf/dl-support.c (_dl_phdr): Make pointer to const.
63291         (_dl_aux_init): Use const in cast when setting it.
63292         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
63293         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
63294         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
63295
63296         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
63297         Declare them here.
63298         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
63299         * csu/libc-tls.c: Nor here.
63300         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
63301
63302         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
63303         (__libc_message): Never call vsyslog.
63304
63305 2013-03-28  Alan Modra  <amodra@gmail.com>
63306
63307         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
63308         Define as empty.
63309         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
63310         Likewise.
63311
63312 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63313
63314         [BZ #15214]
63315         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
63316         underflow.
63317         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63318
63319 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
63320
63321         [BZ #15304]
63322         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
63323         Don't add gid passed as argument.
63324
63325         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
63326
63327 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
63328
63329         [BZ #15307]
63330         * math/k_casinh.c (__kernel_casinh): Handle arguments with
63331         imaginary part between 1.0 and 1.5 and real part less than 0.5
63332         specially.
63333         * math/k_casinhf.c (__kernel_casinhf): Likewise.
63334         * math/k_casinhl.c (__kernel_casinhl): Likewise.
63335         * math/libm-test.inc (cacos_test): Add more tests.
63336         (casin_test): Likewise.
63337         (casinh_test): Likewise.
63338         * sysdeps/i386/fpu/libm-test-ulps: Update.
63339         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63340
63341 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
63342
63343         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
63344         constants.
63345         (norm): Likewise.
63346         (denorm): Likewise.
63347         (__dbl_mp): Likewise.
63348         (add_magnitudes): Likewise.
63349         (sub_magnitudes): Likewise.
63350         (__add): Likewise.
63351         (__sub): Likewise.
63352         (__mul): Likewise.
63353         (__sqr): Likewise.
63354         (__inv): Likewise.
63355         (__dvd): Likewise.
63356
63357         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
63358         commented code.
63359         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
63360         (__dubcos): Likewise.
63361         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
63362         (__ieee754_acos): Likewise.
63363         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
63364         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
63365         (__exp1): Likewise.
63366         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
63367         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
63368         (log1): Likewise.
63369         (my_log2): Likewise.
63370         (checkint): Likewise.
63371         * sysdeps/ieee754/dbl-64/e_remainder.c
63372         (__ieee754_remainder): Likewise.
63373         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
63374         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
63375         (bsloww): Likewise.
63376         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
63377
63378         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
63379         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
63380         MANTISSA_STORE_T to store computations on mantissa.  Use
63381         macros for rounding and division.
63382         (denorm): Likewise.
63383         (__dbl_mp): Likewise.
63384         (add_magnitudes): Likewise.
63385         (sub_magnitudes): Likewise.
63386         (__mul): Likewise.
63387         (__sqr): Likewise.
63388         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
63389         powers of two in terms of TWOPOW macro.
63390         (mp_no): Make type of mantissa as MANTISSA_T.
63391         [!RADIXI]: Define RADIXI.
63392         [!TWO52]: Define TWO52.
63393         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
63394
63395 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63396
63397         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
63398         llroundl symbol when building for PPC32.
63399
63400 2013-03-24  Mark H Weaver  <mhw@netris.org>
63401
63402         * manual/arith.texi (Normalization Functions): Fix prototypes for
63403         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
63404
63405 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63406
63407         [BZ #13889]
63408         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
63409         high value to check if expl overflow.
63410         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
63411         to check for underflow and overflow.
63412         * math/libm-test.inc: Add exp test.
63413
63414 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
63415
63416         [BZ #11120]
63417         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
63418         with NOT_IN_libc.
63419
63420 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63421
63422         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
63423         symbol.
63424
63425 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
63426
63427         * math/gen-libm-test.pl (parse_args, special_functions): Properly
63428         wrap blocks consisting of several statements.
63429
63430         * sysdeps/generic/math-tests.h: New file.
63431         * sysdeps/i386/fpu/math-tests.h: Likewise.
63432         * math/test-snan.c: Include it.
63433         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
63434
63435 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
63436
63437         [BZ #15285]
63438         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
63439         (__ieee754_j0l): Do not improve calculations using cos of twice
63440         input for inputs above LDBL_MAX / 2.0L.
63441         (__ieee754_y0l): Likewise.
63442         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
63443         (__ieee754_j1l): Do not improve calculations using cos of twice
63444         input for inputs above LDBL_MAX / 2.0L.
63445         (__ieee754_y1l): Likewise.
63446         * math/libm-test.inc (j0_test): Add another test.
63447         (j1_test): Likewise.
63448         (y0_test): Likewise.
63449         (y1_test): Likewise.
63450         * sysdeps/i386/fpu/libm-test-ulps: Update.
63451
63452 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
63453
63454         * Rules ($(objpfx)bench-%.c): Include code from a C source
63455         file.
63456
63457 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
63458
63459         [BZ #15287]
63460         * math/k_casinh.c (__kernel_casinh): Handle arguments with
63461         imaginary part 1.0 and real part less than 0.5 specially.
63462         * math/k_casinhf.c (__kernel_casinhf): Likewise.
63463         * math/k_casinhl.c (__kernel_casinhl): Likewise.
63464         * math/libm-test.inc (cacos_test): Add more tests.
63465         (casin_test): Likewise.
63466         (casinh_test): Likewise.
63467         * sysdeps/i386/fpu/libm-test-ulps: Update.
63468         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63469
63470 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
63471
63472         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
63473         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
63474
63475 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
63476
63477         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
63478         * config.make.in (config-cflags-sse4): Remove variable.
63479         (config-cflags-avx): Likewise.
63480         (config-cflags-sse2avx): Likewise.
63481         (config-cflags-novzeroupper): Likewise.
63482         (config-asflags-i686): Likewise.
63483         (have-mfma4): Likewise.
63484         (have-as-vis3): Likewise.
63485         (MIG): Likewise.
63486         * configure.in (MIG): Do not AC_SUBST.
63487         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
63488         (libc_cv_cc_sse4): Do not AC_SUBST.
63489         (libc_cv_cc_avx): Likewise.
63490         (libc_cv_cc_sse2avx): Likewise.
63491         (libc_cv_cc_novzeroupper): Likewise.
63492         (libc_cv_cc_fma4): Likewise.
63493         (libc_cv_as_i686): Likewise.
63494         (libc_cv_sparc_as_vis3): Likewise.
63495         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
63496         LIBC_CONFIG_VAR.
63497         (config-asflags-i686): Likewise.
63498         (config-cflags-avx): Likewise.
63499         (config-cflags-sse2avx): Likewise.
63500         (have-mfma4): Likewise.
63501         (config-cflags-novzeroupper): Likewise.
63502         * sysdeps/mach/configure.in (MIG): Likewise.
63503         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
63504         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
63505         LIBC_CONFIG_VAR.
63506         (config-cflags-avx): Likewise.
63507         (config-cflags-sse2avx): Likewise.
63508         (have-mfma4): Likewise.
63509         (config-cflags-novzeroupper): Likewise.
63510         * configure: Regenerated.
63511         * sysdeps/i386/configure: Likewise.
63512         * sysdeps/mach/configure: Likewise.
63513         * sysdeps/sparc/configure: Likewise.
63514         * sysdeps/x86_64/configure: Likewise.
63515
63516 2013-03-20  Roland McGrath  <roland@hack.frob.com>
63517
63518         [BZ #14812]
63519         * locale/programs/localedef.c (options): Put N_ translation marker
63520         on argument names, not just descriptions.
63521
63522 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
63523
63524         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
63525
63526 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
63527
63528         [BZ #14176]
63529         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
63530
63531 2013-03-19  Roland McGrath  <roland@hack.frob.com>
63532
63533         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
63534         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
63535         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
63536         [!BEFORE_ABORT] (before_abort): New function.
63537         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
63538         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
63539         (writev_for_fatal): New function.
63540         (WRITEV_FOR_FATAL): New macro; call that.
63541         (backtrace_and_maps): New function.
63542         (BEFORE_ABORT): New macro; call that.
63543         (struct str_list): Type removed.
63544         (__libc_message, __libc_fatal): Functions removed.
63545         Include <sysdeps/posix/libc_fatal.c> instead.
63546
63547 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
63548
63549         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
63550         constants.
63551         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
63552         double constants.
63553
63554 2013-03-19  Andreas Schwab  <schwab@suse.de>
63555
63556         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
63557         * sysdeps/gnu/configure: Regenerate.
63558
63559         * configure.in: Substitute libc_cv_rtlddir.
63560         * configure: Regenerate.
63561         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
63562         * Makeconfig (rtlddir, inst_rtlddir): New variables.
63563         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
63564         * elf/Makefile (install-others, CFLAGS-interp.c)
63565         (ldso_install, common-ldd-rewrite): Likewise.
63566         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
63567         $(inst_slibdir)/$(rtld-installed-name).
63568         * scripts/rellns-sh: Add -p option.
63569         * Makerules (make-shlib-link): Use rellns-sh to get relative name
63570         for source.
63571
63572 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
63573
63574         * manual/nptl.texi: Renamed to ...
63575         * manual/threads.texi: ... this.
63576         * manual/Makefile (chapters): Update.
63577
63578 2013-03-18  Roland McGrath  <roland@hack.frob.com>
63579
63580         [BZ #14812]
63581         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
63582         on argument names, not just descriptions.
63583         * malloc/memusagestat.c (options): Likewise.
63584         * nss/getent.c (options): Likewise.
63585
63586 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
63587
63588         [BZ #14812]
63589         * iconv/iconv_prog.c (options): Put N_ translation marker
63590         on argument names, not just descriptions.
63591         * iconv/iconvconfig.c (options): Likewise.
63592
63593 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
63594
63595         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
63596         implementation which is faster on all x86_64 architectures.
63597         Tested on AMD, Intel Nehalem, SNB, IVB.
63598         * sysdeps/x86_64/strnlen.S: Likewise.
63599
63600         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
63601         Remove all multiarch strlen and strnlen versions.
63602         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
63603         Remove strlen and strnlen related parts.
63604
63605         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
63606         Inline strlen part.
63607         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
63608
63609         * sysdeps/x86_64/multiarch/strlen.S: Remove.
63610         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
63611         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
63612         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
63613         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
63614         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
63615
63616 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
63617
63618         * manual/memory.texi (Malloc Tunable Parameters):
63619         Sort parameters alphabetically. Add comments for missing entries.
63620
63621 2013-03-17  David S. Miller  <davem@davemloft.net>
63622
63623         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63624
63625 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
63626
63627         [BZ #15283]
63628         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
63629         for arguments at most half maximum finite value.
63630         * math/libm-test.inc (j0_test): Add more tests.
63631         (j1_test): Likewise.
63632         (y0_test): Likewise.
63633         (y1_test): Likewise.
63634         * sysdeps/i386/fpu/libm-test-ulps: Update.
63635         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63636
63637         [BZ #14155]
63638         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
63639         1 / x and functions P and Q for arguments above 0x1p256L.
63640         (__ieee754_y0l): Likewise.
63641         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
63642         (__ieee754_y1l): Likewise.
63643         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
63644         (j1_test): Likewise.
63645         (y0_test): Likewise.
63646         (y1_test): Likewise.
63647
63648 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
63649
63650         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
63651         variable.
63652
63653 2013-03-15  Roland McGrath  <roland@hack.frob.com>
63654
63655         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
63656         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
63657         zero since it's initialized to EXEC_PAGESIZE.
63658
63659         * sysdeps/unix/sysv/linux/ldsodefs.h
63660         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
63661         * sysdeps/generic/ldsodefs.h: ... here.
63662
63663 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
63664
63665         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
63666
63667         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
63668         math/test-snan.c.
63669         * math/test-snan.c: Renamed from
63670         sysdeps/powerpc/fpu/test-powerpc-snan.c.
63671         * math/Makefile (tests): Add test-snan.
63672         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
63673         test-powerpc-snan.
63674
63675         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
63676         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
63677         functions.
63678         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
63679         __builtin_nan family of functions.
63680         * math/libm-test.inc (initialize): Initialize qnan_value with
63681         __builtin_nan family of functions.
63682         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
63683         Remove variables.
63684         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
63685         Remove functions.
63686         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
63687         storage class.  Initialize qNaN_var and sNaN_var with
63688         __builtin_nan and __builtin_nans families of functions,
63689         respectively.
63690
63691         * math/libm-test.inc (acosh_test): Also test with qNaN input.
63692         (sqrt_test): Remove duplicate test with qNaN input.
63693         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
63694         (round_test, signbit_test, significand_test): Note missing +/-Inf
63695         as well as qNaN tests.
63696
63697         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
63698         qNaN_var.  Fix a few strings, too.
63699         * math/libm-test.inc (nan_value): Rename to qnan_value.
63700         * math/gen-libm-test.pl (%beautify): Adjust to that.
63701         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
63702         * math/test-misc.c (main): Likewise.
63703         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
63704         to __qnan_bytes, and __qnan_union, respectively.
63705         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
63706         Likewise.
63707         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
63708         and lqnanval, respectively.
63709         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
63710         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
63711         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
63712         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
63713
63714         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
63715         * math/test-misc.c (main) [__x86_64__]: Enable test for long
63716         doubles.
63717
63718         * math/test-misc.c (main): Fix copy'n'pastos.
63719         * misc/tst-efgcvt.c (special): Likewise.
63720
63721         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
63722         Remove declarations.
63723
63724 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
63725
63726         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
63727         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
63728         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
63729         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
63730
63731 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63732
63733         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
63734         macro to return vdso values correctly in IFUNC implementations.
63735         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
63736         Optimization by using IFUNC.
63737
63738 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
63739             Richard Henderson  <rth@redhat.com>
63740             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
63741
63742         * Makefile.in (bench): New target.
63743         * NEWS: Mention the benchmark framework.
63744         * Rules (bench): Likewise.
63745         (binaries-bench): Generate binaries for functions to
63746         benchmark.
63747         * benchtests/Makefile: New makefile for benchmark tests.
63748         * benchtests/bench-skeleton.c: New skeleton file for benchmark
63749         programs.
63750         * benchtests/exp-inputs: New input file for EXP function.
63751         * benchtests/pow-inputs: New input file for POW function.
63752         * scripts/bench.pl: New script to generate source files for
63753         benchmark programs.
63754
63755 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
63756
63757         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
63758         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
63759         computations on mantissa.  Use macros for rounding and
63760         division.
63761         (denorm): Likewise.
63762         (__dbl_mp): Likewise.
63763         (add_magnitudes): Likewise.
63764         (sub_magnitudes): Likewise.
63765         (__mul): Likewise.
63766         (__sqr): Likewise.
63767         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
63768         powers of two in terms of TWOPOW macro.
63769         (mp_no): Make type of mantissa as MANTISSA_T.
63770         [!RADIXI]: Define RADIXI.
63771         [!TWO52]: Define TWO52.
63772         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
63773
63774         * manual/nptl.texi (cindex): Modify threads to pthreads.
63775
63776 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
63777
63778         * sysdeps/x86_64/preconfigure: Regenerated.
63779
63780 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
63781
63782         [BZ #14155]
63783         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
63784         0x1p28 and above.
63785         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
63786         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
63787         0x1p28 and above.
63788         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
63789         * math/libm-test.inc (j0_test): Do not allow one spurious
63790         underflow exception.
63791         (y1_test): Likewise.
63792
63793 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
63794
63795         * manual/Makefile (chapters): Add nptl.
63796         * manual/debug.texi (Debugging Support): Add link to Threads
63797         chapter.
63798         * manual/nptl.texi: New file.
63799
63800         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
63801
63802 2013-03-14  Petr Baudis  <pasky@ucw.cz>
63803
63804         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
63805         for non-NULL pointer before the memory validity test. Pointed
63806         out by Holger Brunck <holger.brunck@keymile.com>.
63807
63808 2013-03-13  Andreas Schwab  <schwab@suse.de>
63809
63810         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
63811         instead of .os.
63812
63813 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
63814
63815         * timezone/zic.c: Update from tzcode 2013b.
63816
63817 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
63818
63819         * manual/install.texi (Configuring and compiling):
63820         Mention i686 and i586.
63821         * INSTALL: Regenerate.
63822
63823 2013-03-12  Roland McGrath  <roland@hack.frob.com>
63824
63825         * sysdeps/init_array/elf-init.c: New file.
63826         * csu/elf-init.c
63827         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
63828         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
63829
63830         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
63831         __gmon_start__ as global, but as static with a .preinit_array pointer.
63832         * sysdeps/init_array/gmon-start.c: New file.  Use that.
63833         * sysdeps/init_array/crti.S: New file, empty except for comments.
63834         * sysdeps/init_array/crtn.S: Likewise.
63835
63836 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
63837
63838         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
63839         definining bcopy.
63840         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
63841         Remove Prefer_SSE_for_memop.
63842         * sysdeps/x86_64/multiarch/init-arch.h: Remove
63843         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
63844         HAS_PREFER_SSE_FOR_MEMOP.
63845         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
63846         memset-x86-64.
63847         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
63848         Remove bzero, memset ifunc support.
63849         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
63850         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
63851         * sysdeps/x86_64/multiarch/memset.S: Likewise.
63852         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
63853
63854 2013-03-11  Andreas Schwab  <schwab@suse.de>
63855
63856         [BZ #15234]
63857         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
63858         by SHLIB_COMPAT.
63859         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
63860         (GLIBC_2.16): Remove pthread_atfork.
63861
63862 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
63863
63864         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
63865         (ptestcases.h): Likewise.
63866
63867 2013-03-08  Roland McGrath  <roland@hack.frob.com>
63868
63869         * Makeconfig ($(common-objpfx)config.status): Depend on
63870         sysdeps/*/preconfigure{,.in} too.
63871
63872 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
63873
63874         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
63875         (__free_hook): Use void * instead of __malloc_ptr_t.
63876         (__malloc_hook): Likewise.
63877         (__realloc_hook): Likewise.
63878         (__memalign_hook): Likewise.
63879         (__after_morecore_hook): Likewise.
63880         * malloc/arena.c (save_malloc_hook): Likewise.
63881         (save_free_hook): Likewise.
63882         * malloc/hooks.c (malloc_hook_ini): Likewise.
63883         (realloc_hook_ini): Likewise.
63884         (memalign_hook_ini): Likewise.
63885         * malloc/malloc.c (malloc_hook_ini): Likewise.
63886         (realloc_hook_ini): Likewise.
63887         (memalign_hook_ini): Likewise.
63888         (__free_hook): Likewise.
63889         (__malloc_hook): Likewise.
63890         (__realloc_hook): Likewise.
63891         (__memalign_hook): Likewise.
63892         (__libc_malloc): Likewise.
63893         (__libc_free): Likewise.
63894         (__libc_realloc): Likewise.
63895         (__libc_memalign): Likewise.
63896         (__libc_valloc): Likewise.
63897         (__libc_pvalloc): Likewise.
63898         (__libc_calloc): Likewise.
63899         (__posix_memalign): Likewise.
63900         * malloc/morecore.c (__sbrk): Likewise.
63901         (__default_morecore): Likewise.
63902
63903         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
63904
63905         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
63906         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
63907         __malloc_ptrdiff_t.
63908
63909         * malloc/malloc.h (__malloc_size_t): Remove macro.
63910         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
63911         __malloc_size_t.
63912         (old_memalign_hook): Likewise.
63913         (old_realloc_hook): Likewise.
63914         (struct hdr): Likewise.
63915         (flood): Likewise.
63916         (mallochook): Likewise.
63917         (memalignhook): Likewise.
63918         (reallochook): Likewise.
63919         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
63920         (tr_old_realloc_hook): Likewise.
63921         (tr_old_memalign_hook): Likewise.
63922         (tr_mallochook): Likewise.
63923         (tr_reallochook): Likewise.
63924         (tr_memalignhook): Likewise.
63925
63926 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63927
63928         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
63929         default_ldbl_pack and using as default implementation.
63930         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
63931         implementation.
63932         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
63933         redundant definition.
63934         (ldbl_insert_mantissa): Likewise.
63935         (ldbl_canonicalize): Likewise.
63936         (ldbl_nearbyint): Likewise.
63937         (ldbl_pack): Rename to ldbl_pack_ppc.
63938         (ldbl_unpack): Rename to ldbl_unpack_ppc.
63939         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
63940         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
63941
63942 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
63943
63944         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
63945         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
63946         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
63947         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
63948         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
63949         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
63950         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
63951         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
63952
63953 2013-03-07  Andreas Jaeger  <aj@suse.de>
63954
63955         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
63956         bits/mman-linux.h.
63957
63958 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
63959
63960         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
63961         Include mpa.h and declare __MPEXP.
63962         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
63963         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
63964         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
63965         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
63966         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
63967         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
63968         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
63969
63970         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
63971         (__slowpow): Use long double EXPL and LOGL functions to
63972         compute POW.
63973         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
63974         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
63975         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
63976         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
63977         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
63978         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
63979
63980         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
63981         intermediate variable to calculate exponent.
63982         (__sqr): Likewise.
63983         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
63984         Likewise.
63985         (__sqr): Likewise.
63986
63987         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
63988         [!NO__SQR]: Define __sqr.
63989         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
63990         and NO__SQR.  Remove all code except __mul and __sqr.  Include
63991         sysdeps/ieee754/dbl-64/mpa.c.
63992         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
63993
63994         [BZ #12723]
63995         * posix/Makefile (tests): Add tst-pathconf.
63996         * posix/tst-pathconf.c: New test case.
63997         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
63998         _PC_PIPE_BUF.
63999         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
64000
64001 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
64002
64003         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
64004
64005 2013-03-06  Andreas Jaeger  <aj@suse.de>
64006
64007         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
64008         definition via __MAP_ANONYMOUS.
64009
64010         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
64011         it's not part of Linux headers.
64012
64013         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
64014         (MAP_HUGE_MASK): Define.
64015
64016         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
64017         Define.
64018         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
64019         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
64020         Define.
64021         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
64022         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
64023         Define.
64024         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
64025         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
64026         Define.
64027         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
64028
64029         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
64030         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
64031         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
64032         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
64033         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
64034         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
64035
64036         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
64037         Handle f2fs.
64038
64039         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
64040         Handle f2fs and efivarfs.
64041
64042         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
64043         f2fs.
64044
64045         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
64046         (EFIVARFS_MAGIC): Add.
64047         (F2FS_LINK_MAX): Add.
64048
64049 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
64050
64051         * stdio-common/vfprintf.c: Replace __builtin_expect with
64052         __glibc_unlikely.
64053
64054 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
64055
64056         [BZ #13550]
64057         * sysdeps/generic/bp-sym.h: Remove file.
64058         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
64059         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
64060         <bp-sym.h> and <bp-asm.h>.
64061         (__longjmp): Don't use BP_SYM.
64062         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
64063         and <bp-asm.h>.
64064         (memcpy): Don't use BP_SYM.
64065         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
64066         <bp-sym.h> and <bp-asm.h>.
64067         (memcpy): Don't use BP_SYM.
64068         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
64069         <bp-asm.h>.
64070         (memcpy): Don't use BP_SYM.
64071         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
64072         <bp-asm.h>.
64073         (memset): Don't use BP_SYM.
64074         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64075         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64076         (__bzero): Don't use BP_SYM.
64077         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64078         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64079         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
64080         <bp-sym.h> and <bp-asm.h>.
64081         (memcmp): Don't use BP_SYM.  Remove comment about bounded
64082         pointers.
64083         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
64084         <bp-sym.h> and <bp-asm.h>.
64085         (memcpy): Don't use BP_SYM.
64086         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
64087         <bp-sym.h> and <bp-asm.h>.
64088         (memset): Don't use BP_SYM.
64089         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64090         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64091         (__bzero): Don't use BP_SYM.
64092         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64093         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64094         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
64095         <bp-sym.h> and <bp-asm.h>.
64096         (strncmp): Don't use BP_SYM.  Remove comment about bounded
64097         pointers.
64098         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
64099         <bp-sym.h> and <bp-asm.h>.
64100         (memcpy): Don't use BP_SYM.
64101         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
64102         <bp-sym.h> and <bp-asm.h>.
64103         (memset): Don't use BP_SYM.
64104         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64105         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64106         (__bzero): Don't use BP_SYM.
64107         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64108         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64109         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
64110         <bp-sym.h> and <bp-asm.h>.
64111         (__memchr): Don't use BP_SYM.
64112         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
64113         <bp-sym.h> and <bp-asm.h>.
64114         (memcmp): Don't use BP_SYM.  Remove comment about bounded
64115         pointers.
64116         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
64117         <bp-sym.h> and <bp-asm.h>.
64118         (memcpy): Don't use BP_SYM.
64119         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
64120         <bp-sym.h> and <bp-asm.h>.
64121         (__mempcpy): Don't use BP_SYM.
64122         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
64123         <bp-sym.h> and <bp-asm.h>.
64124         (__memrchr): Don't use BP_SYM.
64125         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
64126         <bp-sym.h> and <bp-asm.h>.
64127         (memset): Don't use BP_SYM.
64128         (__bzero): Likewise.
64129         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
64130         <bp-sym.h> and <bp-asm.h>.
64131         (__rawmemchr): Don't use BP_SYM.
64132         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
64133         <bp-sym.h> and <bp-asm.h>.
64134         (__STRCMP): Don't use BP_SYM.
64135         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
64136         <bp-sym.h> and <bp-asm.h>.
64137         (strchr): Don't use BP_SYM.
64138         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
64139         <bp-sym.h> and <bp-asm.h>.
64140         (__strchrnul): Don't use BP_SYM.
64141         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
64142         <bp-sym.h> and <bp-asm.h>.
64143         (strlen): Don't use BP_SYM.
64144         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
64145         <bp-sym.h> and <bp-asm.h>.
64146         (strncmp): Don't use BP_SYM.  Remove comment about bounded
64147         pointers.
64148         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
64149         <bp-sym.h> and <bp-asm.h>.
64150         (__strnlen): Don't use BP_SYM.
64151         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
64152         <bp-sym.h> and <bp-asm.h>.
64153         (__GI__setjmp): Don't use BP_SYM.
64154         (_setjmp): Likewise.
64155         (__sigsetjmp): Likewise.
64156         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
64157         (L(start_addresses)): Don't use BP_SYM.
64158         (_start): Likewise.
64159         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
64160         <bp-asm.h>.
64161         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
64162         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
64163         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64164         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64165         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
64166         <bp-asm.h>.
64167         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
64168         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
64169         about bounded pointers.
64170         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
64171         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
64172         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
64173         <bp-asm.h>.
64174         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
64175         about bounded pointers.  Remove GKM FIXME comments.
64176         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
64177         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
64178         <bp-asm.h>.
64179         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
64180         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
64181         Remove GKM FIXME comments.
64182         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64183         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64184         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
64185         <bp-asm.h>.
64186         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
64187         about bounded pointers.  Remove GKM FIXME comment.
64188         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
64189         and <bp-asm.h>.
64190         (strncmp): Don't use BP_SYM.  Remove comment about bounded
64191         pointers.
64192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
64193         <bp-sym.h> and <bp-asm.h>.
64194         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
64195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
64196         <bp-sym.h> and <bp-asm.h>.
64197         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
64198         comment.
64199
64200 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
64201
64202         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
64203         call free(NULL).
64204
64205 2013-03-05  David S. Miller  <davem@davemloft.net>
64206
64207         * po/es.po: Update from translation team.
64208
64209 2013-03-05  Andreas Jaeger  <aj@suse.de>
64210
64211         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
64212         <bits/mman-linux.h>.
64213         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
64214         is fine.
64215         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
64216         <bits/mman-linux.h> to end of file.
64217         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
64218         is fine.
64219         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
64220         <bits/mman-linux.h> to end of file.
64221         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
64222         is fine.
64223         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
64224         <bits/mman-linux.h> to end of file.
64225
64226         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
64227         (MCL_CURRENT, MCL_FUTURE): Define here.
64228
64229 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64230
64231         [BZ #15232]
64232         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
64233         attribute_hidden.
64234         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
64235
64236 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64237
64238         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
64239         fourth parameter needed for rt_sigprocmask syscall.
64240         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
64241         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
64242         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
64243         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
64244         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
64245         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
64246
64247 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
64248
64249         [BZ #13550]
64250         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
64251         comment about bounded pointers.
64252         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
64253         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
64254
64255 2013-03-04  Andreas Jaeger  <aj@suse.de>
64256
64257         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
64258         common definitions.
64259
64260         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
64261         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
64262         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
64263         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
64264         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
64265         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
64266
64267 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64268
64269         [BZ #15055]
64270         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
64271         __ieee754_sqrl instead of __sqrl.
64272
64273 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
64274
64275         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
64276         * sysdeps/powerpc/fpu_control.h: ... here.
64277         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
64278         * sysdeps/powerpc/bits/fenvinline.h: ... here.
64279         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
64280         * sysdeps/powerpc/bits/mathinline.h: ... here.
64281
64282 2013-03-01  Roland McGrath  <roland@hack.frob.com>
64283
64284         * elf/dl-hwcaps.c (_dl_important_hwcaps):
64285         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
64286         to just [NEED_DL_SYSINFO_DSO].
64287         * elf/dl-support.c: Likewise.
64288         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
64289         * elf/rtld.c (dl_main): Likewise.
64290         * elf/setup-vdso.h (setup_vdso): Likewise.
64291         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
64292         * sysdeps/unix/sysv/linux/dl-sysdep.c
64293         (_dl_discover_osversion): Likewise.
64294
64295 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
64296
64297         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
64298         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
64299
64300 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
64301
64302         * NEWS: Mention libm performance improvements and non-x86 PI
64303         futex support.
64304
64305         * csu/libc-start.c (__pthread_initialize_minimal): Change
64306         function arguments.
64307         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
64308
64309 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
64310
64311         [BZ #13550]
64312         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
64313         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
64314         <bp-sym.h> and <bp-asm.h>.
64315         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
64316         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
64317         and <bp-asm.h>.
64318         (memcpy): Don't use BP_SYM.
64319         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
64320         <bp-asm.h>.
64321         (__mpn_add_n): Don't use BP_SYM.
64322         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
64323         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
64324         and <bp-asm.h>.
64325         (__mpn_addmul_1): Don't use BP_SYM.
64326         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64327         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
64328         <bp-sym.h>.
64329         (_setjmp): Don't use BP_SYM.
64330         (__novmx_setjmp): Likewise.
64331         (__GI__setjmp): Likewise.
64332         (__vmx_setjmp): Likewise.
64333         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
64334         <bp-sym.h>.
64335         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
64336         (__bzero): Don't use BP_SYM.
64337         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64338         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64339         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
64340         <bp-sym.h> and <bp-asm.h>.
64341         (memcpy): Don't use BP_SYM.
64342         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
64343         <bp-sym.h> and <bp-asm.h>.
64344         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
64345         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
64346         <bp-sym.h> and <bp-asm.h>.
64347         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
64348         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
64349         <bp-asm.h>.
64350         (__mpn_lshift): Don't use BP_SYM.
64351         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64352         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
64353         <bp-asm.h>.
64354         (memset): Don't use BP_SYM.
64355         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64356         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64357         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
64358         <bp-asm.h>.
64359         (__mpn_mul_1): Don't use BP_SYM.
64360         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64361         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
64362         <bp-sym.h> and <bp-asm.h>.
64363         (memcmp): Don't use BP_SYM.
64364         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
64365         <bp-sym.h> and <bp-asm.h>.
64366         (memcpy): Don't use BP_SYM.
64367         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
64368         <bp-sym.h> and <bp-asm.h>.
64369         (memset): Don't use BP_SYM.
64370         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
64371         <bp-sym.h> and <bp-asm.h>.
64372         (strncmp): Don't use BP_SYM.
64373         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
64374         <bp-sym.h> and <bp-asm.h>.
64375         (memcpy): Don't use BP_SYM.
64376         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
64377         <bp-sym.h> and <bp-asm.h>.
64378         (memset): Don't use BP_SYM.
64379         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
64380         <bp-sym.h> and <bp-asm.h>.
64381         (__memchr): Don't use BP_SYM.
64382         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
64383         <bp-sym.h> and <bp-asm.h>.
64384         (memcmp): Don't use BP_SYM.
64385         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
64386         <bp-sym.h> and <bp-asm.h>.
64387         (memcpy): Don't use BP_SYM.
64388         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
64389         <bp-sym.h> and <bp-asm.h>.
64390         (__mempcpy): Don't use BP_SYM.
64391         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
64392         <bp-sym.h> and <bp-asm.h>.
64393         (__memrchr): Don't use BP_SYM.
64394         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
64395         <bp-sym.h> and <bp-asm.h>.
64396         (memset): Don't use BP_SYM.
64397         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
64398         <bp-sym.h> and <bp-asm.h>.
64399         (__rawmemchr): Don't use BP_SYM.
64400         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
64401         <bp-sym.h> and <bp-asm.h>.
64402         (__STRCMP): Don't use BP_SYM.
64403         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
64404         <bp-sym.h> and <bp-asm.h>.
64405         (strchr): Don't use BP_SYM.
64406         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
64407         <bp-sym.h> and <bp-asm.h>.
64408         (__strchrnul): Don't use BP_SYM.
64409         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
64410         <bp-sym.h> and <bp-asm.h>.
64411         (strlen): Don't use BP_SYM.
64412         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
64413         <bp-sym.h> and <bp-asm.h>.
64414         (strncmp): Don't use BP_SYM.
64415         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
64416         <bp-sym.h> and <bp-asm.h>.
64417         (__strnlen): Don't use BP_SYM.
64418         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
64419         <bp-asm.h>.
64420         (__mpn_rshift): Don't use BP_SYM.
64421         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64422         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
64423         <bp-sym.h> and <bp-asm.h>.
64424         (__sigsetjmp): Don't use BP_SYM.
64425         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
64426         (L(start_addresses)): Don't use BP_SYM.
64427         (_start): Likewise.
64428         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
64429         <bp-asm.h>.
64430         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
64431         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64432         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64433         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
64434         <bp-asm.h>.
64435         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
64436         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
64437         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
64438         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
64439         <bp-asm.h>.
64440         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
64441         comments.
64442         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
64443         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
64444         <bp-asm.h>.
64445         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
64446         FIXME comments.
64447         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64448         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64449         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
64450         <bp-asm.h>.
64451         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
64452         comment.
64453         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
64454         and <bp-asm.h>.
64455         (strncmp): Don't use BP_SYM,
64456         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
64457         <bp-asm.h>.
64458         (__mpn_sub_n): Don't use BP_SYM.
64459         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
64460         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
64461         and <bp-asm.h>.
64462         (__mpn_submul_1): Don't use BP_SYM.
64463         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
64465         <bp-sym.h> and <bp-asm.h>.
64466         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
64467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
64468         <bp-sym.h> and <bp-asm.h>.
64469         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
64470         comment.
64471
64472 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
64473
64474         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
64475         Use ZK to minimize writes to Z.
64476         (sub_magnitudes): Simplify code a bit.
64477         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
64478         Use ZK to minimize writes to Z.
64479         (sub_magnitudes): Simplify code a bit.
64480
64481 2013-02-27  Roland McGrath  <roland@hack.frob.com>
64482
64483         * csu/gmon-start.c: Add special exception to license text.
64484
64485 2013-02-27  Richard Henderson  <rth@redhat.com>
64486
64487         * scripts/config.guess: Update from config.git.
64488         * scripts/config.sub: Likewise.
64489
64490 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
64491
64492         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
64493
64494         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
64495
64496         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
64497
64498         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
64499
64500         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
64501
64502 2013-02-26  Roland McGrath  <roland@hack.frob.com>
64503
64504         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
64505         [$(build-shared = yes].
64506
64507 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
64508
64509         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
64510         (__mul): Reduce iterations for calculating mantissa.
64511
64512         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
64513         MPTWO.
64514         (__mpranred): Likewise.
64515
64516         [BZ #15160]
64517         * malloc/memusagestat.c (main): Draw graphs for heap and stack
64518         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
64519
64520 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64521
64522         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
64523         Define __attribute__.
64524
64525 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
64526
64527         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
64528         unused.
64529         * posix/regex_internal.h (__attribute): Remove.
64530         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
64531         (re_string_context_at): Likewise.
64532         (bitset_not): Use __attribute__ and mark function as possibly
64533         unused.
64534         (bitset_merge): Likewise.
64535         (bitset_mask): Likewise.
64536         (re_string_char_size_at): Likewise.
64537         (re_string_wchar_at): Likewise.
64538         (re_string_elem_size_at): Likewise.
64539
64540 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
64541
64542         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
64543         code.
64544         (cc32): Likewise.
64545
64546         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
64547         (__acr): Likewise.
64548         (__cpy): Likewise.
64549         (norm): Likewise.
64550         (denorm): Likewise.
64551         (__dbl_mp): Likewise.
64552         (add_magnitudes): Likewise.
64553         (sub_magnitudes): Likewise.
64554         (__mul): Likewise.
64555         (__inv): Likewise.
64556
64557         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
64558         style.
64559
64560         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
64561         style.
64562
64563         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
64564         code.
64565
64566         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
64567         up changes with default code.
64568         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
64569         Likewise.
64570
64571 2013-02-24  Allan McRae  <allan@archlinux.org>
64572
64573         * manual/socket.texi (The Internet Namespace): Order menu items
64574         to match that in the file.
64575
64576         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
64577         node listing of the info page menu.
64578
64579 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
64580
64581         [BZ #13550]
64582         * sysdeps/i386/bp-asm.h: Remove file.
64583         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
64584         (PARMS): Do not use macros from bp-asm.h.
64585         (S1): Likewise.
64586         (S2): Likewise.
64587         (SIZE): Likewise.
64588         (__mpn_add_n): Do not use BP_SYM
64589         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
64590         "bp-asm.h".
64591         (PARMS): Do not use macros from bp-asm.h.
64592         (S1): Likewise.
64593         (SIZE): Likewise.
64594         (__mpn_addmul_1): Do not use BP_SYM
64595         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
64596         "bp-asm.h".
64597         (PARMS): Do not use macros from bp-asm.h.
64598         (SIGMSK): Likewise.
64599         (_setjmp): Likewise.  Do not use BP_SYM.
64600         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
64601         "bp-asm.h".
64602         (PARMS): Do not use macros from bp-asm.h.
64603         (SIGMSK): Likewise.
64604         (setjmp): Likewise.  Do not use BP_SYM.
64605         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
64606         "bp-asm.h".
64607         (PARMS): Do not use macros from bp-asm.h.
64608         (__frexp): Do not use BP_SYM.
64609         (frexp): Likewise.
64610         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
64611         "bp-asm.h".
64612         (PARMS): Do not use macros from bp-asm.h.
64613         (__frexpf): Do not use BP_SYM.
64614         (frexpf): Likewise.
64615         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
64616         "bp-asm.h".
64617         (PARMS): Do not use macros from bp-asm.h.
64618         (__frexpl): Do not use BP_SYM.
64619         (frexpl): Likewise.
64620         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
64621         "bp-asm.h".
64622         (PARMS): Do not use macros from bp-asm.h.
64623         (__remquo): Do not use BP_SYM.
64624         (remquo): Likewise.
64625         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
64626         "bp-asm.h".
64627         (PARMS): Do not use macros from bp-asm.h.
64628         (__remquof): Do not use BP_SYM.
64629         (remquof): Likewise.
64630         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
64631         "bp-asm.h".
64632         (PARMS): Do not use macros from bp-asm.h.
64633         (__remquol): Do not use BP_SYM.
64634         (remquol): Likewise.
64635         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
64636         "bp-asm.h".
64637         (PARMS): Do not use macros from bp-asm.h.
64638         (DEST): Likewise.
64639         (SRC): Likewise.
64640         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
64641         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
64642         "bp-asm.h".
64643         (PARMS): Do not use macros from bp-asm.h.
64644         (strlen): Do not use BP_SYM.
64645         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
64646         "bp-asm.h".
64647         (PARMS): Do not use macros from bp-asm.h.
64648         (S1): Likewise.
64649         (S2): Likewise.
64650         (SIZE): Likewise.
64651         (__mpn_add_n): Do not use BP_SYM.
64652         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
64653         "bp-asm.h".
64654         (PARMS): Do not use macros from bp-asm.h.
64655         (S1): Likewise.
64656         (SIZE): Likewise.
64657         (__mpn_addmul_1): Do not use BP_SYM.
64658         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
64659         weak_alias.
64660         (bzero): Likewise.
64661         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
64662         "bp-asm.h".
64663         (PARMS): Do not use macros from bp-asm.h.
64664         (S): Likewise.
64665         (SIZE): Likewise.
64666         (__mpn_lshift): Do not use BP_SYM.
64667         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
64668         "bp-asm.h".
64669         (PARMS): Do not use macros from bp-asm.h.
64670         (DEST): Likewise.
64671         (SRC): Likewise.
64672         (LEN): Likewise.
64673         (memcpy): Likewise.  Do not use BP_SYM.
64674         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
64675         libc_hidden_def and weak_alias.
64676         (mempcpy): Do not use BP_SYM in weak_alias.
64677         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
64678         "bp-asm.h".
64679         (PARMS): Do not use macros from bp-asm.h.
64680         (DEST): Likewise.
64681         (LEN): Likewise.
64682         [!BZERO_P] (CHR): Likewise.
64683         (memset): Likewise.  Do not use BP_SYM.
64684         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
64685         "bp-asm.h".
64686         (PARMS): Do not use macros from bp-asm.h.
64687         (S1): Likewise.
64688         (SIZE): Likewise.
64689         (__mpn_mul_1): Do not use BP_SYM.
64690         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
64691         "bp-asm.h".
64692         (PARMS): Do not use macros from bp-asm.h.
64693         (S): Likewise.
64694         (SIZE): Likewise.
64695         (__mpn_rshift): Do not use BP_SYM.
64696         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
64697         "bp-asm.h".
64698         (PARMS): Do not use macros from bp-asm.h.
64699         (STR): Likewise.
64700         (CHR): Likewise.
64701         (strchr): Likewise.  Do not use BP_SYM.
64702         (index): Do not use BP_SYM in weak_alias.
64703         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
64704         "bp-asm.h".
64705         (PARMS): Do not use macros from bp-asm.h.
64706         (DEST): Likewise.
64707         (SRC): Likewise.
64708         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
64709         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
64710         "bp-asm.h".
64711         (PARMS): Do not use macros from bp-asm.h.
64712         (strlen): Do not use BP_SYM.
64713         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
64714         "bp-asm.h".
64715         (PARMS): Do not use macros from bp-asm.h.
64716         (S1): Likewise.
64717         (S2): Likewise.
64718         (SIZE): Likewise.
64719         (__mpn_sub_n): Do not use BP_SYM.
64720         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
64721         "bp-asm.h".
64722         (PARMS): Do not use macros from bp-asm.h.
64723         (S1): Likewise.
64724         (SIZE): Likewise.
64725         (__mpn_submul_1): Do not use BP_SYM.
64726         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
64727         "bp-asm.h".
64728         (PARMS): Do not use macros from bp-asm.h.
64729         (S1): Likewise.
64730         (S2): Likewise.
64731         (SIZE): Likewise.
64732         (__mpn_add_n): Do not use BP_SYM.
64733         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
64734         weak_alias.
64735         (bzero): Likewise.
64736         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
64737         "bp-asm.h".
64738         (PARMS): Do not use macros from bp-asm.h.
64739         (BLK2): Likewise.
64740         (LEN): Likewise.
64741         (memcmp): Do not use BP_SYM.
64742         (bcmp): Do not use BP_SYM in weak_alias.
64743         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
64744         "bp-asm.h".
64745         (PARMS): Do not use macros from bp-asm.h.
64746         (DEST): Likewise.
64747         (SRC): Likewise.
64748         (LEN): Likewise.
64749         (memcpy): Likewise.  Do not use BP_SYM.
64750         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
64751         "bp-asm.h".
64752         (PARMS): Do not use macros from bp-asm.h.
64753         (DEST): Likewise.
64754         (SRC): Likewise.
64755         (LEN): Likewise.
64756         (memmove): Likewise.  Do not use BP_SYM.
64757         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
64758         "bp-asm.h".
64759         (PARMS): Do not use macros from bp-asm.h.
64760         (DEST): Likewise.
64761         (SRC): Likewise.
64762         (LEN): Likewise.
64763         (__mempcpy): Likewise.  Do not use BP_SYM.
64764         (mempcpy): Do not use BP_SYM in weak_alias.
64765         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
64766         "bp-asm.h".
64767         (PARMS): Do not use macros from bp-asm.h.
64768         (DEST): Likewise.
64769         (LEN): Likewise.
64770         [!BZERO_P] (CHR): Likewise.
64771         (memset): Likewise.  Do not use BP_SYM.
64772         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
64773         "bp-asm.h".
64774         (PARMS): Do not use macros from bp-asm.h.
64775         (STR2): Likewise.
64776         (strcmp): Do not use BP_SYM.
64777         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
64778         "bp-asm.h".
64779         (PARMS): Do not use macros from bp-asm.h.
64780         (STR): Likewise.
64781         (DELIM): Likewise.
64782         [USE_AS_STRTOK_R] (SAVE): Likewise.
64783         (FUNCTION): Likewise.  Do not use BP_SYM.
64784         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
64785         aliases.
64786         (strtok_r): Likewise.
64787         (__GI___strtok_r): Likewise.
64788         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
64789         (PARMS): Do not use macros from bp-asm.h.
64790         (S): Likewise.
64791         (SIZE): Likewise.
64792         (__mpn_lshift): Do not use BP_SYM.
64793         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
64794         (PARMS): Do not use macros from bp-asm.h.
64795         (STR): Likewise.
64796         (CHR): Likewise.
64797         (__memchr): Do not use BP_SYM.
64798         (memchr): Do not use BP_SYM in weak_alias.
64799         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
64800         (PARMS): Do not use macros from bp-asm.h.
64801         (BLK2): Likewise.
64802         (LEN): Likewise.
64803         (memcmp): Do not use BP_SYM.
64804         (bcmp): Do not use BP_SYM in weak_alias.
64805         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
64806         (PARMS): Do not use macros from bp-asm.h.
64807         (S1): Likewise.
64808         (SIZE): Likewise.
64809         (__mpn_mul_1): Do not use BP_SYM.
64810         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
64811         "bp-asm.h".
64812         (PARMS): Do not use macros from bp-asm.h.
64813         (STR): Likewise.
64814         (CHR): Likewise.
64815         (__rawmemchr): Do not use BP_SYM.
64816         (rawmemchr): Do not use BP_SYM in weak_alias.
64817         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
64818         (PARMS): Do not use macros from bp-asm.h.
64819         (S): Likewise.
64820         (SIZE): Likewise.
64821         (__mpn_rshift): Do not use BP_SYM.
64822         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
64823         (PARMS): Do not use macros from bp-asm.h.
64824         (SIGMSK): Likewise.
64825         (__sigsetjmp): Likewise.  Do not use BP_SYM.
64826         * sysdeps/i386/start.S: Do not include "bp-sym.h".
64827         (_start): Do not use BP_SYM.
64828         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
64829         (PARMS): Do not use macros from bp-asm.h.
64830         (DEST): Likewise.
64831         (SRC): Likewise.
64832         (__stpcpy): Likewise.  Do not use BP_SYM.
64833         (stpcpy): Do not use BP_SYM in weak_alias.
64834         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
64835         "bp-asm.h".
64836         (PARMS): Do not use macros from bp-asm.h.
64837         (DEST): Likewise.
64838         (SRC): Likewise.
64839         (LEN): Likewise.
64840         (__stpncpy): Likewise.  Do not use BP_SYM.
64841         (stpncpy): Do not use BP_SYM in weak_alias.
64842         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
64843         (PARMS): Do not use macros from bp-asm.h.
64844         (STR): Likewise.
64845         (CHR): Likewise.
64846         (strchr): Likewise.  Do not use BP_SYM.
64847         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
64848         "bp-asm.h".
64849         (PARMS): Do not use macros from bp-asm.h.
64850         (STR): Likewise.
64851         (CHR): Likewise.
64852         (__strchrnul): Likewise.  Do not use BP_SYM.
64853         (strchrnul): Do not use BP_SYM in weak_alias.
64854         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
64855         "bp-asm.h".
64856         (PARMS): Do not use macros from bp-asm.h.
64857         (STOP): Likewise.
64858         (strcspn): Do not use BP_SYM.
64859         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
64860         "bp-asm.h".
64861         (PARMS): Do not use macros from bp-asm.h.
64862         (STR): Likewise.
64863         (STOP): Likewise.
64864         (strpbrk): Likewise.  Do not use BP_SYM.
64865         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
64866         "bp-asm.h".
64867         (PARMS): Do not use macros from bp-asm.h.
64868         (STR): Likewise.
64869         (CHR): Likewise.
64870         (strrchr): Likewise.  Do not use BP_SYM.
64871         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
64872         (PARMS): Do not use macros from bp-asm.h.
64873         (SKIP): Likewise.
64874         (strspn): Do not use BP_SYM.
64875         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
64876         (PARMS): Do not use macros from bp-asm.h.
64877         (STR): Likewise.
64878         (DELIM): Likewise.
64879         (SAVE): Likewise.
64880         (FUNCTION): Likewise.  Do not use BP_SYM.
64881         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
64882         aliases.
64883         (strtok_r): Likewise.
64884         (__GI___strtok_r): Likewise.
64885         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
64886         (PARMS): Do not use macros from bp-asm.h.
64887         (S1): Likewise.
64888         (S2): Likewise.
64889         (SIZE): Likewise.
64890         (__mpn_sub_n): Do not use BP_SYM.
64891         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
64892         "bp-asm.h".
64893         (PARMS): Do not use macros from bp-asm.h.
64894         (S1): Likewise.
64895         (SIZE): Likewise.
64896         (__mpn_submul_1): Do not use BP_SYM.
64897         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
64898         <bp-sym.h>.
64899         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
64900         and <bp-asm.h>.
64901         (PARMS): Do not use macros from bp-asm.h.
64902         (FLAGS): Likewise.
64903         (PTID): Likewise.
64904         (TLS): Likewise.
64905         (CTID): Likewise.
64906         (__clone): Do not use BP_SYM.
64907         (clone): Do not use BP_SYM in weak_alias.
64908         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
64909         and <bp-asm.h>.
64910         (PARMS): Do not use macros from bp-asm.h.
64911         (LEN): Likewise.
64912         (__mmap64): Do not use BP_SYM.
64913         (mmap64): Do not use BP_SYM in weak_alias.
64914         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
64915         <bp-sym.h> and <bp-asm.h>.
64916         (PARMS): Do not use macros from bp-asm.h.
64917         (__posix_fadvise64_l64): Do not use BP_SYM.
64918         * sysdeps/unix/sysv/linux/i386/semtimedop.S
64919         (PARMS): Do not use macros from bp-asm.h.
64920         (NSOPS): Likewise.
64921         (semtimedop): Do not use BP_SYM.
64922         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
64923         and <bp-asm.h>.
64924
64925 2013-02-21  Allan McRae  <allan@archlinux.org>
64926
64927         * manual/message.texi (Charset conversion in gettext):
64928         Move @end statement to beginning of line.
64929
64930 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
64931
64932         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
64933         static.
64934         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
64935         Likewise.
64936
64937         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
64938         (denorm): Likewise.
64939         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
64940         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
64941
64942 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64943
64944         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
64945         tail-call to the resolved function if pltexit isn't needed.
64946
64947 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
64948
64949         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
64950         or Y being zero as being unlikely.
64951         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
64952         Likewise.
64953
64954 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
64955
64956         * manual/nss.texi (System Databases and Name Service Switch):
64957         Remove frobnicate @pxref.
64958
64959 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
64960
64961         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
64962         __attribute__ ((unused)) to __attribute__ ((__unused__)).
64963
64964 2013-02-20  Petr Machata  <pmachata@redhat.com>
64965
64966         * elf/elf.h (R_ARM_TARGET1): New macro.
64967         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
64968         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
64969         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
64970         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
64971         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
64972         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
64973         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
64974         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
64975         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
64976         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
64977         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
64978         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
64979         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
64980         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
64981         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
64982         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
64983         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
64984         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
64985         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
64986         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
64987         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
64988         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
64989         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
64990         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
64991         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
64992         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
64993         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
64994         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
64995         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
64996         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
64997         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
64998         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
64999         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
65000         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
65001         (R_ARM_THM_GOT_BREL12): Likewise.
65002         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
65003         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
65004         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
65005         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
65006         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
65007         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
65008         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
65009         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
65010         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
65011
65012 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
65013
65014         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
65015         __attribute_used__ to __attribute__ ((unused)).
65016
65017 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
65018
65019         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
65020         powerpc mpa.c.
65021         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
65022         comment formatting.
65023         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
65024
65025 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
65026
65027         [BZ #13550]
65028         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
65029         Remove macro.
65030         (ENTER): Remove both macro definitions.
65031         (LEAVE): Likewise.
65032         (CHECK_BOUNDS_LOW): Likewise.
65033         (CHECK_BOUNDS_HIGH): Likewise.
65034         (CHECK_BOUNDS_BOTH): Likewise.
65035         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
65036         (RETURN_BOUNDED_POINTER): Likewise.
65037         (RETURN_NULL_BOUNDED_POINTER): Likewise.
65038         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
65039         (POP_ERRNO_LOCATION_RETURN): Likewise.
65040         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
65041         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65042         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
65043         macros.
65044         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65045         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
65046         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
65047         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
65048         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
65049         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
65050         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
65051         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
65052         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
65053         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
65054         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
65055         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
65056         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65057         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
65058         removed macros.
65059         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65060         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
65061         macros.
65062         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
65063         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
65064         * sysdeps/i386/i586/memset.S (memset): Likewise.
65065         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
65066         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65067         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
65068         macros.
65069         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
65070         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
65071         Change uses of L(2) to L(out).
65072         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
65073         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
65074         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
65075         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65076         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
65077         removed macros.
65078         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65079         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
65080         macros.
65081         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65082         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
65083         (RETURN): Do not use macro LEAVE.
65084         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
65085         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
65086         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
65087         * sysdeps/i386/i686/memset.S (memset): Likewise.
65088         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
65089         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
65090         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
65091         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
65092         Likewise.
65093         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
65094         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
65095         L(1_2) and L(1_3) into L(1).
65096         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
65097         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
65098         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
65099         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
65100         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
65101         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
65102         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
65103         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65104         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
65105         macros.
65106         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
65107         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
65108         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
65109         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
65110         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
65111         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
65112         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
65113         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
65114         * sysdeps/i386/strcspn.S (strcspn): Likewise.
65115         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
65116         * sysdeps/i386/strrchr.S (strrchr): Likewise.
65117         * sysdeps/i386/strspn.S (strspn): Likewise.
65118         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
65119         conditional code.
65120         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
65121         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
65122         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
65123         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
65124         L(1_3) into L(1_1).
65125         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
65126         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65127         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
65128         macros.
65129         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65130
65131 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
65132
65133         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
65134         macro.
65135
65136 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
65137
65138         * math/atest-exp.c (exp_mpn): Remove ROUND.
65139         * math/atest-exp2.c (exp_mpn): Likewise.
65140         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
65141
65142         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
65143         * stdlib/tst-tls-atexit-lib.c: Likewise.
65144         * stdlib/tst-tls-atexit.c: Likewise.
65145
65146 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
65147
65148         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
65149         and __attribute_alloc_size__.
65150
65151 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
65152
65153         * include/programs/xmalloc.h: Change __attribute_alloc_size to
65154         __attribute_alloc_size__.
65155         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
65156         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
65157
65158 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
65159
65160         * include/programs/xmalloc.h: New file.
65161         * catgets/gencat.c: Include it.
65162         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
65163         * elf/pldd.c: Likewise.
65164         * iconv/iconv_charmap.c: Likewise.
65165         * iconv/iconvconfig.c: Likewise.
65166         * iconv/strtab.c: Likewise.
65167         * locale/programs/locale.c: Likewise.
65168         * locale/programs/localedef.h: Likewise.
65169         * locale/programs/simple-hash.c: Likewise.
65170         * nscd/nscd.h: Likewise.
65171         * nss/makedb.c: Likewise.
65172         * sysdeps/generic/ldconfig.h: Likewise.
65173
65174 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
65175
65176         * Versions.def: Add GLIBC_2.18.
65177         * include/link.h (struct link_map): New member l_tls_dtor_count.
65178         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
65179         (__call_tls_dtors): Likewise.
65180         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
65181         __cxa_thread_atexit_impl.
65182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
65183         Likewise.
65184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
65185         Likewise.
65186         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
65187         Likewise.
65188         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
65189         Likewise.
65190         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
65191         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
65192         Likewise.
65193         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
65194         Likewise.
65195         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
65196         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
65197         Likewise.
65198         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
65199         (tests): Add test case tst-tls-atexit.
65200         (modules-names): Add shared library for tst-tls-atexit.
65201         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
65202         (GLIBC_PRIVATE): Add __call_tls_dtors.
65203         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
65204         for libstdc++.
65205         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
65206         * stdlib/tst-tls-atexit.c: New test case.
65207         * stdlib/tst-tls-atexit-lib.c: New test case.
65208
65209         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
65210
65211         * elf/Versions (ld): Add _dl_find_dso_for_object.
65212         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
65213         * elf/dl-open.c (_dl_find_dso_for_object): New function.
65214         (dl_open_worker): Use _dl_find_dso_for_object.
65215         * elf/dl-sym.c (do_sym): Likewise.
65216         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
65217
65218 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
65219
65220         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
65221         Syntactic changes only.
65222         (_dl_runtime_profile): Do a tail-call to the resolved function.
65223
65224 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
65225
65226         [BZ #13550]
65227         * sysdeps/x86_64/bp-asm.h: Remove file.
65228         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
65229         <bp-sym.h> and <bp-asm.h>.
65230         (__clone): Do not use BP_SYM.
65231         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
65232         <bp-sym.h> and <bp-asm.h>.
65233         * sysdeps/unix/x86_64/sysdep.S: Likewise.
65234         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
65235         "bp-asm.h".
65236         (_setjmp): Do not use BP_SYM.
65237         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
65238         "bp-asm.h".
65239         (setjmp): Do not use BP_SYM.
65240         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
65241         libc_hidden_def.
65242         (mempcpy): Do not use BP_SYM in weak_alias.
65243         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
65244         "bp-asm.h".
65245         (strchr): Do not use BP_SYM.
65246         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
65247         "bp-asm.h".
65248         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
65249         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
65250         (_start): Do not use BP_SYM.
65251         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
65252         "bp-asm.h".
65253         (strcat): Do not use BP_SYM.
65254         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
65255         "bp-asm.h".
65256         (STRCMP): Do not use BP_SYM.
65257         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
65258         "bp-asm.h".
65259         (STRCPY): Do not use BP_SYM.
65260         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
65261         "bp-asm.h".
65262         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
65263         "bp-asm.h".
65264         (FUNCTION): Do not use BP_SYM.
65265         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
65266         weak_alias.
65267         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
65268
65269 2013-02-17  Andreas Jaeger  <aj@suse.de>
65270
65271         * time/Versions: Sort entries.
65272         * string/Versions: Likewise.
65273         * resolv/Versions: Likewise.
65274         * posix/Versions: Likewise.
65275         * iconv/Versions: Likewise.
65276         * elf/Versions: Likewise.
65277         * wcsmbs/Versions: Likewise.
65278
65279 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
65280
65281         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
65282         loop termination condition.
65283
65284         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
65285         variable to calculate EZ.
65286         (__sqr): Likewise.
65287
65288         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
65289         the lower precision input.
65290
65291 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
65292
65293         [BZ #13550]
65294         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
65295         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
65296         (run-via-rtld-prefix): Do not handle %-bp tests.
65297         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
65298         (all-object-suffixes): Remove .ob.
65299         (bppfx): Remove variable.
65300         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
65301         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
65302         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
65303         [$(build-bounded) = yes] (libtype.ob): Likewise.
65304         * Makerules (elide-routines.ob): Remove variable.
65305         (do-tests-clean): Do not handle *-bp.out.
65306         (common-mostlyclean): Do not handle *-bp and *-bp.out.
65307         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
65308         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
65309         (tests): Do not include $(tests-bp.out).
65310         (xtests): Do not include $(xtests-bp.out).
65311         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
65312         [$(build-bounded) = yes] ($(addprefix
65313         $(objpfx),$(binaries-bounded))): Remove rule.
65314         ($(objpfx)%-bp.out): Remove rule.
65315         * config.make.in (build-bounded): Remove variable.
65316         * crypt/Makefile [$(build-bounded) = yes]
65317         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
65318         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
65319         append to variable.
65320         [$(build-bounded) = yes] (install-lib): Likewise.
65321         [$(build-bounded) = yes] (generated): Likewise.
65322         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
65323         Remove rule.
65324         * intl/Makefile [$(build-bounded) = yes]
65325         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
65326         * math/Makefile [$(build-bounded) = yes]
65327         ($(tests:%=$(objpfx)%-bp): Likewise.
65328         * misc/Makefile [$(build-bounded) = yes]
65329         ($(objpfx)tst-tsearch-bp): Likewise.
65330         * nptl/Makeconfig (bounded-thread-library): Remove variable.
65331         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
65332         Remove dependency.
65333         * string/Makefile (o-objects.ob): Remove variable.
65334         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
65335         (CFLAGS-.ob): Remove variable.
65336         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
65337         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
65338         both definitions of variable.
65339         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
65340         (ASFLAGS-.ob): Remove variable.
65341
65342 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
65343
65344         [BZ #13550]
65345         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
65346         Remove __BOUNDED_POINTERS__ from condition.
65347         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
65348         * string/bits/string2.h [!__NO_STRING_INLINES &&
65349         !__BOUNDED_POINTERS__]: Likewise.
65350         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
65351         Likewise.
65352         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
65353         Remove conditional code.
65354         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
65355         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
65356         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
65357         condition.
65358
65359         [BZ #13550]
65360         * csu/libc-start.c: Do not include <bp-sym.h>.
65361         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
65362         * elf/dl-open.c: Do not include <bp-sym.h>.
65363         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
65364         * math/fegetenv.c: Do not include <bp-sym.h>.
65365         (fegetenv): Do not use BP_SYM in versioned symbols.
65366         * nptl/sysdeps/pthread/bits/libc-lockP.h
65367         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
65368         <bp-sym.h>.
65369         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65370         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
65371         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65372         (__pthread_mutex_destroy): Likewise.
65373         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65374         (__pthread_mutex_lock): Likewise.
65375         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65376         (__pthread_mutex_trylock): Likewise.
65377         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65378         (__pthread_mutex_unlock): Likewise.
65379         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65380         (__pthread_mutexattr_init): Likewise.
65381         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65382         (__pthread_mutexattr_destroy): Likewise.
65383         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65384         (__pthread_mutexattr_settype): Likewise.
65385         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65386         (__pthread_rwlock_init): Likewise.
65387         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65388         (__pthread_rwlock_destroy): Likewise.
65389         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65390         (__pthread_rwlock_rdlock): Likewise.
65391         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65392         (__pthread_rwlock_tryrdlock): Likewise.
65393         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65394         (__pthread_rwlock_wrlock): Likewise.
65395         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65396         (__pthread_rwlock_trywrlock): Likewise.
65397         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65398         (__pthread_rwlock_unlock): Likewise.
65399         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65400         (__pthread_key_create): Likewise.
65401         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65402         (__pthread_setspecific): Likewise.
65403         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65404         (__pthread_getspecific): Likewise.
65405         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
65406         Likewise.
65407         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65408         (_pthread_cleanup_push_defer): Likewise.
65409         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65410         (_pthread_cleanup_pop_restore): Likewise.
65411         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65412         (pthread_setcancelstate): Likewise.
65413         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
65414         <bp-sym.h>.
65415         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
65416         (memchr): Do not use BP_SYM in weak_alias.
65417         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
65418         (fegetenv): Do not use BP_SYM in versioned symbols.
65419         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
65420         (fesetenv): Do not use BP_SYM in versioned symbols.
65421         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
65422         (feupdateenv): Do not use BP_SYM in versioned symbols.
65423         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
65424         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
65425         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
65426         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
65427         (open64): Do not use BP_SYM in weak_alias.
65428         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
65429         (fegetenv): Do not use BP_SYM in versioned symbols.
65430         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
65431         (fesetenv): Do not use BP_SYM in versioned symbols.
65432         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
65433         (feupdateenv): Do not use BP_SYM in versioned symbols.
65434         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
65435         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
65436         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
65437         (feraiseexcept): Do not use BP_SYM in versioned symbols.
65438         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
65439         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
65440         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
65441         <bp-sym.h>.
65442         (__libc_start_main): Do not use BP_SYM.
65443
65444 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
65445
65446         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
65447         redundant return line.
65448         (norm): Likewise.
65449         (denorm): Likewise.
65450         (dbl_mp): Likewise.
65451         (sub_magnitudes): Likewise.
65452         (__add): Likewise.
65453         (__sub): Likewise.
65454         (__mul): Likewise.
65455         (__inv): Likewise.
65456         (__dvd): Likewise.
65457         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
65458         (norm): Likewise.
65459         (denorm): Likewise.
65460         (dbl_mp): Likewise.
65461         (sub_magnitudes): Likewise.
65462         (__add): Likewise.
65463         (__sub): Likewise.
65464         (__mul): Likewise.
65465         (__inv): Likewise.
65466         (__dvd): Likewise.
65467
65468         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
65469         instead of __mul.
65470         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
65471         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
65472         (cc32): Likewise.
65473
65474         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
65475         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
65476         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
65477         of __mul for squares.
65478         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
65479         function
65480         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
65481         Likewise.
65482         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
65483         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
65484
65485 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
65486
65487         [BZ #13550]
65488         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
65489         code.
65490         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
65491         prototype or function definition.  Rename ubp_* variables and
65492         parameters.  Remove argv definitions conditional on
65493         [__BOUNDED_POINTERS__].
65494         * debug/backtrace.c (__backtrace): Do not use __unbounded.
65495         * elf/dl-runtime.c (_dl_fixup): Likewise.
65496         * include/set-hooks.h (RUN_HOOK): Likewise.
65497         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
65498         definition.
65499         * string/strcpy.c (strcpy): Do not use __unbounded.
65500         * sysdeps/generic/frame.h (struct layout): Likewise.
65501         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
65502         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
65503         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
65504         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
65505         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
65506         (__backtrace): Likewise.
65507         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
65508         use __ptrvalue.
65509         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
65510         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
65511         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
65512         Likewise.
65513         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
65514         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
65515         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
65516         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
65517         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
65518         Do not use __unbounded.
65519         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
65520         Rename __unboundedrlimits parameter to rlimits in prototype.
65521         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
65522         Do not use __unbounded.
65523         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
65524         not use __ptrvalue.
65525         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
65526         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
65527         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
65528         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
65529         __ptrvalue or __unbounded.
65530         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
65531         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
65532         use __unbounded.
65533         (__new_msgctl): Do not use __ptrvalue.
65534         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
65535         __unbounded.
65536         (__libc_msgrcv): Do not use __ptrvalue.
65537         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
65538         startup_info): Do not use __unbounded.
65539         (__libc_start_main): Likewise.  Rename ubp_* variables and
65540         parameters.  Remove argv definitions conditional on
65541         [__BOUNDED_POINTERS__].
65542         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
65543         __ptrvalue.
65544         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
65545         use __unbounded.
65546         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
65547         or __ptrvalue.
65548         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
65549         use __unbounded.
65550         (__new_shmctl): Do not use __ptrvalue.
65551         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
65552         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
65553         Likewise.
65554         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
65555         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
65556         (__libc_sigaction): Likewise.
65557         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
65558         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
65559         Likewise.
65560         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
65561
65562 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
65563
65564         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
65565
65566         * string/mempcpy.c: Implement by calling memcpy.
65567
65568 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
65569
65570         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
65571
65572         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
65573         evaluation.
65574
65575         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
65576         values in the mantissa.
65577
65578         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
65579         minimize writes to Z.
65580         (sub_magnitudes): Simplify code a bit.
65581
65582 2013-02-12  Roland McGrath  <roland@hack.frob.com>
65583
65584         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
65585         from the message.  The linker prefixes all warnings with that already.
65586
65587 2013-02-12  Andreas Schwab  <schwab@suse.de>
65588
65589         [BZ #15078]
65590         * posix/regexec.c (extend_buffers): Add parameter min_len.
65591         (check_matching): Pass minimum needed length.
65592         (clean_state_log_if_needed): Likewise.
65593         (get_subexp): Likewise.
65594         * posix/Makefile (tests): Add bug-regex34.
65595         (bug-regex34-ENV): Define.
65596         * posix/bug-regex34.c: New file.
65597
65598         [BZ #11561]
65599         * posix/regcomp.c (parse_bracket_exp): When looking up collating
65600         elements compare against the byte sequence of it, not its name.
65601         * posix/Makefile (tests): Add bug-regex35.
65602         (bug-regex35-ENV): Define.
65603         * posix/bug-regex35.c: New file.
65604
65605 2013-02-11  Tom de Vries  <tom@codesourcery.com>
65606
65607         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
65608         comment.
65609         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
65610         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
65611         (CHECK_EOL): Add undef.
65612
65613 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
65614
65615         * bits/stdlib-bsearch.h: New file.
65616         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
65617         * stdlib/stdlib.h: Likewise.
65618
65619 2013-02-11  Roland McGrath  <roland@hack.frob.com>
65620
65621         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
65622         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
65623         declaration.
65624         * manual/search.texi (Array Search Function): Add missing const in
65625         lfind prototype.
65626         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
65627         declaration to use rlim_t.
65628         (Basic Scheduling Functions): Remove erroneous const from
65629         sched_getparam prototype.  Remove erroneous * from
65630         sched_get_priority_max and sched_get_priority_min prototypes.
65631         (Resource Usage): Fix summary @comment on vtimes to refer to
65632         sys/vtimes.h rather than vtimes.h.
65633         Add missing *s in vtimes prototype.
65634         (Limits on Resources): Fix ulimit prototype to return long int.
65635         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
65636         prototypes to use long int rather than double.
65637         (BSD Random): Fix initstate and setstate to use char *, not void *.
65638         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
65639         prototype to make second argument 'struct aiocb64 *const[]'.
65640         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
65641         (Status of AIO Operations): Remove erroneous const in aio_return and
65642         aio_return64 prototypes.
65643         (Synchronizing I/O): Fix sync prototype to return void.
65644         * manual/startup.texi (Suboptions): Remove an erroneous const in
65645         getsubopt prototype.
65646         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
65647         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
65648         use size_t rather than int.
65649         (Scanning All Users): Likewise for getpwent_r.
65650         (Setting Groups): Add missing const to setgroups prototype.
65651         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
65652         * manual/socket.texi (Host Names): Fix gethostbyaddr and
65653         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
65654         'const void *' rather than 'const char *'.
65655         (Host Address Functions): Likewise for inet_ntop.
65656         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
65657         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
65658         ssize_t for return value.
65659         (Sending Data): Likewise for send, sendto, sendmsg.
65660         (Socket Option Functions): Add a missing const in setsockopt prototype.
65661         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
65662         use wchar_t for the argument.
65663         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
65664         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
65665         take no arguments.
65666         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
65667         double/float/long double for second argument.
65668         Fix return types of significand, significandf, significandl.
65669         * manual/filesys.texi (Setting Permissions): Use mode_t for second
65670         argument in fchmod prototype.
65671         (File Owner): Use uid_t and gid_t in fchown prototype.
65672         (File Times): Add const to utimes, futimes, and lutimes prototypes.
65673         (Making Special Files): Use mode_t and dev_t in mknod prototype.
65674         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
65675         use 'const struct dirent **' as argument types to CMP function pointer
65676         argument.
65677         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
65678         (File Times): Fix summary magic @comment for struct utimbuf and utime
65679         to refer to utime.h, not time.h.
65680         * manual/string.texi (Argz Functions): Add missing const in
65681         argz_extract and argz_next prototypes.
65682         (Finding Tokens in a String): Likewise for basename.
65683         (String/Array Comparison): Fix typo in wcscasecmp prototype.
65684         (Copying and Concatenation): Fix typo in wmemmove prototype.
65685         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
65686         (Signal Stack): Remove erroneous const in sigstack prototype.
65687         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
65688         prototype.
65689         (Simple Calendar Time): Likewise for stime.
65690         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
65691         prototype.
65692         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
65693         say sys/sysctl.h instead.
65694         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
65695         and vsyslog prototypes.
65696
65697 2013-02-11  Tom de Vries  <tom@codesourcery.com>
65698
65699         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
65700         Remove.
65701
65702 2013-02-11  Roland McGrath  <roland@hack.frob.com>
65703
65704         * misc/sys/mman.h: Fix typo in mremap comment.
65705
65706 2013-02-08  Roland McGrath  <roland@hack.frob.com>
65707
65708         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
65709         the '\0' terminator.
65710
65711 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
65712
65713         [BZ #13550]
65714         * debug/segfault.c: Don't include <bp-checks.h>.
65715         * sysdeps/generic/bp-checks.h: Remove file.
65716         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
65717         (__GETDENTS): Don't use CHECK_N.
65718         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
65719         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
65720         (__getgroups): Don't use CHECK_N.
65721         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
65722         (setgroups): Don't use CHECK_N.
65723         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
65724         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
65725         (__libc_msgrcv): Don't use CHECK_N.
65726         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
65727         (__libc_msgsnd): Don't use CHECK_N.
65728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
65729         <bp-checks.h>.
65730         (__libc_pread): Don't use CHECK_N.
65731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
65732         include <bp-checks.h>.
65733         (__libc_pread64): Don't use CHECK_N.
65734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
65735         include <bp-checks.h>.
65736         (__libc_pwrite): Don't use CHECK_N.
65737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
65738         include <bp-checks.h>.
65739         (__libc_pwrite64): Don't use CHECK_N.
65740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
65741         <bp-checks.h>.
65742         (__libc_pread): Don't use CHECK_N.
65743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
65744         include <bp-checks.h>.
65745         (__libc_pread64): Don't use CHECK_N.
65746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
65747         include <bp-checks.h>.
65748         (__libc_pwrite): Don't use CHECK_N.
65749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
65750         include <bp-checks.h>.
65751         (__libc_pwrite64): Don't use CHECK_N.
65752         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
65753         (do_pread): Don't use CHECK_N.
65754         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
65755         (do_pread64): Don't use CHECK_N.
65756         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
65757         (do_pwrite): Don't use CHECK_N.
65758         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
65759         (do_pwrite64): Don't use CHECK_N.
65760         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
65761         (__libc_readv): Don't use CHECK_N.
65762         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
65763         (semop): Don't use CHECK_N.
65764         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
65765         <bp-checks.h>.
65766         (semtimedop): Don't use CHECK_N.
65767         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
65768         (__libc_pread): Don't use CHECK_N.
65769         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
65770         <bp-checks.h>.
65771         (__libc_pread64): Don't use CHECK_N.
65772         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
65773         <bp-checks.h>.
65774         (__libc_pwrite): Don't use CHECK_N.
65775         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
65776         <bp-checks.h>.
65777         (__libc_pwrite64): Don't use CHECK_N.
65778         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
65779         <bp-checks.h>.
65780         (__libc_msgrcv): Don't use CHECK_N.
65781         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
65782         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
65783         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
65784         (__libc_writev): Don't use CHECK_N.
65785
65786 2013-02-08  Roland McGrath  <roland@hack.frob.com>
65787
65788         * string/strcpy.c: Removed unused variable.
65789
65790         * Makeconfig (+sysdep-includes): Define with := rather than =.
65791         Use an existing include/ subdir of each sysdeps dir before it.
65792
65793 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
65794
65795         * nscd/connection.c (register_traced_file): Comment function.
65796         [HAVE_INOTIFY] (union __inev): Define.
65797         [HAVE_INOTIFY] (inotify_check_files): New function.
65798         [HAVE_INOTIFY] (clear_db_cache): Likewise.
65799         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
65800         clear_db_cache.
65801         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
65802
65803 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
65804
65805         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
65806         loaded if not already and that a failure is permanent.
65807
65808 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
65809
65810         [BZ #15006]
65811         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
65812         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
65813
65814 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
65815
65816         [BZ #13550]
65817         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
65818         (CHECK_1_NULL_OK): Likewise.
65819         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
65820         (__fxstat): Do not use CHECK_1.
65821         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
65822         <bp-checks.h>.
65823         (___fxstat64): Do not use CHECK_1.
65824         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
65825         <bp-checks.h>.
65826         (__fxstatat): Do not use CHECK_1.
65827         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
65828         <bp-checks.h>.
65829         (__fxstatat64): Do not use CHECK_1.
65830         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
65831         <bp-checks.h>.
65832         (__fxstat): Do not use CHECK_1.
65833         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
65834         <bp-checks.h>.
65835         (__fxstatat): Do not use CHECK_1.
65836         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
65837         <bp-checks.h>.
65838         (__getresgid): Do not use CHECK_1.
65839         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
65840         <bp-checks.h>.
65841         (__getresuid): Do not use CHECK_1.
65842         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
65843         <bp-checks.h>.
65844         (__lxstat): Do not use CHECK_1.
65845         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
65846         <bp-checks.h>.
65847         (__old_msgctl): Do not use CHECK_1.
65848         (__new_msgctl): Likewise.
65849         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
65850         <bp-checks.h>.
65851         (__new_setrlimit): Do not use CHECK_1.
65852         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
65853         <bp-checks.h>.
65854         (__old_shmctl): Do not use CHECK_1.
65855         (__new_shmctl): Likewise.
65856         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
65857         <bp-checks.h>.
65858         (__xstat): Do not use CHECK_1.
65859         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
65860         (__lxstat): Do not use CHECK_1.
65861         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
65862         <bp-checks.h>.
65863         (___lxstat64): Do not use CHECK_1.
65864         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
65865         (__old_msgctl): Do not use CHECK_1.
65866         (__new_msgctl): Likewise.
65867         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
65868         <bp-checks.h>.
65869         (__gettimeofday): Do not use CHECK_1.
65870         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
65871         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
65872         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
65873         <bp-checks.h>.
65874         (__gettimeofday): Do not use CHECK_1.
65875         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
65876         (__old_shmctl): Do not use CHECK_1_NULL_OK.
65877         (__new_shmctl): Do not use CHECK_1.
65878         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
65879         <bp-checks.h>.
65880         (do_sigtimedwait): Do not use CHECK_1.
65881         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
65882         <bp-checks.h>.
65883         (do_sigwaitinfo): Do not use CHECK_1.
65884         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
65885         <bp-checks.h>.
65886         (msgctl): Do not use CHECK_1.
65887         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
65888         <bp-checks.h>.
65889         (shmctl): Do not use CHECK_1.
65890         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
65891         (ustat): Do not use CHECK_1.
65892         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
65893         <bp-checks.h>.
65894         (__fxstat): Do not use CHECK_1.
65895         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
65896         <bp-checks.h>.
65897         (__fxstatat): Do not use CHECK_1.
65898         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
65899         <bp-checks.h>.
65900         (__lxstat): Do not use CHECK_1.
65901         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
65902         <bp-checks.h>.
65903         (__xstat): Do not use CHECK_1.
65904         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
65905         (__xstat): Do not use CHECK_1.
65906         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
65907         (___xstat64): Do not use CHECK_1.
65908
65909         [BZ #13550]
65910         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
65911         definitions.
65912         (CHECK_BOUNDS_HIGH): Likewise.
65913         * string/strcpy.c: Do not include <bp-checks.h>.
65914         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
65915
65916 2013-02-07  Roland McGrath  <roland@hack.frob.com>
65917
65918         * nscd/nscd-client.h (__nscd_drop_map_ref):
65919         Add __attribute__ ((unused)).
65920         * nis/nss-nisplus.h (niserr2nss): Likewise.
65921
65922         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
65923         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
65924
65925         * csu/libc-tls.c (init_static_tls, init_slotinfo):
65926         Remove inline keyword.
65927         * include/rounding-mode.h (round_away): Likewise.
65928         * libio/wfileops.c (adjust_wide_data): Likewise.
65929         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
65930         (__m128i_strloadu_tolower): Likewise.
65931         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
65932         (__m128i_strloadu_tolower): Likewise.
65933         * time/mktime.c (ydhms_diff): Likewise.
65934         * locale/elem-hash.h (elem_hash): Likewise.
65935         * locale/setlocale.c (setdata): Likewise.
65936         * posix/regex_internal.h (re_string_char_size_at): Likewise.
65937         (re_string_wchar_at): Likewise.
65938         (bitset_not, bitset_merge, bitset_mask): Likewise.
65939         [!(__GNUC__ > 3)] (inline): Remove macro.
65940         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
65941         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
65942         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
65943         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
65944         * string/memcmp.c (memcmp_bytes): Likewise.
65945         * locale/programs/locarchive.c (compute_hashval): Likewise.
65946         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
65947         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
65948         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
65949         * nss/getent.c (print_rpc, print_protocols): Likewise.
65950         (print_passwd, print_group, print_aliases): Likewise.
65951         * nis/nss-nisplus.h (niserr2nss): Likewise.
65952         * nscd/connections.c (restart_p): Likewise.
65953         Change return type to bool.
65954
65955 2013-02-05  Roland McGrath  <roland@hack.frob.com>
65956
65957         * Makeconfig (all-Depend-files): Add existing
65958         $(sorted-subdirs:=/Depend) files.
65959         (all-subdirs): Remove nss.
65960         * sysdeps/unix/inet/Subdirs: Add it here instead.
65961         * hesiod/Depend: New file.
65962
65963         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
65964         instead of calling alloca.
65965
65966         * io/lseek.c (__lseek): Rename to __libc_lseek.
65967         Define __lseek as an alias.
65968
65969         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
65970
65971 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
65972
65973         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
65974         else clause and remove check for non-standard endianness.
65975
65976 2013-02-04  David S. Miller  <davem@davemloft.net>
65977
65978         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65979
65980 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
65981
65982         [BZ #13550]
65983         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
65984         (__ubp_memchr): Remove prototype.
65985         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
65986         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
65987         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
65988         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
65989         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
65990         Remove alias.
65991         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
65992         (__ubp_memchr): Likewise.
65993         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
65994         (__ubp_memchr): Likewise.
65995         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
65996         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
65997         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
65998         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
65999         CHECK_STRING.
66000         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
66001         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
66002         (__getcwd): Do not use CHECK_STRING.
66003         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
66004         <bp-checks.h>.
66005         (__real_chown): Do not use CHECK_STRING.
66006         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
66007         <bp-checks.h>.
66008         (fchownat): Do not use CHECK_STRING.
66009         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
66010         CHECK_STRING.
66011         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
66012         <bp-checks.h>.
66013         (__lchown): Do not use CHECK_STRING.
66014         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
66015         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
66016         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
66017         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
66018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
66019         include <bp-checks.h>.
66020         (truncate64): Do not use CHECK_STRING.
66021         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
66022         <bp-checks.h>.
66023         (__real_chown): Do not use CHECK_STRING.
66024         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
66025         <bp-checks.h>.
66026         (__lchown): Do not use CHECK_STRING.
66027         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
66028         <bp-checks.h>.
66029         (__chown): Do not use CHECK_STRING.
66030         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
66031         <bp-checks.h>.
66032         (truncate64): Do not use CHECK_STRING.
66033         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
66034         Likewise.
66035         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
66036         (__xmknod): Do not use CHECK_STRING.
66037         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
66038         <bp-checks.h>.
66039         (__xmknodat): Do not use CHECK_STRING.
66040         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
66041         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
66042
66043 2013-02-04  Andreas Schwab  <schwab@suse.de>
66044
66045         [BZ #14142]
66046         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
66047         * include/netdb.h: Likewise for h_errno.
66048         * elf/tst-stackguard1.c: Include <tls.h>.
66049
66050 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
66051
66052         * elf/link.h (struct link_map): Extend the l_addr comment.
66053         * include/link.h (struct link_map): Likewise.
66054
66055 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
66056
66057         [BZ #13550]
66058         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
66059         (BOUNDED_1): Remove macro.
66060         * debug/backtrace.c: Don't include <bp-checks.h>.
66061         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
66062         (__backtrace): Likewise.
66063         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
66064         <bp-checks.h>.
66065         (__backtrace): Don't use BOUNDED_1.
66066         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
66067         <bp-checks.h>.
66068         (__backtrace): Don't use BOUNDED_1.
66069         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
66070         (__backtrace): Don't use BOUNDED_1.
66071         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
66072         (shmat): Don't use BOUNDED_N.
66073
66074 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
66075
66076         [BZ #13550]
66077         * sysdeps/generic/bp-start.h: Remove file.
66078         * csu/libc-start.c: Don't include <bp-start.h>.
66079         (LIBC_START_MAIN): Set up __environ directly instead of using
66080         INIT_ARGV_and_ENVIRON.
66081         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
66082         <bp-start.h>.
66083
66084         [BZ #13550]
66085         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
66086         definitions.
66087         (CHECK_FCNTL): Likewise.
66088         (CHECK_N_PAGES): Likewise.
66089
66090         [BZ #13550]
66091         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
66092         definitions.
66093         (CHECK_SIGSET_NULL_OK): Likewise.
66094         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
66095         <bp-checks.h>.
66096         (sigpending): Don't use CHECK_SIGSET.
66097         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
66098         <bp-checks.h>.
66099         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
66100         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
66101         <bp-checks.h>.
66102         (do_sigsuspend): Don't use CHECK_SIGSET.
66103         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
66104         use CHECK_SIGSET.
66105         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
66106         (do_sigwait): Don't use CHECK_SIGSET.
66107         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
66108         use CHECK_SIGSET.
66109         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
66110         include <bp-checks.h>.
66111         (sigpending): Don't use CHECK_SIGSET.
66112         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
66113         include <bp-checks.h>.
66114         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
66115         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
66116         <bp-checks.h>.
66117         (sigpending): Don't use CHECK_SIGSET.
66118         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
66119         <bp-checks.h>.
66120         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
66121
66122         [BZ #13550]
66123         * sysdeps/generic/bp-semctl.h: Remove file.
66124         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
66125         <bp-checks.h> and <bp-semctl.h>.
66126         (__old_semctl): Don't use CHECK_SEMCTL.
66127         (__new_semctl): Likewise.
66128         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
66129         and <bp-semctl.h>.
66130         (__old_semctl): Don't use CHECK_SEMCTL.
66131         (__new_semctl): Likewise.
66132         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
66133         <bp-checks.h> and <bp-semctl.h>.
66134         (__old_semctl): Don't use CHECK_SEMCTL.
66135         (__new_semctl): Likewise.
66136         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
66137         <bp-checks.h> and <bp-semctl.h>.
66138         (semctl): Don't use CHECK_SEMCTL.
66139
66140         [BZ #13550]
66141         * Makerules (elide-bp-thunks): Remove variable.
66142         (elide-routines.oS): Don't use $(elide-bp-thunks).
66143         (elide-routines.os): Likewise.
66144         (elide-routines.o): Likewise.
66145         (elide-routines.op): Likewise.
66146         (elide-routines.og): Likewise.
66147         (objects): Don't use $(bp-thunks).
66148         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
66149         include.
66150         (common-generated): Do not add s-proto-bp.d.
66151         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
66152         (int): Likewise.
66153         (typ): Likewise.
66154         Do not generate makefile rules for bounded-pointer thunks.
66155         * sysdeps/generic/bp-thunks.h: Remove file.
66156         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
66157         * sysdeps/unix/s-proto-bp.S: Likewise.
66158
66159         [BZ #15062]
66160         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
66161         parts of result separately when argument is not close to line from
66162         -i to i and one part of argument is small.
66163         * math/k_casinhf.c (__kernel_casinhf): Likewise.
66164         * math/k_casinhl.c (__kernel_casinhl): Likewise.
66165         * math/libm-test.inc (cacos_test): Add more tests.
66166         (casin_test): Likewise.
66167         (casinh_test): Likewise.
66168         * sysdeps/i386/fpu/libm-test-ulps: Update.
66169         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66170
66171 2013-01-31  David S. Miller  <davem@davemloft.net>
66172
66173         * po/de.po: Update from translation team.
66174
66175 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
66176
66177         * time/tzfile.c: Include stdint.h for SIZE_MAX.
66178
66179 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
66180
66181         * configure.in (_AC_PROG_CC_C89): New definition.
66182         * configure: Regenerate.
66183
66184         * configure.in (AC_PROG_CPP): New definition.
66185         * configure: Regenerate.
66186
66187 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
66188
66189         * debug/tst-backtrace.h: New file.
66190         * debug/tst-backtrace2.c: Include tst-backtrace.h.
66191         (ret): Remove variable.
66192         (x): Likewise.
66193         (FAIL): Remove macro.
66194         (NO_INLINE): Likewise.
66195         (fn1): Use match function instead of strstr.
66196         * debug/tst-backtrace3.c: Include tst-backtrace.h.
66197         (ret): Remove variable.
66198         (x): Likewise.
66199         (FAIL): Remove macro.
66200         (NO_INLINE): Likewise.
66201         (fn): Use match function instead of strstr.
66202         * debug/tst-backtrace4.c: Include tst-backtrace.h.
66203         (ret): Remove variable.
66204         (x): Likewise.
66205         (FAIL): Remove macro.
66206         (NO_INLINE): Likewise.
66207         (handle_signal): Use match function instead of strstr.
66208         * debug/tst-backtrace5.c: Include tst-backtrace.h.
66209         (ret): Remove variable.
66210         (x): Likewise.
66211         (FAIL): Remove macro.
66212         (NO_INLINE): Likewise.
66213         (handle_signal): Use match function instead of strstr.
66214
66215 2013-01-23  Roland McGrath  <roland@hack.frob.com>
66216
66217         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
66218
66219 2013-01-23  David S. Miller  <davem@davemloft.net>
66220
66221         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
66222         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
66223         argument of CAS if possible.
66224         * sysdeps/sparc/sparc64/bits/atomic.h
66225         (__arch_compare_and_exchange_val_32_acq): Likewise.
66226         (__arch_compare_and_exchange_val_64_acq): Likewise.
66227
66228 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
66229
66230         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
66231         * sysdeps/posix/ulimit.c: ... this.
66232         Include <limits.h>.
66233         * sysdeps/unix/bsd/ulimit.c: Remove file.
66234
66235 2013-01-23  Adam Conrad  <adconrad@0c3.net>
66236
66237         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
66238         (LDFLAGS-tst-array5): Likewise.
66239
66240 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
66241
66242         [BZ #15036]
66243         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
66244         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
66245         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
66246         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
66247
66248 2013-01-21  David S. Miller  <davem@davemloft.net>
66249
66250         * sysdeps/sparc/backtrace.c: New file.
66251         * sysdeps/sparc/sparc32/backtrace.h: New file.
66252         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
66253         * sysdeps/sparc/sparc64/backtrace.h: New file.
66254         * sysdeps/sparc/sparc64/backtrace.c: Delete.
66255         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
66256         -funwind-tables.
66257
66258 2013-01-21  Andreas Schwab  <schwab@suse.de>
66259
66260         [BZ #15020]
66261         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
66262         closed its stdout.
66263
66264 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
66265
66266         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
66267         "mpa2.h".
66268         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
66269
66270 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
66271             Mark Mitchell  <mark@codesourcery.com>
66272             Tom de Vries  <tom@codesourcery.com>
66273             Paul Pluzhnikov  <ppluzhnikov@google.com>
66274
66275         * debug/tst-backtrace2.c: New file.
66276         * debug/tst-backtrace3.c: Likewise.
66277         * debug/tst-backtrace4.c: Likewise.
66278         * debug/tst-backtrace5.c: Likewise.
66279         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
66280         (CFLAGS-tst-backtrace3.c): Likewise.
66281         (CFLAGS-tst-backtrace4.c): Likewise.
66282         (CFLAGS-tst-backtrace5.c): Likewise.
66283         (LDFLAGS-tst-backtrace2): Likewise.
66284         (LDFLAGS-tst-backtrace3): Likewise.
66285         (LDFLAGS-tst-backtrace4): Likewise.
66286         (LDFLAGS-tst-backtrace5): Likewise.
66287         (tests): Add new tests tst-backtrace2, tst-backtrace3,
66288         tst-backtrace4 and tst-backtrace5.
66289
66290 2013-01-18  Anton Blanchard  <anton@samba.org>
66291             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
66292
66293         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
66294         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
66295         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
66296         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
66297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
66298         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
66299         "+r" and remove output regs list as redundant.  Add explicit inline
66300         asm to specify register of return val to work around compiler codegen
66301         bug.  Remove (int) cast on return value.  Add return type parameter to
66302         use in macro so that this macro does not truncate return value for
66303         64-bit values.
66304         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
66305         pass to INTERNAL_VSYSCALL_NCS.
66306         (INLINE_VSYSCALL): Add 'long int' as return type to
66307         INTERNAL_VSYSCALL_NCS macro invocation.
66308         (INTERNAL_VSYSCALL): Add 'long int' as return type to
66309         INTERNAL_VSYSCALL_NCS macro invocation.
66310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
66311
66312 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
66313
66314         [BZ #14496]
66315         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
66316         Fix application of SIMD FP exception mask.
66317
66318         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
66319         mp_no from a power of two.
66320         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
66321         __mpexp_twomm1.  Use __pow_mp.
66322
66323         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
66324         multiplication.
66325
66326 2013-01-17  David S. Miller  <davem@davemloft.net>
66327
66328         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66329
66330 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
66331
66332         [BZ #15023]
66333         * include/complex.h: Condition contents on [!_COMPLEX_H].
66334         (__kernel_casinhf): New prototype.
66335         (__kernel_casinh): Likewise.
66336         (__kernel_casinhl): Likewise.
66337         * math/Makefile (libm_calls): Add k_casinh.
66338         * math/k_casinh.c: New file.
66339         * math/k_casinhf.c: Likewise.
66340         * math/k_casinhl.c: Likewise.
66341         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
66342         finite nonzero arguments.
66343         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
66344         finite nonzero arguments.
66345         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
66346         finite nonzero arguments.
66347         * math/s_casinh.c: Do not include <float.h>.
66348         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
66349         * math/s_casinhf.c: Do not include <float.h>.
66350         (__casinhf): Move code for finite nonzero arguments to
66351         k_casinhf.c.
66352         * math/s_casinhl.c: Do not include <float.h>.
66353         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
66354         redefine.
66355         (__casinhl): Move code for finite nonzero arguments to
66356         k_casinhl.c.
66357         * math/libm-test.inc (cacos_test): Add more tests.
66358         * sysdeps/i386/fpu/libm-test-ulps: Update.
66359         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66360
66361 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
66362
66363         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
66364         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
66365         [!HAVE_MREMAP]: Remove [defined linux] case.
66366         * malloc/arena.c: Do not include <malloc-sysdep.h>.
66367
66368 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
66369
66370         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
66371
66372 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
66373
66374         * elf/elf.h (R_386_SIZE32): New relocation.
66375         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
66376         R_386_SIZE32.
66377         (elf_machine_rela): Likewise.
66378         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
66379         R_X86_64_SIZE64 and R_X86_64_SIZE32.
66380
66381 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
66382
66383         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
66384         (FP_FAST_FMA): Do not define.
66385         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
66386         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
66387         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
66388         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
66389         !_SOFT_FLOAT]: Likewise.
66390         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
66391         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
66392         value.
66393         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
66394         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
66395         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
66396         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
66397         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
66398         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
66399         file.
66400
66401 2013-01-16  Andreas Schwab  <schwab@suse.de>
66402
66403         [BZ #14327]
66404         * include/stdlib.h (__mktemp): Add declaration.
66405         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
66406         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
66407
66408 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
66409
66410         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
66411         definitions.
66412         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
66413         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
66414         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
66415         definitions here.
66416         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
66417         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
66418         definitions.
66419         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
66420         and ONE.
66421         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
66422         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
66423         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
66424         definitions.
66425         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
66426         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
66427         definitions.
66428         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
66429
66430         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
66431
66432 2013-01-15  David S. Miller  <davem@davemloft.net>
66433
66434         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
66435         trunc{,f} to libm-sysdep_routes.
66436         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
66437         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
66438         file.
66439         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
66440         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
66441         file.
66442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
66443         file.
66444         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
66445         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
66446         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
66447         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
66448         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
66449         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
66450         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
66451         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
66452
66453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
66454         nearbyint{,f} to libm-sysdep_routes.
66455         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
66456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
66457         New file.
66458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
66459         file.
66460         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
66461         New file.
66462         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
66463         file.
66464         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
66465         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
66466         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
66467         file.
66468         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
66469         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
66470         file.
66471         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
66472         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
66473         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
66474
66475         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
66476         libc_feholdexcept and libc_fesetenv.
66477
66478 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
66479
66480         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
66481
66482 2013-01-14  David S. Miller  <davem@davemloft.net>
66483
66484         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
66485         (SPARC_ASM_VIS2_IFUNC): Likewise.
66486         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
66487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
66488         use of 'siam' instruction.
66489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
66490         Likewise.
66491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
66492         Likewise.
66493         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
66494         Likewise.
66495         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
66496         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
66497         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
66498         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
66499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
66500         file.
66501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
66502         file.
66503         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
66504         file.
66505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
66506         file.
66507         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
66508         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
66509         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
66510         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
66511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
66512         new VIS2 routines.
66513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
66514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
66515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
66516         Likewise.
66517         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
66518         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
66519         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
66520         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
66521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
66522         routines to libm-sysdep_routines.
66523         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
66524
66525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
66526         fdim/fdimf to libm-sysdep_routines.
66527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
66528         file.
66529         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
66530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
66531         file.
66532         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
66533         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
66534         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
66535         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
66536         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
66537         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
66538         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
66539
66540 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
66541
66542         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
66543         to optimize copies.
66544
66545         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
66546         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
66547         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
66548
66549         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
66550         local variable MPTWO.
66551         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
66552         Likewise.
66553
66554 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
66555
66556         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
66557         GLOB_NOESCAPE.
66558
66559 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
66560
66561         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
66562
66563 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
66564
66565         * manual/pattern.texi (glob_t): Document gl_flags.
66566         (glob64_t): Likewise.
66567
66568 2013-01-11  David S. Miller  <davem@davemloft.net>
66569
66570         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
66571         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
66572         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
66573         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
66574         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
66575         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
66576         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
66577         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
66578         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
66579         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
66580         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
66581         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
66582         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
66583
66584         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
66585         sparc V9 rather than using V8 code.
66586         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
66587         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
66588
66589         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
66590         Move to...
66591         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
66592         Here.
66593
66594 2013-01-11  Roland McGrath  <roland@hack.frob.com>
66595
66596         [BZ #14941]
66597         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
66598         not in the main loop.
66599         * configure: Regenerated.
66600
66601 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
66602
66603         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
66604         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
66605         to just #else.
66606         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
66607         [!__GLIBC_HAVE_LONG_LONG] case.
66608         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
66609         condition to just #else.
66610         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
66611         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
66612         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
66613         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
66614         unconditional.
66615         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
66616         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
66617         #elif condition to just #else.
66618         * sysdeps/unix/sysv/linux/sys/sysmacros.h
66619         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
66620         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
66621         #elif condition to just #else.
66622
66623 2013-01-11  Steve Ellcey  <sellcey@mips.com>
66624
66625         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
66626         (EF_MIPS_ARCH_64): Fix value.
66627         (EF_MIPS_ARCH_32R2): New.
66628         (EF_MIPS_ARCH_64R2): New.
66629
66630 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
66631
66632         * Makeconfig (+link-pie-before-libc): New.
66633         (+link-pie-after-libc): Likewise.
66634         (+link-pie-tests): Likewise.
66635         (+link-pie): Rewritten.
66636         (link-before-libc): Remove $(config-LDFLAGS).
66637         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
66638         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
66639         (config-LDFLAGS): Renamed to ...
66640         (rtld-LDFLAGS): This.
66641         (rtld-tests-LDFLAGS): New macro.
66642         (link-libc-rpath-link): Likewise.
66643         (link-libc-tests-rpath-link): Likewise.
66644         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
66645         (link-libc): Prepand $(link-libc-rpath-link).
66646         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
66647         (test-program-prefix): New macro.
66648         (test-via-rtld-prefix): Likewise.
66649         (test-program-cmd): Likewise.
66650         (host-test-program-cmd): Likewise.
66651         * Makefile ($(common-objpfx)testrun.sh): Replace
66652         $(run-program-prefix) with $(test-program-prefix).
66653         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
66654         $(rtld-LDFLAGS).
66655         ($(common-objpfx)shlib.lds): Likewise.
66656         (build-module-helper): Likewise.
66657         ($(common-objpfx)format.lds): Likewise.
66658         * Rules (binaries-pie-tests): New.
66659         (binaries-pie-notests): Likewise.
66660         (binaries-pie): Rewritten.
66661         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
66662         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
66663         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
66664         (make-test-out): Replace $(host-built-program-cmd) with
66665         $(host-test-program-cmd).
66666         * config.make.in (build-hardcoded-path-in-tests): New variable.
66667         * configure.in (--enable-hardcoded-path-in-tests): New configure
66668         option.
66669         (hardcoded_path_in_tests): New AC_SUBST.
66670         * configure: Regenerated.
66671         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
66672         $(built-program-cmd) with $(test-program-cmd).
66673         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
66674         (test_program_cmd): This.
66675         * elf/Makefile ($(objpfx)order.out): Run test with
66676         $(test-program-prefix).
66677         ($(objpfx)order2.out): Likewise.
66678         ($(objpfx)tst-initorder.out): Likewise.
66679         ($(objpfx)tst-initorder2.out): Likewise.
66680         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
66681         $(test-program-cmd).
66682         ($(objpfx)tst-array1-static.out): Likewise.
66683         ($(objpfx)tst-array2.out): Likewise.
66684         ($(objpfx)tst-array3.out): Likewise.
66685         ($(objpfx)tst-array4.out): Likewise.
66686         ($(objpfx)tst-array5.out): Likewise.
66687         ($(objpfx)tst-array5-static.out): Likewise.
66688         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
66689         $(test-program-cmd).
66690         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
66691         $(run-program-prefix) with $(test-program-prefix).
66692         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
66693         (test_program_prefix): This.
66694         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
66695         $(run-program-prefix) with $(test-program-prefix).
66696         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
66697         (test_program_prefix): This.
66698         * iconvdata/tst-tables.sh: Likewise.
66699         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
66700         $(run-program-prefix) with $(test-program-prefix).
66701         ($(objpfx)tst-translit.out): Likewise.
66702         ($(objpfx)tst-gettext2.out): Likewise.
66703         ($(objpfx)tst-gettext4.out): Likewise.
66704         ($(objpfx)tst-gettext6.out): Likewise.
66705         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
66706         (test_program_prefix): This.
66707         * intl/tst-gettext2.sh: Likewise.
66708         * intl/tst-gettext4.sh  Likewise.
66709         * intl/tst-gettext6.sh: Likewise.
66710         * intl/tst-translit.sh: Likewise.
66711         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
66712         with $(test-program-cmd).
66713         * libio/Makefile ($(objpfx)test-freopen.out): Replace
66714         $(run-program-prefix) with $(test-program-prefix).
66715         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
66716         (test_program_prefix): This.
66717         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
66718         $(run-program-prefix) with $(test-program-prefix).
66719         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
66720         (test_program_prefix): This.
66721         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
66722         * posix/Makefile ($(objpfx)globtest.out): Replace
66723         $(run-via-rtld-prefix) and $(test-wrapper) with
66724         $(test-program-prefix) and $(test-via-rtld-prefix).
66725         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
66726         $(test-program-prefix).
66727         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
66728         $(host-test-program-cmd).
66729         (tst-spawn-ARGS): Likewise.
66730         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
66731         $(test-program-prefix).
66732         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
66733         (test_via_rtld_prefix): This.
66734         (test_wrapper): Renamed to ...
66735         (test_program_prefix): This.
66736         (run_program_prefix): Replaced by test_program_prefix.
66737         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
66738         (test_program_prefix): This.
66739         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
66740         with $(host-test-program-cmd).
66741         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
66742         $(run-program-prefix) with $(test-program-prefix).
66743         ($(objpfx)tst-printf.out): Likewise.
66744         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
66745         $(test-program-cmd).
66746         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
66747         (test_program_prefix): This.
66748         * stdio-common/tst-unbputc.sh: Likewise.
66749         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
66750         $(run-program-prefix) with $(test-program-prefix).
66751         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
66752         (test_program_prefix): This.
66753         * string/Makefile ($(objpfx)tst-svc.out):  Replace
66754         $(built-program-cmd) with $(test-program-cmd).
66755
66756 2013-01-11  Andreas Jaeger  <aj@suse.de>
66757
66758         [BZ #15003]
66759         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
66760         value. Sync with Linux 3.7.
66761
66762 2013-01-10  David S. Miller  <davem@davemloft.net>
66763
66764         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
66765         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
66766         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
66767
66768 2013-01-10  Roland McGrath  <roland@hack.frob.com>
66769
66770         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
66771         never set.
66772         * configure: Regenerated.
66773
66774 2013-01-10  David S. Miller  <davem@davemloft.net>
66775
66776         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
66777         sparc V9 rather than using V8 code.
66778         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
66779         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
66780
66781 2013-01-10  Roland McGrath  <roland@hack.frob.com>
66782
66783         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
66784         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
66785         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
66786         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
66787         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
66788         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
66789         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
66790         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
66791         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
66792         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
66793         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
66794         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
66795         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
66796         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
66797         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
66798         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
66799         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
66800         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
66801         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
66802         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
66803         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
66804         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
66805         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
66806         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
66807         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
66808         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
66809         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
66810
66811 2013-01-10  David S. Miller  <davem@davemloft.net>
66812
66813         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66814
66815 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
66816
66817         * posix/Makefile (tests-static): New variable.
66818         (tests): Add $(tests-static).
66819         (tst-exec-static-ARGS): New variable.
66820         (tst-spawn-static-ARGS): Likewise.
66821         * posix/tst-exec-static.c: New file.
66822         * posix/tst-spawn-static.c: Likewise.
66823         * posix/tst-exec.c: Support run directly.
66824         * posix/tst-spawn.c: Likewise.
66825
66826 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
66827
66828         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
66829         long.
66830         * math/bits/mathcalls.h (llrint): Likewise.
66831         (llround): Likewise.
66832         * stdlib/stdlib.h (struct drand48_data): Likewise.
66833         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
66834         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
66835         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
66836         Likewise.
66837         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
66838         Likewise.
66839         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
66840         (elf_greg_t): Likewise.
66841         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
66842         (__jmp_buf): Likewise.
66843         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
66844         definitions.
66845         (llrint): Likewise, for all definitions.
66846         (llrintl): Likewise.
66847
66848         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
66849         Remove [__GNUC__] condition.
66850         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
66851         condition to just [__USE_ISOC99].
66852         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
66853
66854 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
66855
66856         [BZ #14200]
66857         * sysdeps/unix/sysv/linux/x86/bits/environments.h
66858         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
66859         defined.
66860         (_POSIX_V6_ILP32_OFF32): Likewise.
66861         (_XBS5_ILP32_OFF32): Likewise.
66862         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
66863         (__ILP32_OFFBIG_LDFLAGS): Likewise.
66864
66865 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
66866
66867         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
66868
66869         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
66870         doubles __mpexp_twomm1.  Adjust usage.
66871         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
66872         Remove.
66873
66874 2013-01-10  Andreas Schwab  <schwab@suse.de>
66875
66876         [BZ #14964]
66877         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
66878         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
66879
66880 2013-01-09  David S. Miller  <davem@davemloft.net>
66881
66882         [BZ #15003]
66883         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
66884         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
66885         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
66886         (TCP_FASTOPEN): Define.
66887         (tcp_repair_opt): New structure.
66888         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
66889         enum values.
66890         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
66891         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
66892         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
66893         (tcp_cookie_transactions): New structure.
66894
66895 2013-01-09  Anton Blanchard  <anton@samba.org>
66896
66897         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
66898         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
66899         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
66900         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
66901
66902 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
66903
66904         * include/features.h (__USE_ANSI): Remove.
66905
66906 2013-01-09  Roland McGrath  <roland@hack.frob.com>
66907
66908         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
66909
66910         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
66911
66912 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
66913
66914         * sysdeps/s390/fpu/libm-test-ulps: Update.
66915
66916         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66917
66918         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
66919         (__acr): Likewise.
66920         (__cpy): Likewise.
66921         (norm): Likewise.
66922         (denorm): Likewise.
66923         (__mp_dbl): Likewise.
66924         (__dbl_mp): Likewise.
66925         (add_magnitudes): Likewise.
66926         (sub_magnitudes): Likewise.
66927         (__add): Likewise.
66928         (__sub): Likewise.
66929         (__mul): Likewise.
66930         (__inv): Likewise.
66931         (__dvd): Likewise.
66932         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
66933         (__acr): Likewise.
66934         (__cpy): Likewise.
66935         (norm): Likewise.
66936         (denorm): Likewise.
66937         (__mp_dbl): Likewise.
66938         (__dbl_mp): Likewise.
66939         (add_magnitudes): Likewise.
66940         (sub_magnitudes): Likewise.
66941         (__add): Likewise.
66942         (__sub): Likewise.
66943         (__mul): Likewise.
66944         (__inv): Likewise.
66945         (__dvd): Likewise.
66946         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
66947         (__acr): Likewise.
66948         (__cpy): Likewise.
66949         (norm): Likewise.
66950         (denorm): Likewise.
66951         (__mp_dbl): Likewise.
66952         (__dbl_mp): Likewise.
66953         (add_magnitudes): Likewise.
66954         (sub_magnitudes): Likewise.
66955         (__add): Likewise.
66956         (__sub): Likewise.
66957         (__mul): Likewise.
66958         (__inv): Likewise.
66959         (__dvd): Likewise.
66960
66961 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
66962
66963         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
66964         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
66965         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
66966         2 && __USE_EXTERN_INLINES]: Likewise.
66967
66968 2013-01-08  Andreas Jaeger  <aj@suse.de>
66969
66970         [BZ #14985]
66971         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
66972         Remove.
66973         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
66974         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
66975
66976 2013-01-07  Anton Blanchard  <anton@samba.org>
66977
66978         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
66979         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
66980         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
66981         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
66982         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
66983         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66984         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
66985         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
66986         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
66987         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
66988         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
66989         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
66990         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66991         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
66992         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
66993         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
66994         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
66995         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
66996         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
66997         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
66998         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
66999         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
67000         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
67001         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
67002         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
67003         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
67004         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
67005         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
67006         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
67007         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
67008         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
67009         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
67010         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67011         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
67012         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
67013         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
67014         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
67015         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
67016         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
67017         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
67018         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
67019         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
67020         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
67021
67022 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
67023
67024         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
67025         (__MALLOC_PMT): Likewise.
67026         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
67027         [__GNUC__], only on [_LIBC].
67028         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
67029         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
67030         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
67031         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
67032         forward declaration.
67033         (realloc_hook_ini): Likewise.
67034         (memalign_hook_ini): Likewise.
67035         (__libc_memalign): Do not use __MALLOC_PMT in variable
67036         declaration.
67037         (__libc_valloc): Likewise.
67038         (__libc_pvalloc): Likewise.
67039         (__libc_calloc): Likewise.
67040         (__posix_memalign): Likewise.
67041
67042         [BZ #14996]
67043         * math/s_casinh.c: Include <float.h>.
67044         (__casinh): Do not do computation with squaring and square root
67045         for large arguments.
67046         * math/s_casinhf.c: Include <float.h>.
67047         (__casinhf): Do not do computation with squaring and square root
67048         for large arguments.
67049         * math/s_casinhl.c: Include <float.h>.
67050         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
67051         (__casinhl): Do not do computation with squaring and square root
67052         for large arguments.
67053         * math/libm-test.inc (casin_test): Add more tests.
67054         (casinh_test): Likewise.
67055         * sysdeps/i386/fpu/libm-test-ulps: Update.
67056         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67057
67058 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
67059
67060         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
67061         (__x86_64_raw_data_cache_size): Likewise.
67062         (__x86_64_data_cache_size_half): Likewise.
67063         (__x86_64_raw_data_cache_size_half): Likewise.
67064         (__x86_64_shared_cache_size): Likewise.
67065         (__x86_64_raw_shared_cache_size): Likewise.
67066         (__x86_64_shared_cache_size_half): Likewise.
67067         (__x86_64_raw_shared_cache_size_half): Likewise.
67068         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
67069         to ...
67070         (__x86_data_cache_size): This.
67071         (__x86_64_raw_data_cache_size): Renamed to ...
67072         (__x86_raw_data_cache_size): This.
67073         (__x86_64_data_cache_size_half): Renamed to ...
67074         (__x86_data_cache_size_half): This.
67075         (__x86_64_raw_data_cache_size_half): Renamed to ...
67076         (__x86_raw_data_cache_size_half): This.
67077         (__x86_64_shared_cache_size): Renamed to ...
67078         (__x86_shared_cache_size): This.
67079         (__x86_64_raw_shared_cache_size): Renamed to ...
67080         (__x86_raw_shared_cache_size): This.
67081         (__x86_64_shared_cache_size_half): Renamed to ...
67082         (__x86_shared_cache_size_half): This.
67083         (__x86_64_raw_shared_cache_size_half): Renamed to ...
67084         (__x86_raw_shared_cache_size_half): This.
67085         * sysdeps/x86_64/memcpy.S: Updated.
67086         * sysdeps/x86_64/memset.S: Likewise.
67087         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
67088         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
67089         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
67090
67091 2013-01-04  David S. Miller  <davem@davemloft.net>
67092
67093         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67094
67095 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
67096
67097         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
67098         1 to avoid redefinition warning.
67099         (__USE_GNU): Don't define.
67100         (init_signaling_nan): Protoize.
67101
67102         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67103
67104 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
67105
67106         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
67107         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
67108         (__cpymn): Likewise.
67109         (norm): Remove commented code.
67110         (denorm): Likewise.
67111         (__mp_dbl): Likewise.
67112         (__inv): Likewise.
67113         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
67114         (__cpymn): Likewise.
67115         (norm): Remove commented code.
67116         (denorm): Likewise.
67117         (__mp_dbl): Likewise.
67118         (__inv): Likewise.
67119
67120         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
67121         mp_no value for 1.0 and 2.0.
67122         (norm): Use RADIXI instead of radixi.d.
67123         (denorm): Likewise.
67124         (__mul): Use 0.0 instead of zero.d.
67125         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
67126         mp_no value for 1.0 and 2.0.
67127         (norm): Use RADIXI instead of radixi.d.
67128         (denorm): Likewise.
67129         (__mul): Use 0.0 instead of zero.d.
67130
67131 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
67132
67133         [BZ #14994]
67134         * math/s_casinh.c (__casinh): Reduce finite argument to first
67135         quadrant then set signs of results at the end.
67136         * math/s_casinhf.c (__casinhf): Likewise.
67137         * math/s_casinhl.c (__casinhl): Likewise.
67138         * math/libm-test.inc (casin_test): Add more tests.
67139         (casinh_test): Likewise.
67140         * sysdeps/i386/fpu/libm-test-ulps: Update.
67141         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67142
67143 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
67144
67145         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
67146
67147         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
67148
67149         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
67150         declarations.
67151         (denorm): Likewise.
67152         (__mp_dbl): Likewise.
67153         (__inv): Likewise.
67154
67155         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
67156         and adjust the header comment.
67157
67158         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
67159         variable name from declaration.
67160
67161 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
67162
67163         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
67164         Initialize COMMON_CPUID_INDEX_7 element.
67165         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
67166         (CPUID_RTM): Likewise.
67167         (HAS_RTM): Likewise.
67168         (COMMON_CPUID_INDEX_7): New enum.
67169
67170 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
67171
67172         [BZ #14981]
67173         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
67174         size is zero, record memory as freed.
67175
67176 2013-01-03  Andreas Jaeger  <aj@suse.de>
67177
67178         * po/ia.po: Add new Interlingua translation.
67179
67180 2012-01-03  Allan McRae  <allan@archlinux.org>
67181
67182         * locale/programs/localedef.c: Fix description of '--posix' flag.
67183
67184 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
67185
67186         * NEWS: Update dates in second copyright notice.
67187         * README: Update copyright dates in example.
67188         * manual/libc.texinfo: Update copyright dates.
67189         * scripts/test-installation.pl: Update copyright date in --version
67190         output.
67191
67192         * hurd/ctty-input.c: Fix copyright notice formatting.
67193         * hurd/ctty-output.c: Likewise.
67194         * hurd/dtable.c: Likewise.
67195         * hurd/hurd-raise.c: Likewise.
67196         * hurd/hurdprio.c: Likewise.
67197         * hurd/msgportdemux.c: Likewise.
67198         * misc/sys/file.h: Likewise.
67199         * misc/sys/ioctl.h: Likewise.
67200         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
67201         * sysdeps/mach/hurd/chdir.c: Likewise.
67202         * sysdeps/mach/hurd/fchdir.c: Likewise.
67203         * sysdeps/mach/hurd/rename.c: Likewise.
67204         * sysdeps/mach/hurd/rmdir.c: Likewise.
67205         * sysdeps/mach/hurd/seekdir.c: Likewise.
67206         * sysdeps/mach/hurd/setsid.c: Likewise.
67207         * sysdeps/posix/wait3.c: Likewise.
67208
67209         * All files with FSF copyright notices: Update copyright dates
67210         using scripts/update-copyrights.
67211         * intl/plural.c: Regenerated.
67212         * locale/programs/charmap-kw.h: Likewise.
67213         * locale/programs/locfile-kw.h: Likewise.
67214
67215 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
67216
67217         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
67218         four values.
67219
67220         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
67221         calculation loop and add branch prediction.
67222
67223         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
67224         check access beyond bounds of m1np.
67225
67226         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
67227         MPTWO.
67228         (__inv): Remove local variable MPTWO to use the global
67229         constant.
67230         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
67231         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
67232         variable MPTWO.
67233         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
67234         MP3HALFS static const.
67235
67236 2013-01-01  David S. Miller  <davem@davemloft.net>
67237
67238         * po/ca.po: Update from translation team.
67239
67240 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
67241
67242         * scripts/update-copyrights: New file.
67243         * Makeconfig: Reformat copyright notice.
67244         * ctype/ctype.h: Likewise.
67245         * debug/swprintf_chk.c: Likewise.
67246         * elf/dl-cache.c: Likewise.
67247         * elf/dl-debug.c: Likewise.
67248         * elf/dl-object.c: Likewise.
67249         * grp/initgroups.c: Likewise.
67250         * hurd/Makefile: Likewise.
67251         * hurd/hurd/signal.h: Likewise.
67252         * hurd/hurdfault.c: Likewise.
67253         * hurd/hurdioctl.c: Likewise.
67254         * hurd/hurdlookup.c: Likewise.
67255         * hurd/intr-msg.c: Likewise.
67256         * iconv/gconv_open.c: Likewise.
67257         * libio/swprintf.c: Likewise.
67258         * locale/lc-ctype.c: Likewise.
67259         * locale/nl_langinfo.c: Likewise.
67260         * mach/Machrules: Likewise.
67261         * mach/Makefile: Likewise.
67262         * malloc/obstack.h: Likewise.
67263         * manual/Makefile: Likewise.
67264         * manual/tsort.awk: Likewise.
67265         * misc/bits/stab.def: Likewise.
67266         * nis/nis_print_group_entry.c: Likewise.
67267         * nis/nis_table.c: Likewise.
67268         * nis/nss_compat/compat-pwd.c: Likewise.
67269         * nis/nss_compat/compat-spwd.c: Likewise.
67270         * po/Makefile: Likewise.
67271         * posix/fnmatch.c: Likewise.
67272         * posix/regex.h: Likewise.
67273         * resolv/Makefile: Likewise.
67274         * resolv/nss_dns/dns-network.c: Likewise.
67275         * resolv/res_hconf.c: Likewise.
67276         * scripts/gen-sorted.awk: Likewise.
67277         * soft-fp/soft-fp.h: Likewise.
67278         * stdio-common/printf.h: Likewise.
67279         * stdlib/monetary.h: Likewise.
67280         * stdlib/random.c: Likewise.
67281         * stdlib/random_r.c: Likewise.
67282         * sysdeps/generic/Makefile: Likewise.
67283         * sysdeps/gnu/Makefile: Likewise.
67284         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67285         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67286         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67287         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67288         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67289         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67290         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67291         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67292         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67293         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67294         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
67295         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
67296         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
67297         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
67298         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
67299         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
67300         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
67301         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67302         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67303         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67304         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67305         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67306         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67307         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
67308         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
67309         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
67310         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
67311         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
67312         * sysdeps/mach/hurd/errnos.awk: Likewise.
67313         * sysdeps/mach/hurd/fork.c: Likewise.
67314         * sysdeps/mach/hurd/getcwd.c: Likewise.
67315         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
67316         * sysdeps/mach/hurd/mmap.c: Likewise.
67317         * sysdeps/mach/hurd/utimes.c: Likewise.
67318         * sysdeps/mach/hurd/xmknod.c: Likewise.
67319         * sysdeps/posix/profil.c: Likewise.
67320         * sysdeps/posix/readdir_r.c: Likewise.
67321         * sysdeps/powerpc/bits/mathdef.h: Likewise.
67322         * sysdeps/powerpc/bits/setjmp.h: Likewise.
67323         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
67324         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
67325         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
67326         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67327         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67328         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
67329         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
67330         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67331         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67332         * sysdeps/pthread/lio_listio.c: Likewise.
67333         * sysdeps/sparc/dl-procinfo.h: Likewise.
67334         * sysdeps/unix/i386/sysdep.S: Likewise.
67335         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
67336         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
67337         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
67338         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
67339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
67340         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
67341         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
67342         * sysdeps/unix/sysv/linux/speed.c: Likewise.
67343         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
67344         * sysdeps/wordsize-32/divdi3.c: Likewise.
67345         * time/sys/time.h: Likewise.
67346         * wcsmbs/Makefile: Likewise.
67347
67348 2013-01-01  David S. Miller  <davem@davemloft.net>
67349
67350         * po/fr.po: Update from translation team.
67351
67352         * catgets/gencat.c: Update copyright year.
67353         * csu/version.c: Likewise.
67354         * debug/catchsegv.sh: Likewise.
67355         * debug/pcprofiledump.c: Likewise.
67356         * debug/xtrace.sh: Likewise.
67357         * elf/ldconfig.c: Likewise.
67358         * elf/ldd.bash.in: Likewise.
67359         * elf/pldd.c: Likewise.
67360         * elf/sotruss.ksh: Likewise.
67361         * elf/sprof.c: Likewise.
67362         * iconv/iconv_prog.c: Likewise.
67363         * iconv/iconvconfig.c: Likewise.
67364         * locale/programs/locale.c: Likewise.
67365         * locale/programs/localedef.c: Likewise.
67366         * login/programs/pt_chown.c: Likewise.
67367         * malloc/memusage.sh: Likewise.
67368         * malloc/memusagestat.c: Likewise.
67369         * malloc/mtrace.pl: Likewise.
67370         * nscd/nscd.c: Likewise.
67371         * nss/getent.c: Likewise.
67372         * nss/makedb.c: Likewise.
67373         * posix/getconf.c: Likewise.
67374
67375 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
67376
67377         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
67378         numbers.
67379
67380 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
67381
67382         * math/bits/mathcalls.h (modf): Use __nonnull.
67383
67384 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
67385
67386         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
67387         (split): Use macro CN instead of the bare value.
67388         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
67389         could be used.
67390         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
67391         instead of the bare value.
67392         (power1): Likewise.
67393
67394 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
67395
67396         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
67397         __ATAN_TWOM.
67398         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
67399
67400         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
67401         their values.
67402         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
67403         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
67404         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
67405         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
67406
67407 2012-12-28  Andreas Jaeger  <aj@suse.de>
67408
67409         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
67410         values are from Linux 3.7.
67411
67412         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
67413         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
67414
67415 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
67416
67417         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
67418         TRUE case.
67419
67420         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
67421         (norm): Likewise.
67422         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
67423         variables with preprocessor constants.
67424         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
67425         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
67426         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
67427
67428 2012-12-27  Bruno Haible  <bruno@clisp.org>
67429
67430         [BZ #14317]
67431         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
67432         only if needed.
67433
67434 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
67435
67436         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
67437         and use variable directly.
67438         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
67439
67440         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
67441         MPONE.
67442         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
67443         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
67444         variable MPONE.
67445         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
67446         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
67447         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
67448         include directive.  Remove local variable MPONE.
67449         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
67450         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
67451         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
67452
67453 2012-12-25  David S. Miller  <davem@davemloft.net>
67454
67455         * version.h (RELEASE): Set to "development".
67456         (VERSION): Set to "2.17.90".
67457         * NEWS: Add 2.18 section.
67458
67459 2012-12-21  David S. Miller  <davem@davemloft.net>
67460
67461         * po/hr.po: Update from translation team.
67462
67463 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67464
67465         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
67466
67467 2012-12-19  Steve Ellcey  <sellcey@mips.com>
67468
67469         * NEWS:  Mention new memcpy for MIPS.
67470
67471 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
67472
67473         * manual/contrib.texi (Contributors): Spelling correction.
67474
67475 2012-12-15  David S. Miller  <davem@davemloft.net>
67476
67477         * po/ru.po: Update from translation team.
67478
67479 2012-12-13  David S. Miller  <davem@davemloft.net>
67480
67481         * NEWS: Mention IFUNC testsuite enhancements.
67482
67483         * po/pl.po: Update from translation team.
67484         * po/bg.po: Likewise.
67485
67486         * manual/contrib.texi (Contributors): Update entries for Hongjiu
67487         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
67488
67489 2012-12-11  David S. Miller  <davem@davemloft.net>
67490
67491         * po/sv.po: Update from translation team.
67492
67493         * po/vi.po: Update from translation team.
67494
67495         * po/cs.po: Update from translation team.
67496
67497         * po/de.po: Update from translation team.
67498         * po/eo.po: Likewise.
67499         * po/nl.po: Likewise.
67500
67501 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
67502
67503         [BZ #14246]
67504         * manual/argp.texi (Argp Helper Functions): Move node to follow
67505         Argp Parsing State.
67506
67507         [BZ #14872]
67508         * manual/conf.texi (Limits on File System Capacity): Mention if
67509         terminating null is included in the max size.
67510
67511 2012-12-10  Andreas Jaeger  <aj@suse.de>
67512
67513         * po/cs.po: Update from translation team.
67514
67515 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
67516
67517         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
67518         void pointer and cast to uintptr_t.
67519         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
67520         path.
67521         * sysdeps/s390/s390-64/memcpy.S: Likewise.
67522         * sysdeps/s390/s390-64/memset.S: Likewise.
67523
67524 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
67525
67526         [BZ #14833]
67527         * menual/message.texi (Message Translation): Fix typos.
67528         (Helper programs for gettext): Likewise.
67529
67530 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
67531
67532         [BZ #14898]
67533         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
67534         Change to -1.
67535
67536 2012-12-07  David S. Miller  <davem@davemloft.net>
67537
67538         * po/libc.pot: Update.
67539
67540 2012-12-07  Richard Henderson  <rth@redhat.com>
67541
67542         [BZ #10114]
67543         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
67544         normal/normal case to before the switch.
67545         (_FP_DIV): Likewise.
67546
67547 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
67548             Mike Frysinger  <vapier@gentoo.org>
67549
67550         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
67551         check for __NR_fadvise64_64.
67552
67553 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
67554
67555         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
67556         0, not just to plain "0" as a statement.
67557         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
67558         with cw.
67559
67560 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
67561
67562         * NEWS: Use sourceware.org in Bugzilla URL.
67563
67564 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
67565
67566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
67567         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
67568
67569         * stdio-common/tst-put-error.c (do_test): Add newline to the
67570         padded test to ensure flush.
67571
67572 2012-12-05  Jeff Law  <law@redhat.com>
67573
67574         * sunrpc/etc.rpc (fedfs_admin): Add entry.
67575
67576 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
67577
67578         * README: Don't refer to ports add-on as distributed separately.
67579         Mention AArch64 in list of systems supported in the ports add-on.
67580
67581         * LICENSES: Add more non-FSF copyright and license notices.
67582
67583         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
67584         ((unused)).
67585
67586         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
67587
67588         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
67589         10000 as width of padded output.
67590
67591 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
67592
67593         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
67594
67595         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
67596         variable LX with __attribute__ ((unused)).
67597         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
67598         Likewise.
67599         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
67600         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
67601         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
67602         with __attribute__ ((unused)).
67603
67604 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
67605
67606         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
67607
67608 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
67609
67610         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
67611         (CFLAGS-nldbl-acos.c): New variable.
67612         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
67613         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
67614         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
67615         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
67616         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
67617         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
67618         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
67619         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
67620         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
67621         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
67622         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
67623         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
67624         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
67625         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
67626         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
67627         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
67628         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
67629         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
67630         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
67631         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
67632         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
67633         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
67634         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
67635         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
67636         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
67637         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
67638         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
67639         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
67640         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
67641         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
67642         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
67643         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
67644         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
67645         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
67646         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
67647         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
67648         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
67649         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
67650         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
67651         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
67652         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
67653         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
67654         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
67655         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
67656         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
67657         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
67658         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
67659         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
67660         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
67661         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
67662         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
67663         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
67664         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
67665         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
67666         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
67667         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
67668         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
67669         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
67670         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
67671         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
67672         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
67673         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
67674         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
67675         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
67676         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
67677         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
67678         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
67679         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
67680         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
67681         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
67682         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
67683         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
67684         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
67685         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
67686         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
67687         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
67688         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
67689         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
67690         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
67691         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
67692         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
67693         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
67694         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
67695         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
67696         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
67697         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
67698         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
67699         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
67700         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
67701         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
67702         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
67703         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
67704         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
67705         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
67706         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
67707         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
67708         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
67709
67710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
67711         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
67712
67713         [BZ #14914]
67714         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
67715         whole low double instead of just low 47 bits when splitting values
67716         into two parts.
67717
67718 2012-12-03  Allan McRae  <allan@archlinux.org>
67719
67720         * manual/stdio.texi (Predefined Printf Handlers): Remove
67721         @hsep and @vsep usage.
67722
67723 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
67724
67725         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
67726         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
67727
67728 2012-12-03  Jeff Law  <law@redhat.com>
67729
67730         * time/sys/time.h (settimeofday): Do not mark TV argument
67731         as __nonnull.
67732
67733 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
67734
67735         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
67736         when currently writing and seek to current position when not.
67737         * libio/Makefile (tests): Remove bug-fclose1.
67738         * libio/bug-fclose1.c: Delete.
67739
67740 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
67741
67742         * manual/arith.texi (feenableexcept): Fix typo.
67743         (fedisableexcept): Likewise.
67744
67745 2012-11-30  Roland McGrath  <roland@hack.frob.com>
67746
67747         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
67748         second, differently-typed declaration, rather than a cast.
67749
67750 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
67751
67752         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
67753         * include/rpc/svc.h: ... here.
67754
67755 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
67756
67757         [BZ #13013]
67758         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
67759         depending n and resplen2 to catch cases where answer
67760         equals answerp2.
67761
67762 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
67763
67764         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
67765         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
67766
67767 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
67768
67769         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
67770
67771 2012-11-29  Roland McGrath  <roland@hack.frob.com>
67772
67773         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
67774
67775 2012-11-28  Jeff Law  <law@redhat.com>
67776
67777         [BZ #13761]
67778         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
67779         dataset_temporary.  Track alloca usage into alloca_used.
67780         If dataset is large allocate and release it via malloc/free.
67781
67782 2012-06-04  Florian Weimer  <fweimer@redhat.com>
67783
67784         [BZ #14197]
67785         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
67786
67787 2012-11-28  David S. Miller  <davem@davemloft.net>
67788
67789         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67790
67791 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
67792
67793         [BZ #14803]
67794         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
67795         of pi/2 rounded to nearest to 64 bits.
67796         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
67797         nearest to 64 bits.
67798         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
67799         bits.
67800
67801 2012-11-28  Jeff Law <law@redhat.com>
67802             Martin Osvald <mosvald@redhat.com>
67803
67804         [BZ #14889]
67805         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
67806         * sunrpc/svc.c: Include time.h.
67807         (__svc_accept_failed): New function.
67808         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
67809         any reason other than EINTR, call __svc_accept_failed.
67810         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
67811         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
67812
67813 2012-11-28  Andreas Schwab  <schwab@suse.de>
67814
67815         * scripts/abilist.awk: Also handle indirect functions in .opd
67816         section.
67817
67818 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
67819
67820         [BZ #13881]
67821         * sysdeps/x86/fpu/powl_helper.c: New file.
67822         * sysdeps/x86/fpu/Makefile: Likewise.
67823         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
67824         (p3): New object.
67825         (__ieee754_powl): Use __powl_helper for finite arguments except
67826         integer exponents below 8.
67827         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
67828         (p3): New object.
67829         (__ieee754_powl): Use __powl_helper for finite arguments except
67830         integer exponents below 8.
67831         * math/libm-test.inc (pow_test): Add more tests and enable some
67832         previously disabled tests.
67833         * sysdeps/i386/fpu/libm-test-ulps: Update.
67834         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67835
67836 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
67837             Carlos O'Donell  <carlos_odonell@mentor.com>
67838
67839         * nss/makedb.c (is_prime): Assert that input is odd and greater
67840         than 4.  Note that fact in a comment too.
67841         (next_prime): Add 4 to input.
67842
67843 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
67844
67845         [BZ #11741]
67846         * libio/Makefile (tests): Add test case tst-fwrite-error.
67847         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
67848         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
67849         * libio/tst-fwrite-error.c: New test case.
67850
67851 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
67852
67853         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
67854         before casting to void *.
67855         * include/libc-internal.h (__pointer_type): New macro.
67856         (__integer_if_pointer_type_sub): Likewise.
67857         (__integer_if_pointer_type): Likewise.
67858         (cast_to_integer): Likewise.
67859         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
67860         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
67861         before casting to atomic64_t.
67862         (atomic_exchange_acq): Likewise.
67863         (__arch_exchange_and_add_body): Likewise.
67864         (__arch_add_body): Likewise.
67865         (atomic_add_negative): Likewise.
67866         (atomic_add_zero): Likewise.
67867
67868 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
67869
67870         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
67871         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
67872         (add_fdes): Likewise.
67873         (linear_search_fdes): Likewise.
67874         (binary_search_unencoded_fdes): Likewise.
67875
67876 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
67877
67878         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
67879
67880 2012-11-24  Adam Conrad  <adconrad@0c3.net>
67881
67882         * configure.in: Autodetect C++ header directories.
67883         * configure: Regenerated.
67884
67885 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
67886
67887         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
67888
67889 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
67890
67891         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67892
67893 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
67894
67895         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
67896         LDBL_MANT_DIG == 106]: Disable some tests.
67897         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
67898         Likewise.
67899         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
67900         Likewise.
67901
67902         [BZ #14871]
67903         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
67904         input for small inputs.  Return +/- pi/2 for large inputs.
67905         * math/libm-test.inc (atan_test): Add more tests.
67906
67907         * sysdeps/generic/unwind-dw2-fde-glibc.c
67908         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
67909         __attribute__ ((unused)).
67910
67911         [BZ #14645]
67912         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
67913         x * y if x and y are nonzero and z is zero.
67914
67915         [BZ #14811]
67916         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
67917         nonzero exponents with absolute value below 0x1p-117 to +/-
67918         0x1p-117.
67919
67920         [BZ #14869]
67921         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
67922         up arguments below 2**-450, not just those below 2**-500.
67923         * math/libm-test.inc (hypot_test): Add another test.
67924
67925         [BZ #14868]
67926         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
67927         Return a+b for ratio over 2**120, not 2**60.
67928         * math/libm-test.inc (hypot_test): Add another test.
67929
67930         * math/libm-test.inc (clog_test): Use
67931         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
67932         (clog10_test): Likewise.
67933
67934         [BZ #6778]
67935         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
67936
67937 2012-11-22  Andreas Schwab  <schwab@suse.de>
67938
67939         * sysdeps/i386/fpu/libm-test-ulps: Update.
67940
67941 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
67942
67943         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
67944         printf output with newline.
67945
67946 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
67947
67948         [BZ #14865]
67949         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
67950         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
67951         -z nodlopen, -z initfirst and -z execstack support.
67952         * configure: Regenerated.
67953
67954         * elf/elf.h (DF_1_NODIRECT): New macro.
67955         (DF_1_IGNMULDEF): Likewise.
67956         (DF_1_NOKSYMS): Likewise.
67957         (DF_1_NOHDR): Likewise.
67958         (DF_1_EDITED): Likewise.
67959         (DF_1_NORELOC): Likewise.
67960         (DF_1_SYMINTPOSE): Likewise.
67961         (DF_1_GLOBAUDIT): Likewise.
67962         (DF_1_SINGLETON): Likewise.
67963         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
67964         DT_1_SUPPORTED_MASK bits.
67965         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
67966
67967 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
67968
67969         * sysdeps/unix/make-syscalls.sh: Document prefixes.
67970
67971 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
67972
67973         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
67974         macro.
67975
67976         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
67977         (sendmmsg): Move declarations...
67978         * socket/sys/socket.h: ... here.
67979         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
67980         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
67981         include it from...
67982         * socket/recvmmsg.c: ... this new file.
67983         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
67984         (sendmmsg): Rename to __sendmmsg, create weak alias and make
67985         definition of __sendmmsg hidden.
67986         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
67987         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
67988         Move ENOSYS stub into and include it from...
67989         * socket/sendmmsg.c: ... this new file.
67990         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
67991         (sysdep_routines): Move recvmmsg and sendmmsg...
67992         * socket/Makefile (routines): ... here.
67993         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
67994         (GLIBC_PRIVATE): Add __sendmmsg.
67995         * include/sys/socket.h (__sendmmsg): Add declarations.
67996         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
67997         sendmmsg.
67998
67999 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
68000
68001         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
68002         variable I1 with __attribute__ ((unused)).
68003         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68004
68005 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
68006
68007         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
68008         DUMMY variables with __attribute__ ((unused)).
68009
68010         * bits/byteswap.h: Include <bits/types.h>.
68011         (__bswap_64): Use __uint64_t instead of unsigned long long int.
68012
68013 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
68014
68015         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
68016         string_t.  Do not manually set errno.
68017         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
68018         length with __strnlen.  Make sure to both set errno and return it on
68019         failure.
68020
68021 2012-11-19  David S. Miller  <davem@davemloft.net>
68022
68023         With help from Joseph Myers.
68024         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
68025         very large arguments properly.
68026         * math/libm-test.inc (atan_test): New tests.
68027         (atan2_test): New tests.
68028         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68029         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
68030
68031 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
68032
68033         [BZ #14856]
68034         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
68035         Define to 3.
68036
68037         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
68038         [POSIX] (EADDRNOTAVAIL): Likewise.
68039         [POSIX] (EAFNOSUPPORT): Likewise.
68040         [POSIX] (EALREADY): Likewise.
68041         [POSIX] (ECONNABORTED): Likewise.
68042         [POSIX] (ECONNREFUSED): Likewise.
68043         [POSIX] (ECONNRESET): Likewise.
68044         [POSIX] (EDESTADDRREQ): Likewise.
68045         [POSIX] (EDQUOT): Likewise.
68046         [POSIX] (EHOSTUNREACH): Likewise.
68047         [POSIX] (EIDRM): Likewise.
68048         [POSIX] (EISCONN): Likewise.
68049         [POSIX] (ELOOP): Likewise.
68050         [POSIX] (EMULTIHOP): Likewise.
68051         [POSIX] (ENETDOWN): Likewise.
68052         [POSIX] (ENETUNREACH): Likewise.
68053         [POSIX] (ENOBUFS): Likewise.
68054         [POSIX] (ENODATA): Likewise.
68055         [POSIX] (ENOLINK): Likewise.
68056         [POSIX] (ENOMSG): Likewise.
68057         [POSIX] (ENOPROTOOPT): Likewise.
68058         [POSIX] (ENOSR): Likewise.
68059         [POSIX] (ENOSTR): Likewise.
68060         [POSIX] (ENOTCONN): Likewise.
68061         [POSIX] (ENOTSOCK): Likewise.
68062         [POSIX] (EOPNOTSUPP): Likewise.
68063         [POSIX] (EOVERFLOW): Likewise.
68064         [POSIX] (EPROTO): Likewise.
68065         [POSIX] (EPROTONOSUPPORT): Likewise.
68066         [POSIX] (EPROTOTYPE): Likewise.
68067         [POSIX] (ESTALE): Likewise.
68068         [POSIX] (ETIME): Likewise.
68069         [POSIX] (ETXTBSY): Likewise.
68070         [POSIX] (EWOULDBLOCK): Likewise.
68071         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
68072         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
68073         [POSIX] (SEEK_CUR): Likewise.
68074         [POSIX] (SEEK_END): Likewise.
68075         [POSIX || UNIX98] (mode_t): Do not require.
68076         [POSIX] (off_t): Likewise.
68077         [POSIX] (pid_t): Likewise.
68078         [POSIX] (sys/stat.h): Do not allow header.
68079         [POSIX] (unistd.h): Likewise.
68080         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
68081         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
68082         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
68083         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
68084         require.
68085         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
68086         sigevent): Specify elements.
68087         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
68088         entry.
68089         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
68090         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
68091
68092         * conform/data/cpio.h-data [POSIX]: Disable whole file.
68093         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
68094         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
68095         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
68096         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
68097         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
68098         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
68099         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
68100         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
68101         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
68102         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
68103         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
68104         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
68105         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
68106         Likewise.
68107         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
68108         Likewise.
68109         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
68110         Likewise.
68111         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
68112         Likewise.
68113         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
68114         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
68115         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
68116         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
68117         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
68118         Specify lower bound on value.
68119         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
68120         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
68121         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
68122         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
68123         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
68124         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
68125         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
68126         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
68127         value.
68128         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
68129         as optional.
68130         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
68131         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
68132         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
68133         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
68134         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
68135         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
68136         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
68137         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
68138         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
68139         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
68140         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
68141         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
68142         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
68143         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
68144         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
68145         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
68146         entry.
68147         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
68148         optional.
68149         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
68150         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
68151         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
68152         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
68153         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
68154         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
68155         Likewise.
68156         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
68157         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
68158         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
68159         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
68160         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
68161         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
68162         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
68163         as optional.
68164         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
68165         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
68166         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
68167         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
68168         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
68169         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
68170         specify as optional.
68171         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
68172         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
68173         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
68174         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
68175         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
68176         [XPG3] (NL_LANGMAX): Likewise.
68177         [POSIX || XPG3] (NL_MSGMAX): Likewise.
68178         [POSIX || XPG3] (NL_NMAX): Likewise.
68179         [POSIX || XPG3] (NL_SETMAX): Likewise.
68180         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
68181         [XPG3] (NZERO): Likewise.
68182         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
68183         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
68184         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
68185         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
68186         (REG_ERANGE): Expect.
68187         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
68188         optional-constant.
68189         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
68190         Use (void) in prototype.
68191         [POSIX] (*_t): Allow.
68192         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
68193         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
68194         (WRDE_BADVAL): Expect.
68195
68196         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
68197         expect.
68198         [XPG3 || XPG4] (O_RSYNC): Likewise.
68199         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
68200         Likewise.
68201         [XPG3 || XPG4] (pthread_sigmask): Likewise.
68202         [XPG3 || XPG4] (sigqueue): Likewise.
68203         [XPG3 || XPG4] (sigtimedwait): Likewise.
68204         [XPG3 || XPG4] (sigwaitinfo): Likewise.
68205         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
68206         [XPG3 || XPG4] (vsnprintf): Likewise.
68207         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
68208         Likewise.
68209         [XPG3 || XPG4] (blksize_t): Likewise.
68210         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
68211         Likewise.
68212         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
68213         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
68214         [XPG3 || XPG4] (struct itimerspec): Likewise.
68215         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
68216         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
68217         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
68218         [XPG3 || XPG4] (clockid_t): Likewise.
68219         [XPG3 || XPG4] (timer_t): Likewise.
68220         [XPG3 || XPG4] (clock_getres): Likewise.
68221         [XPG3 || XPG4] (clock_gettime): Likewise.
68222         [XPG3 || XPG4] (clock_settime): Likewise.
68223         [XPG3 || XPG4] (nanosleep): Likewise.
68224         [XPG3 || XPG4] (timer_create): Likewise.
68225         [XPG3 || XPG4] (timer_delete): Likewise.
68226         [XPG3 || XPG4] (timer_gettime): Likewise.
68227         [XPG3 || XPG4] (timer_getoverrun): Likewise.
68228         [XPG3 || XPG4] (timer_settime): Likewise.
68229         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
68230         [XPG3 || XPG4] (getlogin_r): Likewise.
68231         [XPG3 || XPG4] (pread): Likewise.
68232         [XPG3 || XPG4] (pthread_atfork): Likewise.
68233         [XPG3 || XPG4] (pwrite): Likewise.
68234
68235         [BZ #14835]
68236         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
68237         <bits/siginfo.h>.
68238
68239 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
68240
68241         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
68242         finalizing MALLSTREAM.
68243
68244         * sysdeps/mach/hurd/syncfs.c: New file.
68245
68246 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
68247
68248         [BZ #14719]
68249         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
68250         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
68251         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
68252         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
68253         (_nss_dns_gethostbyname4_r): Likewise.
68254         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
68255         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
68256
68257 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
68258
68259         [BZ #13763]
68260         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
68261
68262 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
68263
68264         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
68265         * elf/cache.c (print_entry): Print ",AArch64" for
68266         FLAG_AARCH64_LIB64
68267
68268         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
68269         * elf/cache.c (print_entry): Print ",hard-float" for
68270         FLAG_ARM_LIBHF.
68271
68272 2012-11-18  David S. Miller  <davem@davemloft.net>
68273
68274         With help from Joseph Myers.
68275         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
68276         cutoff to 2**-13.
68277         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
68278         cutoff to 2**-25.
68279         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
68280         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
68281         small.
68282         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
68283         * math/libm-test.inc (y0_test): New tests.
68284         (y1_test): New tests.
68285         * sysdeps/i386/fpu/libm-test-ulps: Update.
68286         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
68287         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68288
68289 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
68290
68291         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
68292         64-bit targets.
68293         * configure: Regenerated.
68294
68295 2012-11-17  David S. Miller  <davem@davemloft.net>
68296
68297         [BZ #14811]
68298         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
68299         nonzero exponents with absolute value below 0x1p-128 to +/-
68300         0x1p-128.
68301
68302 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
68303
68304         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
68305
68306         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
68307
68308         * posix/getconf-speclist.c: New file.
68309         * posix/posix-envs.def: Likewise.
68310         * posix/confstr.c (START_ENV_GROUP): New macro.
68311         (END_ENV_GROUP): Likewise.
68312         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
68313         (KNOWN_PRESENT_ENV_STRING): Likewise.
68314         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
68315         (UNKNOWN_ENVIRONMENT): Likewise.
68316         (confstr): Include posix-envs.def instead of handling
68317         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
68318         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
68319         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
68320         (END_ENV_GROUP): Likewise.
68321         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
68322         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
68323         (UNKNOWN_ENVIRONMENT): Likewise.
68324         (__sysconf): Include posix-envs.def instead of handling associated
68325         cases directly here.
68326         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
68327         preprocessing getconf-speclist.c rather than running getconf or
68328         generating empty file.
68329
68330 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
68331
68332         * scripts/check-local-headers.sh: Ignore 'mach' headers.
68333
68334 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
68335
68336         [BZ #14672]
68337         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
68338
68339 2012-11-16  David S. Miller  <davem@davemloft.net>
68340
68341         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
68342         smaller than LDBL_EPSILON/2.0L, just return xm1.
68343
68344 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
68345
68346         * elf/tst-array1.c (init): Set constructor priority to 1000.
68347         (fini): Set destructor priority to 1000.
68348         * elf/tst-array2dep.c: Likewise.
68349
68350 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
68351
68352         [BZ #11741]
68353         * libio/fileops.c (_IO_new_file_write): Correctly return error.
68354         (_IO_new_file_xsputn): Also return EOF if none of the input
68355         data was written when overflow failed.
68356         * libio/iopadn.c (_IO_padn): Likewise.
68357         * libio/iowpadn.c (_IO_wpadn): Likewise.
68358         * stdio-common/tst-put-error.c: Add copyright notice.
68359         (do_test): Add case for printing padded string.
68360         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
68361         _IO_padn returned error.
68362         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
68363         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
68364         return EOF.
68365
68366 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
68367
68368         * libio/libioP.h: Add comment note that the references to C++
68369         bits are now obsolete.
68370
68371 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68372
68373         * math/libm-test.inc (check_complex): Use asprintf.
68374
68375 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
68376
68377         * debug/pcprofiledump.c (print_version): Update copyright year.
68378         * malloc/memusagestat.c (print_version): Likewise.
68379
68380 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
68381
68382         [BZ #14831]
68383         * elf/Makefile (tests): Add tst-audit8.
68384         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
68385         ($(objpfx)tst-audit8.out): New target.
68386         (tst-audit8-ENV): New variable.
68387         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
68388         audit if l_reloc_result is NULL.
68389         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
68390         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
68391         * elf/tst-audit8.c: New file.
68392
68393 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68394
68395         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
68396         * misc/Makefile (CFLAGS-select.c): Define.
68397         * posix/Makefile (CFLAGS-pause.c): Define.
68398
68399 2012-11-13  David S. Miller  <davem@davemloft.net>
68400
68401         * crypt/Makefile: Move test targets after toplevel Rules
68402         inclusion.  Grab any necessary sysdep routines when linking.
68403         * crypt/md5.c (md5_process_block): Remove define, we will always
68404         name it __md5_process_block.
68405         (md5_finish_ctx): Update md5_process_block call.
68406         (md5_stream): Likewise.
68407         (md5_process_bytes): Likewise.
68408         (md5_process_block): Rename to __md5_process_block and move to ...
68409         * crypt/md5-block.c: ... here.
68410         * crypt/sha256.c (sha256_process_block): Move to ...
68411         * crypt/sha256-block.c: ... here.
68412         * crypt/sha512.c (sha512_process_block): Move to ...
68413         * crypt/sha512-block.c: ... here.
68414         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
68415         path.
68416         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
68417         * sysdeps/sparc/sparc64/multiarch/Makefile
68418         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
68419         crypt subdir.
68420         (localedef-aux): Add md5 crypto assembler when in locale subdir.
68421         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
68422         multiarch changes.
68423         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
68424         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
68425         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
68426         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
68427         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
68428         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
68429         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
68430         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
68431         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
68432         file.
68433         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
68434         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
68435         file.
68436         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
68437
68438 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
68439
68440         * timezone/tzselect.ksh: Update from tzcode git revision
68441         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
68442         * timezone/zdump.c: Likewise.
68443         * timezone/zic.c: Likewise.
68444         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
68445         in TZVERSION setting, not $(PKGVERSION).
68446         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
68447         REPORT_BUGS_TO settings.
68448
68449         [BZ #14838]
68450         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
68451         macro.
68452
68453 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68454
68455         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
68456         detection to immediately after _FP_ROUND().
68457         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
68458         bits are 0.
68459
68460 2012-11-11  David S. Miller  <davem@davemloft.net>
68461
68462         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
68463         inttypes.h
68464         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
68465         __close rather than their public counterparts.
68466
68467 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
68468
68469         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
68470         file.
68471         [UNIX98] (sem_timedwait): Do not expect.
68472         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
68473         [XPG4 || UNIX98] (sockatmark): Do not expect.
68474         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
68475         (clock_getcpuclockid): Do not expect.
68476         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
68477         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
68478         Do not expect.
68479         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
68480         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
68481         [UNIX98] (vwscanf): Likewise.
68482         [UNIX98] (vswscanf): Likewise.
68483
68484 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
68485
68486         * timezone/version.h: Remove file.
68487         * timezone/README: Do not refer to version.h.
68488         * timezone/Makefile ($(objpfx)zic.o): New dependency on
68489         $(objpfx)version.h.
68490         ($(objpfx)zdump.o): Likewise.
68491         ($(objpfx)version.h): New target.
68492
68493         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
68494         2012i.
68495         * timezone/README: Don't mention modification to tzselect.ksh.
68496         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
68497         work on unmodified tzselect.ksh.  Substitute version numbers in
68498         tzselect.ksh.
68499
68500         * Makefile (format-me): Remove.
68501         (INSTALL): Adjust indentation.  Use commands directly instead of
68502         using $(format-me).
68503
68504         * aclocal.m4 (ACX_PKGVERSION): New macro.
68505         (ACX_BUGURL): Likewise.
68506         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
68507         (PKGVERSION): New AC_DEFINE_UNQUOTED.
68508         (REPORT_BUGS_TO): Likewise.
68509         * configure: Regenerated.
68510         * config.h.in (PKGVERSION): New macro.
68511         (REPORT_BUGS_TO): Likewise.
68512         * config.make.in (PKGVERSION): New variable.
68513         (PKGVERSION_TEXI): Likewise.
68514         (REPORT_BUGS_TO): Likewise.
68515         (REPORT_BUGS_TEXI): Likewise.
68516         * Makefile (format-me): Use -I$(common-objpfx)manual.
68517         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
68518         ($(common-objpfx)manual/%): New target.
68519         (manual/%): Remove target.
68520         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
68521         (print_version): Use PKGVERSION.
68522         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
68523         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
68524         and REPORT_BUGS_TO.
68525         ($(objpfx)xtrace): Likewise.
68526         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
68527         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
68528         (print_version): Use PKGVERSION.
68529         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
68530         (do_version): Use PKGVERSION.
68531         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
68532         REPORT_BUGS_TO.
68533         (common-ldd-rewrite): Likewise.
68534         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
68535         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
68536         (print_version): Use PKGVERSION.
68537         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
68538         * elf/pldd.c (argp_program_bug_address): Remove variable.
68539         (more_help): New function.
68540         (argp): Use more_help.
68541         (print_version): Use PKGVERSION.
68542         * elf/sln.c (main): Use PKGVERSION.
68543         (usage): Use REPORT_BUGS_TO.
68544         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
68545         (top level): Use PKGVERSION.
68546         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
68547         (print_version): Use PKGVERSION.
68548         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
68549         (print_version): Use PKGVERSION.
68550         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
68551         (print_version): Use PKGVERSION.
68552         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
68553         (print_version): Use PKGVERSION.
68554         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
68555         (print_version): Use PKGVERSION.
68556         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
68557         (print_version): Use PKGVERSION.
68558         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
68559         and BUGURL.
68560         ($(objpfx)memusage): Likewise.
68561         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
68562         (do_version): Use PKGVERSION.
68563         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
68564         (print_version): Use PKGVERSION.
68565         * malloc/mtrace.pl ($PACKAGE): Remove variable.
68566         ($PKGVERSION): New variable.
68567         ($REPORT_BUGS_TO): Likewise.
68568         (usage): Use $REPORT_BUGS_TO.
68569         (top level): Use $PKGVERSION.
68570         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
68571         ($(objpfx)pkgvers.texi): New rule.
68572         ($(objpfx)stamp-pkgvers): Likewise.
68573         * manual/install.texi: Include pkgvers.texi.
68574         (--with-pkgversion): Document new configure option.
68575         (--with-bugurl): Likewise.
68576         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
68577         than necessarily for this particular distribution.  Use
68578         REPORT_BUGS_TO for where to report bugs.
68579         * INSTALL: Regenerated.
68580         * manual/libc.texinfo: Include pkgvers.texi.
68581         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
68582         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
68583         (print_version): Use PKGVERSION.
68584         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
68585         (print_version): Use PKGVERSION.
68586         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
68587         (print_version): Use PKGVERSION.
68588         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
68589         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
68590         macro.
68591         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
68592         (print_version): Use PKGVERSION.
68593         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
68594         (print_version): Use PKGVERSION.
68595         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
68596         and PKGVERSION.
68597
68598         * timezone/checktab.awk: Update from tzcode 2012i.
68599         * timezone/ialloc.c: Likewise.
68600         * timezone/private.h: Likewise.
68601         * timezone/scheck.c: Likewise.
68602         * timezone/tzfile.h: Likewise.
68603         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
68604         (TZVERSION): Hardcode tzcode version number.
68605         * timezone/zdump.c: Update from tzcode 2012i.
68606         * timezone/zic.c: Likewise.
68607         * timezone/version.h: New file.
68608         * timezone/README: Describe version.h.  Update upstream location.
68609
68610         [BZ #14824]
68611         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
68612         (mktemp): Enable declaration.
68613         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
68614         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
68615         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
68616         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
68617         Likewise.
68618         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
68619         Likewise.
68620         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
68621         Likewise.
68622         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
68623         Likewise.
68624         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
68625         Likewise.
68626         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
68627         Likewise.
68628
68629         [BZ #14821]
68630         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
68631         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
68632         for copies of such integer values.
68633         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
68634         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
68635
68636 2012-11-09  Andreas Jaeger  <aj@suse.de>
68637
68638         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
68639         definitions and declarations that are provided by
68640         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
68641
68642 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
68643
68644         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
68645         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
68646         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
68647         definition.
68648
68649 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68650
68651         * elf/elf.h: Update comment before AArch64 relocations.
68652
68653 2012-11-07  David S. Miller  <davem@davemloft.net>
68654
68655         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
68656         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
68657         (__start_context): Declare.
68658         (__makecontext_ret): Delete.
68659         (__makecontext): Hook up __start_context instead of
68660         __makecontext_ret.
68661         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
68662         (sysdep_routines): Add __start_context when in stdlib.
68663
68664 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
68665
68666         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
68667         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
68668         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
68669         hardcoded "nm".
68670         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
68671         (READELF): New variable.  Use it instead of hardcoded "readelf".
68672
68673 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
68674
68675         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
68676         * sysdeps/x86/Makefile: Here.
68677         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
68678         * sysdeps/x86/tst-xmmymm.sh: This.
68679
68680 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
68681
68682         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
68683         expectations.
68684         [UNIX98] (pthread_barrier_t): Do not expect.
68685         [UNIX98] (pthread_barrierattr_t): Likewise.
68686         [UNIX98] (pthread_spinlock_t): Likewise.
68687         [UNIX98] (pthread_barrier_destroy): Likewise.
68688         [UNIX98] (pthread_barrier_init): Likewise.
68689         [UNIX98] (pthread_barrier_wait): Likewise.
68690         [UNIX98] (pthread_barrierattr_destroy): Likewise.
68691         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
68692         [UNIX98] (pthread_barrierattr_init): Likewise.
68693         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
68694         [UNIX98] (pthread_getcpuclockid): Likewise.
68695         [UNIX98] (pthread_mutex_timedlock): Likewise.
68696         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
68697         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
68698         [UNIX98] (pthread_sigmask): Likewise.
68699         [UNIX98] (pthread_spin_destroy): Likewise.
68700         [UNIX98] (pthread_spin_init): Likewise.
68701         [UNIX98] (pthread_spin_lock): Likewise.
68702         [UNIX98] (pthread_spin_trylock): Likewise.
68703         [UNIX98] (pthread_spin_unlock): Likewise.
68704         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
68705         Do not expect.
68706         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
68707         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
68708         [XPG3 || XPG4] (pthread_cond_t): Likewise.
68709         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
68710         [XPG3 || XPG4] (pthread_key_t): Likewise.
68711         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
68712         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
68713         [XPG3 || XPG4] (pthread_once_t): Likewise.
68714         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
68715         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
68716         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
68717         [XPG3 || XPG4] (pthread_t): Likewise.
68718
68719         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
68720         not expect.
68721         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
68722
68723         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
68724         Change function return type to int.
68725
68726         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
68727         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
68728         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
68729         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
68730         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
68731         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
68732         [!POSIX] (posix_madvise): Likewise.
68733         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
68734         && !UNIX98].
68735         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
68736         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
68737         (mode_t): Likewise.
68738         (posix_mem_offset): Likewise.
68739         (posix_typed_mem_get_info): Likewise.
68740         (posix_typed_mem_open): Likewise.
68741
68742         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
68743         Change condition to [XOPEN2K8].
68744
68745         * conform/conformtest.pl: Preprocess allow-header data with -x c
68746         instead of from stdin.
68747         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
68748         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
68749         [C99-based standards] (cerfc): Likewise.
68750         [C99-based standards] (cexp2): Likewise.
68751         [C99-based standards] (cexpm1): Likewise.
68752         [C99-based standards] (clog10): Likewise.
68753         [C99-based standards] (clog1p): Likewise.
68754         [C99-based standards] (clog2): Likewise.
68755         [C99-based standards] (clgamma): Likewise.
68756         [C99-based standards] (ctgamma): Likewise.
68757         [C99-based standards] (cerff): Likewise.
68758         [C99-based standards] (cerfcf): Likewise.
68759         [C99-based standards] (cexp2f): Likewise.
68760         [C99-based standards] (cexpm1f): Likewise.
68761         [C99-based standards] (clog10f): Likewise.
68762         [C99-based standards] (clog1pf): Likewise.
68763         [C99-based standards] (clog2f): Likewise.
68764         [C99-based standards] (clgammaf): Likewise.
68765         [C99-based standards] (ctgammaf): Likewise.
68766         [C99-based standards] (cerfl): Likewise.
68767         [C99-based standards] (cerfcl): Likewise.
68768         [C99-based standards] (cexp2l): Likewise.
68769         [C99-based standards] (cexpm1l): Likewise.
68770         [C99-based standards] (clog10l): Likewise.
68771         [C99-based standards] (clog1pl): Likewise.
68772         [C99-based standards] (clog2l): Likewise.
68773         [C99-based standards] (clgammal): Likewise.
68774         [C99-based standards] (ctgammal): Likewise.
68775         * conform/data/inttypes.h-data [C99-based standards]: Include
68776         stdint.h-data.  Remove all expectations for stdint.h contents.
68777         [C99-based standards] (PRI*): Do not allow.
68778         [C99-based standards] (SCN*): Likewise.
68779         [C99-based standards] (*_t): Likewise.
68780         [C99-based-standards] (PRId8): Expect macro.
68781         [C99-based-standards] (PRIi8): Likewise.
68782         [C99-based-standards] (PRIo8): Likewise.
68783         [C99-based-standards] (PRIu8): Likewise.
68784         [C99-based-standards] (PRIx8): Likewise.
68785         [C99-based-standards] (PRIX8): Likewise.
68786         [C99-based-standards] (SCNd8): Likewise.
68787         [C99-based-standards] (SCNi8): Likewise.
68788         [C99-based-standards] (SCNo8): Likewise.
68789         [C99-based-standards] (SCNu8): Likewise.
68790         [C99-based-standards] (SCNx8): Likewise.
68791         [C99-based-standards] (PRIdLEAST8): Likewise.
68792         [C99-based-standards] (PRIiLEAST8): Likewise.
68793         [C99-based-standards] (PRIoLEAST8): Likewise.
68794         [C99-based-standards] (PRIuLEAST8): Likewise.
68795         [C99-based-standards] (PRIxLEAST8): Likewise.
68796         [C99-based-standards] (PRIXLEAST8): Likewise.
68797         [C99-based-standards] (SCNdLEAST8): Likewise.
68798         [C99-based-standards] (SCNiLEAST8): Likewise.
68799         [C99-based-standards] (SCNoLEAST8): Likewise.
68800         [C99-based-standards] (SCNuLEAST8): Likewise.
68801         [C99-based-standards] (SCNxLEAST8): Likewise.
68802         [C99-based-standards] (PRIdFAST8): Likewise.
68803         [C99-based-standards] (PRIiFAST8): Likewise.
68804         [C99-based-standards] (PRIoFAST8): Likewise.
68805         [C99-based-standards] (PRIuFAST8): Likewise.
68806         [C99-based-standards] (PRIxFAST8): Likewise.
68807         [C99-based-standards] (PRIXFAST8): Likewise.
68808         [C99-based-standards] (SCNdFAST8): Likewise.
68809         [C99-based-standards] (SCNiFAST8): Likewise.
68810         [C99-based-standards] (SCNoFAST8): Likewise.
68811         [C99-based-standards] (SCNuFAST8): Likewise.
68812         [C99-based-standards] (SCNxFAST8): Likewise.
68813         [C99-based-standards] (PRId16): Likewise.
68814         [C99-based-standards] (PRIi16): Likewise.
68815         [C99-based-standards] (PRIo16): Likewise.
68816         [C99-based-standards] (PRIu16): Likewise.
68817         [C99-based-standards] (PRIx16): Likewise.
68818         [C99-based-standards] (PRIX16): Likewise.
68819         [C99-based-standards] (SCNd16): Likewise.
68820         [C99-based-standards] (SCNi16): Likewise.
68821         [C99-based-standards] (SCNo16): Likewise.
68822         [C99-based-standards] (SCNu16): Likewise.
68823         [C99-based-standards] (SCNx16): Likewise.
68824         [C99-based-standards] (PRIdLEAST16): Likewise.
68825         [C99-based-standards] (PRIiLEAST16): Likewise.
68826         [C99-based-standards] (PRIoLEAST16): Likewise.
68827         [C99-based-standards] (PRIuLEAST16): Likewise.
68828         [C99-based-standards] (PRIxLEAST16): Likewise.
68829         [C99-based-standards] (PRIXLEAST16): Likewise.
68830         [C99-based-standards] (SCNdLEAST16): Likewise.
68831         [C99-based-standards] (SCNiLEAST16): Likewise.
68832         [C99-based-standards] (SCNoLEAST16): Likewise.
68833         [C99-based-standards] (SCNuLEAST16): Likewise.
68834         [C99-based-standards] (SCNxLEAST16): Likewise.
68835         [C99-based-standards] (PRIdFAST16): Likewise.
68836         [C99-based-standards] (PRIiFAST16): Likewise.
68837         [C99-based-standards] (PRIoFAST16): Likewise.
68838         [C99-based-standards] (PRIuFAST16): Likewise.
68839         [C99-based-standards] (PRIxFAST16): Likewise.
68840         [C99-based-standards] (PRIXFAST16): Likewise.
68841         [C99-based-standards] (SCNdFAST16): Likewise.
68842         [C99-based-standards] (SCNiFAST16): Likewise.
68843         [C99-based-standards] (SCNoFAST16): Likewise.
68844         [C99-based-standards] (SCNuFAST16): Likewise.
68845         [C99-based-standards] (SCNxFAST16): Likewise.
68846         [C99-based-standards] (PRId32): Likewise.
68847         [C99-based-standards] (PRIi32): Likewise.
68848         [C99-based-standards] (PRIo32): Likewise.
68849         [C99-based-standards] (PRIu32): Likewise.
68850         [C99-based-standards] (PRIx32): Likewise.
68851         [C99-based-standards] (PRIX32): Likewise.
68852         [C99-based-standards] (SCNd32): Likewise.
68853         [C99-based-standards] (SCNi32): Likewise.
68854         [C99-based-standards] (SCNo32): Likewise.
68855         [C99-based-standards] (SCNu32): Likewise.
68856         [C99-based-standards] (SCNx32): Likewise.
68857         [C99-based-standards] (PRIdLEAST32): Likewise.
68858         [C99-based-standards] (PRIiLEAST32): Likewise.
68859         [C99-based-standards] (PRIoLEAST32): Likewise.
68860         [C99-based-standards] (PRIuLEAST32): Likewise.
68861         [C99-based-standards] (PRIxLEAST32): Likewise.
68862         [C99-based-standards] (PRIXLEAST32): Likewise.
68863         [C99-based-standards] (SCNdLEAST32): Likewise.
68864         [C99-based-standards] (SCNiLEAST32): Likewise.
68865         [C99-based-standards] (SCNoLEAST32): Likewise.
68866         [C99-based-standards] (SCNuLEAST32): Likewise.
68867         [C99-based-standards] (SCNxLEAST32): Likewise.
68868         [C99-based-standards] (PRIdFAST32): Likewise.
68869         [C99-based-standards] (PRIiFAST32): Likewise.
68870         [C99-based-standards] (PRIoFAST32): Likewise.
68871         [C99-based-standards] (PRIuFAST32): Likewise.
68872         [C99-based-standards] (PRIxFAST32): Likewise.
68873         [C99-based-standards] (PRIXFAST32): Likewise.
68874         [C99-based-standards] (SCNdFAST32): Likewise.
68875         [C99-based-standards] (SCNiFAST32): Likewise.
68876         [C99-based-standards] (SCNoFAST32): Likewise.
68877         [C99-based-standards] (SCNuFAST32): Likewise.
68878         [C99-based-standards] (SCNxFAST32): Likewise.
68879         [C99-based-standards] (PRId64): Likewise.
68880         [C99-based-standards] (PRIi64): Likewise.
68881         [C99-based-standards] (PRIo64): Likewise.
68882         [C99-based-standards] (PRIu64): Likewise.
68883         [C99-based-standards] (PRIx64): Likewise.
68884         [C99-based-standards] (PRIX64): Likewise.
68885         [C99-based-standards] (SCNd64): Likewise.
68886         [C99-based-standards] (SCNi64): Likewise.
68887         [C99-based-standards] (SCNo64): Likewise.
68888         [C99-based-standards] (SCNu64): Likewise.
68889         [C99-based-standards] (SCNx64): Likewise.
68890         [C99-based-standards] (PRIdLEAST64): Likewise.
68891         [C99-based-standards] (PRIiLEAST64): Likewise.
68892         [C99-based-standards] (PRIoLEAST64): Likewise.
68893         [C99-based-standards] (PRIuLEAST64): Likewise.
68894         [C99-based-standards] (PRIxLEAST64): Likewise.
68895         [C99-based-standards] (PRIXLEAST64): Likewise.
68896         [C99-based-standards] (SCNdLEAST64): Likewise.
68897         [C99-based-standards] (SCNiLEAST64): Likewise.
68898         [C99-based-standards] (SCNoLEAST64): Likewise.
68899         [C99-based-standards] (SCNuLEAST64): Likewise.
68900         [C99-based-standards] (SCNxLEAST64): Likewise.
68901         [C99-based-standards] (PRIdFAST64): Likewise.
68902         [C99-based-standards] (PRIiFAST64): Likewise.
68903         [C99-based-standards] (PRIoFAST64): Likewise.
68904         [C99-based-standards] (PRIuFAST64): Likewise.
68905         [C99-based-standards] (PRIxFAST64): Likewise.
68906         [C99-based-standards] (PRIXFAST64): Likewise.
68907         [C99-based-standards] (SCNdFAST64): Likewise.
68908         [C99-based-standards] (SCNiFAST64): Likewise.
68909         [C99-based-standards] (SCNoFAST64): Likewise.
68910         [C99-based-standards] (SCNuFAST64): Likewise.
68911         [C99-based-standards] (SCNxFAST64): Likewise.
68912         [C99-based-standards] (PRIdMAX): Likewise.
68913         [C99-based-standards] (PRIiMAX): Likewise.
68914         [C99-based-standards] (PRIoMAX): Likewise.
68915         [C99-based-standards] (PRIuMAX): Likewise.
68916         [C99-based-standards] (PRIxMAX): Likewise.
68917         [C99-based-standards] (PRIXMAX): Likewise.
68918         [C99-based-standards] (SCNdMAX): Likewise.
68919         [C99-based-standards] (SCNiMAX): Likewise.
68920         [C99-based-standards] (SCNoMAX): Likewise.
68921         [C99-based-standards] (SCNuMAX): Likewise.
68922         [C99-based-standards] (SCNxMAX): Likewise.
68923         [C99-based-standards] (PRIdPTR): Likewise.
68924         [C99-based-standards] (PRIiPTR): Likewise.
68925         [C99-based-standards] (PRIoPTR): Likewise.
68926         [C99-based-standards] (PRIuPTR): Likewise.
68927         [C99-based-standards] (PRIxPTR): Likewise.
68928         [C99-based-standards] (PRIXPTR): Likewise.
68929         [C99-based-standards] (SCNdPTR): Likewise.
68930         [C99-based-standards] (SCNiPTR): Likewise.
68931         [C99-based-standards] (SCNoPTR): Likewise.
68932         [C99-based-standards] (SCNuPTR): Likewise.
68933         [C99-based-standards] (SCNxPTR): Likewise.
68934         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
68935         allow.
68936         * conform/data/stdint.h-data: Update comments to clarify
68937         requirements.
68938         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
68939         type.
68940         [C99-based standards] (INT8_MAX): Likewise.
68941         [C99-based standards] (INT16_MIN): Likewise.
68942         [C99-based standards] (INT16_MAX): Likewise.
68943         [C99-based standards] (INT32_MIN): Likewise.
68944         [C99-based standards] (INT32_MAX): Likewise.
68945         [C99-based standards] (INT64_MIN): Likewise.
68946         [C99-based standards] (INT64_MAX): Likewise.
68947         [C99-based standards] (UINT8_MAX): Likewise.
68948         [C99-based standards] (UINT16_MAX): Likewise.
68949         [C99-based standards] (UINT32_MAX): Likewise.
68950         [C99-based standards] (UINT64_MAX): Likewise.
68951         [C99-based standards] (INT_LEAST8_MIN): Likewise.
68952         [C99-based standards] (INT_LEAST8_MAX): Likewise.
68953         [C99-based standards] (INT_LEAST16_MIN): Likewise.
68954         [C99-based standards] (INT_LEAST16_MAX): Likewise.
68955         [C99-based standards] (INT_LEAST32_MIN): Likewise.
68956         [C99-based standards] (INT_LEAST32_MAX): Likewise.
68957         [C99-based standards] (INT_LEAST64_MIN): Likewise.
68958         [C99-based standards] (INT_LEAST64_MAX): Likewise.
68959         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
68960         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
68961         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
68962         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
68963         [C99-based standards] (INT_FAST8_MIN): Likewise.
68964         [C99-based standards] (INT_FAST8_MAX): Likewise.
68965         [C99-based standards] (INT_FAST16_MIN): Likewise.
68966         [C99-based standards] (INT_FAST16_MAX): Likewise.
68967         [C99-based standards] (INT_FAST32_MIN): Likewise.
68968         [C99-based standards] (INT_FAST32_MAX): Likewise.
68969         [C99-based standards] (INT_FAST64_MIN): Likewise.
68970         [C99-based standards] (INT_FAST64_MAX): Likewise.
68971         [C99-based standards] (UINT_FAST8_MAX): Likewise.
68972         [C99-based standards] (UINT_FAST16_MAX): Likewise.
68973         [C99-based standards] (UINT_FAST32_MAX): Likewise.
68974         [C99-based standards] (UINT_FAST64_MAX): Likewise.
68975         [C99-based standards] (INTPTR_MIN): Likewise.
68976         [C99-based standards] (INTPTR_MAX): Likewise.
68977         [C99-based standards] (UINTPTR_MAX): Likewise.
68978         [C99-based standards] (INTMAX_MIN): Likewise.
68979         [C99-based standards] (INTMAX_MAX): Likewise.
68980         [C99-based standards] (UINTMAX_MAX): Likewise.
68981         [C99-based standards] (PTRDIFF_MIN): Likewise.
68982         [C99-based standards] (PTRDIFF_MAX): Likewise.
68983         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
68984         [C99-based standards] (SIZE_MAX): Likewise.
68985         [C99-based standards] (WCHAR_MAX): Likewise.
68986         [C99-based standards] (WINT_MAX): Likewise.
68987         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
68988         constraint on value.
68989         [C99-based standards] (WCHAR_MIN): Likewise.
68990         [C99-based standards] (WINT_MIN): Likewise.
68991         [C99-based standards] (*_t): Allow.
68992         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
68993         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
68994         Include math.h-data and complex.h-data.  Remove all expectations
68995         of math.h and complex.h contents.
68996         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
68997         at end of line.
68998         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
68999         (struct tm): Expect tag.
69000         [C99-based-standards] (wcstof): Expect function.
69001         [C99-based-standards] (wcstold): Likewise.
69002         [C99-based-standards] (wcstoll): Likewise.
69003         [C99-based-standards] (wcstoull): Likewise.
69004         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
69005         macro-int-constant.  Specify type.
69006         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
69007         constraint on value.
69008         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
69009         Specify type.
69010         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
69011         Specify value.
69012         [ISO C standards]: Do not allow headers.
69013         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
69014         wcs[abcdefghijklmnopqrstuvwxyz]*.
69015         [ISO C standards] (*_t): Do not allow.
69016         * conform/data/wctype.h-data [C99-based standards] (iswblank):
69017         Expect function.
69018         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
69019         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
69020         Specify type.
69021         [ISO C standards]: Do not allow headers.
69022         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
69023         is[abcdefghijklmnopqrstuvwxyz]*.
69024         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
69025         to[abcdefghijklmnopqrstuvwxyz]*.
69026         [ISO C standards] (*_t): Do not allow.
69027         * conform/data/stdalign.h-data: New file.
69028         * conform/data/stdbool.h-data: Likewise.
69029         * conform/data/stdnoreturn.h-data: Likewise.
69030
69031 2012-11-07  Roland McGrath  <roland@hack.frob.com>
69032
69033         [BZ #14815]
69034         * manual/filesys.texi (Directory Entries): Typo fix.
69035         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
69036
69037 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
69038
69039         * elf/elf.h (EM_AARCH64): New macro.
69040         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
69041         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
69042         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
69043         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
69044         (R_AARCH64_TLSDESC): Likewise.
69045         (NT_ARM_TLS): Likewise.
69046         (NT_ARM_HW_BREAK): Likewise.
69047         (NT_ARM_HW_WATCH): Likewise.
69048
69049 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
69050
69051         [BZ #14811]
69052         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
69053         (__ieee754_powl): Saturate nonzero exponents with absolute value
69054         below 0x1p-79 to +/- 0x1p-79.
69055         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
69056         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
69057         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
69058         nonzero exponents with absolute value below 0x1p-32 to +/-
69059         0x1p-32.
69060         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
69061         (__ieee754_powl): Saturate nonzero exponents with absolute value
69062         below 0x1p-79 to +/- 0x1p-79.
69063         * math/libm-test.inc (pow_test): Add more tests.
69064
69065 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
69066
69067         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
69068         _dl_s390_cap_flags with kernel. Increase string length.
69069         (_dl_s390_platforms): Add z196 and zEC12.
69070
69071 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
69072
69073         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
69074         Change XOPEN21K to XOPEN2K.
69075
69076 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
69077
69078         * string/memmove.c: Use memcpy when possible.
69079
69080 2012-11-06  Andreas Jaeger  <aj@suse.de>
69081
69082         * po/eo.po: Update from translation team.
69083
69084 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
69085
69086         [BZ #14793]
69087         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
69088         exponent and small x and y exponents, scale x or y up.  Increase
69089         by 2 the exponent used in scaling up.
69090         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69091         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69092         * math/libm-test.inc (fma_test): Add more tests.
69093         (fma_test_towardzero): Likewise.
69094         (fma_test_downward): Likewise.
69095         (fma_test_upward): Likewise.
69096
69097 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
69098
69099         [BZ #14805]
69100         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
69101         fenv_t *.
69102
69103         [BZ #14801]
69104         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
69105         namespace for names of struct fields.
69106         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
69107         fenv_t fields.
69108         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
69109         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
69110
69111 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69112
69113         [BZ #3665]
69114         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
69115
69116 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
69117
69118         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
69119         PTR_DEMANGLE.
69120
69121         [BZ #5246]
69122         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
69123         PTR_DEMANGLE.
69124
69125 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
69126
69127         [BZ #14797]
69128         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
69129         definitely overflow as x * y not x * y + z.
69130         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69131         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69132         * math/libm-test.inc (fma_test): Add more tests.
69133         (fma_test_towardzero): Likewise.
69134         (fma_test_downward): Likewise.
69135         (fma_test_upward): Likewise.
69136
69137 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
69138
69139         [BZ #157]
69140
69141         * include/stub-tag.h: Remove file.
69142         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
69143         '#include' of it.
69144         * manual/maint.texi (Porting): Don't reference it.
69145         * Makerules ($(objpfx)stubs): Likewise.
69146         * dirent/closedir.c: Don't include <stub-tag.h>.
69147         * dirent/dirfd.c: Likewise.
69148         * dirent/fdopendir.c: Likewise.
69149         * dirent/getdents.c: Likewise.
69150         * dirent/getdents64.c: Likewise.
69151         * dirent/opendir.c: Likewise.
69152         * dirent/readdir.c: Likewise.
69153         * dirent/readdir64.c: Likewise.
69154         * dirent/readdir64_r.c: Likewise.
69155         * dirent/readdir_r.c: Likewise.
69156         * dirent/rewinddir.c: Likewise.
69157         * dirent/seekdir.c: Likewise.
69158         * dirent/telldir.c: Likewise.
69159         * gmon/profil.c: Likewise.
69160         * grp/setgroups.c: Likewise.
69161         * inet/if_index.c: Likewise.
69162         * io/access.c: Likewise.
69163         * io/chdir.c: Likewise.
69164         * io/chmod.c: Likewise.
69165         * io/chown.c: Likewise.
69166         * io/close.c: Likewise.
69167         * io/dup.c: Likewise.
69168         * io/dup2.c: Likewise.
69169         * io/dup3.c: Likewise.
69170         * io/euidaccess.c: Likewise.
69171         * io/faccessat.c: Likewise.
69172         * io/fchdir.c: Likewise.
69173         * io/fchmod.c: Likewise.
69174         * io/fchmodat.c: Likewise.
69175         * io/fchown.c: Likewise.
69176         * io/fchownat.c: Likewise.
69177         * io/fcntl.c: Likewise.
69178         * io/flock.c: Likewise.
69179         * io/fstatfs.c: Likewise.
69180         * io/fstatfs64.c: Likewise.
69181         * io/fstatvfs.c: Likewise.
69182         * io/fstatvfs64.c: Likewise.
69183         * io/futimens.c: Likewise.
69184         * io/fxstat.c: Likewise.
69185         * io/fxstat64.c: Likewise.
69186         * io/fxstatat.c: Likewise.
69187         * io/fxstatat64.c: Likewise.
69188         * io/getcwd.c: Likewise.
69189         * io/isatty.c: Likewise.
69190         * io/lchmod.c: Likewise.
69191         * io/lchown.c: Likewise.
69192         * io/link.c: Likewise.
69193         * io/linkat.c: Likewise.
69194         * io/lseek.c: Likewise.
69195         * io/lseek64.c: Likewise.
69196         * io/lxstat64.c: Likewise.
69197         * io/mkdir.c: Likewise.
69198         * io/mkdirat.c: Likewise.
69199         * io/mkfifo.c: Likewise.
69200         * io/mkfifoat.c: Likewise.
69201         * io/open.c: Likewise.
69202         * io/open64.c: Likewise.
69203         * io/openat.c: Likewise.
69204         * io/openat64.c: Likewise.
69205         * io/pipe.c: Likewise.
69206         * io/pipe2.c: Likewise.
69207         * io/poll.c: Likewise.
69208         * io/posix_fadvise.c: Likewise.
69209         * io/posix_fadvise64.c: Likewise.
69210         * io/posix_fallocate.c: Likewise.
69211         * io/posix_fallocate64.c: Likewise.
69212         * io/read.c: Likewise.
69213         * io/readlink.c: Likewise.
69214         * io/readlinkat.c: Likewise.
69215         * io/rmdir.c: Likewise.
69216         * io/sendfile.c: Likewise.
69217         * io/sendfile64.c: Likewise.
69218         * io/statfs.c: Likewise.
69219         * io/statfs64.c: Likewise.
69220         * io/statvfs.c: Likewise.
69221         * io/statvfs64.c: Likewise.
69222         * io/symlink.c: Likewise.
69223         * io/symlinkat.c: Likewise.
69224         * io/ttyname.c: Likewise.
69225         * io/ttyname_r.c: Likewise.
69226         * io/umask.c: Likewise.
69227         * io/unlink.c: Likewise.
69228         * io/unlinkat.c: Likewise.
69229         * io/utime.c: Likewise.
69230         * io/utimensat.c: Likewise.
69231         * io/write.c: Likewise.
69232         * io/xmknod.c: Likewise.
69233         * io/xmknodat.c: Likewise.
69234         * io/xstat.c: Likewise.
69235         * io/xstat64.c: Likewise.
69236         * login/getpt.c: Likewise.
69237         * login/grantpt.c: Likewise.
69238         * login/unlockpt.c: Likewise.
69239         * math/e_acoshl.c: Likewise.
69240         * math/e_acosl.c: Likewise.
69241         * math/e_asinl.c: Likewise.
69242         * math/e_atan2l.c: Likewise.
69243         * math/e_atanhl.c: Likewise.
69244         * math/e_coshl.c: Likewise.
69245         * math/e_expl.c: Likewise.
69246         * math/e_fmodl.c: Likewise.
69247         * math/e_gammal_r.c: Likewise.
69248         * math/e_hypotl.c: Likewise.
69249         * math/e_j0l.c: Likewise.
69250         * math/e_j1l.c: Likewise.
69251         * math/e_jnl.c: Likewise.
69252         * math/e_lgammal_r.c: Likewise.
69253         * math/e_log10l.c: Likewise.
69254         * math/e_log2l.c: Likewise.
69255         * math/e_logl.c: Likewise.
69256         * math/e_powl.c: Likewise.
69257         * math/e_rem_pio2l.c: Likewise.
69258         * math/e_sinhl.c: Likewise.
69259         * math/e_sqrtl.c: Likewise.
69260         * math/fclrexcpt.c: Likewise.
69261         * math/fedisblxcpt.c: Likewise.
69262         * math/feenablxcpt.c: Likewise.
69263         * math/fegetenv.c: Likewise.
69264         * math/fegetexcept.c: Likewise.
69265         * math/fegetround.c: Likewise.
69266         * math/feholdexcpt.c: Likewise.
69267         * math/fesetenv.c: Likewise.
69268         * math/fesetround.c: Likewise.
69269         * math/feupdateenv.c: Likewise.
69270         * math/fgetexcptflg.c: Likewise.
69271         * math/fraiseexcpt.c: Likewise.
69272         * math/fsetexcptflg.c: Likewise.
69273         * math/ftestexcept.c: Likewise.
69274         * math/k_cosl.c: Likewise.
69275         * math/k_rem_pio2l.c: Likewise.
69276         * math/k_sinl.c: Likewise.
69277         * math/k_tanl.c: Likewise.
69278         * math/s_asinhl.c: Likewise.
69279         * math/s_atanl.c: Likewise.
69280         * math/s_cbrtl.c: Likewise.
69281         * math/s_erfl.c: Likewise.
69282         * math/s_expm1l.c: Likewise.
69283         * math/s_log1pl.c: Likewise.
69284         * math/s_tanhl.c: Likewise.
69285         * misc/acct.c: Likewise.
69286         * misc/brk.c: Likewise.
69287         * misc/chflags.c: Likewise.
69288         * misc/chroot.c: Likewise.
69289         * misc/fchflags.c: Likewise.
69290         * misc/fgetxattr.c: Likewise.
69291         * misc/flistxattr.c: Likewise.
69292         * misc/fremovexattr.c: Likewise.
69293         * misc/fsetxattr.c: Likewise.
69294         * misc/fsync.c: Likewise.
69295         * misc/ftruncate.c: Likewise.
69296         * misc/futimes.c: Likewise.
69297         * misc/futimesat.c: Likewise.
69298         * misc/getdomain.c: Likewise.
69299         * misc/getdtsz.c: Likewise.
69300         * misc/gethostid.c: Likewise.
69301         * misc/gethostname.c: Likewise.
69302         * misc/getloadavg.c: Likewise.
69303         * misc/getpagesize.c: Likewise.
69304         * misc/getsysstats.c: Likewise.
69305         * misc/getxattr.c: Likewise.
69306         * misc/gtty.c: Likewise.
69307         * misc/ioctl.c: Likewise.
69308         * misc/lgetxattr.c: Likewise.
69309         * misc/listxattr.c: Likewise.
69310         * misc/llistxattr.c: Likewise.
69311         * misc/lremovexattr.c: Likewise.
69312         * misc/lsetxattr.c: Likewise.
69313         * misc/lutimes.c: Likewise.
69314         * misc/madvise.c: Likewise.
69315         * misc/mincore.c: Likewise.
69316         * misc/mlock.c: Likewise.
69317         * misc/mlockall.c: Likewise.
69318         * misc/mmap.c: Likewise.
69319         * misc/mprotect.c: Likewise.
69320         * misc/msync.c: Likewise.
69321         * misc/munlock.c: Likewise.
69322         * misc/munlockall.c: Likewise.
69323         * misc/munmap.c: Likewise.
69324         * misc/preadv.c: Likewise.
69325         * misc/preadv64.c: Likewise.
69326         * misc/ptrace.c: Likewise.
69327         * misc/pwritev.c: Likewise.
69328         * misc/pwritev64.c: Likewise.
69329         * misc/readv.c: Likewise.
69330         * misc/reboot.c: Likewise.
69331         * misc/remap_file_pages.c: Likewise.
69332         * misc/removexattr.c: Likewise.
69333         * misc/revoke.c: Likewise.
69334         * misc/select.c: Likewise.
69335         * misc/setdomain.c: Likewise.
69336         * misc/setegid.c: Likewise.
69337         * misc/seteuid.c: Likewise.
69338         * misc/sethostid.c: Likewise.
69339         * misc/sethostname.c: Likewise.
69340         * misc/setregid.c: Likewise.
69341         * misc/setreuid.c: Likewise.
69342         * misc/setxattr.c: Likewise.
69343         * misc/sstk.c: Likewise.
69344         * misc/stty.c: Likewise.
69345         * misc/swapoff.c: Likewise.
69346         * misc/swapon.c: Likewise.
69347         * misc/sync.c: Likewise.
69348         * misc/syncfs.c: Likewise.
69349         * misc/syscall.c: Likewise.
69350         * misc/truncate.c: Likewise.
69351         * misc/ualarm.c: Likewise.
69352         * misc/usleep.c: Likewise.
69353         * misc/ustat.c: Likewise.
69354         * misc/utimes.c: Likewise.
69355         * misc/vhangup.c: Likewise.
69356         * misc/writev.c: Likewise.
69357         * posix/_exit.c: Likewise.
69358         * posix/alarm.c: Likewise.
69359         * posix/execve.c: Likewise.
69360         * posix/fexecve.c: Likewise.
69361         * posix/fork.c: Likewise.
69362         * posix/fpathconf.c: Likewise.
69363         * posix/getaddrinfo.c: Likewise.
69364         * posix/getegid.c: Likewise.
69365         * posix/geteuid.c: Likewise.
69366         * posix/getgid.c: Likewise.
69367         * posix/getgroups.c: Likewise.
69368         * posix/getlogin.c: Likewise.
69369         * posix/getlogin_r.c: Likewise.
69370         * posix/getpgid.c: Likewise.
69371         * posix/getpid.c: Likewise.
69372         * posix/getppid.c: Likewise.
69373         * posix/getresgid.c: Likewise.
69374         * posix/getresuid.c: Likewise.
69375         * posix/getsid.c: Likewise.
69376         * posix/getuid.c: Likewise.
69377         * posix/glob64.c: Likewise.
69378         * posix/nanosleep.c: Likewise.
69379         * posix/pathconf.c: Likewise.
69380         * posix/pause.c: Likewise.
69381         * posix/posix_madvise.c: Likewise.
69382         * posix/pread.c: Likewise.
69383         * posix/pread64.c: Likewise.
69384         * posix/pwrite.c: Likewise.
69385         * posix/pwrite64.c: Likewise.
69386         * posix/sched_getaffinity.c: Likewise.
69387         * posix/sched_getp.c: Likewise.
69388         * posix/sched_gets.c: Likewise.
69389         * posix/sched_primax.c: Likewise.
69390         * posix/sched_primin.c: Likewise.
69391         * posix/sched_rr_gi.c: Likewise.
69392         * posix/sched_setaffinity.c: Likewise.
69393         * posix/sched_setp.c: Likewise.
69394         * posix/sched_sets.c: Likewise.
69395         * posix/sched_yield.c: Likewise.
69396         * posix/setgid.c: Likewise.
69397         * posix/setlogin.c: Likewise.
69398         * posix/setpgid.c: Likewise.
69399         * posix/setresgid.c: Likewise.
69400         * posix/setresuid.c: Likewise.
69401         * posix/setsid.c: Likewise.
69402         * posix/setuid.c: Likewise.
69403         * posix/sleep.c: Likewise.
69404         * posix/spawni.c: Likewise.
69405         * posix/sysconf.c: Likewise.
69406         * posix/times.c: Likewise.
69407         * posix/wait.c: Likewise.
69408         * posix/wait3.c: Likewise.
69409         * posix/wait4.c: Likewise.
69410         * posix/waitpid.c: Likewise.
69411         * resolv/gai_sigqueue.c: Likewise.
69412         * resource/getpriority.c: Likewise.
69413         * resource/getrlimit.c: Likewise.
69414         * resource/getrusage.c: Likewise.
69415         * resource/nice.c: Likewise.
69416         * resource/setpriority.c: Likewise.
69417         * resource/setrlimit.c: Likewise.
69418         * resource/ulimit.c: Likewise.
69419         * rt/aio_cancel.c: Likewise.
69420         * rt/aio_fsync.c: Likewise.
69421         * rt/aio_read.c: Likewise.
69422         * rt/aio_sigqueue.c: Likewise.
69423         * rt/aio_suspend.c: Likewise.
69424         * rt/aio_write.c: Likewise.
69425         * rt/clock_getres.c: Likewise.
69426         * rt/clock_gettime.c: Likewise.
69427         * rt/clock_nanosleep.c: Likewise.
69428         * rt/clock_settime.c: Likewise.
69429         * rt/lio_listio.c: Likewise.
69430         * rt/mq_close.c: Likewise.
69431         * rt/mq_getattr.c: Likewise.
69432         * rt/mq_notify.c: Likewise.
69433         * rt/mq_open.c: Likewise.
69434         * rt/mq_receive.c: Likewise.
69435         * rt/mq_send.c: Likewise.
69436         * rt/mq_setattr.c: Likewise.
69437         * rt/mq_timedreceive.c: Likewise.
69438         * rt/mq_timedsend.c: Likewise.
69439         * rt/mq_unlink.c: Likewise.
69440         * rt/shm_open.c: Likewise.
69441         * rt/shm_unlink.c: Likewise.
69442         * rt/timer_create.c: Likewise.
69443         * rt/timer_delete.c: Likewise.
69444         * rt/timer_getoverr.c: Likewise.
69445         * rt/timer_gettime.c: Likewise.
69446         * rt/timer_settime.c: Likewise.
69447         * setjmp/__longjmp.c: Likewise.
69448         * setjmp/setjmp.c: Likewise.
69449         * signal/kill.c: Likewise.
69450         * signal/killpg.c: Likewise.
69451         * signal/raise.c: Likewise.
69452         * signal/sigaction.c: Likewise.
69453         * signal/sigaltstack.c: Likewise.
69454         * signal/sigblock.c: Likewise.
69455         * signal/sigignore.c: Likewise.
69456         * signal/sigintr.c: Likewise.
69457         * signal/signal.c: Likewise.
69458         * signal/sigpause.c: Likewise.
69459         * signal/sigpending.c: Likewise.
69460         * signal/sigqueue.c: Likewise.
69461         * signal/sigreturn.c: Likewise.
69462         * signal/sigset.c: Likewise.
69463         * signal/sigsetmask.c: Likewise.
69464         * signal/sigstack.c: Likewise.
69465         * signal/sigsuspend.c: Likewise.
69466         * signal/sigtimedwait.c: Likewise.
69467         * signal/sigvec.c: Likewise.
69468         * signal/sigwait.c: Likewise.
69469         * signal/sigwaitinfo.c: Likewise.
69470         * signal/sysv_signal.c: Likewise.
69471         * socket/accept.c: Likewise.
69472         * socket/accept4.c: Likewise.
69473         * socket/bind.c: Likewise.
69474         * socket/connect.c: Likewise.
69475         * socket/getpeername.c: Likewise.
69476         * socket/getsockname.c: Likewise.
69477         * socket/getsockopt.c: Likewise.
69478         * socket/isfdtype.c: Likewise.
69479         * socket/listen.c: Likewise.
69480         * socket/recv.c: Likewise.
69481         * socket/recvfrom.c: Likewise.
69482         * socket/recvmsg.c: Likewise.
69483         * socket/send.c: Likewise.
69484         * socket/sendmsg.c: Likewise.
69485         * socket/sendto.c: Likewise.
69486         * socket/setsockopt.c: Likewise.
69487         * socket/shutdown.c: Likewise.
69488         * socket/sockatmark.c: Likewise.
69489         * socket/socket.c: Likewise.
69490         * socket/socketpair.c: Likewise.
69491         * stdio-common/ctermid.c: Likewise.
69492         * stdio-common/cuserid.c: Likewise.
69493         * stdio-common/remove.c: Likewise.
69494         * stdio-common/rename.c: Likewise.
69495         * stdio-common/renameat.c: Likewise.
69496         * stdio-common/tempname.c: Likewise.
69497         * stdlib/getcontext.c: Likewise.
69498         * stdlib/makecontext.c: Likewise.
69499         * stdlib/setcontext.c: Likewise.
69500         * stdlib/swapcontext.c: Likewise.
69501         * stdlib/system.c: Likewise.
69502         * streams/fattach.c: Likewise.
69503         * streams/fdetach.c: Likewise.
69504         * streams/getmsg.c: Likewise.
69505         * streams/getpmsg.c: Likewise.
69506         * streams/putmsg.c: Likewise.
69507         * streams/putpmsg.c: Likewise.
69508         * sysdeps/unix/bsd/getpt.c: Likewise.
69509         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
69510         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
69511         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
69512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
69513         Likewise.
69514         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
69515         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
69516         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
69517         * sysvipc/msgctl.c: Likewise.
69518         * sysvipc/msgget.c: Likewise.
69519         * sysvipc/msgrcv.c: Likewise.
69520         * sysvipc/msgsnd.c: Likewise.
69521         * sysvipc/semctl.c: Likewise.
69522         * sysvipc/semget.c: Likewise.
69523         * sysvipc/semop.c: Likewise.
69524         * sysvipc/semtimedop.c: Likewise.
69525         * sysvipc/shmat.c: Likewise.
69526         * sysvipc/shmctl.c: Likewise.
69527         * sysvipc/shmdt.c: Likewise.
69528         * sysvipc/shmget.c: Likewise.
69529         * termios/tcdrain.c: Likewise.
69530         * termios/tcflow.c: Likewise.
69531         * termios/tcflush.c: Likewise.
69532         * termios/tcgetattr.c: Likewise.
69533         * termios/tcgetpgrp.c: Likewise.
69534         * termios/tcsendbrk.c: Likewise.
69535         * termios/tcsetattr.c: Likewise.
69536         * termios/tcsetpgrp.c: Likewise.
69537         * time/adjtime.c: Likewise.
69538         * time/clock.c: Likewise.
69539         * time/getitimer.c: Likewise.
69540         * time/gettimeofday.c: Likewise.
69541         * time/setitimer.c: Likewise.
69542         * time/settimeofday.c: Likewise.
69543         * time/stime.c: Likewise.
69544         * time/time.c: Likewise.
69545
69546 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
69547
69548         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
69549         /usr/old/bin.
69550
69551         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
69552         instead of spaces.
69553         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
69554
69555 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
69556
69557         [BZ #14796]
69558         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
69559         FE_TONEAREST before applying Dekker multiplication and Knuth
69560         addition.  Clear inexact exceptions and check for exact zero
69561         results afterwards.
69562         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69563         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
69564         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69565         * math/libm-test.inc (fma_test): Add more tests.
69566         (fma_test_towardzero): Likewise.
69567         (fma_test_downward): Likewise.
69568         (fma_test_upward): Likewise.
69569         * sysdeps/generic/math_private.h (default_libc_fesetround): New
69570         function.
69571         (libc_fesetround): New macro.
69572         (libc_fesetroundf): Likewise.
69573         (libc_fesetroundl): Likewise.
69574         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
69575         function.
69576         (libc_fesetround_387): Likewise.
69577         (libc_fesetroundf): New macro.
69578         (libc_fesetround): Likewise.
69579         (libc_fesetroundl): Likewise.
69580         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
69581         function.
69582         (libc_fesetroundf): New macro.
69583         (libc_fesetround): Likewise.
69584         (libc_fesetroundl): Likewise.
69585         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
69586         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
69587         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
69588         libm_hidden_ver.
69589         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
69590         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
69591         libm_hidden_def.
69592         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
69593         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
69594         libm_hidden_ver.
69595         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
69596         libm_hidden_def.
69597
69598         [BZ #3439]
69599         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
69600         integer constant usable in #if and use that to give value to enum
69601         constant.
69602         (FE_DIVBYZERO): Likewise.
69603         (FE_UNDERFLOW): Likewise.
69604         (FE_OVERFLOW): Likewise.
69605         (FE_INVALID): Likewise.
69606         (FE_INVALID_SNAN): Likewise.
69607         (FE_INVALID_ISI): Likewise.
69608         (FE_INVALID_IDI): Likewise.
69609         (FE_INVALID_ZDZ): Likewise.
69610         (FE_INVALID_IMZ): Likewise.
69611         (FE_INVALID_COMPARE): Likewise.
69612         (FE_INVALID_SOFTWARE): Likewise.
69613         (FE_INVALID_SQRT): Likewise.
69614         (FE_INVALID_INTEGER_CONVERSION): Likewise.
69615         (FE_TONEAREST): Likewise.
69616         (FE_TOWARDZERO): Likewise.
69617         (FE_UPWARD): Likewise.
69618         (FE_DOWNWARD): Likewise.
69619         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
69620         (FE_DIVBYZERO): Likewise.
69621         (FE_OVERFLOW): Likewise.
69622         (FE_UNDERFLOW): Likewise.
69623         (FE_INEXACT): Likewise.
69624         (FE_TONEAREST): Likewise.
69625         (FE_DOWNWARD): Likewise.
69626         (FE_UPWARD): Likewise.
69627         (FE_TOWARDZERO): Likewise.
69628         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
69629         (FE_UNDERFLOW): Likewise.
69630         (FE_OVERFLOW): Likewise.
69631         (FE_DIVBYZERO): Likewise.
69632         (FE_INVALID): Likewise.
69633         (FE_TONEAREST): Likewise.
69634         (FE_TOWARDZERO): Likewise.
69635         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
69636         (FE_OVERFLOW): Likewise.
69637         (FE_UNDERFLOW): Likewise.
69638         (FE_DIVBYZERO): Likewise.
69639         (FE_INEXACT): Likewise.
69640         (FE_TONEAREST): Likewise.
69641         (FE_TOWARDZERO): Likewise.
69642         (FE_UPWARD): Likewise.
69643         (FE_DOWNWARD): Likewise.
69644         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
69645         (FE_DIVBYZERO): Likewise.
69646         (FE_OVERFLOW): Likewise.
69647         (FE_UNDERFLOW): Likewise.
69648         (FE_INEXACT): Likewise.
69649         (FE_TONEAREST): Likewise.
69650         (FE_DOWNWARD): Likewise.
69651         (FE_UPWARD): Likewise.
69652         (FE_TOWARDZERO): Likewise.
69653
69654 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
69655
69656         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
69657
69658 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
69659
69660         * scripts/cross-test-ssh.sh (command): Use newlines to separate
69661         commands.  Quote $PWD.
69662         (blacklist_exports): Don't use remove_newlines.  Replace "declare
69663         -x" by "export".
69664         (remove_newlines): Remove.
69665
69666 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
69667
69668         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
69669         * stdlib/stdlib.h (atof): Moved to ...
69670         * include/bits/stdlib-float.h: Here.  New file.
69671         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
69672         * stdlib/bits/stdlib-float.h: New file.
69673         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
69674         -mno-sse -mno-mmx.
69675         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
69676         <xmmintrin.h>.
69677
69678 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
69679
69680         * conform/conformtest.pl (@headers): Add fenv.h.
69681         * conform/data/fenv.h-data: New file.
69682         * include/fenv.h [_ISOMAC]: Disable all contents of file except
69683         include of <math/fenv.h>.
69684
69685         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
69686         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
69687         && !UNIX98].  Enables tests for XOPEN2K8.
69688         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
69689         POSIX2008]: Likewise.
69690
69691         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
69692         (struct rusage): Do not expect type or its members.
69693
69694         [BZ #3439]
69695         * math/math.h (FP_NAN): Define macro to integer constant usable in
69696         #if and use that to give value to enum constant.
69697         (FP_INFINITE): Likewise.
69698         (FP_ZERO): Likewise.
69699         (FP_SUBNORMAL): Likewise.
69700         (FP_NORMAL): Likewise.
69701
69702 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
69703
69704         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
69705         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
69706         arguments.
69707
69708 2012-11-02  Roland McGrath  <roland@hack.frob.com>
69709
69710         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
69711         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
69712         autoconf-time if not.
69713         * configure.in: Remove AC_PREREQ.
69714
69715 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
69716
69717         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
69718         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
69719         of the internal implementation.
69720
69721 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
69722
69723         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
69724         except include of <misc/sys/syslog.h>.
69725
69726 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
69727
69728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
69729         function returns with a NULL context exit with zero.
69730
69731 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
69732
69733         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
69734
69735 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
69736
69737         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
69738         (run_program_cmd): This.
69739         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
69740         (tst_langinfo): New variable.  Use it.
69741
69742 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
69743
69744         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
69745         floating point opcodes.
69746
69747 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
69748
69749         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
69750         variable.
69751
69752         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
69753
69754         * sysdeps/mach/hurd/powerpc: Remove directory.
69755         * sysdeps/mach/powerpc: Likewise.
69756
69757 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
69758
69759         * scripts/check-local-headers.sh: Ignore c++ headers.
69760
69761 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
69762
69763         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
69764         __libc_cleanup_region_start argument.
69765
69766 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
69767
69768         [BZ #14784]
69769         [BZ #14785]
69770         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
69771         x * y using scaling, not as x * y + z.
69772         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69773         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69774         * math/libm-test.inc (fma_test): Add more tests.
69775         (fma_test_towardzero): Likewise.
69776         (fma_test_downward): Likewise.
69777         (fma_test_upward): Likewise.
69778
69779 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
69780
69781         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
69782
69783 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
69784
69785         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
69786         New variable.
69787
69788 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
69789
69790         * rt/tst-shm.c (worker): Correct checking for mmap failure.
69791
69792 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
69793
69794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
69795         Fix sort order.
69796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
69797         Likewise.
69798
69799 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
69800
69801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
69802         Fix the order of the list for glibc 2.17.
69803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
69804         Likewise.
69805
69806 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
69807
69808         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
69809
69810 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
69811
69812         [BZ #14610]
69813         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
69814         for low part of x being zero before using __atanl (y).
69815         * math/libm-test.inc (atan2_test): Add another test.
69816
69817         * manual/install.texi (Configuring and compiling): Document
69818         general use of test-wrapper and test-wrapper-env.
69819         * INSTALL: Regenerated.
69820
69821         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
69822         (__fma): Do not extract and scale down low bits on after-rounding
69823         systems when result rounded to normal precision would have normal
69824         exponent.
69825         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
69826         (__fmal): Do not extract and scale down low bits on after-rounding
69827         systems when result rounded to normal precision would have normal
69828         exponent.
69829         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
69830         (__fmal): Do not extract and scale down low bits on after-rounding
69831         systems when result rounded to normal precision would have normal
69832         exponent.
69833         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
69834         macro.
69835         (fma_test): Add more tests.
69836         (fma_test_towardzero): Likewise.
69837         (fma_test_downward): Likewise.
69838         (fma_test_upward): Likewise.
69839
69840 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
69841
69842         * sysdeps/i386/tininess.h: Renamed to ...
69843         * sysdeps/x86/tininess.h: This.
69844         * sysdeps/x86_64/tininess.h: Removed.
69845
69846 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
69847
69848         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
69849         input.  Use $(build-program-cmd).
69850         ($(objpfx)tst-array1-static.out): Likewise.
69851         ($(objpfx)tst-array2.out): Likewise.
69852         ($(objpfx)tst-array3.out): Likewise.
69853         ($(objpfx)tst-array4.out): Likewise.
69854         ($(objpfx)tst-array5.out): Likewise.
69855         ($(objpfx)tst-array5-static.out): Likewise.
69856
69857 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
69858
69859         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
69860         if defined.
69861
69862         * nss/nsswitch.h (nss_interface_function): Provide new
69863         macro for use with NSS functions.
69864         * grp/initgroups.c: Use new macro.
69865         * nss/getXXbyYY.c: Likewise.
69866         * nss/getXXbyYY_r.c: Likewise.
69867         * nss/getXXent.c: Likewise.
69868         * nss/getXXent_r.c: Likewise.
69869         * sysdeps/posix/getaddrinfo.c: Likewise.
69870
69871 2012-10-30  Andreas Jaeger  <aj@suse.de>
69872
69873         * po/ru.po: Update Russion translation from translation project.
69874
69875 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
69876
69877         [BZ #14152]
69878         [BZ #14783]
69879         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
69880         result and shift together with sticky bit instead of replicating
69881         round-to-nearest rounding.
69882         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69883         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69884         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
69885         missing underflow exceptions.
69886         (fma_test_towardzero): Add more tests.
69887         (fma_test_downward): Likewise.
69888         (fma_test_upward): Likewise.
69889
69890         [BZ #14047]
69891         * sysdeps/generic/tininess.h: New file.
69892         * sysdeps/i386/tininess.h: Likewise.
69893         * sysdeps/sh/tininess.h: Likewise.
69894         * sysdeps/x86_64/tininess.h: Likewise.
69895         * stdlib/tst-strtod-underflow.c: Likewise.
69896         * stdlib/tst-tininess.c: Likewise.
69897         * stdlib/strtod_l.c: Include <tininess.h>.
69898         (round_and_return): Do not set errno for exact underflow cases.
69899         Force an underflow exception when setting errno for underflow.
69900         Determine underflow based on rounding to normal precision if
69901         TININESS_AFTER_ROUNDING.
69902         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
69903         ERANGE for exact underflow cases.
69904         * stdlib/Makefile (tests): Add tst-tininess and
69905         tst-strtod-underflow.
69906         ($(objpfx)tst-tininess): Use $(link-libm).
69907         ($(objpfx)tst-strtod-underflow): Likewise.
69908
69909 2012-10-30  Andreas Jaeger  <aj@suse.de>
69910
69911         [BZ #14767]
69912         * elf/Makefile (tests): Remove conditional for have-initfini-array
69913         since this is now always required and the variable does not exist
69914         anymore.
69915         (tests-static): Likewise.
69916         (modules-names): Likewise.
69917
69918         * po/eo.po: Add Esperanto translation from translation project.
69919
69920         * elf/tst-array1.c (fini_array): Make writeable so that it can be
69921         merged with constructor/destructor.
69922         (init_array): Likewise.
69923         * elf/tst-array2dep.c (fini_array): Likewise.
69924         (init_array): Likewise.
69925
69926 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
69927
69928         * manual/message.texi: Delete @cartouche tags.
69929
69930 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
69931
69932         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
69933         EOPNOTSUPP.
69934         * sysdeps/mach/hurd/fsync.c: Likewise.
69935
69936         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
69937         [_POSIX_REALTIME_SIGNALS]: Change condition to
69938         [_POSIX_REALTIME_SIGNALS > 0].
69939
69940 2012-10-27  Andreas Jaeger  <aj@suse.de>
69941
69942         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
69943         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
69944         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
69945         [__WORDSIZE != 64]: Likewise.
69946
69947 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
69948
69949         *  iconvdata/tst-table.sh: Remove ${SHELL}.
69950         *  iconvdata/tst-tables.sh: Likewise.
69951
69952 2012-10-25  David S. Miller  <davem@davemloft.net>
69953
69954         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
69955         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
69956         of strtoull.
69957
69958         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
69959         ifunc-impl-list.c
69960         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
69961         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
69962         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
69963         file.
69964
69965 2012-10-25  Roland McGrath  <roland@hack.frob.com>
69966
69967         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
69968         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
69969         __getdirentries.
69970
69971 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
69972             Jim Blandy  <jimb@codesourcery.com>
69973
69974         * scripts/cross-test-ssh.sh: New file.
69975         * manual/install.texi (Configuring and compiling): Document use of
69976         cross-test-ssh.sh.
69977         * INSTALL: Regenerated.
69978
69979 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
69980
69981         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
69982         EOPNOTSUPP.
69983
69984 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
69985
69986         * Makeconfig (run-program-prefix): Fix comment.
69987
69988 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
69989             Jim Blandy  <jimb@codesourcery.com>
69990
69991         * Makeconfig (test-wrapper): New variable,
69992         (test-wrapper-env): Likewise.
69993         [$(cross-compiling) = yes && $(test-wrapper) != ""]
69994         (run-built-tests): Define to yes.
69995         (run-program-prefix): Use $(test-wrapper).
69996         (built-program-cmd): Likewise.
69997         * Rules (make-test-out): Use $(test-wrapper-env) and
69998         $(host-built-program-cmd).
69999         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
70000         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
70001         tst-pathopt.sh.
70002         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
70003         $(test-wrapper-env) to tst-rtld-load-self.sh.
70004         ($(objpfx)order2.out): Use $(test-wrapper).
70005         ($(objpfx)tst-initorder.out): Likewise.
70006         ($(objpfx)tst-initorder2.out): Likewise.
70007         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
70008         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
70009         (test_wrapper_env): New variable.  Use it to run ld.so.
70010         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
70011         Use it to run ld.so.
70012         (test_wrapper_env): Likewise.
70013         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
70014         $(test-wrapper) to run-iconv-test.sh.
70015         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
70016         (ICONV): Use $test_wrapper.
70017         * posix/Makefile ($(objpfx)globtest.out): Pass
70018         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
70019         globtest.sh, not $(run-program-prefix).
70020         * posix/globtest.sh (run_via_rtld_prefix): New variable.
70021         (test_wrapper): Likewise.
70022         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
70023         set together with run_via_rtld_prefix.
70024         (run_program_prefix): Define in terms of test_wrapper and
70025         run_via_rtld_prefix.
70026
70027 2012-10-24  Roland McGrath  <roland@hack.frob.com>
70028
70029         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
70030         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
70031         Targets removed.
70032
70033         [BZ #14743]
70034         * include/time.h: Remove librt_hidden_proto (clock_gettime).
70035         Declare __clock_getres, __clock_gettime, __clock_settime,
70036         __clock_nanosleep, and __clock_getcpuclockid.
70037         * rt/clock_gettime.c: Define __clock_gettime as an alias.
70038         Remove librt_hidden_def (clock_gettime).
70039         * sysdeps/unix/clock_gettime.c: Likewise.
70040         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
70041         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
70042         * rt/clock_getres.c: Define __clock_getres as an alias.
70043         * sysdeps/posix/clock_getres.c: Likewise.
70044         * rt/clock_settime.c: Define __clock_settime as an alias.
70045         * sysdeps/unix/clock_settime.c: Likewise.
70046         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
70047         * sysdeps/unix/clock_nanosleep.c: Likewise.
70048         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
70049         * rt/clock-compat.c: New file.
70050         * rt/Makefile (librt-routines): Add clock-compat and move
70051         $(clock-routines) to ...
70052         (routines): ... here, new variable.
70053         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
70054         Don't add get_clockfreq here.
70055         * rt/Versions (libc: GLIBC_2.17): New version set.
70056         Add clock_* symbols here.
70057         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
70058         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
70059         (GLIBC_2.17): Add clock_* symbols.
70060         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
70061         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
70062         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
70063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
70064         Likewise.
70065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
70066         Likewise.
70067         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
70068         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
70069         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
70070         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
70071         * NEWS: Mention the move.
70072
70073         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
70074         Use __open, __read, __close rather than their public counterparts.
70075         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
70076         (__get_clockfreq_via_cpuinfo): Likewise.
70077         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
70078         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
70079
70080         * config.h.in (HAVE_IFUNC): New #undef.
70081         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
70082         was successful.
70083         * configure: Regenerated.
70084
70085 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
70086
70087         * configure.in: Move READELF check to start of file.
70088         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
70089         libc_cv_asm_gnu_indirect_function in the process.
70090         * configure: Regenerated.
70091
70092 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
70093
70094         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
70095         send the output to /dev/null.
70096         (libc_cv_cc_with_libunwind): Likewise.
70097         (libc_cv_as_noexecstack): Likewise.
70098         * configure: Regenerate.
70099
70100 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
70101
70102         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
70103
70104         * posix/globtest.sh (TMPDIR): Do not set.
70105         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
70106         (testout): Likewise.
70107
70108 2012-10-24  Andreas Jaeger  <aj@suse.de>
70109
70110         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
70111         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
70112         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
70113         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
70114         posix_fadvise64, posix_fallocate64.
70115
70116         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
70117         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
70118         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
70119         Likewise.
70120         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
70121         Likewise.
70122         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
70123
70124         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
70125         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
70126         <bits/fcntl-linux.h>.
70127         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
70128
70129         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
70130         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
70131         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
70132         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
70133         [__WORDSIZE != 64]: Likewise.
70134
70135 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
70136
70137         * Makeconfig (run-built-tests): New variable.
70138         * Rules [$(cross-compiling) = yes]: Change condition to
70139         [$(run-built-tests) = no].
70140         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
70141         to [$(run-built-tests) = yes].
70142         * elf/Makefile [$(cross-compiling) = no]: Likewise.
70143         * grp/Makefile [$(cross-compiling) = no]: Likewise.
70144         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
70145         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
70146         * intl/Makefile [$(cross-compiling) = no]: Likewise.
70147         * io/Makefile [$(cross-compiling) = no]: Likewise.
70148         * libio/Makefile [$(cross-compiling) = no]: Likewise.
70149         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
70150         * misc/Makefile [$(cross-compiling) = no]: Likewise.
70151         * posix/Makefile [$(cross-compiling) = no]: Likewise.
70152         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
70153         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
70154         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
70155         * string/Makefile [$(cross-compiling) = no]: Likewise.
70156
70157         * posix/Makefile ($(objpfx)globtest.out): Pass
70158         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
70159         $(rtld-installed-name).
70160         * posix/globtest.sh (elf_objpfx): Remove variable.
70161         (rtld_installed_name): Likewise.
70162         (library_path): Likewise.
70163         (run_program_prefix): New variable.  Use for running globtest
70164         binary.
70165
70166 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
70167             Joseph Myers  <joseph@codesourcery.com>
70168
70169         * Makeconfig (host-built-program-cmd): New variable.
70170         * elf/Makefile (tst-stackguard1-ARGS): Use
70171         $(host-built-program-cmd).
70172         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
70173         (tst-spawn-ARGS): Likewise.
70174         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
70175
70176 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
70177             Jim Blandy  <jimb@codesourcery.com>
70178
70179         * Makeconfig (run-via-rtld-prefix): New variable.
70180         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
70181         (built-program-cmd): Likewise.
70182
70183 2012-10-22  Andreas Jaeger  <aj@suse.de>
70184
70185         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
70186         __O_RSYNC if it exists, otherwise to O_SYNC.
70187
70188 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
70189             Joseph Myers  <joseph@codesourcery.com>
70190
70191         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
70192         /dev/null.
70193         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
70194         from /dev/null
70195         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
70196         /dev/null.
70197
70198 2012-10-22  Andreas Jaeger  <aj@suse.de>
70199
70200         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
70201         Define always.
70202         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
70203
70204         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
70205         bits/fcntl-linux.h.
70206
70207         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
70208         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
70209
70210         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
70211         to __O_LARGEFILE.
70212         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
70213         to __O_LARGEFILE.
70214
70215 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
70216             Joseph Myers  <joseph@codesourcery.com>
70217
70218         * config.make.in (NM): New variable.
70219
70220 2012-10-21  Andreas Jaeger  <aj@suse.de>
70221
70222         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
70223         definitions and declarations that are provided by
70224         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
70225
70226 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
70227
70228         [BZ #14683]
70229         * elf/Makefile (tests-static): Add tst-leaks1-static.
70230         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
70231         ($(objpfx)tst-leaks1-static): New rule.
70232         ($(objpfx)tst-leaks1-static-mem): Likewise.
70233         (tst-leaks1-static-ENV): New macro.
70234         * elf/dl-open.c (dl_open_worker): Check the main application
70235         only if SHARED is defined.
70236         * elf/tst-leaks1-static.c: New file.
70237
70238 2012-10-20  Andreas Jaeger  <aj@suse.de>
70239
70240         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
70241         generic values for Linux.
70242         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
70243         and declarations that are provided by <bits/fcntl-linux.h> and
70244         include <bits/fcntl-linux.h>.
70245         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
70246         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
70247
70248 2012-10-20  Roland McGrath  <roland@hack.frob.com>
70249
70250         * io/fcntl.h: Move include of <bits/types.h> to the top and
70251         include it unconditionally.
70252
70253 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
70254
70255         * wcsmbs/Makefile (tests-ifunc): New variable.
70256         (tests): Add $(tests-ifunc).
70257         * wcsmbs/test-wcschr-ifunc.c: New file.
70258         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
70259         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
70260         * wcsmbs/test-wcslen-ifunc.c: Likewise.
70261         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
70262         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
70263
70264         * string/Makefile (tests-ifunc): New variable.
70265         (tests): Add $(tests-ifunc).
70266         * string/test-memccpy.c (TEST_NAME): New macro.
70267         * string/test-memchr.c (TEST_NAME): Likewise.
70268         * string/test-memcmp.c (TEST_NAME): Likewise.
70269         * string/test-memcpy.c (TEST_NAME): Likewise.
70270         * string/test-memmem.c (TEST_NAME): Likewise.
70271         * string/test-memmove.c (TEST_NAME): Likewise.
70272         * string/test-memset.c (TEST_NAME): Likewise.
70273         * string/test-rawmemchr.c (TEST_NAME): Likewise.
70274         * string/test-stpcpy.c (TEST_NAME): Likewise.
70275         * string/test-stpncpy.c (TEST_NAME): Likewise.
70276         * string/test-strcasecmp.c (TEST_NAME): Likewise.
70277         * string/test-strcasestr.c (TEST_NAME): Likewise.
70278         * string/test-strcat.c (TEST_NAME): Likewise.
70279         * string/test-strchr.c (TEST_NAME): Likewise.
70280         * string/test-strcmp.c(TEST_NAME): Likewise.
70281         * string/test-strcpy.c (TEST_NAME): Likewise.
70282         * string/test-strcspn.c (TEST_NAME): Likewise.
70283         * string/test-strlen.c (TEST_NAME): Likewise.
70284         * string/test-strncasecmp.c (TEST_NAME): Likewise.
70285         * string/test-strncmp.c (TEST_NAME): Likewise.
70286         * string/test-strncpy.c (TEST_NAME): Likewise.
70287         * string/test-strnlen.c (TEST_NAME): Likewise.
70288         * string/test-strpbrk.c (TEST_NAME): Likewise.
70289         * string/test-strrchr.c (TEST_NAME): Likewise.
70290         * string/test-strspn.c (TEST_NAME): Likewise.
70291         * string/test-strstr.c (TEST_NAME): Likewise.
70292         * string/test-bcopy-ifunc.c: New file.
70293         * string/test-bzero-ifunc.c: Likewise.
70294         * string/test-memccpy-ifunc.c: Likewise.
70295         * string/test-memchr-ifunc.c: Likewise.
70296         * string/test-memcmp-ifunc.c: Likewise.
70297         * string/test-memcpy-ifunc.c: Likewise.
70298         * string/test-memmem-ifunc.c: Likewise.
70299         * string/test-memmove-ifunc.c: Likewise.
70300         * string/test-mempcpy-ifunc.c: Likewise.
70301         * string/test-memset-ifunc.c: Likewise.
70302         * string/test-rawmemchr-ifunc.c: Likewise.
70303         * string/test-stpcpy-ifunc.c: Likewise.
70304         * string/test-stpncpy-ifunc.c: Likewise.
70305         * string/test-strcasecmp-ifunc.c: Likewise.
70306         * string/test-strcasestr-ifunc.c: Likewise.
70307         * string/test-strcat-ifunc.c: Likewise.
70308         * string/test-strchr-ifunc.c: Likewise.
70309         * string/test-strchrnul-ifunc.c: Likewise.
70310         * string/test-strcmp-ifunc.c: Likewise.
70311         * string/test-strcpy-ifunc.c: Likewise.
70312         * string/test-strcspn-ifunc.c: Likewise.
70313         * string/test-strlen-ifunc.c: Likewise.
70314         * string/test-strncasecmp-ifunc.c: Likewise.
70315         * string/test-strncat-ifunc.c: Likewise.
70316         * string/test-strncmp-ifunc.c: Likewise.
70317         * string/test-strncpy-ifunc.c: Likewise.
70318         * string/test-strnlen-ifunc.c: Likewise.
70319         * string/test-strpbrk-ifunc.c: Likewise.
70320         * string/test-strrchr-ifunc.c: Likewise.
70321         * string/test-strspn-ifunc.c: Likewise.
70322         * string/test-strstr-ifunc.c: Likewise.
70323
70324         * debug/Makefile (tests-ifunc): New variable.
70325         (tests): Add $(tests-ifunc).
70326         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
70327         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
70328         * debug/test-stpcpy_chk-ifunc.c: New file.
70329         * debug/test-strcpy_chk-ifunc.c: Likewise.
70330
70331 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
70332
70333         [BZ #13601]
70334         * elf/dl-load.c (open_verify): Retry read if the entire ELF
70335         header is not read in.
70336
70337 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
70338
70339         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
70340         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
70341         directly.  Pass built executable to script as
70342         $(built-program-cmd).
70343         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
70344         $testprogram without using LD_LIBRARY_PATH and $ldso.
70345
70346         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
70347         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
70348         $(rtld-installed-name).
70349         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
70350         (rtld_installed_name): Likewise.
70351         (library_path): Likewise.
70352         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
70353         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
70354         $(run-program-prefix) to tst-tables.sh.
70355         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
70356         it to run tst-table-from and tst-table-to.
70357         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
70358         Pass it to tst-table.sh.
70359         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
70360         $(run-program-prefix) to tst-gettext.sh.
70361         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
70362         tst-translit.sh.
70363         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
70364         tst-gettext2.sh.
70365         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
70366         to run tst-gettext.
70367         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
70368         to run tst-gettext2.
70369         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
70370         to run tst-translit.
70371         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
70372         $(run-program-prefix) to tst-mtrace.sh.
70373         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
70374         to run tst-mtrace.
70375         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
70376         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
70377         $(rtld-installed-name).
70378         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
70379         (rtld_installed_name): Likewise.
70380         (run_program_prefix): New variable.  Use it to run wordexp-test.
70381
70382         * Makeconfig (ARCH): Remove all definitions.
70383         (machine): Likewise.
70384         [ARCH]: Remove conditional code.
70385         [!objdir]: Give error.
70386         [!objdir] (objpfx): Remove.
70387         [!objdir] (common-objpfx): Likewise.
70388         [!objdir] (common-objdir): Likewise.
70389         * configure.in (config_makefile): Remove.  Hardcode Makefile in
70390         AC_CONFIG_FILES call.
70391         * configure: Regenerated.
70392
70393         [BZ #13888]
70394         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
70395         or TMPDIR.
70396         (testout): Likewise.
70397
70398         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
70399         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
70400         $(rtld-installed-name).
70401         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
70402         (rtld_installed_name): Likewise.
70403         (runit): Remove function.
70404         (run_getconf): New variable,  Use it for running getconf binary.
70405
70406 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
70407
70408         [BZ #14716]
70409         * string/test-memmem.c (check_result): New function.
70410         (do_one_test): Use it.
70411         (check1): New function.
70412         (test_main): Use it.
70413
70414 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
70415
70416         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
70417
70418 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
70419
70420         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
70421         (_G_LSEEK64): Likewise.
70422         (_G_MMAP64): Likewise.
70423         (_G_FSTAT64): Likewise.
70424         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
70425         (_G_LSEEK64): Likewise.
70426         (_G_MMAP64): Likewise.
70427         (_G_FSTAT64): Likewise.
70428         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
70429         unconditional.  Call __mmap64 directly.
70430         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
70431         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
70432         __lseek64 directly.
70433         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
70434         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
70435         __mmap64 directly.
70436         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
70437         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
70438         __lseek64 directly.
70439         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
70440         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
70441         __lseek64 directly.
70442         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
70443         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
70444         __lseek64 directly.
70445         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
70446         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
70447         __fxstat64 directly.
70448         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
70449         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
70450         unconditional.
70451         (freopen64) [!_G_OPEN64]: Remove conditional code.
70452         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
70453         unconditional.
70454         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
70455         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
70456         unconditional.
70457         (ftello64) [!_G_LSEEK64]: Remove conditional code.
70458         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
70459         unconditional.
70460         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
70461         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
70462         unconditional.
70463         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
70464         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
70465         unconditional.
70466         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
70467         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
70468         unconditional.
70469         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
70470         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
70471         unconditional.
70472         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
70473
70474 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
70475
70476         [BZ #12140]
70477         * manual/memory.texi (Malloc Tunable Parameters): Add note
70478         about free list pointers overwriting some perturb bytes.
70479         Wording suggested by Roland McGrath.
70480
70481 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
70482
70483         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
70484         (lgamma_test): Likewise.
70485         (tgamma_test): Likewise.
70486
70487 2012-10-16  Florian Weimer  <fweimer@redhat.com>
70488
70489         [BZ #14700]
70490         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
70491         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
70492
70493 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
70494
70495         * NEWS: Mention BZ #14716.
70496         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
70497         when removing AVAILABLE1_USES_J macro.
70498
70499 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
70500
70501         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
70502         (__bswap_64): __uint64_t for unsigned 64-bit int.
70503
70504 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
70505
70506         * include/string.h (memmem): Declare libc hidden alias.
70507         * string/memmem.c (memmem): Define libc hidden alias.
70508         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
70509         __read, __close instead of open, read, close.
70510
70511 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
70512
70513         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
70514         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
70515         global and hidden.
70516         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
70517         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
70518         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
70519         Likewise.
70520         (__rawmemchr_sse2): Likewise.
70521         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
70522         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
70523         (__strchr_sse2): Likewise.
70524         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
70525         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
70526         (__strcasecmp_sse2): Likewise.
70527         (__strncasecmp_sse2): Likewise.
70528         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
70529         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
70530         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
70531         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
70532         (__strrchr_sse2): Likewise.
70533         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
70534         ifunc-impl-list.c.
70535         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
70536         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
70537         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
70538         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
70539         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
70540         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
70541         * sysdeps/x86_64/multiarch/memset.S: Likewise.
70542         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
70543         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
70544         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
70545         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
70546         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
70547         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
70548         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
70549         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
70550         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
70551         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
70552         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
70553         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
70554         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
70555         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
70556         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
70557         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
70558         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
70559         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
70560         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
70561         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
70562         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
70563         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
70564         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
70565
70566         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
70567         global and hidden.
70568         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
70569         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
70570         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
70571         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
70572         Likewise.
70573         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
70574         Likewise.
70575         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
70576         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
70577         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
70578         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
70579         ifunc-impl-list.c.
70580         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
70581         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
70582         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
70583         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
70584         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
70585         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
70586         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
70587         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
70588         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
70589         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
70590         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
70591         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
70592         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
70593         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
70594         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
70595         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
70596         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
70597         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
70598         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
70599         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
70600         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
70601         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
70602         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
70603         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
70604         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
70605         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
70606         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
70607         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
70608         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
70609         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
70610         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
70611         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
70612         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
70613         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
70614         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
70615         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
70616         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
70617         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
70618         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
70619         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
70620         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
70621
70622         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
70623         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
70624         * include/ifunc-impl-list.h: New file.
70625         * misc/ifunc-impl-list.c: Likewise.
70626         * misc/Makefile (routines): Add ifunc-impl-list.
70627         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
70628         * string/test-string.h: Include <ifunc-impl-list.h>.
70629         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
70630         TEST_NAME]: New variables.
70631         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
70632         are defined.
70633         (test_init): Call __libc_ifunc_impl_list to initialize
70634         func_list if TEST_IFUNC and TEST_NAME are defined.
70635
70636         * string/Makefile (strop-tests): Add bcopy and bzero.
70637         * string/test-bcopy.c: New file.
70638         * string/test-bzero.c: Likewise.
70639         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
70640         defined.
70641         * string/test-memset.c: Support bzero test if TEST_BZERO is
70642         defined.
70643         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
70644         __libc_memmove.
70645         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
70646         __libc_memset.
70647         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
70648         of memset.
70649
70650 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
70651
70652         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
70653         * configure: Regenerated.
70654
70655         * Makeconfig (+link-static-before-libc): Don't include
70656         $(link-static-libc).
70657
70658         * libio/libio.h (_IO_pos_t): Remove.
70659
70660 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
70661
70662         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
70663         McGrath.
70664
70665 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
70666
70667         * crypt/crypt-entry.c: Include fips-private.h.
70668         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
70669         * crypt/md5c-test.c (main): Tolerate disabled MD5.
70670         * sysdeps/unix/sysv/linux/fips-private.h: New file.
70671         * sysdeps/generic/fips-private.h: New file, dummy fallback.
70672
70673 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
70674
70675         * crypt/crypt-private.h: Include stdbool.h.
70676         (_ufc_setup_salt_r): Return bool.
70677         * crypt/crypt-entry.c: Include errno.h.
70678         (__crypt_r): Return NULL with EINVAL for bad salt.
70679         * crypt/crypt_util.c (bad_for_salt): New.
70680         (_ufc_setup_salt_r): Check that salt is long enough and within
70681         the specified alphabet.
70682         * crypt/badsalttest.c: New file.
70683         * crypt/Makefile (tests): Add it.
70684         ($(objpfx)badsalttest): New.
70685
70686 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
70687
70688         * NEWS: Add entry for BZ #14602.
70689
70690 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
70691
70692         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
70693         type-generic.
70694         * math/libm-test.inc: Update comment listing what functions and
70695         macros are tested.
70696         (isgreater_test): New function.
70697         (isgreaterequal_test): Likewise.
70698         (isless_test): Likewise.
70699         (islessequal_test): Likewise.
70700         (islessgreater_test): Likewise.
70701         (isunordered_test): Likewise.
70702         (main): Call the new functions.
70703
70704 2012-10-09  Roland McGrath  <roland@hack.frob.com>
70705
70706         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
70707         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
70708         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
70709         * sysdeps/i386/configure: Regenerated.
70710         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
70711         * sysdeps/mach/configure: Regenerated.
70712         * sysdeps/mach/hurd/configure: Regenerated.
70713         * sysdeps/powerpc/configure: Regenerated.
70714         * sysdeps/powerpc/powerpc32/configure: Regenerated.
70715         * sysdeps/powerpc/powerpc64/configure: Regenerated.
70716         * sysdeps/s390/s390-32/configure: Regenerated.
70717         * sysdeps/s390/s390-64/configure: Regenerated.
70718         * sysdeps/sh/configure: Regenerated.
70719         * sysdeps/sparc/configure: Regenerated.
70720         * sysdeps/unix/sysv/linux/configure: Regenerated.
70721         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
70722         * sysdeps/x86_64/configure: Regenerated.
70723
70724         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
70725         defined.  Don't check if MAP is NULL.
70726
70727 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
70728
70729         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
70730         (_G_stat64): Likewise.
70731         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
70732         (_G_stat64): Likewise.
70733         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
70734         instead of struct _G_stat64.
70735         * libio/fileops.c (mmap_remap_check): Likewise.
70736         (decide_maybe_mmap): Likewise.
70737         (_IO_new_file_seekoff): Likewise.
70738         (_IO_file_stat): Likewise.
70739         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
70740         _G_off64_t.
70741         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
70742         instead of struct _G_stat64.
70743         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
70744
70745 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
70746
70747         [BZ #14602]
70748         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
70749         Replace with ...
70750         (CHECK_EOL): New macro.
70751         (two_way_short_needle): Check beginning of haystack for EOL.  Use
70752         CHECK_EOL.
70753         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
70754         Replace with CHECK_EOL.
70755         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
70756         Replace with CHECK_EOL.
70757
70758 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
70759
70760         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
70761         type-generic.
70762         * math/libm-test.inc: Update comment listing what functions and
70763         macros are tested.
70764         (finite_test): New function.
70765         (isinf_test): Likewise.
70766         (isnan_test): Likewise.
70767         (fpclassify_test): Test subnormal input.
70768         (isfinite_test): Likewise.
70769         (isnormal_test): Likewise.
70770         (main): Call the new functions.
70771
70772 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
70773
70774         [BZ #14660]
70775         * Makerules (%.dynsym): Force C locale when running
70776         $(OBJDUMP) --dynamic-syms.
70777
70778 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
70779
70780         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
70781         <stdint.h>.
70782
70783 2012-10-06  David S. Miller  <davem@davemloft.net>
70784
70785         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
70786         upper 32-bits of the length value in %o2 since we use branch-on-register
70787         tests which consider the entire 64-bit register.
70788
70789 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
70790
70791         * string/test-strstr.c (check2): Add a test for page boundary.
70792
70793 2012-10-05  David S. Miller  <davem@davemloft.net>
70794
70795         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
70796         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
70797         file.
70798         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
70799         sysdep_routines.
70800         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
70801         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
70802         and bzero when HWCAP_SPARC_CRYPTO is present.
70803
70804 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
70805
70806         [BZ #14602]
70807         * string/test-strstr.c (check2): New function.
70808         (test_main): Call check2.
70809
70810         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
70811         and bug-strchr1.
70812         * string/bug-strcasestr1.c (do_test): Moved to ...
70813         * string/test-strcasestr.c (check1): Here.  New function.
70814         (do_one_test): Break out result checking code into ...
70815         (check_result): This.  New function.
70816         (do_one_test): Call check_result.
70817         (test_main): Call check1.
70818         * string/bug-strchr1.c (do_test): Moved to ...
70819         * string/test-strchr.c (check1): Here.  New function.
70820         (do_one_test): Break out result checking code into ...
70821         (check_result): This.  New function.
70822         (do_one_test): Call check_result.
70823         (test_main): Call check1.
70824         * string/bug-strstr1.c (main): Moved to ...
70825         * string/test-strstr.c (check1): Here.  New function.
70826         (do_one_test): Break out result checking code into ...
70827         (check_result): This.  New function.
70828         (do_one_test): Call check_result.
70829         (test_main): Call check1.
70830         * string/bug-strcasestr1.c: Removed.
70831         * string/bug-strchr1.c: Likewise.
70832         * string/bug-strstr1.c: Likewise.
70833
70834         * elf/Makefile (dl-routines): Add hwcaps.
70835         * elf/dl-support.c (_dl_important_hwcaps): Removed.
70836         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
70837         (_dl_important_hwcaps): Moved to ...
70838         * elf/dl-hwcaps.c: Here.  New file.
70839         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
70840
70841         [BZ #14557]
70842         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
70843         if IS_IN_rtld isn't defined.
70844
70845         * elf/dl-support.c (_dl_sysinfo_map): New.
70846         Include "get-dynamic-info.h" and "setup-vdso.h".
70847         (_dl_non_dynamic_init): Call setup_vdso.
70848         * elf/dynamic-link.h: Don't include <assert.h>.
70849         (elf_get_dynamic_info): Moved to ...
70850         * elf/get-dynamic-info.h: Here.  New file.
70851         * elf/dynamic-link.h: Include "get-dynamic-info.h".
70852         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
70853         * elf/setup-vdso.h: Here.  New file.
70854         * elf/rtld.c: Include "setup-vdso.h".
70855         (dl_main): Call setup_vdso.
70856
70857 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
70858
70859         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
70860         creal in comment listing functions tested.  List finite, isinf,
70861         isnan, isless, islessequal, isgreater, isgreaterequal,
70862         islessgreater, isunordered, lgamma_r and pow10 as functions and
70863         macros not tested.  Mention which functions not tested are aliases
70864         for other functions.  Fix typo.  Note that signs of NaNs are not
70865         tested.
70866
70867         * scripts/config.guess: Update from config.git.
70868         * scripts/config.sub: Likewise.
70869
70870 2012-10-04  Roland McGrath  <roland@hack.frob.com>
70871
70872         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
70873         * misc/madvise.c (madvise): Renamed to __madvise.
70874         Make madvise a weak alias.
70875         * include/sys/mman.h: Declare __madvise.
70876         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
70877         * sysdeps/unix/syscalls.list
70878         (madvise): Make __madvise the strong name, and madvise a weak alias.
70879         * sysdeps/unix/sysv/linux/syscalls.list
70880         (madvise, mmap): Remove redundant entries.
70881         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
70882         * malloc/malloc.c (mtrim): Likewise.
70883         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
70884
70885 2012-10-03  Roland McGrath  <roland@hack.frob.com>
70886
70887         * sysdeps/mach/hurd/dl-cache.c: File removed.
70888         * config.h.in (USE_LDCONFIG): New #undef.
70889         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
70890         * configure: Regenerated.
70891         * elf/Makefile (dl-routines): Add dl-cache only under
70892         [$(use-ldconfig) = yes].
70893         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
70894         cache on [USE_LDCONFIG].
70895         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
70896         [USE_LDCONFIG].
70897         * elf/rtld.c (dl_main): Likewise.
70898
70899 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
70900
70901         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
70902         _SC_LEVEL4_CACHE_LINESIZE.
70903
70904 2012-10-03  Roland McGrath  <roland@hack.frob.com>
70905
70906         * sysdeps/unix/bsd/confstr.h: File removed.
70907
70908 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
70909
70910         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
70911         sys/sdt-config.h.
70912
70913 2012-10-02  Roland McGrath  <roland@hack.frob.com>
70914
70915         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
70916         Make 'mapoff' field ElfW(Off) rather than off_t.
70917
70918 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
70919
70920         * nscd/Makefile: Remove nscd-cflags and all its users.
70921         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
70922         (CFLAGS-nonlib): Add compiler flags for nscd modules.
70923
70924         [BZ #10631]
70925         * malloc.c (malloc_printerr): Clarify error message.
70926
70927 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
70928
70929         [BZ #14648]
70930         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
70931         Set bit_FMA_Usable if FMA is supported.
70932         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
70933         macro.
70934         (bit_FMA4_Usable): Updated.
70935         (index_FMA_Usable): New macro.
70936         (CPUID_FMA): Likewise.
70937         (HAS_FMA): Defined with bit_FMA_Usable.
70938
70939 2012-10-01  Roland McGrath  <roland@hack.frob.com>
70940
70941         * bits/types.h (__swblk_t): Type removed.
70942         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
70943         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
70944         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
70945         (__SWBLK_T_TYPE): Likewise.
70946         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
70947         (__SWBLK_T_TYPE): Likewise.
70948         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
70949         (__SWBLK_T_TYPE): Likewise.
70950         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
70951         (__SWBLK_T_TYPE): Likewise.
70952
70953 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
70954             Honza Horak <hhorak@redhat.com>
70955
70956         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
70957         (xdr_mapname): Use YPMAXMAP as maxsize.
70958         (xdr_peername): Use YPMAXPEER as maxsize.
70959         (xdr_keydat): Use YPAXRECORD as maxsize.
70960         (xdr_valdat): Use YPMAXRECORD as maxsize.
70961
70962 2012-10-01  Roland McGrath  <roland@hack.frob.com>
70963
70964         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
70965
70966         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
70967         * csu/init-first.c: ... here.
70968         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
70969         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
70970         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
70971         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
70972         * sysdeps/i386/init-first.c: File removed.
70973         * sysdeps/sh/init-first.c: File removed.
70974
70975 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
70976
70977         [BZ #14645]
70978         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
70979         if x * y might underflow to zero and z is zero.
70980         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
70981         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
70982         * math/libm-test.inc (min_subnorm_value): New variable.
70983         (fma_test): Add more tests.
70984         (fma_test_towardzero): Likewise.
70985         (fma_test_downward): Likewise.
70986         (fma_test_upward): Likewise.
70987         (initialize): Set min_subnorm_value.
70988
70989 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
70990
70991         [BZ #14638]
70992         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
70993         0 + 0.
70994         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
70995         mode for addition resulting in exact zero.
70996         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
70997         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
70998         exact 0 + 0.
70999         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
71000         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
71001         * math/libm-test.inc (fma_test): Add more tests.
71002         (fma_test_towardzero): New function.
71003         (fma_test_downward): Likewise.
71004         (fma_test_upward): Likewise.
71005         (main): Call the new functions.
71006
71007 2012-09-28  David S. Miller  <davem@davemloft.net>
71008
71009         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
71010
71011 2012-09-28  Roland McGrath  <roland@hack.frob.com>
71012
71013         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
71014         instead of SIGALRM.
71015
71016         * sysdeps/gnu/_G_config.h: Moved to ...
71017         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
71018         * sysdeps/mach/hurd/_G_config.h: Moved to ...
71019         * sysdeps/generic/_G_config.h: ... here.
71020
71021         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
71022
71023         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
71024
71025         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
71026         Conditionalize target on [libnss_test1.so-version].
71027
71028         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
71029
71030         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
71031         (elfobjdir): Move out of conditionals.
71032
71033         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
71034         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
71035         (__nss_lookup_function): Conditionalize label remove_from_tree on
71036         [!DO_STATIC_NSS || SHARED], matching its only use.
71037
71038 2012-09-28  David S. Miller  <davem@davemloft.net>
71039
71040         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
71041         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
71042         file.
71043         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
71044         sysdep_routines.
71045         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
71046         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
71047         when HWCAP_SPARC_CRYPTO is present.
71048
71049 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
71050
71051         * io/tst-mknodat.c: Create a FIFO instead of a socket.
71052
71053 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
71054
71055         [BZ #6530]
71056         * stdio-common/vfprintf.c (process_string_arg): Revert
71057         2000-07-22 change.
71058
71059 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
71060
71061         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
71062         for testcase.
71063         * stdio-common/tst-sprintf.c: Include <locale.h>
71064         (main): Test sprintf's handling of incomplete multibyte
71065         characters.
71066
71067 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
71068
71069         * elf/dl-runtime.c (VERSYMIDX): Removed.
71070         * elf/dl-version.c (VERSYMIDX): Likewise.
71071         * elf/do-rel.h (VERSYMIDX): Likewise.
71072         (VALIDX): Likewise.
71073         * elf/dynamic-link.h (VERSYMIDX): Likewise.
71074         * elf/rtld.c (VALIDX): Likewise.
71075         (ADDRIDX): Likewise.
71076         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
71077         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
71078         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
71079         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
71080         (VALIDX): Likewise.
71081         (ADDRIDX): Likewise.
71082
71083 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
71084
71085         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
71086
71087 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
71088
71089         [BZ #11438]
71090         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
71091         to global scope.
71092         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
71093         addresses are in the same scope as 192.0.2/24.
71094         * posix/gai.conf: Document new scope table defaults.
71095
71096 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
71097
71098         [BZ #5298]
71099         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
71100         for ftell.  Compute offsets from write pointers instead.
71101         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
71102
71103 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
71104
71105         [BZ #14543]
71106         * libio/Makefile (tests): New test case tst-fseek.
71107         * libio/tst-fseek.c: New test case to verify that fseek/ftell
71108         combination works in wide mode.
71109         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
71110         state when the external buffer state changes.
71111
71112 2012-09-27  David S. Miller  <davem@davemloft.net>
71113
71114         [BZ #14376]
71115         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
71116         pass reloc->r_addend in as the 'high' argument to
71117         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
71118
71119         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71120
71121 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
71122
71123         * rt/tst-aio2.c: Include <pthread.h>.
71124         * rt/tst-aio3.c: Likewise.
71125
71126 2012-09-27  Steve Ellcey  <sellcey@mips.com>
71127
71128         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
71129
71130 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
71131
71132         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
71133         contents on [SHARED].
71134
71135 2012-09-26  Marek Polacek  <polacek@redhat.com>
71136
71137         [BZ #14530]
71138         [BZ #13741]
71139         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
71140         for C++ and GCC <4.3 as well as for non GCC compilers.
71141
71142 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
71143
71144         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71145
71146 2012-09-25  Roland McGrath  <roland@hack.frob.com>
71147
71148         * Makefile.in (all, install): Declare with .PHONY.
71149         Reported by Michael Hope <michael.hope@linaro.org>.
71150
71151 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
71152
71153         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
71154         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
71155         system header.
71156         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
71157         Likewise.
71158         (sydep_routines): Add the new and the internal functions.
71159         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
71160         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
71161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
71162         (GLIBC_2.17): Add the new function.
71163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
71164         (GLIBC_2.17): Likewise.
71165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
71166         (GLIBC_2.17): Likewise.
71167         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
71168         (GLIBC_2.17): Likewise.
71169         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
71170
71171 2012-09-25  Alan Modra  <amodra@gmail.com>
71172
71173         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
71174         Add release barrier before setting once_control to say
71175         initialisation is done.  Add hints on lwarx.  Use macro in
71176         place of isync.
71177         (clear_once_control): Add release barrier.
71178
71179 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
71180
71181         [BZ #13629]
71182         * math/s_clog.c (__clog): Handle more values close to |z| = 1
71183         specially.
71184         * math/s_clog10.c (__clog10): Likewise.
71185         * math/s_clog10f.c (__clog10f): Likewise.
71186         * math/s_clog10l.c (__clog10l): Likewise.
71187         * math/s_clogf.c (__clogf): Likewise.
71188         * math/s_clogl.c (__clogl): Likewise.
71189         * math/Makefile (libm-calls): Add x2y2m1.
71190         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
71191         (__x2y2m1): Likewise.
71192         (__x2y2m1l): Likewise.
71193         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
71194         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
71195         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
71196         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
71197         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
71198         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
71199         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
71200         * sysdeps/i386/fpu/libm-test-ulps: Update.
71201         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71202
71203         [BZ #14621]
71204         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
71205         int as type of variable DEPTH.
71206         (glob): Use size_t instead of int as type of variables NEWCOUNT
71207         and OLD_PATHC.
71208
71209 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71210
71211         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
71212         Add s_sincosf-sse2.
71213         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
71214         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
71215         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
71216         macros for using routine as __sincosf_ia32.
71217         Use macro for function declaration and weak_alias.
71218         * sysdeps/i386/fpu/libm-test-ulps: Update.
71219
71220         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
71221         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71222
71223         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
71224         subnormal argument.
71225         * math/s_cexpf.c (__cexpf): Likewise.
71226         * math/s_csinf.c (__csinf): Likewise.
71227         * math/s_csinhf.c (__csinhf): Likewise.
71228         * math/s_ctanf.c (__ctanf): Likewise.
71229         * math/s_ctanhf.c (__ctanhf): Likewise.
71230         * math/s_ccosh.c (__ccoshf): Likewise.
71231         * math/s_cexp.c (__cexpl): Likewise.
71232         * math/s_csin.c (__csin): Likewise.
71233         * math/s_csinh.c (__csinh): Likewise.
71234         * math/s_ctan.c (__ctan): Likewise.
71235         * math/s_ctanh.c (ctanh): Likewise.
71236         * math/s_ccoshl.c (__ccoshl): Likewise.
71237         * math/s_cexpl.c (__cexpl): Likewise.
71238         * math/s_csinl.c (__csinl): Likewise.
71239         * math/s_csinhl.c (__csinhl): Likewise.
71240         * math/s_ctanl.c (__ctanl): Likewise.
71241         * math/s_ctanhl.c (__ctanhl): Likewise.
71242
71243 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
71244
71245         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
71246         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
71247         (_IO_off_t): Define to __off_t, not _G_off_t.
71248         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
71249         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
71250         (_IO_wint_t): Define to wint_t, not _G_wint_t.
71251         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
71252         type of __dummy and __dummy2 fields.
71253         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
71254         (_G_ssize_t): Likewise.
71255         (_G_off_t): Likewise.
71256         (_G_pid_t): Likewise.
71257         (_G_uid_t): Likewise.
71258         (_G_wchar_t): Likewise.
71259         (_G_wint_t): Likewise.
71260         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
71261         (_G_ssize_t): Likewise.
71262         (_G_off_t): Likewise.
71263         (_G_pid_t): Likewise.
71264         (_G_uid_t): Likewise.
71265         (_G_wchar_t): Likewise.
71266         (_G_wint_t): Likewise.
71267         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
71268         (_G_ssize_t): Likewise.
71269         (_G_off_t): Likewise.
71270         (_G_pid_t): Likewise.
71271         (_G_uid_t): Likewise.
71272         (_G_wchar_t): Likewise.
71273         (_G_wint_t): Likewise.
71274
71275 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
71276
71277         * malloc/arena.c: Include malloc-sysdep.h.
71278         (shrink_heap): Use check_may_shrink_heap to decide if madvise
71279         is sufficient to shrink the heap or an unmap is needed.
71280         * sysdeps/generic/malloc-sysdep.h: New file.  Define
71281         new function check_may_shrink_heap.
71282         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
71283         new function check_may_shrink_heap.
71284
71285 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
71286
71287         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
71288         comments.
71289
71290 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
71291
71292         * catgets/test-gencat.sh: Add "set -e".
71293         * elf/tst-pathopt.sh: Likewise.
71294         * grp/tst_fgetgrent.sh: Likewise.
71295         * iconvdata/run-iconv-test.sh: Likewise.
71296         * intl/tst-gettext.sh: Likewise.
71297         * intl/tst-gettext2.sh: Likewise.
71298         * intl/tst-gettext4.sh: Likewise.
71299         * intl/tst-gettext6.sh: Likewise.
71300         * intl/tst-translit.sh: Likewise.
71301         * io/ftwtest-sh: Likewise.
71302         * libio/test-freopen.sh: Likewise.
71303         * malloc/tst-mtrace.sh: Likewise.
71304         * posix/globtest.sh: Likewise.
71305         * posix/tst-getconf.sh: Likewise.
71306         * posix/wordexp-tst.sh: Likewise.
71307         * stdio-common/tst-printf.sh: Likewise.
71308         * stdio-common/tst-unbputc.sh: Likewise.
71309         * stdlib/tst-fmtmsg.sh: Likewise.
71310         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
71311         * catgets/Makefile: Do not specify -e option when running
71312         testsuite shell scripts.
71313         * elf/Makefile: Likewise.
71314         * grp/Makefile: Likewise.
71315         * iconvdata/Makefile: Likewise.
71316         * intl/Makefile: Likewise.
71317         * io/Makefile: Likewise.
71318         * libio/Makefile: Likewise.
71319         * malloc/Makefile: Likewise.
71320         * posix/Makefile: Likewise.
71321         * stdio-common/Makefile: Likewise.
71322         * stdlib/Makefile: Likewise.
71323         * sysdeps/x86_64/Makefile: Likewise.
71324
71325         * io/ftwtest-sh: Add copyright header.
71326         * posix/globtest.sh: Likewise.
71327         * posix/tst-getconf.sh: Likewise.
71328         * posix/wordexp-tst.sh: Likewise.
71329         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
71330
71331 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
71332
71333         [BZ #13679]
71334         * Makeconfig (+link): Defined as $(+link-static) if
71335         $(build-shared) isn't yes.
71336         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
71337         isn't yes.
71338         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
71339
71340         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
71341
71342         [BZ #14562]
71343         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
71344         new chunk size with MALLOC_ALIGN_MASK.
71345
71346 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
71347
71348         [BZ #5044]
71349         * stdio-common/printf_fphex.c: Include <stdbool.h> and
71350         <rounding-mode.h>.
71351         (__printf_fphex): Determine rounding using get_rounding_mode and
71352         round_away.
71353         * stdio-common/tst-printf-round.c (struct hex_test): New
71354         structure.
71355         (hex_tests): New variable.
71356         (test_hex_in_one_mode): New function.
71357         (do_test): Also run tests for hex float output.
71358
71359 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
71360
71361         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
71362         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
71363         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
71364         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
71365         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
71366         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
71367         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
71368         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
71369
71370 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
71371
71372         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
71373         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
71374         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
71375         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
71376
71377 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
71378
71379         [BZ #14579]
71380         * elf/rtld.c (dl_main): Limit the check for self loading to normal
71381         mode only.
71382         * elf/tst-rtld-load-self.sh: New test.
71383         * elf/Makefile: Run it.
71384
71385 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
71386
71387         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
71388         (tst-writev-ENV): Remove.
71389         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
71390
71391 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
71392
71393         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
71394
71395 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
71396
71397         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
71398         unconditional.
71399         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
71400         Likewise.
71401         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
71402         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
71403         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
71404         Likewise.
71405
71406 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
71407
71408         [BZ #14587]
71409         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
71410         * config.make.in (have-cpp-asm-debuginfo): Removed.
71411         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
71412         * configure: Regenerated.
71413
71414 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
71415
71416         [BZ #5044]
71417         * stdio-common/printf_fp.c: Include <stdbool.h> and
71418         <rounding-mode.h>.
71419         (___printf_fp): Determine rounding using get_rounding_mode and
71420         round_away.
71421         * stdio-common/tst-printf-round.c: New file.
71422         * stdio-common/Makefile (tests): Add tst-printf-round.
71423         (link-libm): New variable.
71424         ($(objpfx)tst-printf-round): Depend in $(link-libm).
71425
71426 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
71427
71428         [BZ #14576]
71429         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
71430         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
71431         Likewise.
71432         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
71433         Likewise.
71434
71435 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
71436
71437         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
71438         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
71439         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
71440         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
71441
71442 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
71443
71444         [BZ #14518]
71445         * include/rounding-mode.h: New file.
71446         * sysdeps/generic/get-rounding-mode.h: Likewise.
71447         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
71448         * stdlib/strtod_l.c: Include <rounding-mode.h>.
71449         (MAX_VALUE): New macro.
71450         (MIN_VALUE): Likewise.
71451         (overflow_value): New function.
71452         (underflow_value): Likewise.
71453         (round_and_return): Use overflow_value and underflow_value to
71454         determine return values in overflow and underflow cases.  Use
71455         round_away to determine rounding depending on rounding mode.
71456         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
71457         determine return values in overflow and underflow cases.
71458         * stdlib/tst-strtod-round.c: Include <fenv.h>.
71459         (struct test_results): New structure.
71460         (struct test): Use struct test_results to store expected results
71461         for all rounding modes.
71462         (TEST): Include expected results for all rounding modes.
71463         (test_in_one_mode): New function.
71464         (do_test): Use test_in_one_mode to compute and check results.
71465         Check results for all rounding modes.
71466         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
71467         $(link-libm).
71468
71469 2012-12-09  Allan McRae  <allan@archlinux.org>
71470
71471         * sysdeps/i386/fpu/libm-test-ulps: Update
71472
71473 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
71474
71475         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
71476         (_G_int32_t): Likewise.
71477         (_G_uint16_t): Likewise.
71478         (_G_uint32_t): Likewise.
71479         (_G_HAVE_BOOL): Likewise.
71480         (_G_HAVE_ATEXIT): Likewise.
71481         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
71482         (_G_HAVE_IO_FILE_OPEN): Likewise.
71483         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
71484         (_G_int32_t): Likewise.
71485         (_G_uint16_t): Likewise.
71486         (_G_uint32_t): Likewise.
71487         (_G_HAVE_BOOL): Likewise.
71488         (_G_HAVE_ATEXIT): Likewise.
71489         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
71490         (_G_HAVE_IO_FILE_OPEN): Likewise.
71491         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
71492         (_G_int32_t): Likewise.
71493         (_G_uint16_t): Likewise.
71494         (_G_uint32_t): Likewise.
71495         (_G_HAVE_BOOL): Likewise.
71496         (_G_HAVE_ATEXIT): Likewise.
71497         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
71498         (_G_HAVE_IO_FILE_OPEN): Likewise.
71499
71500 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
71501
71502         * csu/libc-tls.c: Update copyright years.
71503
71504 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
71505
71506         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
71507         [!_G_USING_THUNKS]: Remove conditional code.
71508         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
71509         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
71510
71511         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
71512         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
71513         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
71514         (_G_VTABLE_LABEL_PREFIX): Likewise.
71515         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
71516         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
71517         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
71518         (_G_VTABLE_LABEL_PREFIX): Likewise.
71519         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
71520         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
71521         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
71522         (_G_VTABLE_LABEL_PREFIX): Likewise.
71523         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
71524
71525 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
71526
71527         * libio/Makefile: Include ../Makeconfig before tests.
71528         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
71529         only if $(build-shared) is yes.
71530
71531         * iconv/gconv_db.c: Update copyright years.
71532
71533 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71534
71535         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
71536         unwind info if defined PIC. Fix special cases description.
71537         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
71538
71539         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
71540         DP_HI_MASK entry.
71541         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
71542
71543 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
71544
71545         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
71546
71547         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
71548         is NULL.
71549
71550         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
71551         (LDLIBS-tst-chk4): This.
71552         (LDFLAGS-tst-chk5): Renamed to ...
71553         (LDLIBS-tst-chk5): This.
71554         (LDFLAGS-tst-chk6): Renamed to ...
71555         (LDLIBS-tst-chk6): This.
71556         (LDFLAGS-tst-lfschk4): Renamed to ...
71557         (LDLIBS-tst-lfschk4): This.
71558         (LDFLAGS-tst-lfschk5): Renamed to ...
71559         (LDLIBS-tst-lfschk5): This.
71560         (LDFLAGS-tst-lfschk6): Renamed to ...
71561         (LDLIBS-tst-lfschk6): This.
71562
71563         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
71564         on $(common-objpfx)soversions.mk.
71565
71566 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
71567
71568         [BZ #10014]
71569         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
71570         example host name.
71571
71572 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
71573
71574         * malloc/arena.c (arena_get_retry): New function that gets
71575         another arena for the caller to try its request on.
71576         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
71577         current arena cannot fulfill the request.
71578         (__libc_memalign): Likewise.
71579         (__libc_memalign): Likewise.
71580         (__libc_pvalloc): Likewise.
71581         (__libc_calloc): Likewise.
71582
71583 2012-09-05  John Tobey  <john.tobey@gmail.com>
71584
71585         [BZ #13542]
71586         * manual/arith.texi (Operations on Complex): Fix description
71587         of carg branch cut.
71588
71589 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
71590
71591         [BZ #10014]
71592         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
71593         host name.
71594
71595         [BZ #10038]
71596         * manual/memory.texi (Memory): Make order of menu items match
71597         order of sections.
71598
71599 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71600
71601         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
71602         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
71603         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
71604
71605 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71606
71607         * csu/libc-tls.c (static_dtv): Renamed to ...
71608         (_dl_static_dtv): This.  Make it global.
71609         (_dl_initial_dtv): Removed.
71610         (__libc_setup_tls): Updated.
71611         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
71612         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
71613         DL_INITIAL_DTV.
71614
71615 2012-09-06  Petr Machata  <pmachata@redhat.com>
71616
71617         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
71618         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
71619         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
71620         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
71621
71622 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71623
71624         [BZ #14545]
71625         * csu/libc-tls.c (_dl_initial_dtv): New variable.
71626         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
71627         freeing dtv[-1].
71628
71629 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71630
71631         [BZ #14544]
71632         * Makeconfig (link-static-before-libc): Replace $(+prector)
71633         with $(+prectorT).
71634         (link-static-after-libc): Replace $(+postctor) with
71635         $(+postctorT).
71636         (link-bounded): Replace $(+prector)/$(+postctor) with
71637         $(+prectorT)/$(+postctorT).
71638         (+prectorT): New macro.
71639         (+postctorT): Likewise.
71640
71641 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
71642
71643         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
71644         (round_str): Handle values above the maximum for IBM long double
71645         as inexact.
71646         * stdlib/tst-strtod-round.c (tests): Regenerated.
71647
71648 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
71649
71650         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
71651         assembler flag.
71652         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
71653         zarch_nohighgprs around the zarch optimized routines.
71654         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
71655         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
71656         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
71657         for zarch.
71658
71659 2012-09-05  David S. Miller  <davem@davemloft.net>
71660
71661         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71662
71663         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
71664         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
71665         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
71666         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
71667         entries.
71668
71669 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71670
71671         * malloc/arena.c: Fold copyright years.
71672         * malloc/mcheck.c, malloc/memusage.c: Likewise.
71673
71674 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71675
71676         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
71677
71678 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71679
71680         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
71681
71682 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71683
71684         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
71685         change internal state upon failure.
71686
71687 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71688
71689         * malloc/mcheck.c (mcheck_check_all): Fix typo.
71690         * malloc/memusage.c (mmap): Likewise.
71691         (mmap64, mremap): Likewise.  Adjust name in comment.
71692
71693 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
71694
71695         * libio/fileops.c: Fix typos in comments.
71696         * libio/oldfileops.c: Likewise.
71697         * libio/wfileops.c: Likewise.
71698
71699 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
71700
71701         [BZ #1349]
71702         * malloc/Makefile (tests): Add tst-malloc-usable test case.
71703         (tst-malloc-usable-ENV): Set environment for test case.
71704         * malloc/hooks.c (malloc_check_get_size): New function to get
71705         requested size.
71706         * malloc/malloc.c (musable): Use malloc_check_get_size.
71707         * malloc/tst-malloc-usable.c: New test case.
71708
71709 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
71710
71711         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
71712
71713 2012-09-05  Allan McRae  <allan@archlinux.org>
71714
71715         [BZ #13966]
71716         * configure.in (CXX_SYSINCLUDES): Use compiler output to
71717         determine header location.
71718         * configure: Regenerated.
71719
71720 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
71721
71722         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
71723         float format.
71724         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
71725         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
71726         format.
71727         (test): Regenerate.
71728
71729 2012-09-04  David S. Miller  <davem@davemloft.net>
71730
71731         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
71732         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
71733         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
71734
71735 2012-09-04  Florian Weimer  <fweimer@redhat.com>
71736
71737         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
71738         failures.
71739
71740         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
71741
71742 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
71743
71744         [BZ #9914]
71745         * libio/iogetdelim.c: Include <limits.h>.
71746         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
71747         + len + 1 would overflow.
71748
71749 2012-09-03  Andreas Jaeger  <aj@suse.de>
71750
71751         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71752         * sysdeps/i386/fpu/libm-test-ulps: Update.
71753
71754 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71755
71756         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
71757         Add s_sinf-sse2, s_conf-sse2.
71758
71759         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
71760         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
71761         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
71762         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
71763
71764         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
71765         for using routine as __sinf_ia32.
71766         Use macro for function declaration and weak_alias.
71767         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
71768         for using routine as __cosf_ia32.
71769         Use macro for function declaration and weak_alias.
71770
71771         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
71772         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
71773
71774         * sysdeps/x86_64/fpu/s_sinf.S: New file.
71775         * sysdeps/x86_64/fpu/s_cosf.S: New file.
71776         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71777
71778         * math/libm-test.inc (cos_test): Add more test cases.
71779         (sin_test): Likewise.
71780         (sincos_test): Likewise.
71781
71782 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
71783
71784         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
71785         (IFUNC_RESOLVE): Make pointers to the specialized implementations
71786         hidden.
71787         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
71788
71789 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
71790
71791         [BZ #14538]
71792         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
71793         first element of the GOT.
71794         (elf_machine_load_address): Return the difference between
71795         the runtime address of _DYNAMIC and elf_machine_dynamic ().
71796
71797 2012-09-01  Allan McRae  <allan@archlinux.org>
71798
71799         [BZ #13412]
71800         * configure.in (AWK): Require gawk version 3.0 or later.
71801         * configure: Regenerated.
71802
71803 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
71804
71805         * sysdeps/unix/sysv/linux/kernel-features.h
71806         (__ASSUME_POSIX_CPU_TIMERS): Remove.
71807         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
71808         [__NR_clock_getres]: Make code unconditional.
71809         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
71810         (clock_getcpuclockid): Remove code left unreachable by removal of
71811         conditionals.
71812         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
71813         code unconditional.
71814         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
71815         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
71816         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
71817         Make code unconditional.
71818         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
71819         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
71820         * sysdeps/unix/sysv/linux/clock_settime.c
71821         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
71822         conditional code.
71823         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
71824         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
71825
71826 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
71827
71828         [BZ #14476]
71829         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
71830         scripts/test-installation.pl.
71831
71832         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
71833         and $ld_so_version if it is set.
71834
71835 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
71836
71837         [BZ #14516]
71838         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
71839         failure if reading from procfs failed.
71840         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
71841
71842 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
71843
71844         * sysdeps/unix/sysv/linux/kernel-features.h
71845         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
71846         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
71847         Remove conditional code.
71848         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71849         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
71850         Remove conditional code.
71851         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71852         * sysdeps/unix/sysv/linux/i386/fxstat.c
71853         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
71854         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71855         * sysdeps/unix/sysv/linux/i386/fxstatat.c
71856         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
71857         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71858         * sysdeps/unix/sysv/linux/i386/lxstat.c
71859         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
71860         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71861         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
71862         Remove conditional code.
71863         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71864         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
71865         Remove conditional code.
71866         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71867         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
71868         <kernel-features.h>.
71869         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
71870         Remove.
71871         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
71872         Remove conditional code.
71873         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71874         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
71875         Remove conditional.
71876
71877 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
71878
71879         [BZ #5400]
71880         * NEWS: Add fixed bug number.
71881
71882 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
71883
71884         [BZ #14519]
71885         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
71886         underflowing exponent in case of negative sign.
71887         * stdlib/tst-strtod-round-data: Add more tests.
71888         * stdlib/tst-strtod-round.c (tests): Regenerated.
71889
71890         [BZ #3479]
71891         * stdlib/strtod_l.c (NDIG): Remove.
71892         (HEXNDIG): Likewise.
71893         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
71894         smallest representable value.
71895         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
71896         lie within an exact representation of 1/2 ulp of the result.
71897         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
71898         unconditionally.
71899         (TENS_P9_IDX): Define unconditionally.
71900         (TENS_P9_SIZE): Likewise.
71901         (TENS_P10_IDX): Likewise.
71902         (TENS_P10_SIZE): Likewise.
71903         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
71904         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
71905         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
71906         entries for 10^2^13 and 10^2^14.
71907         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
71908         (TENS_P13_IDX): Define.
71909         (TENS_P13_SIZE): Likewise.
71910         (TENS_P14_IDX): Likewise.
71911         (TENS_P14_SIZE): Likewise.
71912         (_fpioconst_pow10): Change array size to
71913         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
71914         unconditional.
71915         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
71916         1024]: Add entries for 10^2^13 and 10^2^14.
71917         [LAST_POW10 > _LAST_POW10]: Remove #error.
71918         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
71919         (_fpioconst_pow10): Change array size to
71920         FPIOCONST_POW10_ARRAY_SIZE.
71921         * stdlib/gen-fpioconst.c: New file.
71922         * stdlib/gen-tst-strtod-round.c: Likewise.
71923         * stdlib/tst-strtod-round-data: Likewise.
71924         * stdlib/tst-strtod-round.c: Likewise.
71925         * stdlib/Makefile (tests): Add tst-strtod-round.
71926
71927         [BZ #14459]
71928         * stdlib/strtod_l.c: Include <stdint.h>.
71929         (NDEBUG): Do not define.
71930         (round_and_return): Change EXPONENT parameter to type intmax_t.
71931         Rearrange calculations to avoid internal overflow possibilities.
71932         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
71933         Rearrange calculations to avoid internal overflow possibilities.
71934         Assert that number fits inside MPNSIZE limbs.
71935         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
71936         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
71937         calculations and add assertions to avoid internal overflow
71938         possibilities.  Add casts to avoid signed/unsigned operations.
71939         * stdlib/tst-strtod-overflow.c: New file.
71940         * stdlib/Makefile (tests): Add tst-strtod-overflow.
71941
71942 2012-08-25  Marek Polacek  <polacek@redhat.com>
71943
71944         * time/time.h: Fix some typos in comments.
71945
71946 2012-08-23  Roland McGrath  <roland@hack.frob.com>
71947
71948         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
71949         * posix/tst-rfc3484-2.c: Likewise.
71950         * posix/tst-rfc3484-3.c: Likewise.
71951
71952 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
71953
71954         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
71955         (EF_ARM_ABI_FLOAT_HARD): Likewise.
71956
71957 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
71958
71959         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
71960         #include of fxstatat64.c.
71961
71962 2012-08-22  Roland McGrath  <roland@hack.frob.com>
71963
71964         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
71965         * shadow/getspent_r.c: Likewise.
71966         * shadow/getspnam.c: Likewise.
71967         * shadow/getspnam_r.c: Likewise.
71968         * gshadow/getsgent.c: Likewise.
71969         * gshadow/getsgent_r.c: Likewise.
71970         * gshadow/getsgnam.c: Likewise.
71971         * gshadow/getsgnam_r.c: Likewise.
71972         * inet/getnetbyad.c: Likewise.
71973         * inet/getnetbyad_r.c: Likewise.
71974         * inet/getnetbynm.c: Likewise.
71975         * inet/getnetbynm_r.c: Likewise.
71976         * inet/getnetent.c: Likewise.
71977         * inet/getnetent_r.c: Likewise.
71978         * inet/getproto.c: Likewise.
71979         * inet/getproto_r.c: Likewise.
71980         * inet/getprtent.c: Likewise.
71981         * inet/getprtent_r.c: Likewise.
71982         * inet/getprtname.c: Likewise.
71983         * inet/getprtname_r.c: Likewise.
71984         * inet/getrpcbyname.c: Likewise.
71985         * inet/getrpcbyname_r.c: Likewise.
71986         * inet/getrpcbynumber.c: Likewise.
71987         * inet/getrpcbynumber_r.c: Likewise.
71988         * inet/getrpcent.c: Likewise.
71989         * inet/getrpcent_r.c: Likewise.
71990         * inet/getaliasent.c: Likewise.
71991         * inet/getaliasent_r.c: Likewise.
71992         * inet/getaliasname.c: Likewise.
71993         * inet/getaliasname_r.c: Likewise.
71994         * nscd/getgrgid_r.c: Likewise.
71995         * nscd/getgrnam_r.c: Likewise.
71996         * nscd/gethstbyad_r.c: Likewise.
71997         * nscd/gethstbynm3_r.c: Likewise.
71998         * nscd/getpwnam_r.c: Likewise.
71999         * nscd/getpwuid_r.c: Likewise.
72000         * nscd/getsrvbynm_r.c: Likewise.
72001         * nscd/getsrvbypt_r.c: Likewise.
72002         * nscd/gai.c: Likewise.
72003
72004         * configure.in (build_nscd): New substituted variable, set
72005         by --disable-build-nscd and defaults to $use_nscd.
72006         * configure: Regenerated.
72007         * config.make.in (build-nscd): New substituted variable.
72008         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
72009         Change conditional to require [$(build-nscd) = yes] as well.
72010         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
72011
72012         [BZ #13696]
72013         * configure.in (use_nscd): New substituted variable, set by
72014         --disable-nscd.  If enabled, define USE_NSCD.
72015         * configure: Regenerated.
72016         * config.h.in: Add USE_NSCD.
72017         * config.make.in (use-nscd): New substituted variable.
72018         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
72019         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
72020         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
72021         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
72022         (CFLAGS-getgrnam_r.c): Likewise.
72023         (CFLAGS-initgroups.c): Likewise.
72024         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
72025         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
72026         Variables removed.
72027         * inet/getnetgrent_r.c
72028         (nscd_setnetgrent): New function, broken out of ...
72029         (setnetgrent): ... here.  Call it.
72030         (innetgr): Conditionalize nscd bits on [USE_NSCD].
72031         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
72032         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
72033         * nscd/Makefile (routines, aux): Move definitions after include of
72034         Makeconfig.  Conditionalize on [$(use-nscd) != no].
72035         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
72036         Conditionalize on [USE_NSCD].
72037         (is_nscd, nscd_init_cb): Likewise.
72038         (nss_load_library): Conditionalize init callback on [USE_NSCD].
72039         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
72040         * nss/nss_db/db-init.c: Likewise.
72041         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
72042         [USE_NSCD].
72043         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
72044         (make_request): Use it.
72045         (cache_valid_p): New function.
72046         (__check_pf): Use it.
72047         * NEWS: Add item for --disable-nscd.
72048
72049 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
72050
72051         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
72052         to support sed >= 4.2.1-20-ga9bf076.
72053         * configure: Regenerated.
72054
72055 2012-08-22  Roland McGrath  <roland@hack.frob.com>
72056
72057         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
72058         Conditionalize whole body on [IREL].
72059
72060 2012-08-22  Jeff Law <law@redhat.com>
72061
72062         [BZ #14505]
72063         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
72064         if the family is PF_UNSPEC.
72065
72066 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
72067
72068         * Makerules (lib-version): Rename from V.
72069         (install-lib-nosubdir): Change V to lib-version.
72070
72071 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
72072
72073         [BZ #14252]
72074         * powerpc32/power6/wcschr.c: New file.
72075         * powerpc32/power6/wcscpy.c: New file.
72076         * powerpc32/power6/wcsrchr.c: New file.
72077         * powerpc64/power6/wcschr.c: New file.
72078         * powerpc64/power6/wcscpy.c: New file.
72079         * powerpc64/power6/wcsrchr.c: New file.
72080
72081 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
72082
72083         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
72084         (two_way_short_needle): Use it.
72085         * string/strstr.c (AVAILABLE1_USES_J): Define.
72086         * string/strcasestr.c: Likewise.
72087
72088         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
72089         array references.
72090         * string/strcasestr.c (TOLOWER): Make side-effect safe.
72091
72092         [BZ #11607]
72093         * NEWS: Add an entry.
72094         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
72095         define their defaults.
72096         (two_way_short_needle): Detect end-of-string on-the-fly.
72097         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
72098         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
72099         * string/bug-strcasestr1.c: New test.
72100         * string/Makefile: Run it.
72101
72102 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
72103
72104         [BZ #11607]
72105         * string/str-two-way.h (two_way_short_needle): Optimize matching of
72106         the first character.
72107
72108 2012-08-21  Roland McGrath  <roland@hack.frob.com>
72109
72110         * csu/elf-init.c (__libc_csu_irel): Function removed.
72111         * csu/libc-start.c (apply_irel): New function.
72112         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
72113
72114 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
72115
72116         * sysdeps/unix/sysv/linux/kernel-features.h
72117         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
72118         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
72119         <kernel-features.h>.
72120         [__NR_fadvise64_64]: Make code unconditional.
72121         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
72122         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
72123         !__NR_fadvise64_64)]: Likewise.
72124         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
72125         !__NR_fadvise64_64))]: Likewise.
72126         [__NR_fadvise64]: Make code unconditional.
72127         [!__NR_fadvise64]: Remove conditional code.
72128         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
72129         <kernel-features.h>.
72130         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
72131         unconditional.
72132         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
72133         conditional code.
72134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
72135         not include <kernel-features.h>.
72136         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
72137         unconditional.
72138         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
72139         conditional code.
72140         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
72141         include <kernel-features.h>.
72142         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
72143         unconditional.
72144         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
72145         conditional code.
72146
72147 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
72148
72149         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
72150         slight instruction rearrangements per scrollpipe analysis.
72151         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
72152
72153 2012-08-20  Roland McGrath  <roland@hack.frob.com>
72154
72155         * manual/syslog.texi (syslog; vsyslog, closelog):
72156         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
72157         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
72158
72159         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
72160         DSOCAPS to match condition on defining it.
72161
72162 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
72163
72164         * sysdeps/unix/sysv/linux/kernel-features.h
72165         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
72166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
72167         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
72168         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
72169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
72170         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
72171         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
72172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
72173         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
72174         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
72175
72176         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
72177         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
72178
72179         * sysdeps/unix/sysv/linux/kernel-features.h
72180         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
72181         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
72182         unconditional.
72183         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72184         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
72185         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
72186         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72187         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
72188         Make code unconditional.
72189         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72190         (__mmap64) [!__NR_mmap2]: Likewise.
72191         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
72192         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
72193         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72194         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
72195         [__NR_mmap2]: Make code unconditional.
72196         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72197         (__mmap64) [!__NR_mmap2]: Likewise.
72198
72199 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72200
72201         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
72202
72203 2012-08-18  Andreas Jaeger  <aj@suse.de>
72204
72205         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
72206
72207 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
72208
72209         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
72210         * include/unistd.h (__have_sock_cloexec): Likewise.
72211         (__have_pipe2): Likewise.
72212         (__have_dup3): Likewise.
72213
72214 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
72215
72216         [BZ #9685]
72217         * include/unistd.h (__have_pipe2): Change define into an extern int.
72218         (__have_dup3): Likewise.
72219         * socket/have_sock_cloexec.c: Include fcntl.h.
72220         (__have_pipe2): New variable.
72221         (__have_dup3): Likewise.
72222
72223 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
72224
72225         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
72226
72227 2012-08-17  Marek Polacek  <polacek@redhat.com>
72228
72229         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
72230         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
72231
72232 2012-08-17  Roland McGrath  <roland@hack.frob.com>
72233
72234         * configure.in: Add AC_SUBST for sysheaders.
72235         * configure: Regenerated.
72236         * config.make.in (sysheaders): New substituted variable.
72237
72238         * sysdeps/unix/mkfifo.c: Moved ...
72239         * sysdeps/posix/mkfifo.c: ... here.
72240         * sysdeps/unix/mkfifoat.c: Moved ...
72241         * sysdeps/posix/mkfifoat.c: ... here.
72242
72243         * sysdeps/unix/utime.c: Moved ...
72244         * sysdeps/posix/utime.c: ... here.
72245
72246         * sysdeps/unix/time.c: Moved ...
72247         * sysdeps/posix/time.c: ... here.
72248         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
72249         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
72250
72251         * sysdeps/unix/nice.c: Moved ...
72252         * sysdeps/posix/nice.c: ... here.
72253
72254         * sysdeps/unix/alarm.c: Moved ...
72255         * sysdeps/posix/alarm.c: ... here.
72256
72257         * intl/Makefile ($(codeset_mo)): Depend on the input file.
72258
72259 2012-08-17  Jeff Law <law@redhat.com>
72260
72261         * intl/Makefile (codeset_mo): New variable.
72262         ($(codeset_mo)): New target.
72263         (tst-codeset.out): Depend on that.  Remove explicit rule.
72264         (tst-gettext3.out, tst-gettext5.out): Likewise.
72265         (LOCPATH-ENV, tst-codeset-ENV): New variables.
72266         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
72267         * intl/tst-codeset.sh: Remove.
72268         * intl/tst-gettext3.sh: Likewise.
72269         * intl/tst-gettext5.sh: Likewise.
72270
72271 2012-08-17  Roland McGrath  <roland@hack.frob.com>
72272
72273         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
72274         * sysdeps/unix/syscalls.list: ... here.
72275
72276         * sysdeps/posix/getaddrinfo.c
72277         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
72278         (gaiconf_init, gaiconf_reload): Use them.
72279         [!_STATBUF_ST_NSEC]
72280         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
72281         Define using time_t rather than struct timespec.
72282
72283         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
72284         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
72285         Macros removed.
72286         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
72287         [!NO_THREADS].
72288         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
72289         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
72290         Likewise.
72291
72292         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
72293         __libc_cleanup_push argument.
72294
72295         * bits/param.h: New file.
72296         * misc/sys/param.h: New file.
72297         * include/sys/param.h: New file.
72298         * misc/Makefile (headers): Add bits/param.h.
72299         * sysdeps/generic/sys/param.h: File removed.
72300         * sysdeps/unix/sysv/linux/bits/param.h: New file.
72301         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
72302         * sysdeps/mach/hurd/bits/param.h: New file.
72303         * sysdeps/mach/hurd/sys/param.h: File removed.
72304
72305         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
72306         last change.
72307
72308         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
72309         [_IO_MTSAFE_IO].
72310         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
72311         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
72312         New macros.
72313
72314         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
72315         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
72316         rather than -D_IO_MTSAFE_IO conditionally.
72317         * stdio-common/Makefile (CPPFLAGS): Likewise.
72318         * wcsmbs/Makefile (CPPFLAGS): Likewise.
72319         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
72320         Use $(libio-mtsafe).
72321         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
72322         of -D_IO_MTSAFE_IO.
72323         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
72324         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
72325         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
72326         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
72327         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
72328         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
72329         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
72330         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
72331         (CFLAGS-fread_u_chk.c): Likewise.
72332         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
72333         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
72334         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
72335         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
72336         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
72337         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
72338         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
72339         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
72340         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
72341
72342         * libio/Makefile: Test [$(libc-reentrant) = yes]
72343         instead of [$(filter %REENTRANT, $(defines)) nonempty].
72344
72345         * Makeconfig
72346         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
72347         * sysdeps/pthread/configure: File removed.
72348         * sysdeps/pthread/Makeconfig: New file.
72349         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
72350         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
72351
72352 2012-08-16  Gary Benson  <gbenson@redhat.com>
72353
72354         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
72355         unmapping the first object in a namespace.
72356
72357 2012-08-16  Roland McGrath  <roland@hack.frob.com>
72358
72359         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
72360         (__internal_setnetgrent): ... this.  Add internal_function to
72361         definition.  Add libc_hidden_def.
72362         (setnetgrent): Update caller.
72363         (internal_endnetgrent): Renamed to ...
72364         (__internal_endnetgrent): ... this.  Add internal_function to
72365         definition.  Add libc_hidden_def.
72366         (endnetgrent): Update caller.
72367         (internal_getnetgrent_r): Renamed to ...
72368         (__internal_getnetgrent_r): ... this.  Add internal_function to
72369         definition.  Add libc_hidden_def.
72370         (__getnetgrent_r): Update caller.
72371         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
72372
72373 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
72374
72375         * stdlib/longlong.h: Update from GCC.
72376
72377 2012-08-16  Roland McGrath  <roland@hack.frob.com>
72378
72379         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
72380         on _QL, which is set by umul_ppmm but never used.
72381         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
72382         variables, which are set by GMP macros but never used.
72383         * stdio-common/_itowa.c (_itowa): Likewise.
72384         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
72385         * stdlib/mod_1.c (mpn_mod_1): Likewise.
72386
72387 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
72388
72389         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
72390         struct La_sh_regs is not constant.
72391         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
72392         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
72393         and struct La_sparc64_regs are not constant.
72394
72395 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
72396
72397         * sysdeps/unix/sysv/linux/kernel-features.h
72398         (__ASSUME_POSIX_TIMERS): Remove.
72399         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
72400         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72401         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
72402         Make code unconditional.
72403         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72404         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
72405         Make code unconditional.
72406         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72407         * sysdeps/unix/sysv/linux/clock_nanosleep.c
72408         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
72409         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72410         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
72411         Make code unconditional.
72412         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72413         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
72414         (__libc_missing_posix_timers): Remove.
72415
72416 2012-08-15  Roland McGrath  <roland@hack.frob.com>
72417
72418         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
72419         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
72420
72421         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
72422
72423         * elf/dl-sym.c: Include <stdlib.h>.
72424
72425         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
72426         constants, which avoids warnings in 32-bit builds.
72427
72428         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
72429         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
72430
72431         * misc/lseek.c: File moved to ...
72432         * io/lseek.c: ... here.
72433
72434         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
72435
72436         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
72437         shifting LEN more than 31 bits at once.
72438
72439 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72440
72441         [BZ #14195]
72442         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
72443         segmentation fault for a case of two empty input strings.
72444         * string/test-strncasecmp.c (check1): Renamed to...
72445         (bz12205): ...this.
72446         (bz14195): Add new testcase for two empty input strings and N > 0.
72447         (test_main): Call new testcase, adapt for renamed function.
72448
72449 2012-08-15  Andreas Jaeger  <aj@suse.de>
72450
72451         [BZ #14090]
72452         * crypt/md5test2.c: New test, based on test supplied by Serge
72453         Belyshev <belyshev@depni.sinp.msu.ru>.
72454         * crypt/Makefile (xtests): Add md5test-giant..
72455         * crypt/Makefile ($(objpfx)md5test-giant): Add.
72456
72457 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72458
72459         [BZ #14090]
72460         * crypt/md5.c (md5_process_block): Don't assume the buffer
72461         length is less than 2**32.
72462         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
72463         length is less than 2**64.
72464
72465 2012-08-15  Roland McGrath  <roland@hack.frob.com>
72466
72467         * string/str-two-way.h: Include <sys/param.h>.
72468         (MAX): Macro removed.
72469
72470         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
72471         Move #define and #undef of memmove to just before and after
72472         including <string.h>.
72473
72474         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
72475         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
72476         and after including <string.h>.  Move declarations of
72477         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
72478         to before #include "string/memmove.c".
72479
72480         * include/dirent.h: Declare __getdirentries.
72481
72482         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
72483         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
72484
72485 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
72486
72487         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
72488         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
72489         * sysdeps/i386/configure: Regenerated.
72490         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
72491         STABS_CURRENT_FILE, and STABS_FUN.
72492         (END): Remove call to STABS_FUN_END.
72493         (STABS_CURRENT_FILE1): Delete.
72494         (STABS_CURRENT_FILE): Likewise.
72495         (STABS_FUN): Likewise.
72496         (STABS_FUN_END): Likewise.
72497         (STABS_FUN2): Likewise.
72498         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
72499         * sysdeps/x86_64/configure: Regenerated.
72500
72501 2012-08-14  Roland McGrath  <roland@hack.frob.com>
72502
72503         * elf/dl-open.c: Include <atomic.h>.
72504         * elf/dl-lookup.c: Likewise.
72505
72506 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
72507
72508         * sysdeps/unix/sysv/linux/kernel-features.h
72509         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
72510         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
72511         unconditionally.
72512         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
72513         unconditionally.
72514         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
72515         condition on __ASSUME_CLONE_THREAD_FLAGS.
72516
72517 2012-08-14  Andreas Jaeger  <aj@suse.de>
72518
72519         * sysdeps/i386/fpu/libm-test-ulps: Update.
72520
72521 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
72522
72523         * include/atomic.h (atomic_exchange_and_add): Split into ...
72524         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
72525         New atomic macros.
72526
72527 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
72528
72529         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
72530
72531 2012-08-13  Jeff Law <law@redhat.com>
72532
72533         * manual/stdio.texi (snprintf): Clarify handling of the trailing
72534         null byte in the output string.
72535
72536 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
72537
72538         * sysdeps/unix/sysv/linux/kernel-features.h
72539         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
72540         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
72541         (__ASSUME_ARG_MAX_STACK_BASED): Define.
72542         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
72543         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
72544         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
72545         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
72546
72547 2012-08-09  Jeff Law <law@redhat.com>
72548
72549         [BZ #13939]
72550         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
72551         When avoid_arena is set, don't retry in the that arena.  Pick the
72552         next one, whatever it might be.
72553         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
72554         (arena_lock): Pass in new parameter to arena_get2.
72555         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
72556         arena_get2.
72557         (__libc_malloc): Unify retrying after main arena failure with
72558         __libc_memalign version.
72559         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
72560
72561 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
72562
72563         [BZ #14166]
72564         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
72565         to __redirect_strstr.
72566         (__strstr_sse42): Use typeof __redirect_strstr.
72567         (__strstr_ia32): Likewise.
72568         (__libc_strstr): New prototype.
72569         (strstr): Renamed to ...
72570         (__libc_strstr): This.
72571         (strstr): New strong alias of __libc_strstr.
72572         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
72573         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
72574         __redirect_time.
72575         Include <time.h>.
72576         (__libc_time): New prototype.
72577         (time_ifunc): Replace time with __libc_time.
72578         (time): New strong alias and hidden definition of __libc_time.
72579         (__GI_time): Remove strong alias.
72580         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
72581         Include <stddef.h>.
72582         (memmove): Redefined to __redirect_memmove.
72583         (__memmove_sse2): Use typeof __redirect_memmove.
72584         (__memmove_ssse3): Likewise.
72585         (__memmove_ssse3_back): Likewise.
72586         (__libc_memmove): New prototype.
72587         (memmove): Renamed to ...
72588         (__libc_memmove): This.
72589         (memmove): New strong alias of __libc_memmove.
72590
72591 2012-08-08  Mark Salter  <msalter@redhat.com>
72592
72593         * elf/elf.h
72594         (R_MN10300_TLS_GD): Define.
72595         (R_MN10300_TLS_LD): Likewise.
72596         (R_MN10300_TLS_LDO): Likewise.
72597         (R_MN10300_TLS_GOTIE): Likewise.
72598         (R_MN10300_TLS_IE): Likewise.
72599         (R_MN10300_TLS_LE): Likewise.
72600         (R_MN10300_TLS_DTPMOD): Likewise.
72601         (R_MN10300_TLS_DTPOFF): Likewise.
72602         (R_MN10300_TLS_TPOFF): Likewise.
72603         (R_MN10300_SYM_DIFF): Likewise.
72604         (R_MN10300_ALIGN): Likewise.
72605         (R_MN10300_NUM): Update.
72606
72607 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
72608
72609         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
72610         Remove.
72611
72612 2012-08-08  Roland McGrath  <roland@hack.frob.com>
72613
72614         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
72615
72616         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
72617         sysdeps/unix -> sysdeps/posix move.
72618         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
72619
72620 2012-08-07      Allan McRae     <allan@archlinux.org>
72621
72622         [BZ #14303]
72623         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
72624         (SUNOS_CPP): Likewise.
72625         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
72626         not found.
72627         (open_input): Call CPP using execvp.
72628
72629 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
72630
72631         * sysdeps/unix/sysv/linux/kernel-features.h
72632         (__ASSUME_PROT_GROWSUPDOWN): Remove.
72633         (__ASSUME_NO_CLONE_DETACHED): Likewise.
72634         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
72635         (__ASSUME_WAITID_SYSCALL): Likewise.
72636         * sysdeps/unix/sysv/linux/dl-execstack.c
72637         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
72638         code unconditional.
72639         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
72640         conditional code.
72641         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
72642         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
72643         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
72644         code.
72645         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
72646         unconditional.
72647         [__ASSUME_WAITID_SYSCALL]: Likewise.
72648         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
72649
72650 2012-08-07  Roland McGrath  <roland@hack.frob.com>
72651
72652         * sysdeps/unix/closedir.c: Renamed to ...
72653         * sysdeps/posix/closedir.c: ... here.
72654         * sysdeps/unix/dirfd.c: Renamed to ...
72655         * sysdeps/posix/dirfd.c: ... here.
72656         * sysdeps/unix/dirstream.h: Renamed to ...
72657         * sysdeps/posix/dirstream.h: ... here.
72658         * sysdeps/unix/fdopendir.c: Renamed to ...
72659         * sysdeps/posix/fdopendir.c: ... here.
72660         * sysdeps/unix/opendir.c: Renamed to ...
72661         * sysdeps/posix/opendir.c: ... here.
72662         * sysdeps/unix/readdir.c: Renamed to ...
72663         * sysdeps/posix/readdir.c: ... here.
72664         * sysdeps/unix/readdir_r.c: Renamed to ...
72665         * sysdeps/posix/readdir_r.c: ... here.
72666         * sysdeps/unix/rewinddir.c: Renamed to ...
72667         * sysdeps/posix/rewinddir.c: ... here.
72668         * sysdeps/unix/seekdir.c: Renamed to ...
72669         * sysdeps/posix/seekdir.c: ... here.
72670         * sysdeps/unix/telldir.c: Renamed to ...
72671         * sysdeps/posix/telldir.c: ... here.
72672         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
72673         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
72674         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
72675         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
72676
72677         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
72678         * bits/fcntl.h: ... here.
72679
72680         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
72681         not 0.
72682         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
72683         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
72684         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
72685         (struct flock): Move l_start, l_len to the beginning.
72686         Use __pid_t for l_pid.
72687         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
72688         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
72689         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
72690         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
72691         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
72692         [__USE_LARGEFILE64] (struct flock64): New type.
72693         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
72694
72695         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
72696         * bits/dirent.h: ... here.
72697
72698         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
72699         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
72700
72701 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
72702
72703         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
72704         Change from 2.6.0 to 2.6.16.
72705         * sysdeps/unix/sysv/linux/configure: Regenerated.
72706         * sysdeps/unix/sysv/linux/kernel-features.h
72707         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
72708         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
72709         version.
72710         (__ASSUME_UTIMES): Likewise.
72711         (__ASSUME_CLONE_STOPPED): Remove.
72712         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
72713         architectures, not kernel version.
72714         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
72715         (__ASSUME_NO_CLONE_DETACHED): Likewise.
72716         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
72717         (__ASSUME_WAITID_SYSCALL): Likewise.
72718         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
72719         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
72720         * README: State 2.6.16 as minimum Linux kernel version.  Do not
72721         refer to older versions.
72722
72723 2012-08-06  Roland McGrath  <roland@hack.frob.com>
72724
72725         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
72726         Define alphasort64 as an alias.
72727         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
72728         Define versionsort64 as an alias.
72729         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
72730         Define scandir64 as an alias.
72731         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
72732         Define scandirat64 as an alias.
72733         * dirent/alphasort64.c (alphasort64):
72734         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
72735         * dirent/versionsort64.c: Likewise.
72736         * dirent/scandir64.c: Likewise.
72737         * dirent/scandirat64.c: Likewise.
72738         * sysdeps/wordsize-64/alphasort.c: File removed.
72739         * sysdeps/wordsize-64/alphasort64.c: File removed.
72740         * sysdeps/wordsize-64/scandir.c: File removed.
72741         * sysdeps/wordsize-64/scandir64.c: File removed.
72742         * sysdeps/wordsize-64/scandirat.c: File removed.
72743         * sysdeps/wordsize-64/scandirat64.c: File removed.
72744         * sysdeps/wordsize-64/versionsort.c: File removed.
72745         * sysdeps/wordsize-64/versionsort64.c: File removed.
72746         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
72747         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
72748         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
72749         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
72750         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
72751         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
72752         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
72753         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
72754
72755         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
72756         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
72757         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
72758         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
72759         [defined __arch64__ || defined __sparcv9]
72760         (__INO_T_MATCHES_INO64_T): New macro.
72761         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
72762         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
72763         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
72764         * sysdeps/unix/sysv/linux/bits/dirent.h
72765         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
72766         (_DIRENT_MATCHES_DIRENT64): New macro.
72767
72768         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
72769         Define lockf64 as an alias.
72770         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
72771         Define fseeko64 as an alias.
72772         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
72773         Define ftello64 as an alias.
72774         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
72775         Define _IO_fgetpos64 and fgetpos64 as aliases.
72776         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
72777         Define _IO_fsetpos64 and fsetpos64 as aliases.
72778         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
72779         Conditionalize body on this.
72780         * libio/fseeko64.c: Likewise.
72781         * libio/ftello64.c: Likewise.
72782         * libio/iofgetpos64.c: Likewise.
72783         * libio/iofsetpos64.c: Likewise.
72784         * sysdeps/wordsize-64/lockf.c: File removed.
72785         * sysdeps/wordsize-64/lockf64.c: File removed.
72786         * sysdeps/wordsize-64/fseeko.c: File removed.
72787         * sysdeps/wordsize-64/fseeko64.c: File removed.
72788         * sysdeps/wordsize-64/ftello.c: File removed.
72789         * sysdeps/wordsize-64/ftello64.c: File removed.
72790         * sysdeps/wordsize-64/iofgetpos.c: File removed.
72791         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
72792         * sysdeps/wordsize-64/iofsetpos.c: File removed.
72793         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
72794         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
72795         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
72796         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
72797         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
72798         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
72799         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
72800         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
72801         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
72802         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
72803         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
72804
72805         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
72806         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
72807         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
72808         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
72809         [defined __arch64__ || defined __sparcv9]
72810         (__OFF_T_MATCHES_OFF64_T): New macro.
72811         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
72812         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
72813         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
72814         (__OFF_T_MATCHES_OFF64_T): New macro.
72815
72816 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
72817
72818         * stdlib/secure-getenv.c (__secure_getenv): Replace
72819         GLIBC_2_16 with GLIBC_2_17.
72820
72821 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
72822
72823         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
72824         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
72825
72826 2012-08-03  David S. Miller  <davem@davemloft.net>
72827
72828         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72829
72830 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
72831
72832         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
72833         Remove.
72834         (__ASSUME_CORRECT_SI_PID): Likewise.
72835         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
72836         (__ASSUME_TMPFS_NAME): Likewise.
72837         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
72838         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
72839         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
72840         (HAVE_AUX_SECURE): Make definition unconditional.
72841         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
72842         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
72843
72844 2012-08-03  Roland McGrath  <roland@hack.frob.com>
72845
72846         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
72847         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
72848         * sysdeps/mach/hurd/eloop-threshold.h: New file.
72849         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
72850         __eloop_threshold instead of SYMLOOP_MAX.
72851
72852         * sysdeps/generic/eloop-threshold.h: New file.
72853         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
72854         of MAXSYMLINKS.
72855         * elf/chroot_canon.c (chroot_canon): Likewise.
72856
72857 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
72858
72859         [BZ #13717]
72860         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
72861         Change to 2.6.0 everywhere.
72862         * sysdeps/unix/sysv/linux/configure: Regenerated.
72863         * sysdeps/unix/sysv/linux/kernel-features.h
72864         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
72865         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
72866         kernel versions.
72867         (__ASSUME_POSIX_TIMERS): Define unconditionally.
72868         (__ASSUME_FUTEX_REQUEUE): Remove.
72869         (__ASSUME_STATFS64): Define unconditionally.
72870         (__ASSUME_AT_SECURE): Likewise.
72871         (__ASSUME_CORRECT_SI_PID): Likewise.
72872         (__ASSUME_TGKILL): Define without depending on kernel version for
72873         i386.
72874         (__ASSUME_UTIMES): Likewise.
72875         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
72876         kernel version.
72877         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
72878         (__ASSUME_TMPFS_NAME): Likewise.
72879         * README: Update reference to Linux kernel versions.
72880
72881 2012-08-02  Marek Polacek  <polacek@redhat.com>
72882
72883         [BZ #14150]
72884         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
72885         libc_cv_asm_type_prefix with %.
72886         * configure: Regenerated.
72887         * include/libc-symbols.h: Remove comment about
72888         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
72889         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
72890         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
72891         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
72892         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
72893         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
72894         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
72895         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
72896         * elf/tst-unique2mod1.c: Likewise.
72897         * elf/tst-unique1mod2.c: Likewise.
72898         * elf/tst-unique1mod1.c: Likewise.
72899         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
72900         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
72901         Replace ASM_TYPE_DIRECTIVE with .type.
72902         * sysdeps/s390/s390-64/sysdep.h: Likewise.
72903         * sysdeps/i386/sysdep.h: Likewise.
72904         * sysdeps/x86_64/sysdep.h: Likewise.
72905         * sysdeps/sh/sysdep.h: Likewise.
72906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
72907         Do not define ASM_TYPE_DIRECTIVE.
72908         * sysdeps/powerpc/sysdep.h: Likewise.
72909         * sysdeps/powerpc/powerpc32/sysdep.h:
72910         Replace ASM_TYPE_DIRECTIVE with .type.
72911         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
72912         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
72913         * sysdeps/i386/fpu/e_powf.S: Likewise.
72914         * sysdeps/i386/fpu/e_expl.S: Likewise.
72915         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
72916         * sysdeps/i386/fpu/e_acosh.S: Likewise.
72917         * sysdeps/i386/fpu/e_pow.S: Likewise.
72918         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
72919         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
72920         * sysdeps/i386/fpu/s_expm1.S: Likewise.
72921         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
72922         * sysdeps/i386/fpu/e_log2.S: Likewise.
72923         * sysdeps/i386/fpu/e_log2l.S: Likewise.
72924         * sysdeps/i386/fpu/e_scalb.S: Likewise.
72925         * sysdeps/i386/fpu/e_powl.S: Likewise.
72926         * sysdeps/i386/fpu/e_log10f.S: Likewise.
72927         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
72928         * sysdeps/i386/fpu/e_logl.S: Likewise.
72929         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
72930         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
72931         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
72932         * sysdeps/i386/fpu/e_log2f.S: Likewise.
72933         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
72934         * sysdeps/i386/fpu/e_log.S: Likewise.
72935         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
72936         * sysdeps/i386/fpu/e_logf.S: Likewise.
72937         * sysdeps/i386/fpu/e_log10l.S: Likewise.
72938         * sysdeps/i386/fpu/e_atanh.S: Likewise.
72939         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
72940         * sysdeps/i386/fpu/e_log10.S: Likewise.
72941         * sysdeps/i386/fpu/s_frexp.S: Likewise.
72942         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
72943         * sysdeps/i386/fpu/s_asinh.S: Likewise.
72944         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
72945         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
72946         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
72947         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
72948         * sysdeps/i386/i686/strtok.S: Likewise.
72949         * sysdeps/i386/i386-mcount.S: Likewise.
72950         * sysdeps/i386/strtok.S: Likewise.
72951         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
72952         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
72953         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
72954         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
72955         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
72956         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
72957         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
72958         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
72959         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
72960         * sysdeps/x86_64/_mcount.S: Likewise.
72961         * sysdeps/x86_64/strtok.S: Likewise.
72962         * sysdeps/sh/_mcount.S: Likewise.
72963
72964 2012-08-01  Roland McGrath  <roland@hack.frob.com>
72965
72966         * libio/iofopen.c: Include <fcntl.h>.
72967         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
72968         (_IO_fopen64, fopen64): Define as aliases.
72969         * libio/iofopen64.c: Include <fcntl.h>.
72970         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
72971         Conditionalize body on this.
72972         * sysdeps/wordsize-64/iofopen.c: File removed.
72973         * sysdeps/wordsize-64/iofopen64.c: File removed.
72974
72975 2012-08-01  Marek Polacek  <polacek@redhat.com>
72976
72977         * libc/Makeconfig: Use elf in place of binfmt-subdir.
72978         Use dlfcn directly instead of a variable.
72979         (binfmt-subdir): Do not define.
72980         (dlfcn): Likewise.
72981
72982 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
72983
72984         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
72985         Remove all definitions.
72986         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
72987         <kernel-features.h>.
72988         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
72989         (miss_F_GETOWN_EX): Remove all definitions.
72990         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
72991         macro definition.
72992         [!__ASSUME_FCNTL64]: Remove conditional code.
72993         [__ASSUME_FCNTL64]: Make code unconditional.
72994         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
72995         <kernel-features.h>.
72996         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
72997         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
72998         (lockf64) [__NR_fcntl64]: Make code unconditional.
72999         (lockf64) [__ASSUME_FCNTL64]: Likewise.
73000
73001         * sysdeps/unix/sysv/linux/kernel-features.h
73002         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
73003         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
73004         Make code unconditional.
73005         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
73006         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
73007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
73008         [__NR_vfork]: Make code unconditional.
73009         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
73010         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
73011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
73012         [__NR_vfork]: Make code unconditional.
73013         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
73014         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
73015
73016 2012-08-01  Roland McGrath  <roland@hack.frob.com>
73017
73018         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
73019         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
73020
73021         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
73022         Define mkstemp64 as an alias.
73023         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
73024         Define mkstemps64 as an alias.
73025         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
73026         Define mkostemp64 as an alias.
73027         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
73028         Define mkostemps64 as an alias.
73029         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
73030         Conditionalize body on this.
73031         * misc/mkostemp64.c: Likewise.
73032         * misc/mkostemps64.c: Likewise.
73033         * misc/mkstemps64.c: Likewise.
73034         * sysdeps/wordsize-64/mkstemp64.c: File removed.
73035         * sysdeps/wordsize-64/mkostemp64.c: File removed.
73036         * sysdeps/wordsize-64/mkostemp.c: File removed.
73037         * sysdeps/wordsize-64/mkstemp.c: File removed.
73038         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
73039         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
73040         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
73041         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
73042
73043         [BZ #14138]
73044         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
73045         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
73046         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
73047         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
73048
73049         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
73050         compat_symbol macros from <shlib-compat.h> rather than the underlying
73051         default_symbol_version and symbol_version macros, so that DEFAULT
73052         lines in shlib-versions are respected.
73053         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
73054
73055 2012-08-01  Florian Weimer  <fweimer@redhat.com>
73056
73057         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
73058         Declare with warn_unused_result.
73059         (setgid, setregid, setegid, setresgid): Likewise.
73060         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
73061         Likewise.
73062         * WUR-REPORT: Remove set*id functions.
73063
73064 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
73065
73066         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
73067
73068 2012-07-31  Roland McGrath  <roland@hack.frob.com>
73069
73070         [BZ #10191]
73071         * include/sys/socket.h (__libc_accept, __libc_accept4):
73072         Add attribute_hidden.
73073         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
73074
73075         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
73076         use of PTR_MANGLE.
73077         * inet/getnetgrent_r.c (setup): Likewise.
73078
73079         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
73080
73081 2012-07-31  David S. Miller  <davem@davemloft.net>
73082
73083         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73084
73085 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
73086
73087         [BZ #13629]
73088         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
73089         value between 1.0 and 2.0 and smaller part has absolute value less
73090         than 1.0.
73091         * math/s_clog10.c (__clog10): Likewise.
73092         * math/s_clog10f.c (__clog10f): Likewise.
73093         * math/s_clog10l.c (__clog10l): Likewise.
73094         * math/s_clogf.c (__clogf): Likewise.
73095         * math/s_clogl.c (__clogl): Likewise.
73096         * math/libm-test.inc (clog_test): Add more tests.
73097         (clog10_test): Likewise.
73098         * sysdeps/i386/fpu/libm-test-ulps: Update.
73099         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73100
73101 2012-07-31  Florian Weimer  <fweimer@redhat.com>
73102
73103         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
73104         Exit with zero in case no suitable GID is found, and write a
73105         message to standard error.
73106
73107 2012-07-30  Roland McGrath  <roland@hack.frob.com>
73108
73109         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
73110         rather than to 1.
73111         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
73112         (MAXPATHLEN): Removed.
73113         (NOGROUP, NODEV): New macros.
73114         (setbit, clrbit, isset, isclr): New macros.
73115         (howmany, roundup, powerof2): New macros.
73116         (DEV_BSIZE): New macro.
73117
73118         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
73119         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
73120
73121         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
73122         definition on [!__NO_LONG_DOUBLE_MATH].
73123
73124         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
73125         PTR_MANGLE and PTR_DEMANGLE.
73126
73127         * socket/accept4.c (accept4): Rename to __libc_accept4.
73128         Define accept4 as a weak alias.
73129
73130         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
73131         on [_DIRENT_HAVE_D_TYPE].
73132         * io/ftw.c (ftw_dir): Likewise.
73133
73134         * io/xmknod.c (__xmknod): Don't check PATH for being null.
73135
73136         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
73137
73138         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
73139         Use the BSD numbers rather than the arbitrary ones we had.
73140         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
73141         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
73142         (SIGXCPU, SIGXFSZ): New macros.
73143         (_NSIG): Now 32.
73144
73145         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
73146         initializer on [_LIBC_REENTRANT].
73147
73148         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
73149         definitions inside [_POSIX_MAPPED_FILES].
73150
73151         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
73152
73153         * dirent/opendir.c: Include <fcntl.h>.
73154
73155         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
73156         (__libc_getspecific): Likewise.
73157         (__libc_key_create): Likewise.
73158
73159         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
73160         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
73161         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
73162         (tmpfile64): Define as alias.
73163         * sysdeps/wordsize-64/tmpfile.c: File removed.
73164         * sysdeps/wordsize-64/tmpfile64.c: File removed.
73165         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
73166         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
73167
73168         * stdio-common/vfscanf.c: Include <stdbool.h>.
73169         * nss/makedb.c: Likewise.
73170         * stdio-common/_i18n_number.h: Likewise.
73171         * argp/argp-help.c: Likewise.
73172         * posix/wordexp.c: Likewise.
73173         * sysdeps/posix/spawni.c: Likewise.
73174         * nss/nss_files/files-initgroups.c: Likewise.
73175         * stdio-common/reg-modifier.c: Include <stdlib.h>.
73176         * nss/nss_files/files-initgroups.c: Likewise.
73177         * nss/nss_db/db-netgrp.c: Likewise.
73178         * nss/nss_db/db-initgroups.c: Likewise.
73179         * io/fchmodat.c: Include <sys/stat.h>.
73180
73181         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
73182         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
73183
73184         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
73185         [HAVE_MMAP].
73186
73187         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
73188         Add multiple inclusion protection.
73189
73190 2012-07-27  David S. Miller  <davem@davemloft.net>
73191
73192         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73193
73194 2012-07-27  Gary Benson  <gbenson@redhat.com>
73195
73196         [BZ #14298]
73197         * elf/rtld.c: Include <stap-probe.h>.
73198         (dl_main): Added static probes "init_start" and "init_complete".
73199         * elf/dl-load.c: Include <stap-probe.h>.
73200         (lose): Take new parameter "nsid".
73201         Added static probe "map_failed".
73202         (_dl_map_object_from_fd): Pass namespace id to lose.
73203         Added static probe "map_start".
73204         (open_verify): Pass namespace id to lose.
73205         * elf/dl-open.c: Include <stap-probe.h>.
73206         (dl_open_worker) Added static probes "map_complete", "reloc_start"
73207         and "reloc_complete".
73208         * elf/dl-close.c: Include <stap-probe.h>.
73209         (_dl_close_worker): Added static probes "unmap_start" and
73210         "unmap_complete".
73211         * elf/rtld-debugger-interface.txt: New file documenting the above.
73212
73213 2012-07-26  Roland McGrath  <roland@hack.frob.com>
73214
73215         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
73216         rather than a string variable.
73217         * sunrpc/rpc_main.c (h_output): Likewise.
73218         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
73219
73220 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
73221
73222         * inet/check_native.c: New file.
73223
73224 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
73225
73226         [BZ #13629]
73227         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
73228         if larger part has absolute value 1.0.
73229         * math/s_clog10.c (__clog10): Likewise.
73230         * math/s_clog10f.c (__clog10f): Likewise.
73231         * math/s_clog10l.c (__clog10l): Likewise.
73232         * math/s_clogf.c (__clogf): Likewise.
73233         * math/s_clogl.c (__clogl): Likewise.
73234         * math/libm-test.inc (clog_test): Add more tests.
73235         (clog10_test): Likewise.
73236         * sysdeps/i386/fpu/libm-test-ulps: Update.
73237         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73238
73239         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
73240         (pltexit): Likewise.
73241         (La_regs): Likewise.
73242         (La_retval): Likewise.
73243         (int_retval): Likewise.
73244         Update #error for removed macros to refer only to definitions in
73245         tst-audit.h.
73246         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
73247         macro.
73248         (pltexit): Likewise.
73249         (La_regs): Likewise.
73250         (La_retval): Likewise.
73251         (int_retval): Likewise.
73252         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
73253         macro.
73254         (pltexit): Likewise.
73255         (La_regs): Likewise.
73256         (La_retval): Likewise.
73257         (int_retval): Likewise.
73258         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
73259         macro.
73260         (pltexit): Likewise.
73261         (La_regs): Likewise.
73262         (La_retval): Likewise.
73263         (int_retval): Likewise.
73264         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
73265         macro.
73266         (pltexit): Likewise.
73267         (La_regs): Likewise.
73268         (La_retval): Likewise.
73269         (int_retval): Likewise.
73270         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
73271         macro.
73272         (pltexit): Likewise.
73273         (La_regs): Likewise.
73274         (La_retval): Likewise.
73275         (int_retval): Likewise.
73276         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
73277         macro.
73278         (pltexit): Likewise.
73279         (La_regs): Likewise.
73280         (La_retval): Likewise.
73281         (int_retval): Likewise.
73282         * sysdeps/generic/tst-audit.h: Update comment to refer only to
73283         macro definitions in tst-audit.h.
73284         * sysdeps/i386/tst-audit.h: New file.
73285         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
73286         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
73287         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
73288         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
73289         * sysdeps/sh/tst-audit.h: Likewise.
73290         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
73291         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
73292         * sysdeps/x86_64/tst-audit.h: Likewise.
73293
73294 2012-07-26  Andreas Jaeger  <aj@suse.de>
73295
73296         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
73297         ptrace.
73298
73299         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
73300         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
73301         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
73302         PTRACE_O_MASK.
73303         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
73304         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
73305         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
73306
73307         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
73308         value.
73309
73310         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
73311         _sigsys.
73312         (si_call_addr, si_syscall, si_arch): Define new macro.
73313         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
73314         _sigsys.
73315         (si_call_addr, si_syscall, si_arch): Define new marcro.
73316         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
73317         _sigsys.
73318         (si_call_addr, si_syscall, si_arch): Define new macro.
73319         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
73320         _sigsys.
73321         (si_call_addr, si_syscall, si_arch): Define new macro.
73322
73323 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
73324
73325         [BZ #13717]
73326         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
73327         Change to 2.4.21 where previously 2.4.1.
73328         * sysdeps/unix/sysv/linux/configure: Regenerated.
73329         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
73330         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
73331         Linux kernel version.
73332         (__ASSUME_STD_AUXV): Remove.
73333         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
73334         kernel version.
73335         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
73336         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
73337         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
73338         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
73339         (__ASSUME_NETLINK_SUPPORT): Likewise.
73340         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
73341         (__no_netlink_support): Remove conditional definition.
73342         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
73343         Remove.
73344         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
73345         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
73346         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
73347         (if_nameindex_ioctl): Remove.
73348         (if_nameindex_netlink): Do not handle __no_netlink_support.
73349         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
73350         code.
73351         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
73352         Remove conditional code.
73353         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
73354         code.
73355         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
73356         unconditional.
73357         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
73358         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
73359         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
73360         Remove.
73361         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
73362         [!__ASSUME_STD_AUXV]: Remove conditional code.
73363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
73364         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
73365         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
73366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
73367         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
73368         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
73369         code.
73370         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
73371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
73372         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
73373         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
73374         conditional code.
73375         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
73376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
73377         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
73378         code.
73379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
73380         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
73381         conditional code.
73382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
73383         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
73384         code unconditional.
73385         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73386         conditional code.
73387         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73388         unconditional.
73389         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73390         conditional code.
73391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
73392         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73393         unconditional.
73394         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73395         conditional code.
73396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
73397         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
73398         code unconditional.
73399         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73400         conditional code.
73401         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73402         unconditional.
73403         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73404         conditional code.
73405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
73406         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
73407         code unconditional.
73408         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73409         conditional code.
73410         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73411         unconditional.
73412         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73413         conditional code.
73414
73415 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
73416
73417         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
73418         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
73419         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
73420         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
73421         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
73422         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
73423         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
73424         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
73425         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
73426         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
73427         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
73428         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
73429         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
73430         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
73431         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
73432         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
73433         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
73434         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
73435         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
73436         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
73437         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
73438         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
73439         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
73440
73441 2012-07-25  Florian Weimer  <fweimer@redhat.com>
73442
73443         * Versions.def: Add GLIBC_2.17.
73444         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
73445         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
73446         Introduce __libc_secure_getenv.
73447         * stdlib/Versions (2.17): Add secure_getenv
73448         (GLIBC_PRIVATE): Add __libc_secure_getenv.
73449         * stdlib/secure-getenv.c: Rename __secure_getenv to
73450         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
73451         symbol __secure_getenv for GLIBC_2.0.
73452         * stdlib/tst-secure-getenv.c: New.
73453         * stdlib/Makefile (tests): Add testcase.
73454         * manual/startup.texi (Environment Access): Document
73455         secure_getenv.
73456         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
73457         __libc_secure_getenv.
73458         * inet/ruserpass.c (ruserpass): Likewise.
73459         * malloc/mtrace.c (mtrace): Likewise.
73460         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
73461         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
73462         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
73463         * sysdeps/posix/tempname.c: Likewise.  Evaluate
73464         HAVE_SECURE_GETENV.
73465         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
73466         __secure_getenv to __libc_secure_getenv.
73467         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
73468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
73469         Likewise.
73470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
73471         Likewise.
73472         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
73473         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
73474         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
73475         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
73476         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
73477         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
73478         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
73479
73480 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
73481
73482         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
73483         (struct La_i86_retval): Likewise.
73484         (struct La_x86_64_regs): Likewise.
73485         (struct La_x86_64_retval): Likewise.
73486         (struct La_x32_regs): Likewise.
73487         (struct La_x32_retval): Likewise.
73488         (struct La_ppc32_regs): Likewise.
73489         (struct La_ppc32_retval): Likewise.
73490         (struct La_ppc64_regs): Likewise.
73491         (struct La_ppc64_retval): Likewise.
73492         (struct La_sh_regs): Likewise.
73493         (struct La_sh_retval): Likewise.
73494         (struct La_s390_32_regs): Likewise.
73495         (struct La_s390_32_retval): Likewise.
73496         (struct La_s390_64_regs): Likewise.
73497         (struct La_s390_64_retval): Likewise.
73498         (struct La_sparc32_regs): Likewise.
73499         (struct La_sparc32_retval): Likewise.
73500         (struct La_sparc64_regs): Likewise.
73501         (struct La_sparc64_retval): Likewise.
73502         (struct audit_ifaces): Remove architecture-specific pltenter and
73503         pltexit members.
73504         * sysdeps/i386/ldsodefs.h: New file.
73505         * sysdeps/powerpc/ldsodefs.h: Likewise.
73506         * sysdeps/s390/ldsodefs.h: Likewise.
73507         * sysdeps/sh/ldsodefs.h: Likewise.
73508         * sysdeps/sparc/ldsodefs.h: Likewise.
73509         * sysdeps/x86_64/ldsodefs.h: Likewise.
73510
73511 2012-07-25  Marek Polacek  <polacek@redhat.com>
73512
73513         [BZ #6808]
73514         * math/libm-test.inc (yn_test): Add another test.
73515         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
73516         to ERANGE when the result is +-Inf.
73517         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
73518         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
73519         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
73520         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
73521
73522 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
73523
73524         * conform/data/time.h-data (NULL): Use macro-constant.  Require
73525         equal to 0.
73526         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
73527         clock_t.
73528         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
73529
73530 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
73531
73532         * configure.in <sysdeps resolving>: Correct printing
73533         Implies_before.
73534         * configure: Regenerate.
73535
73536 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
73537
73538         * math/w_ilogb.c: Include <limits.h>.
73539         * math/w_ilogbl.c: Likewise.
73540
73541 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
73542
73543         * manual/lang.texi (__va_copy): Document primarily as ISO C99
73544         va_copy.  Document allowing for unavailable va_copy only as
73545         pre-C99 compatibility.
73546         * manual/string.texi (Copying and Concatenation): Use va_copy
73547         instead of __va_copy in concat example.
73548
73549 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
73550
73551         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
73552         (__sendto): Use create_address_port.  Initialize APORT and deallocate
73553         it if not null.
73554
73555         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
73556         with O_NOLINK passed to __file_name_lookup.
73557
73558         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
73559         with O_NOLINK passed to __file_name_lookup.
73560
73561         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
73562         negative N or less than NGIDS.
73563
73564         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
73565         type to string_t.  Set ERANGE as errno and return it if NAME is not big
73566         enough.  Use memcpy instead of strncpy.
73567
73568 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
73569
73570         * elf/Makefile (check-data): Remove.
73571         (localplt.data): New vpath directive.
73572         ($(objpfx)check-localplt.out): Use localplt.data from vpath
73573         instead of $(check-data).
73574         * scripts/data/localplt-generic.data: Move to ...
73575         * sysdeps/generic/localplt.data: ... here.
73576         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
73577         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
73578         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
73579         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
73580         ... here.
73581         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
73582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
73583         ... here.
73584         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
73585         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
73586         ... here.
73587         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
73588         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
73589         ... here.
73590         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
73591         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
73592         ... here.
73593         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
73594         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
73595         ... here.
73596
73597 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73598
73599         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
73600         PPC32 and PPC64 files.
73601         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
73602         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
73603
73604 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73605
73606         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
73607         __makecontext_ret to ...
73608         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
73609         ... here and call exit if uc_link is NULL.  New file.
73610         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
73611         __makecontext_ret.S.
73612         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
73613         __makecontext_ret to ...
73614         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
73615         ... here and call exit if uc_link is NULL.  New file.
73616         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
73617         __makecontext_ret.S.
73618
73619 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73620
73621         * elf/elf.h (R_390_IRELATIVE): New definition.
73622         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
73623         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
73624         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
73625         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
73626         (elf_machine_lazy_rel): Likewise.
73627         * sysdeps/s390/dl-irel.h: New file.
73628         * sysdeps/s390/s390-64/memcpy.S: New asm code.
73629         * sysdeps/s390/s390-64/memset.S: New asm code.
73630         * sysdeps/s390/s390-64/memcmp.S: New asm code.
73631         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
73632         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
73633         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
73634         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
73635         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
73636         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
73637         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
73638         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
73639         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
73640         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
73641         * sysdeps/s390/s390-32/memcpy.S: New asm code.
73642         * sysdeps/s390/s390-32/memset.S: New asm code.
73643         * sysdeps/s390/s390-32/memcmp.S: New asm code.
73644
73645 2012-07-17  Marek Polacek  <polacek@redhat.com>
73646
73647         [BZ #14349]
73648         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
73649         * sysdeps/s390/s390-64/configure.in: Likewise.
73650         * sysdeps/sparc/configure.in: Likewise.
73651         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
73652         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
73653         * sysdeps/i386/configure.in: Likewise.
73654         * sysdeps/x86_64/configure.in: Likewise.
73655         * sysdeps/sh/configure.in: Likewise.
73656         * sysdeps/s390/s390-32/configure: Regenerated.
73657         * sysdeps/s390/s390-64/configure: Likewise.
73658         * sysdeps/x86_64/configure: Likewise.
73659         * sysdeps/sh/configure: Likewise.
73660         * sysdeps/powerpc/powerpc64/configure: Likewise.
73661         * sysdeps/powerpc/powerpc32/configure: Likewise.
73662         * sysdeps/sparc/configure: Likewise.
73663         * sysdeps/i386/configure: Likewise.
73664
73665         * elf/dl-open.c: Comment fixes.
73666
73667 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
73668
73669         * Makefile [CXX] (check-data): Remove.
73670         [CXX] (c++-types.data): New vpath directive.
73671         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
73672         vpath.  Do not allow for C++ type data being missing.
73673         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
73674         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
73675         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
73676         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
73677         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
73678         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
73679         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
73680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
73681         ... here.
73682         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
73683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
73684         ... here.
73685         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
73686         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
73687         ... here.
73688         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
73689         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
73690         ... here.
73691         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
73692         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
73693         ... here.
73694         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
73695         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
73696         ... here.
73697         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
73698         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
73699         ... here.
73700         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
73701         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
73702
73703         * elf/tls-macros.h (TLS_LE): Move architecture-specific
73704         definitions to architecture-specific files.
73705         (TLS_IE): Likewise.
73706         (TLS_LD): Likewise.
73707         (TLS_GD): Likewise.
73708         * sysdeps/i386/tls-macros.h: New file.
73709         * sysdeps/powerpc/tls-macros.h: Likewise.
73710         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
73711         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
73712         * sysdeps/sh/tls-macros.h: Likewise.
73713         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
73714         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
73715         * sysdeps/x86_64/tls-macros.h: Likewise.
73716
73717 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
73718
73719         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
73720         zero value for regular exit case.
73721
73722         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
73723         (__start_context): Preserve zero value for regular exit case.
73724
73725 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
73726             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73727
73728         * manual/setjmp.texi (setcontext): Clarify normal process
73729         termination when uc_link is the null pointer.
73730         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
73731         exit call.
73732
73733 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
73734
73735         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
73736         preprocessor.  Test for each exception mask separately.
73737
73738 2012-07-16  Andreas Jaeger  <aj@suse.de>
73739
73740         * po/ru.po: Update from translation team.
73741
73742 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
73743
73744         * conform/data/string.h-data (NULL): Use macro-constant.  Require
73745         equal to 0.
73746         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
73747         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
73748         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
73749         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
73750         [ISO || ISO99 || ISO11] (*_t): Do not allow.
73751
73752 2012-07-13  Andreas Jaeger  <aj@suse.de>
73753
73754         * po/fr.po: Update from translation team.
73755
73756 2012-07-12  Marek Polacek  <polacek@redhat.com>
73757
73758         [BZ #14173]
73759         * math/libm-test.inc (yn_test): Add test for BZ #14173.
73760         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
73761         loop condition.
73762
73763 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
73764
73765         [BZ #13717]
73766         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
73767         Change to 2.4.1 where previously 2.4.0.
73768         * sysdeps/unix/sysv/linux/configure: Regenerated.
73769         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
73770         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
73771         version.
73772         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
73773         (__ASSUME_AT_CLKTCK): Remove.
73774         (__ASSUME_AT_PAGESIZE): Likewise.
73775         (__ASSUME_AT_XID): Likewise.
73776         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
73777         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
73778         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
73779         unconditionally.
73780         (HAVE_AUX_PAGESIZE): Likewise.
73781         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
73782         [__ASSUME_AT_CLKTCK]: Make code unconditional.
73783         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
73784
73785 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
73786
73787         [BZ #14307]
73788         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
73789         the temporary buffer used to invoke __gethostbyname2_r,
73790         __gethostbyaddr_r and gethostbyname4_r to make room for struct
73791         host_data / struct gaih_addrtuple.
73792         * resolv/nss_dns/dns-host.c (global scope): Move definition of
73793         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
73794         header file nss/nsswitch.h.
73795         * nss/nsswitch.h (global scope): Add definition of implementation
73796         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
73797         resolv/nss_dns/dns-host.c).
73798
73799 2012-07-11  Andreas Jaeger  <aj@suse.de>
73800
73801         * po/fr.po: Update from translation team.
73802
73803         * po/sv.po: Update from translation team
73804         * po/fr.po: Another update from translation team.
73805
73806 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73807
73808         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
73809         for subnormals or multiply small sinh result by itself.
73810         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
73811         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73812
73813 2012-07-11  David S. Miller  <davem@davemloft.net>
73814
73815         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73816
73817 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
73818
73819         [BZ #14347]
73820         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
73821         (INTERNAL_MARK): Shift it here.
73822
73823 2012-07-10  Marek Polacek  <polacek@redhat.com>
73824
73825         [BZ #14151]
73826         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
73827         libc_cv_asm_global_directive with .globl.
73828         * configure: Regenerated.
73829         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
73830         with .globl.
73831         * sysdeps/i386/configure: Regenerated.
73832         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
73833         with .globl.
73834         * sysdeps/x86_64/configure: Regenerated.
73835         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
73836         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
73837         * elf/tst-unique2mod2.c: Likewise.
73838         * elf/tst-unique2mod1.c: Likewise.
73839         * elf/tst-unique1mod2.c: Likewise.
73840         * elf/tst-unique1mod1.c: Likewise.
73841         * sysdeps/s390/s390-32/sysdep.h: Likewise.
73842         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
73843         * sysdeps/s390/s390-64/sysdep.h: Likewise.
73844         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
73845         * sysdeps/mach/sysdep.h: Likewise.
73846         * sysdeps/i386/sysdep.h: Likewise.
73847         * sysdeps/i386/i386-mcount.S: Likewise.
73848         * sysdeps/x86_64/_mcount.S: Likewise.
73849         * sysdeps/x86_64/sysdep.h: Likewise.
73850         * sysdeps/sh/_mcount.S: Likewise.
73851         * sysdeps/sh/sysdep.h: Likewise.
73852         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
73853         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
73854         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
73855         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
73856         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
73857         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
73858         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
73859         * locale/localeinfo.h: Likewise.
73860         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
73861         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
73862
73863 2012-07-09  Roland McGrath  <roland@hack.frob.com>
73864
73865         [BZ #14336]
73866         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
73867         system".
73868         * manual/message.texi (The Uniforum approach): Likewise.
73869         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
73870         (glibc iconv Implementation): Likewise.
73871
73872 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
73873
73874         [BZ #14337]
73875         * math/s_clog.c (__clog): Avoid scaling a value down where that
73876         could result in underflow.
73877         * math/s_clog10.c (__clog10): Likewise.
73878         * math/s_clog10f.c (__clog10f): Likewise.
73879         * math/s_clog10l.c (__clog10l): Likewise.
73880         * math/s_clogf.c (__clogf): Likewise.
73881         * math/s_clogl.c (__clogl): Likewise.
73882         * math/libm-test.inc (clog_test): Add more tests.
73883         (clog10_test): Likewise.
73884         * sysdeps/i386/fpu/libm-test-ulps: Update.
73885         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73886
73887 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
73888
73889         [BZ #14283]
73890         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
73891         by 7 not 8 to examine high bit of fractional part.
73892
73893         [BZ #14042]
73894         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
73895         for call to __mcount_internal.
73896         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
73897         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
73898         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
73899
73900 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
73901
73902         [BZ #14154]
73903         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
73904         approximation for values within 0x1p-13f of an odd multiple of
73905         pi/4.
73906         * math/libm-test.inc (tan_test): Do not allow spurious underflow
73907         exception.  Add more tests.
73908         * sysdeps/i386/fpu/libm-test-ulps: Update.
73909
73910         [BZ #6778]
73911         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
73912         inputs and return -1 for them.  Do not check for +Inf in case not
73913         reachable for +Inf.
73914         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
73915         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
73916         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
73917         and return -1 for them.  Do not check for +Inf in case not
73918         reachable for +Inf.
73919         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
73920         define.
73921         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
73922         and return -1 for them.  Do not check for +Inf in case not
73923         reachable for +Inf.
73924         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
73925         spurious underflow.
73926         * sysdeps/i386/fpu/libm-test-ulps: Update.
73927         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73928
73929 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
73930
73931         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
73932
73933 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
73934
73935         [BZ #14157]
73936         [BZ #14331]
73937         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
73938         could result in spurious underflow.  Scale down values above
73939         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
73940         * math/s_csqrtf.c (__csqrtf): Likewise.
73941         * math/s_csqrtl.c (__csqrtl): Likewise.
73942         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
73943         spurious underflow.
73944         * sysdeps/i386/fpu/libm-test-ulps: Update.
73945         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73946
73947 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
73948
73949         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
73950         xopen-msg.sed.
73951         * catgets/xopen-msg.awk: New file.
73952         * catgets/xopen-msg.sed: Removed.
73953
73954         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
73955         po2text.sed.
73956         * intl/po2test.awk: New file.
73957         * intl/po2test.sed: Removed.
73958
73959 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
73960
73961         [BZ #14328]
73962         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
73963         or multiply small sinh result by itself.
73964         * math/s_ctanf.c (__ctanf): Likewise.
73965         * math/s_ctanh.c (__ctanh): Likewise.
73966         * math/s_ctanhf.c (__ctanhf): Likewise.
73967         * math/s_ctanhl.c (__ctanhl): Likewise.
73968         * math/s_ctanl.c (__ctanl): Likewise.
73969         * math/libm-test.inc (ctan_test_tonearest): New function.
73970         (ctan_test_towardzero): Likewise.
73971         (ctan_test_downward): Likewise.
73972         (ctan_test_upward): Likewise.
73973         (ctanh_test_tonearest): Likewise.
73974         (ctanh_test_towardzero): Likewise.
73975         (ctanh_test_downward): Likewise.
73976         (ctanh_test_upward): Likewise.
73977         (main): Call these new functions.
73978         * sysdeps/i386/fpu/libm-test-ulps: Update.
73979         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73980
73981 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
73982
73983         * .gitignore: Delete /ports entry.
73984
73985 2012-07-03  Andreas Jaeger  <aj@suse.de>
73986
73987         * po/bg.po: Update from translation team.
73988         * po/cs.po: Likewise.
73989         * po/de.po: Likewise.
73990         * po/hr.po: Likewise.
73991         * po/nl.pl: Likewise.
73992         * po/pl.po: Likewise.
73993         * po/vi.po: Likewise.
73994
73995 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
73996
73997         * Makeconfig [!+link] (+link-before-libc): New variable.
73998         [!+link] (+link-after-libc): Likewise.
73999         [!+link] (+link-tests): Likewise.
74000         [!+link] (+link): Define in terms of $(+link-before-libc) and
74001         $(+link-after-libc).
74002         [!+link-static] (+link-static-before-libc): New variable.
74003         [!+link-static] (+link-static-after-libc): Likewise.
74004         [!+link-static] (+link-static-tests): Likewise.
74005         [!+link-static] (+link-static): Define in terms of
74006         $(+link-static-before-libc) and $(+link-static-after-libc).
74007         [build-shared] (link-libc-before-gnulib): New variable.
74008         [build-shared] (link-libc-tests): Likewise.
74009         [build-shared] (link-libc): Define in terms of
74010         $(link-libc-before-gnulib).
74011         [!build-shared] (link-libc-tests): New variable.
74012         (link-libc-static-tests): New variable.
74013         [!gnulib] (gnulib-arch): New variable.
74014         [!gnulib] (gnulib-tests): Likewise.
74015         [!gnulib] (static-gnulib-arch): Likewise.
74016         [!gnulib] (static-gnulib-tests): Likewise.
74017         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
74018         Define with "=" instead of ":=".
74019         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
74020         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
74021         * Rules (binaries-all-notests): New variable.
74022         (binaries-all-tests): Likewise.
74023         (binaries-static-notests): Likewise.
74024         (binaries-static-tests): Likewise.
74025         (binaries-all): Define using $(binaries-all-notests) and
74026         $(binaries-all-tests).
74027         (binaries-static): Define using $(binaries-static-notests) and
74028         $(binaries-static-tests).
74029         (binaries-shared-tests): New variable.
74030         (binaries-shared-notests): Likewise.
74031         (binaries-shared): Remove variable.
74032         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
74033         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
74034         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
74035         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
74036         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
74037         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
74038         * elf/Makefile (sln-modules): New variable.
74039         (extra-objs): Add $(sln-modules:=.o).
74040         (ldconfig-modules): Add static-stubs.
74041         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
74042         * elf/static-stubs.c: New file.
74043
74044         [BZ #14283]
74045         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
74046         by 7 not 8 to examine high bit of fractional part.  Use volatile
74047         variables when splitting into final array of floats if
74048         __FLT_EVAL_METHOD__ != 0.
74049         * math/libm-test.inc (cos_test): Add another test.
74050         (sin_test): Likewise.
74051         * sysdeps/i386/fpu/libm-test-ulps: Update.
74052
74053         [BZ #14273]
74054         * math/libm-test.inc (cosh_test): Add more tests.
74055
74056         * version.h (RELEASE): Set to "development".
74057         (VERSION): Set to "2.16.90".
74058
74059 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
74060
74061         * NEWS: Update copyright. Remove last-updated date.
74062         Mention math library bug fixes and timezone data changes.
74063         * README: Mention GNU/Hurd, x32, and HPPA support status.
74064
74065 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
74066
74067         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
74068
74069 2012-06-27  Andreas Jaeger  <aj@suse.de>
74070
74071         * manual/contrib.texi (Contributors): Add Samuel Thibault.
74072
74073 2012-06-25  Andreas Jaeger  <aj@suse.de>
74074
74075         * sysdeps/s390/fpu/libm-test-ulps: Update.
74076
74077 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
74078             Thomas Schwinge  <thomas@codesourcery.com>
74079
74080         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
74081         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
74082         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
74083         fanotify_mark.
74084
74085 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
74086
74087         * sysdeps/mach/start.c: Remove file.
74088         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
74089         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
74090         * sysdeps/sh/init-first.c: Likewise.
74091
74092         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
74093         registers for frame unwinding purposes, add CFI directives.
74094         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
74095         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
74096         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
74097         Likewise.
74098
74099         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
74100         __fortify_fail returning.
74101         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
74102
74103         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
74104         sysdeps/sh/____longjmp_chk.S.
74105         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
74106         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
74107         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
74108         (gen-as-const-headers): Append sigaltstack-offsets.sym.
74109
74110         * sysdeps/sh/abort-instr.h: New file.
74111         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
74112         process in case exit returns.
74113
74114         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
74115         initialize the GOT register before use.
74116
74117         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
74118         calculation of ARGC > 4.
74119
74120         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
74121         meaningful names to some local labels.
74122
74123 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
74124             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
74125
74126         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
74127         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
74128         (__arch_compare_and_exchange_val_16_acq): Likewise.
74129         (__arch_compare_and_exchange_val_32_acq): Likewise.
74130         (atomic_exchange_and_add): Fix gUSA sequence.
74131         (atomic_add): Likewise.
74132         (atomic_add_negative): Likewise.
74133         (atomic_add_zero): Likewise.
74134         (atomic_bit_test_set): Likewise.
74135
74136 2012-06-22  Andreas Schwab  <schwab@redhat.com>
74137
74138         [BZ #13579]
74139         * include/link.h (struct link_map): Add l_free_initfini.
74140         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
74141         l_initfini.
74142         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
74143         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
74144         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
74145         set.
74146
74147 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
74148
74149         * configure.in: Use AC_LANG_SOURCE.
74150         * configure: Regenerate.
74151
74152 2012-06-22  Roland McGrath  <roland@hack.frob.com>
74153
74154         * configure.in (libc_cv_localstatedir): New substituted variable.
74155         * configure: Regenerated.
74156         * config.make.in (localstatedir): New variable, substituted from
74157         libc_cv_localstatedir.
74158         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
74159         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
74160         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
74161         * sysdeps/gnu/configure: Regenerated.
74162
74163 2012-06-21  Jeff Law  <law@redhat.com>
74164
74165         [BZ #14277]
74166         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
74167         free.  Simplify list management for _LIBC case.
74168
74169 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
74170
74171         [BZ #14273]
74172         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
74173         Clear sign bit of 64-bit integer value before comparing against
74174         overflow value.
74175
74176         * sysdeps/mach/configure: Regenerated.
74177
74178 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
74179
74180         [BZ #14278]
74181         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
74182
74183 2012-06-21  Jeff Law  <law@redhat.com>
74184
74185         [BZ #13882]
74186         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
74187         uint16_t for elements in the "seen" array to avoid char overflows.
74188         * elf/dl-fini.c (_dl_sort_fini): Likewise.
74189         * elf/dl-open.c (dl_open_worker): Likewise.
74190
74191 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
74192
74193         * scripts/list-sources.sh: Scan PORTS for translations.
74194         * po/libc.pot: Regenerated.
74195
74196 2012-06-21  Andreas Jaeger  <aj@suse.de>
74197
74198         [BZ #12194]
74199         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
74200         warning.
74201         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
74202         * bits/byteswap-16.h (__bswap_16): Likewise.
74203         * bits/byteswap.h (__bswap_constant_16): Likewise.
74204
74205 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
74206
74207         [BZ #14117]
74208         * sysdeps/i386/fpu_control.h: Removed.
74209         * sysdeps/x86_64/fpu_control.h: Moved to ...
74210         * sysdeps/x86/fpu_control.h: Here.
74211
74212         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
74213         (_FPU_SETCW): Likewise.
74214
74215 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
74216
74217         [BZ #14117]
74218         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
74219         * sysdeps/x86/fpu/bits/mathinline.h: This.
74220         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
74221
74222         [BZ #14050]
74223         [BZ #14117]
74224         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
74225         functions if __x86_64__ is defined.
74226
74227 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
74228
74229         * string/endian.h: Add !__ASSEMBLER__ condition for including
74230         conversion interfaces.
74231
74232 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
74233
74234         [BZ #14241]
74235         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
74236         of ABS(x) in calculating zero to negative powers other than odd
74237         integers.
74238         * math/libm-test.inc (pow_test): Add more tests.
74239
74240 2012-06-15  Andreas Jaeger  <aj@suse.de>
74241
74242         * manual/contrib.texi (Contributors): Update entry of Liubov
74243         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
74244         Machado Filho.
74245
74246 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
74247
74248         * string/string.h: Add __wur to GNU version of strerror_r.
74249
74250 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
74251
74252         [BZ #14229]
74253         * string/Makefile (tests): Add tst-strtok_r.
74254         * string/tst-strtok_r.c: New file.
74255         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
74256         RAX_LP/RDX_LP on SAVE_PTR.
74257
74258 2012-06-14  Roland McGrath  <roland@hack.frob.com>
74259
74260         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
74261
74262 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
74263
74264         * libm_test.inc (csqrt_test): Allow more spurious underflow
74265         exceptions.
74266         (j0_test): Likewise.
74267         (j1_test): Likewise.
74268         (y0_test): Likewise.
74269         (y1_test): Likewise.
74270
74271 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
74272
74273         * po/Makefile (libc.pot): Use UTF-8 charset.
74274
74275 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
74276
74277         [BZ #14210]
74278         Suppress sign-conversion warning from FD_SET.
74279         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
74280         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
74281         not unsigned long int.
74282         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
74283
74284 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
74285
74286         [BZ #14050]
74287         [BZ #14117]
74288         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
74289         __extern_always_inline instead of __extern_inline.
74290         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
74291         (__signbit): Likewise.
74292         (__signbitl): Support C++ namespace.
74293         (lrintf): New inline function.
74294         (lrint): Likewise.
74295         (llrintf): Likewise.
74296         (llrint): Likewise.
74297         (fmaxf): Likewise.
74298         (fmax): Likewise.
74299         (fminf): Likewise.
74300         (fmin): Likewise.
74301         (rint): Likewise.
74302         (rintf): Likewise.
74303         (ceil): Likewise.
74304         (ceilf): Likewise.
74305         (floor): Likewise.
74306         (floorf): Likewise.
74307         (nearbyint): Likewise.
74308         (nearbyintf): Likewise.
74309
74310 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
74311
74312         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
74313         non-default versions.
74314
74315 2012-06-11  Roland McGrath  <roland@hack.frob.com>
74316
74317         [BZ #14218]
74318         * manual/argp.texi (Argp): Reword argp_parse description slightly.
74319
74320 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
74321
74322         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
74323         (FE_UPWARD, FE_DOWNWARD): Don't define.
74324         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
74325         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
74326
74327         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
74328         reading it.
74329         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
74330         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
74331
74332 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
74333
74334         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
74335         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
74336         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
74337         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
74338
74339 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
74340
74341         [BZ #14117]
74342         * sysdeps/i386/fpu/bits/fenv.h: Removed.
74343         * sysdeps/i386/fpu/Implies: New file.
74344         * sysdeps/x86_64/fpu/Implies: Likewise.
74345         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
74346         * sysdeps/x86/fpu/bits/fenv.h: This.
74347
74348         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
74349         __SSE_MATH__.
74350
74351 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
74352
74353         [BZ #14134]
74354         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
74355         character 0xffff that matches the last element of the
74356         conversion table.
74357
74358 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74359
74360         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
74361         fmodl commit.
74362
74363 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74364
74365         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
74366         values higher than 25.6283.
74367
74368 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74369
74370         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
74371         subnormal exponent extraction and add some __builtin_expect.
74372         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
74373         Fix for subnormal mantissa calculation.
74374
74375 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
74376
74377         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
74378         cpu2 is -1 and errno is not ENOSYS.
74379
74380 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
74381
74382         [BZ #14117]
74383         * sysdeps/i386/i486/bits/string.h: Renamed to ...
74384         * sysdeps/x86/bits/string.h: This.
74385         * sysdeps/x86_64/bits/string.h: Removed.
74386
74387         * sysdeps/i386/i486/bits/string.h: Define inline functions only
74388         if not compiling for x86-64, but compiling for >= i486.
74389
74390         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
74391         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
74392
74393         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
74394         New macro from Linux kernel 3.4.0.
74395         (FP_XSTATE_MAGIC2): Likewise.
74396         (FP_XSTATE_MAGIC2_SIZE): Likewise.
74397         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
74398         (struct _fpx_sw_bytes): New struct.
74399         (struct _xsave_hdr): Likewise.
74400         (struct _ymmh_state): Likewise.
74401         (struct _xstate): Likewise.
74402
74403         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
74404         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
74405         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
74406         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
74407         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
74408         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
74409
74410         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
74411         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
74412         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
74413         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
74414         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
74415         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
74416
74417 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
74418
74419         [BZ #13743]
74420         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
74421         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
74422         (sysdep_headers): Include sys/platform/ppc.h.
74423         * sysdeps/powerpc/test-gettimebase.c: Test for
74424         __ppc_get_timebase() to catch future ISA opcode/insn changes.
74425         * manual/Makefile (appendices): Include platform.texi.
74426         * manual/contrib.texi (Contributors): Update @node pointers.
74427         * manual/maint.texi (Maintenance): Likewise.
74428         (Platform): New node.
74429         * manual/platform.texi: New file.  Document the new features.
74430
74431 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
74432             Jakub Jelinek  <jakub@redhat.com>
74433
74434         [BZ #14188]
74435         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
74436         where __builtin_expect is unavailable.
74437
74438 2012-06-03  David S. Miller  <davem@davemloft.net>
74439
74440         * stdlib/longlong.h: Updated from GCC.
74441
74442 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
74443
74444         [BZ #14042]
74445         * sysdeps/powerpc/powerpc32/mcount.c: New file.
74446         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
74447         __mcount_internal.
74448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
74449         (GLIBC_2.16): Likewise.
74450
74451 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
74452
74453         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
74454
74455 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
74456
74457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
74458         (default-abi): New variable.
74459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
74460         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
74461         variable.
74462         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
74463         Likewise.
74464         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
74465         Likewise.
74466         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
74467         Likewise.
74468
74469         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
74470         definition.  Document in comment.
74471
74472 2012-06-01  David S. Miller  <davem@davemloft.net>
74473
74474         * stdlib/longlong.h: Updated from GCC.
74475
74476 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
74477
74478         [BZ #14117]
74479         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
74480         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
74481         sys/debugreg.h sys/io.h here.
74482         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
74483         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
74484         sys/io.h.
74485         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
74486         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
74487         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
74488         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
74489         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
74490         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
74491
74492         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
74493         Define only if __x86_64__ is defined.
74494
74495 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
74496
74497         [BZ #14048]
74498         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
74499         Use int64_t for variable i.
74500         * math/libm-test.inc (fmod_test): Add more tests.
74501
74502         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
74503         z computation is not scheduled after fetestexcept.
74504         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
74505         Use math_force_eval instead of asm to ensure calculation scheduled
74506         before exception test.
74507         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
74508         Ensure a1 + u.d computation is not scheduled after fetestexcept.
74509
74510 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
74511
74512         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
74513         computation is not scheduled after fetestexcept.
74514
74515 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
74516
74517         [BZ #14117]
74518         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
74519         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
74520
74521 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74522
74523         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
74524         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
74525
74526 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
74527
74528         [BZ #14117]
74529         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
74530         <bits/wordsize.h>.
74531         (__WCHAR_MIN): Support __WORDSIZE == 64.
74532         (__WCHAR_MAX): Likewise.
74533
74534         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
74535         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
74536
74537         [BZ #14183]
74538         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
74539         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
74540
74541         [BZ #14117]
74542         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
74543         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
74544
74545         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
74546         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
74547
74548         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
74549         Defined to 1 if __x86_64__ isn't defined.
74550         (_STAT_VER_LINUX_OLD): New.
74551         (st_atime): Remove duplicate.
74552         (st_mtime): Likewise.
74553         (st_ctime): Likewise.
74554
74555 2012-05-31  David S. Miller  <davem@davemloft.net>
74556
74557         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
74558         entries.
74559
74560 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
74561
74562         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
74563         gen-libm-test.pl.
74564
74565         [BZ #14132]
74566         * elf/dl-reloc.c: Include <_itoa.h>.
74567         (_dl_reloc_bad_type): Remove use of INTUSE.
74568         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
74569         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
74570         * stdio-common/psiginfo.c (psiginfo): Likewise.
74571         * stdio-common/psignal.c (psignal): Likewise.
74572         * string/strsignal.c (strsignal): Likewise.
74573         * include/signal.h (_sys_siglist): Declare hidden proto.
74574         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
74575         INTVARDEF with libc_hidden_data_def.
74576         * stdio-common/itoa-udigits.c: Likewise.
74577         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
74578         (_itoa_lower_digits_internal): Remove declaration.
74579         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
74580         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
74581         (_sys_sigabbrev_internal): Remove aliases.
74582         (_sys_siglist): Define hidden alias.
74583
74584 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
74585
74586         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74587         bits/sysctl.h.
74588
74589 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
74590
74591         [BZ #14117]
74592         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
74593         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
74594
74595         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
74596         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
74597         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
74598         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
74599         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
74600         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
74601
74602         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
74603         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
74604         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
74605
74606         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
74607         with __addr.
74608         (insw): Likewise.
74609         (insl): Likewise.
74610         (outsb): Likewise.
74611         (outsw): Likewise.
74612         (outsl): Likewise.
74613
74614         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
74615         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
74616         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
74617
74618         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
74619         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
74620         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
74621         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
74622         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
74623         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
74624
74625         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
74626         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
74627
74628         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
74629         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
74630
74631         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
74632         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
74633         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
74634
74635         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
74636         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
74637         to ...
74638         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
74639
74640         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
74641         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
74642         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
74643
74644         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
74645         for x86-64.
74646         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
74647
74648 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
74649
74650         * math/math.h (M_El): Use two more decimal places.
74651         (M_LOG2El): Likewise.
74652         (M_LOG10El): Likewise.
74653         (M_LN2l): Likewise.
74654         (M_LN10l): Likewise.
74655         (M_PIl): Likewise.
74656         (M_PI_2l): Likewise.
74657         (M_PI_4l): Likewise.
74658         (M_1_PIl): Likewise.
74659         (M_2_PIl): Likewise.
74660         (M_2_SQRTPIl): Likewise.
74661         (M_SQRT2l): Likewise.
74662         (M_SQRT1_2l): Likewise.
74663
74664 2012-05-31  David S. Miller  <davem@davemloft.net>
74665
74666         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
74667         values between float registers.
74668         * sysdeps/sparc/sparc64/memset.S: Likewise.
74669         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
74670
74671 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
74672
74673         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
74674         -D_FORTIFY_SOURCE=1.
74675         (CPPFLAGS-tst-longjmp_chk.c): Define.
74676         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
74677         (CPPFLAGS-tst-longjmp_chk2.c): Define.
74678         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
74679         CFLAGS-tst-wchar-h.c.
74680
74681 2012-05-31  Marek Polacek  <polacek@redhat.com>
74682
74683         [BZ #14132]
74684         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
74685         __endmntent_internal): Remove declaration.
74686         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
74687         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
74688         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
74689
74690 2012-05-30  David S. Miller  <davem@davemloft.net>
74691
74692         * sysdeps/sparc/sparc32/soft-fp/q_util.c
74693         (___Q_simulate_exceptions): Use real FP ops rather than writing
74694         into the %fsr.
74695         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
74696         Likewise.
74697
74698 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
74699
74700         [BZ #14117]
74701         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
74702         * sysdeps/x86/bits/xtitypes.h: This.
74703
74704         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
74705         * sysdeps/x86/bits/wordsize.h: This.
74706
74707         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
74708         * sysdeps/x86/bits/huge_vall.h: This.
74709
74710         * sysdeps/i386/bits/select.h: Removed.
74711         * sysdeps/x86_64/bits/select.h: Renamed to ...
74712         * sysdeps/x86/bits/select.h: This.
74713
74714         * sysdeps/i386/bits/setjmp.h: Removed.
74715         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
74716         * sysdeps/x86/bits/setjmp.h: This.
74717
74718         * sysdeps/i386/bits/mathdef.h: Removed.
74719         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
74720         * sysdeps/x86/bits/mathdef.h: This.
74721
74722 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
74723
74724         [BZ #14132]
74725         * include/sys/socket.h (__connect_internal)
74726         (__libc_sa_len_internal): Remove declaration.
74727         (__connect, __libc_sa_len): Declare hidden_proto.
74728         (SA_LEN): Remove use of INTUSE.
74729         * socket/connect.c: Add libc_hidden_def.
74730         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
74731         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
74732         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
74733         alias.
74734         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
74735         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
74736         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
74737         of adding _internal alias.
74738
74739 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
74740
74741         [BZ #14117]
74742         * sysdeps/i386/bits/link.h: Removed.
74743         * sysdeps/i386/bits/linkmap.h: Likewise.
74744         * sysdeps/x86_64/bits/link.h: Renamed to ...
74745         * sysdeps/x86/bits/link.h: This.
74746         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
74747         * sysdeps/x86/bits/linkmap.h: This.
74748
74749         * sysdeps/i386/bits/endian.h: Removed.
74750         * sysdeps/x86_64/bits/endian.h: Renamed to ...
74751         * sysdeps/x86/bits/endian.h: This.
74752
74753         * sysdeps/i386/bits/byteswap.h: Removed.
74754         * sysdeps/i386/bits/byteswap-16.h: Likewise.
74755         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
74756         * sysdeps/x86/bits/byteswap.h: This.
74757         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
74758         * sysdeps/x86/bits/byteswap-16.h: This.
74759         * sysdeps/i386/Implies: Add x86.
74760         * sysdeps/x86_64/Implies: Likewise.
74761
74762 2012-05-30  David S. Miller  <davem@davemloft.net>
74763
74764         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
74765         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
74766         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
74767         (FP_TRAPPING_EXCEPTIONS): Define.
74768         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
74769         (FP_TRAPPING_EXCEPTIONS): Define.
74770         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
74771         subnormals only when inexact has been signalled or underflow
74772         exceptions are enabled.
74773         (_FP_PACK_CANONICAL): Likewise.
74774
74775 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
74776
74777         [BZ #14183]
74778         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
74779         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
74780
74781 2012-05-30  Richard Henderson  <rth@twiddle.net>
74782
74783         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
74784         with #ifndef NOT_IN_libc.
74785
74786         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
74787         marked to avoid plt entry.
74788
74789 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
74790
74791         [BZ #14112]
74792         * Makeconfig (default-abi): New macro.
74793         (abi-includes): Likewise.
74794         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
74795         $(abi-$(default-abi)-lib-soname) for soname if defined.
74796         ($(common-objpfx)gnu/lib-names.stmp): Generate from
74797         abi-variants.
74798         * Makefile (installed-stubs): Likewise.
74799         * include/stubs-biarch.h: Removed.
74800         * scripts/lib-names.awk: Only handle one library at a time.
74801         * scripts/soversions.awk: Remove WORDSIZE support.
74802         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
74803         entries.
74804         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
74805         Removed.
74806         (syscall-list-default-condition): Likewise.
74807         (syscall-list-default-condition): Likewise.
74808         (syscall-list-includes): Likewise.
74809         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
74810         syscall-list-* with abi-*.  Handle undefined abi-variants.
74811         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
74812         * sysdeps/unix/sysv/linux/i386/Implies: New file.
74813         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
74814         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
74815         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
74816         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
74817         Removed.
74818         (syscall-list-32-options): Likewise.
74819         (syscall-list-32-condition): Likewise.
74820         (syscall-list-64-options): Likewise.
74821         (syscall-list-64-condition): Likewise.
74822         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
74823         macro.
74824         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
74825         Renamed to ...
74826         (abi-*): This.
74827         (abi-64-ld-soname): New macro.
74828         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
74829         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
74830         Renamed to ...
74831         (abi-*): This.
74832         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
74833         * sysdeps/x86_64/x32/shlib-versions: Likewise.
74834
74835 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
74836
74837         * sysdeps/unix/sysv/linux/kernel-features.h
74838         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
74839         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
74840         include <kernel-features.h>.
74841         [!__NR_ftruncate64]: Remove conditional code.
74842         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74843         [__NR_ftruncate64]: Make code unconditional.
74844         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74845         * sysdeps/unix/sysv/linux/truncate64.c: Do not
74846         include <kernel-features.h>.
74847         [!__NR_ftruncate64]: Remove conditional code.
74848         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74849         [__NR_ftruncate64]: Make code unconditional.
74850         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
74852         include <kernel-features.h>.
74853         [!__NR_ftruncate64]: Remove conditional code.
74854         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74855         [__NR_ftruncate64]: Make code unconditional.
74856         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
74858         include <kernel-features.h>.
74859         [!__NR_ftruncate64]: Remove conditional code.
74860         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74861         [__NR_ftruncate64]: Make code unconditional.
74862         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74863
74864         * configure.in (libc_cv_fpie): Weaken to a compile test using
74865         LIBC_TRY_CC_OPTION.
74866         * configure: Regenerated.
74867
74868 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74869
74870         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
74871         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
74872         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
74873         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
74874         Refreshed.
74875         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
74876         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
74877         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
74878         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
74879         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
74880         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
74881         Refreshed.
74882
74883 2012-05-27  David S. Miller  <davem@davemloft.net>
74884
74885         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
74886         (___Q_zero): New.
74887         (__Q_simulate_exceptions): Return void.  Change to simulate
74888         exceptions by writing into the %fsr.
74889         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
74890         (__Qp_handle_exceptions): Likewise.
74891         (numbers): Delete.
74892         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
74893         __Qp_handle_exceptions.
74894         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
74895         __Qp_handle_exceptions.
74896         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
74897         as unused and give dummy FP_RND_NEAREST initializer.
74898         (FP_INHIBIT_RESULTS): Define.
74899         (___Q_simulate_exceptions): Update declaration.
74900         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
74901         formatting.
74902         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
74903         as unused and give dummy FP_RND_NEAREST initializer.
74904         (__Qp_handle_exceptions): Update declaration.
74905         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
74906         formatting.
74907
74908 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
74909
74910         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
74911         the temporary FPU control word.
74912         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
74913         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
74914         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
74915         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
74916         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
74917         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
74918         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
74919         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
74920         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
74921         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
74922         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
74923
74924 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
74925
74926         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
74927         fields.
74928
74929 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
74930
74931         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
74932         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
74933         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
74934         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
74935         Likewise.
74936         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
74937         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
74938         Likewise.
74939
74940 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
74941
74942         * po/h.po: Update from translation team.
74943
74944 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
74945
74946         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
74947
74948         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
74949         handling of denormals.
74950         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
74951         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
74952         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
74953         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
74954         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
74955         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
74956         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
74957         Likewise.
74958
74959 2012-05-26  Marek Polacek  <polacek@redhat.com>
74960
74961         [BZ #14152]
74962         * math/libm-test.inc (fma_test): Don't always expect underflow
74963         exception.
74964
74965 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
74966
74967         [BZ #12416]
74968         * elf/tst-execstack.c: Include stackinfo.h.
74969         (do_test): Adjust test case to ensure that pthread_getattr_np
74970         behaviour remains the same after marking stack executable.
74971
74972 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
74973
74974         * sysdeps/unix/sysv/linux/kernel-features.h
74975         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
74976         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
74977         kernel-features.h.
74978         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
74979         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
74980         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
74981         kernel-features.h.
74982         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
74983         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
74984
74985 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
74986
74987         * configure.in: Define the default includes to being none.
74988         * configure: Regenerated.
74989
74990 2012-05-25  Roland McGrath  <roland@hack.frob.com>
74991
74992         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
74993         * sysdeps/x86_64/setjmp.S: Likewise.
74994         * sysdeps/i386/bsd-setjmp.S: Likewise.
74995         * sysdeps/i386/bsd-_setjmp.S: Likewise.
74996         * sysdeps/i386/setjmp.S: Likewise.
74997         * sysdeps/i386/__longjmp.S: Likewise.
74998         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
74999         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
75000
75001         * include/stap-probe.h: New file.
75002         * configure.in: Handle --enable-systemtap.
75003         * configure: Regenerated.
75004         * config.h.in (USE_STAP_PROBE): New #undef.
75005         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
75006         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
75007         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
75008
75009 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
75010
75011         [BZ #13717]
75012         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
75013         to 2.4.0 where earlier.
75014         * sysdeps/unix/sysv/linux/configure: Regenerated.
75015         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
75016         <kernel-features.h>.
75017         [__ASSUME_32BITUIDS]: Make code unconditional.
75018         [!__ASSUME_32BITUIDS]: Remove conditional code.
75019         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
75020         <kernel-features.h>.
75021         [__ASSUME_32BITUIDS]: Make code unconditional.
75022         [!__ASSUME_32BITUIDS]: Remove conditional code.
75023         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
75024         [__ASSUME_32BITUIDS]: Make code unconditional.
75025         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
75026         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
75027         <kernel-features.h>.
75028         [__ASSUME_32BITUIDS]: Make code unconditional.
75029         [!__ASSUME_32BITUIDS]: Remove conditional code.
75030         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
75031         <kernel-features.h>.
75032         [__ASSUME_32BITUIDS]: Make code unconditional.
75033         [!__ASSUME_32BITUIDS]: Remove conditional code.
75034         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
75035         <kernel-features.h>.
75036         [__ASSUME_32BITUIDS]: Make code unconditional.
75037         [!__ASSUME_32BITUIDS]: Remove conditional code.
75038         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
75039         <kernel-features.h>.
75040         [__ASSUME_32BITUIDS]: Make code unconditional.
75041         [!__ASSUME_32BITUIDS]: Remove conditional code.
75042         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
75043         <kernel-features.h>.
75044         [__ASSUME_32BITUIDS]: Make code unconditional.
75045         [!__ASSUME_32BITUIDS]: Remove conditional code.
75046         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
75047         <kernel-features.h>.
75048         [__ASSUME_32BITUIDS]: Make code unconditional.
75049         [!__ASSUME_32BITUIDS]: Remove conditional code.
75050         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
75051         <kernel-features.h>.
75052         [__ASSUME_32BITUIDS]: Make code unconditional.
75053         [!__ASSUME_32BITUIDS]: Remove conditional code.
75054         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
75055         <kernel-features.h>.
75056         [__ASSUME_32BITUIDS]: Make code unconditional.
75057         [!__ASSUME_32BITUIDS]: Remove conditional code.
75058         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
75059         <kernel-features.h>.
75060         [__ASSUME_32BITUIDS]: Make code unconditional.
75061         [!__ASSUME_32BITUIDS]: Remove conditional code.
75062         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
75063         <kernel-features.h>.
75064         [__ASSUME_32BITUIDS]: Make code unconditional.
75065         [!__ASSUME_32BITUIDS]: Remove conditional code.
75066         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
75067         <kernel-features.h>.
75068         [__NR_setresgid] (__setresgid): Do not declare.
75069         [__ASSUME_32BITUIDS]: Make code unconditional.
75070         [!__ASSUME_32BITUIDS]: Remove conditional code.
75071         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
75072         <kernel-features.h>.
75073         [__NR_setresuid] (__setresuid): Do not declare.
75074         [__ASSUME_32BITUIDS]: Make code unconditional.
75075         [!__ASSUME_32BITUIDS]: Remove conditional code.
75076         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
75077         <kernel-features.h>.
75078         [__ASSUME_32BITUIDS]: Make code unconditional.
75079         [!__ASSUME_32BITUIDS]: Remove conditional code.
75080         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
75081         <kernel-features.h>.
75082         [__ASSUME_32BITUIDS]: Make code unconditional.
75083         [!__ASSUME_32BITUIDS]: Remove conditional code.
75084         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
75085         <kernel-features.h>.
75086         [__ASSUME_32BITUIDS]: Make code unconditional.
75087         [!__ASSUME_32BITUIDS]: Remove conditional code.
75088         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
75089         <kernel-features.h>.
75090         [__ASSUME_32BITUIDS]: Make code unconditional.
75091         [!__ASSUME_32BITUIDS]: Remove conditional code.
75092         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
75093         <kernel-features.h>.
75094         [__ASSUME_32BITUIDS]: Make code unconditional.
75095         [!__ASSUME_32BITUIDS]: Remove conditional code.
75096         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
75097         <kernel-features.h>.
75098         [__ASSUME_32BITUIDS]: Make code unconditional.
75099         [!__ASSUME_32BITUIDS]: Remove conditional code.
75100         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
75101         <kernel-features.h>.
75102         [__ASSUME_32BITUIDS]: Make code unconditional.
75103         [!__ASSUME_32BITUIDS]: Remove conditional code.
75104         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
75105         <kernel-features.h>.
75106         [__ASSUME_32BITUIDS]: Make code unconditional.
75107         [!__ASSUME_32BITUIDS]: Remove conditional code.
75108         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
75109         <kernel-features.h>.
75110         [__ASSUME_32BITUIDS]: Make code unconditional.
75111         [!__ASSUME_32BITUIDS]: Remove conditional code.
75112         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
75113         <kernel-features.h>.
75114         [__ASSUME_32BITUIDS]: Make code unconditional.
75115         [!__ASSUME_32BITUIDS]: Remove conditional code.
75116         * sysdeps/unix/sysv/linux/kernel-features.h
75117         (__ASSUME_SETRESUID_SYSCALL): Remove.
75118         (__ASSUME_SETRESGID_SYSCALL): Likewise.
75119         (__ASSUME_32BITUIDS): Likewise.
75120         (__ASSUME_LDT_WORKS): Likewise.
75121         (__ASSUME_O_DIRECTORY): Likewise.
75122         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
75123         architecture but not kernel version.
75124         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
75125         (__ASSUME_MMAP2_SYSCALL): Likewise.
75126         (__ASSUME_STAT64_SYSCALL): Likewise.
75127         (__ASSUME_IPC64): Likewise.
75128         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
75129         <kernel-features.h>.
75130         [__ASSUME_32BITUIDS]: Make code unconditional.
75131         [!__ASSUME_32BITUIDS]: Remove conditional code.
75132         * sysdeps/unix/sysv/linux/opendir.c: Do not include
75133         <kernel-features.h>.
75134         [__ASSUME_O_DIRECTORY]: Make code unconditional.
75135         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
75136         132096]: Remove conditional code.
75137         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
75138         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
75139         <kernel-features.h>.
75140         [__ASSUME_32BITUIDS]: Make code unconditional.
75141         [!__ASSUME_32BITUIDS]: Remove conditional code.
75142         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
75143         <kernel-features.h>.
75144         [__ASSUME_32BITUIDS]: Make code unconditional.
75145         [!__ASSUME_32BITUIDS]: Remove conditional code.
75146         * sysdeps/unix/sysv/linux/setegid.c: Do not include
75147         <kernel-features.h>.
75148         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
75149         unconditional.
75150         (__setresgid): Do not declare.
75151         [__ASSUME_32BITUIDS]: Make code unconditional.
75152         [!__ASSUME_32BITUIDS]: Remove conditional code.
75153         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
75154         <kernel-features.h>.
75155         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
75156         unconditional.
75157         (__setresuid): Do not declare.
75158         [__ASSUME_32BITUIDS]: Make code unconditional.
75159         [!__ASSUME_32BITUIDS]: Remove conditional code.
75160         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
75161         <kernel-features.h>.
75162         [__ASSUME_32BITUIDS]: Make code unconditional.
75163         [!__ASSUME_32BITUIDS]: Remove conditional code.
75164         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
75165         <kernel-features.h>.
75166         [__ASSUME_32BITUIDS]: Make code unconditional.
75167         [!__ASSUME_32BITUIDS]: Remove conditional code.
75168
75169 2012-05-25  Richard Henderson  <rth@twiddle.net>
75170
75171         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
75172         dl_hwcap to ifunc resolver.
75173         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
75174         elf_ifunc_invoke.
75175         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
75176         dl_hwcap to ifunc resolver.
75177         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
75178
75179 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
75180
75181         [BZ #14153]
75182         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
75183         for |x| <= 2**-26, not 2**-57.
75184         * math/libm-test.inc (acos_test): Do not allow spurious underflow
75185         exception.
75186
75187 2012-05-24  Jeff Law  <law@redhat.com>
75188
75189         * stdio-common/Makefile (tests): Add bug25.
75190         * stdio-common/bug25.c: New test.
75191
75192 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
75193
75194         [BZ #13576]
75195         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
75196         multiple of MALLOC_ALIGNMENT in size.
75197         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
75198
75199 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
75200
75201         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
75202         Require >= 256.
75203         (FILENAME_MAX): Use macro-int-constant.
75204         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
75205         (_IOFBF): Use macro-int-constant.
75206         (_IOLBF): Likewise.
75207         (_IONBF): Likewise.
75208         (SEEK_CUR): Likewise.
75209         (SEEK_END): Likewise.
75210         (SEEK_SET): Likewise.
75211         (TMP_MAX): Likewise.
75212         (EOF): Use macro-int-constant.  Require < 0.
75213         (NULL): Use macro-constant.  Require == 0.
75214         (stdin): Require type to be FILE *.
75215         (stdout): Likewise.
75216         (stderr): Likewise.
75217         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
75218         macro-int-constant.
75219         (EXIT_SUCCESS): Likewise.
75220         (NULL): Use macro-constant.  Require == 0.
75221         (RAND_MAX): Use macro-int-constant.
75222         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
75223         [C99-based standards] (strtof): Require function.
75224         [C99-based standards] (strtold): Likewise.
75225         [C99-based standards] (strtoll): Likewise.
75226         [C99-based standards] (strtoull): Likewise.
75227         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
75228         [ISO || ISO99 || ISO11] (limits.h): Likewise.
75229         [ISO || ISO99 || ISO11] (math.h): Likewise.
75230         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
75231         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
75232         [ISO || ISO99 || ISO11] (*_t): Do not allow.
75233
75234 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
75235
75236         [BZ #14132]
75237         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
75238         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
75239         * intl/dgettext.c (DCGETTEXT): Likewise.
75240         * intl/gettext.c (DCGETTEXT): Likewise.
75241         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
75242         * posix/regex_internal.h (gettext): Likewise.
75243         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
75244         Remove declaration.
75245         * include/argz.h (__argz_count_internal)
75246         (__argz_stringify_internal): Remove declaration.
75247         (__argz_count, __argz_stringify): Declare hidden proto.
75248         * intl/dcgettext.c: Remove use of INTDEF.
75249         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
75250         * string/argz-stringify.c: Likewise.
75251         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
75252         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
75253         Declare hidden proto.
75254         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
75255         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
75256         Declare hidden proto.
75257         * include/stdio.h (__asprintf_internal): Don't declare.
75258         (__asprintf): Don't define as macro.  Declare hidden proto.
75259         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
75260         (__fsetlocking): Declare hidden proto.
75261         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
75262         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
75263         hidden proto.
75264         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
75265         (_IO_setlinebuf): Remove use of INTUSE.
75266         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
75267         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
75268         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
75269         Remove declaration.
75270         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
75271         (_IO_do_flush): Remove use of INTUSE.
75272         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
75273         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
75274         (_IO_adjust_column, _IO_least_wmarker)
75275         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
75276         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
75277         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
75278         (_IO_default_doallocate, _IO_wdefault_doallocate)
75279         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
75280         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
75281         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
75282         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
75283         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
75284         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
75285         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
75286         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
75287         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
75288         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
75289         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
75290         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
75291         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
75292         proto.
75293         (_IO_flush_all_internal, _IO_adjust_column_internal)
75294         (_IO_default_uflow_internal, _IO_default_finish_internal)
75295         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
75296         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
75297         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
75298         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
75299         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
75300         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
75301         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
75302         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
75303         (_IO_file_close_internal, _IO_file_close_it_internal)
75304         (_IO_file_underflow_internal, _IO_file_overflow_internal)
75305         (_IO_file_init_internal, _IO_file_attach_internal)
75306         (_IO_file_fopen_internal, _IO_file_read_internal)
75307         (_IO_file_sync_internal, _IO_file_seek_internal)
75308         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
75309         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
75310         (_IO_str_underflow_internal, _IO_str_overflow_internal)
75311         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
75312         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
75313         (_IO_list_all_internal, _IO_link_in_internal)
75314         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
75315         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
75316         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
75317         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
75318         (_IO_do_write_internal, _IO_padn_internal)
75319         (_IO_getline_info_internal, _IO_getline_internal)
75320         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
75321         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
75322         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
75323         (_IO_vfscanf_internal, _IO_vfprintf_internal)
75324         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
75325         (_IO_init_internal, _IO_un_link_internal): Don't declare.
75326         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
75327         with libc_hidden_ver, remove use of INTUSE.
75328         * libio/genops.c: Likewise.
75329         * libio/freopen.c: Likewise.
75330         * libio/freopen64.c: Likewise.
75331         * libio/iofclose.c: Likewise.
75332         * libio/iofdopen.c: Likewise.
75333         * libio/iofflush.c: Likewise.
75334         * libio/iofflush_u.c: Likewise.
75335         * libio/iofgets.c: Likewise.
75336         * libio/iofgets_u.c: Likewise.
75337         * libio/iofopen.c: Likewise.
75338         * libio/iofopncook.c: Likewise.
75339         * libio/iofread.c: Likewise.
75340         * libio/iofread_u.c: Likewise.
75341         * libio/ioftell.c: Likewise.
75342         * libio/iofwrite.c: Likewise.
75343         * libio/iogetline.c: Likewise.
75344         * libio/iogets.c: Likewise.
75345         * libio/iogetwline.c: Likewise.
75346         * libio/iopadn.c: Likewise.
75347         * libio/iopopen.c: Likewise.
75348         * libio/ioseekoff.c: Likewise.
75349         * libio/ioseekpos.c: Likewise.
75350         * libio/iosetbuffer.c: Likewise.
75351         * libio/iosetvbuf.c: Likewise.
75352         * libio/ioungetc.c: Likewise.
75353         * libio/ioungetwc.c: Likewise.
75354         * libio/iovdprintf.c: Likewise.
75355         * libio/iovsprintf.c: Likewise.
75356         * libio/iovsscanf.c: Likewise.
75357         * libio/memstream.c: Likewise.
75358         * libio/obprintf.c: Likewise.
75359         * libio/oldfileops.c: Likewise.
75360         * libio/oldiofclose.c: Likewise.
75361         * libio/oldiofdopen.c: Likewise.
75362         * libio/oldiofopen.c: Likewise.
75363         * libio/oldiopopen.c: Likewise.
75364         * libio/oldstdfiles.c: Likewise.
75365         * libio/putc.c: Likewise.
75366         * libio/setbuf.c: Likewise.
75367         * libio/setlinebuf.c: Likewise.
75368         * libio/stdfiles.c: Likewise.
75369         * libio/strops.c: Likewise.
75370         * libio/vasprintf.c: Likewise.
75371         * libio/vscanf.c: Likewise.
75372         * libio/vsnprintf.c: Likewise.
75373         * libio/vswprintf.c: Likewise.
75374         * libio/wfiledoalloc.c: Likewise.
75375         * libio/wfileops.c: Likewise.
75376         * libio/wgenops.c: Likewise.
75377         * libio/wmemstream.c: Likewise.
75378         * libio/wstrops.c: Likewise.
75379         * libio/__fpurge.c: Likewise.
75380         * libio/__fsetlocking.c: Likewise.
75381         * assert/assert.c: Likewise.
75382         * debug/fgets_chk.c: Likewise.
75383         * debug/fgets_u_chk.c: Likewise.
75384         * debug/fread_chk.c: Likewise.
75385         * debug/fread_u_chk.c: Likewise.
75386         * debug/gets_chk.c: Likewise.
75387         * debug/obprintf_chk.c: Likewise.
75388         * debug/vasprintf_chk.c: Likewise.
75389         * debug/vdprintf_chk.c: Likewise.
75390         * debug/vsnprintf_chk.c: Likewise.
75391         * debug/vsprintf_chk.c: Likewise.
75392         * malloc/mtrace.c: Likewise.
75393         * misc/error.c: Likewise.
75394         * misc/syslog.c: Likewise.
75395         * stdio-common/asprintf.c: Likewise.
75396         * stdio-common/fxprintf.c: Likewise.
75397         * stdio-common/getw.c: Likewise.
75398         * stdio-common/isoc99_fscanf.c: Likewise.
75399         * stdio-common/isoc99_scanf.c: Likewise.
75400         * stdio-common/isoc99_vfscanf.c: Likewise.
75401         * stdio-common/isoc99_vscanf.c: Likewise.
75402         * stdio-common/isoc99_vsscanf.c: Likewise.
75403         * stdio-common/printf-prs.c: Likewise.
75404         * stdio-common/printf_fp.c: Likewise.
75405         * stdio-common/printf_fphex.c: Likewise.
75406         * stdio-common/printf_size.c: Likewise.
75407         * stdio-common/putw.c: Likewise.
75408         * stdio-common/scanf.c: Likewise.
75409         * stdio-common/sprintf.c: Likewise.
75410         * stdio-common/tmpfile.c: Likewise.
75411         * stdio-common/vfprintf.c: Likewise.
75412         * stdio-common/vfscanf.c: Likewise.
75413         * stdlib/strfmon_l.c: Likewise.
75414         * sunrpc/openchild.c: Likewise.
75415         * sunrpc/xdr_stdio.c: Likewise.
75416         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
75417         * sysdeps/mach/hurd/tmpfile.c: Likewise.
75418
75419 2012-05-24  Roland McGrath  <roland@hack.frob.com>
75420
75421         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
75422
75423         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
75424         in the third column, to generate for the shared library an IFUNC
75425         that uses _dl_vdso_vsym.
75426         * Makerules (COMPILE.c, compile-stdin.c): New variables.
75427         * Makeconfig (object-suffixes-noshared): New variable.
75428
75429         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
75430         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
75431         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
75432         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
75433
75434         [BZ #14132]
75435         * include/sys/time.h (__gettimeofday): Remove macro.
75436         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
75437         * time/gettimeofday.c (__gettimeofday): Remove #undef.
75438         Remove INTDEF.
75439         (__gettimeofday): Add libc_hidden_def.
75440         (gettimeofday): Add libc_hidden_weak.
75441         * sysdeps/mach/gettimeofday.c: Likewise.
75442         * sysdeps/posix/gettimeofday.c: Likewise.
75443         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
75444         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
75445         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
75446         (__gettimeofday_internal): Remove strong_alias.
75447         (__gettimeofday): Add libc_hidden_def.
75448         (gettimeofday): Add libc_hidden_weak.
75449         * sysdeps/unix/syscalls.list (gettimeofday):
75450         Remove __gettimeofday_internal alias.
75451
75452 2012-05-24  Daniel Jacobowitz  <drow@false.org>
75453             H.J. Lu  <hongjiu.lu@intel.com>
75454
75455         [BZ #12495]
75456         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
75457         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
75458         (largebin_index_32_big): New.
75459         (largebin_index): Use it for 16-byte alignment.
75460         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
75461         correction with front_misalign.
75462
75463 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
75464
75465         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
75466         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
75467         Likewise.
75468         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
75469         Likewise.
75470         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
75471         Likewise.
75472         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
75473         Likewise.
75474         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
75475         Likewise.
75476         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
75477         Likewise.
75478         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
75479         Likewise.
75480         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
75481         Likewise.
75482         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
75483         Likewise.
75484         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
75485         Likewise.
75486         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
75487         Likewise.
75488         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
75489         Likewise.
75490
75491         * scripts/data/c++-types-x32-linux-gnu.data: New file.
75492         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
75493
75494 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
75495
75496         [BZ #10846]
75497         [BZ #14036]
75498         * math/libm-test.inc (exp_test): Add test from bug 14036.
75499         (pow_test): Add test from bug 10846.
75500
75501         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
75502         and other flags.
75503         (special_function): Do not include flags in test name.
75504         (parse_args): Likewise.
75505         * sysdeps/i386/fpu/libm-test-ulps: Update.
75506         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
75507         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
75508         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
75509         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75510
75511         * math/gen-libm-test.pl (%beautify): Add entries for underflow
75512         exceptions.
75513         * math/libm-test.inc ("Philosophy"): Update comment about
75514         exception testing.
75515         (UNDERFLOW_EXCEPTION): New macro.
75516         (UNDERFLOW_EXCEPTION_OK): Likewise.
75517         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
75518         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
75519         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
75520         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
75521         (INVALID_EXCEPTION_OK): Update value.
75522         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
75523         (OVERFLOW_EXCEPTION_OK): Likewise.
75524         (IGNORE_ZERO_INF_SIGN): Likewise.
75525         (test_exceptions): Handle underflow exceptions.
75526         (acos_test): Update for underflow exception expectations.
75527         (cexp_test): Likewise.
75528         (clog_test): Likewise.
75529         (clog10_test): Likewise.
75530         (csqrt_test): Likewise.
75531         (ctan_test): Likewise.
75532         (ctanh_test): Likewise.
75533         (exp_test): Likewise.
75534         (exp10_test): Likewise.
75535         (exp2_test): Likewise.
75536         (expm1_test): Likewise.
75537         (fma_test): Likewise.
75538         (j0_test): Likewise.
75539         (jn_test): Likewise.
75540         (nexttoward_test): Likewise.
75541         (pow_test): Likewise.
75542         (scalbn_test): Likewise.
75543         (scalbln_test): Likewise.
75544         (tan_test): Likewise.
75545         (y1_test): Likewise.
75546         * sysdeps/i386/fpu/libm-test-ulps: Update.
75547         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75548
75549 2012-05-23  David S. Miller  <davem@davemloft.net>
75550
75551         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
75552         (__libc_sigaction): Remove unused local variables.
75553
75554 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
75555
75556         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
75557
75558 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
75559
75560         mktime: avoid signed integer overflow
75561         * time/mktime.c (__mktime_internal): Do not mishandle the case
75562         where diff == INT_MIN.
75563
75564         mktime: simplify computation of average
75565         * time/mktime.c (ranged_convert): Use new time_t_avg function
75566         instead of rolling our own (probably-slower) code.
75567
75568         mktime: do not assume signed right shift propagates sign bit
75569         * time/mktime.c (isdst_differ): New static function.
75570         (__mktime_internal): No need to normalize tm_isdst now.
75571         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
75572         tm_isdst values.
75573
75574         mktime: merge another wrapv change from gnulib
75575         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
75576         from some compilers.
75577
75578         mktime: remove incorrect attempt at unusual arithmetics
75579         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
75580         The code didn't really work on such machines anyway.
75581         (TYPE_MINIMUM): Assume two's complement.
75582         (twos_complement_arithmetic): Verify that long_int and time_t
75583         are two's complement (or unsigned, in the latter case).
75584
75585         mktime: check signed shifts on long_int and time_t, too
75586         * time/mktime.c (SHR): Check that shifts work as desired
75587         on the types long_int and time_t too, as SHR is used on
75588         such types.
75589
75590         mktime: do not assume 'long' is wide enough
75591         * time/mktime.c (verify): Move decl up.
75592         (long_int): New type.
75593         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
75594         to remove assumption in the code that 'long' is wide enough to
75595         store year values.  This assumption is not true on x32 and on
75596         some non-glibc platforms.
75597
75598         mktime: merge wrapv change from gnulib
75599         * time/mktime.c (WRAPV): New macro.
75600         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
75601         (guess_time_tm, __mktime_internal): Do not assume that signed
75602         integer overflow wraps around; modern compilers generate code
75603         where this assumption is no longer valid.
75604
75605 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
75606
75607         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
75608         Replace "jmp L(pseudo_end)" with "ret".
75609         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
75610         Likewise.
75611
75612 2012-05-23  Andreas Jaeger  <aj@suse.de>
75613
75614         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
75615         * sysdeps/unix/sysv/linux/poll.c: Remove file.
75616
75617 2012-05-23  Andreas Jaeger  <aj@suse.de>
75618             Maximilian Attems  <max@stro.at>
75619
75620         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
75621         New macros.
75622
75623 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
75624
75625         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
75626         code so that pseudo_end is just ret and the stack pointer is
75627         correct also for static library in error case.
75628
75629 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
75630
75631         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
75632         move to syscalls.list.
75633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
75634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
75635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
75636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
75637
75638         * manual/install.texi (Running make install): Do not mention Linux
75639         kernel version for which pt_chown is not needed.
75640         (Linux): Do not mention problems with nscd with 2.0 kernels.
75641         * INSTALL: Regenerated.
75642
75643 2012-05-23  Andreas Jaeger  <aj@suse.de>
75644
75645         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
75646         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
75647         macro.
75648         * sysdeps/unix/sysv/linux/s390/bits/mman.h
75649         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75650         * sysdeps/unix/sysv/linux/sh/bits/mman.h
75651         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75652         * sysdeps/unix/sysv/linux/i386/bits/mman.h
75653         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75654         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
75655         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75656         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
75657         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75658         * sysdeps/unix/sysv/linux/bits/in.h
75659         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
75660
75661 2012-05-22  Roland McGrath  <roland@hack.frob.com>
75662
75663         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
75664         (PREPARE_VERSION): Just use assert instead, it will be elided
75665         under [NDEBUG] anyway.
75666
75667 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
75668
75669         * sysdeps/unix/sysv/linux/Makefile: Include
75670         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
75671         (sysdep_routines): Remove sysctl.
75672         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
75673         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
75674         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
75675         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
75676         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
75677
75678 2012-05-22  Andreas Jaeger  <aj@suse.de>
75679
75680         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
75681         that pseudo_end is just ret and the stack pointer is correct also
75682         for static library in error case.
75683
75684 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
75685
75686         [BZ #14122]
75687         * nss/nsswitch.c (defconfig_entries): New variable.
75688         (__nss_database_lookup): Don't leak defconfig entries.
75689         (nss_parse_service_list): Don't leak on error paths.
75690         (free_database_entries): New function.
75691         (free_defconfig): New function.
75692         (free_mem): Move common code to free_database_entries.
75693
75694 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
75695
75696         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
75697         Add arch_prctl.
75698         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
75699
75700         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
75701         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
75702         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
75703         New macro.
75704         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
75705         (INTERNAL_SYSCALL_TYPES): Likewise.
75706         (LOAD_ARGS_TYPES_[1-6]): Likewise.
75707         (LOAD_REGS_TYPES_[1-6]): Likewise.
75708         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
75709         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
75710
75711 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75712
75713         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
75714         copysignl for GLIBC_2_0.
75715         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
75716         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
75717         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
75718         logbl for GLIBC_2_0.
75719         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
75720         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
75721
75722 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
75723
75724         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
75725         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
75726
75727         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
75728         Use "neg %eax".
75729
75730         * time/mktime.c: Update copyright years.
75731
75732 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75733
75734         mktime: merge comment-quoting-style change from gnulib
75735         * time/mktime.c: Quote 'like this' in comments.
75736         The GNU coding standards suggest that we no longer quote `like this',
75737         as "`" and "'" are typically rendered asymmetrically nowadays.
75738         The typical gnulib style is to quote 'like this' when quoting
75739         code, and "like this" when quoting English.
75740
75741         * time/mktime.c (compile-command): Add "-I.".
75742
75743         mktime: merge mktime-internal.h change from gnulib
75744         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
75745
75746         mktime: merge time_r change from gnulib
75747         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
75748
75749         mktime: merge DEBUG change from gnulib
75750         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
75751         case system <time.h> has a #define.
75752
75753         mktime: merge <sys/types.h> change from gnulib
75754         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
75755         since <time.t> is now guaranteed to define time_t.
75756
75757         mktime: merge HAVE_CONFIG_H change from gnulib
75758         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
75759
75760 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
75761
75762         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
75763         Use "neg %eax".
75764
75765         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
75766         __rlim_t cast.
75767         (struct rusage): Use anonymous union to pad each field to
75768         __syscall_slong_t.
75769
75770 2012-05-21  David S. Miller  <davem@davemloft.net>
75771
75772         * Makefules (o-iterator): Remove .s cases.
75773         (compile-command.s): Delete.
75774         (COMPILE.s): Delete.
75775         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
75776
75777 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
75778
75779         * configure.in (libc_cv_predef_stack_protector): Only consider
75780         "foobar" and "__stack_chk_fail" lines in libc_undefs.
75781         * configure: Regenerated.
75782
75783 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
75784
75785         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
75786         New macro.  Use R*LP on int and pointer.
75787         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
75788         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
75789         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
75790         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
75791
75792         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
75793         [__WORDSIZE_TIME64_COMPAT32] instead of
75794         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
75795         (struct utmp): Likewise.
75796         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
75797         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
75798         Renamed to ...
75799         (__WORDSIZE_TIME64_COMPAT32): This.
75800         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
75801         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
75802         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
75803         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
75804         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
75805         (__WORDSIZE_TIME64_COMPAT32): New macro.
75806
75807 2012-05-21  Andreas Jaeger  <aj@suse.de>
75808
75809         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
75810         only if [SHARED]. Add prototype for __wcschr_ia32.
75811
75812 2012-05-21  Roland McGrath  <roland@hack.frob.com>
75813
75814         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
75815         of %rbp unmolested in the jmp_buf while mangling the low bits.
75816         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
75817         unmolested high bits of %rbp while demangling the low bits.
75818         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
75819
75820 2012-05-21  Andreas Jaeger  <aj@suse.de>
75821
75822         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
75823         * sunrpc/svc_simple.c: Use it for registerrpc.
75824         * sunrpc/xcrypt.c: Use it for passwd2des.
75825
75826         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
75827
75828 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
75829
75830         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
75831         Don't define if [__SYSCALL_WORDSIZE != 32].
75832         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
75833         New macro.
75834
75835 2012-05-21  Bruno Haible  <bruno@clisp.org>
75836             Andreas Jaeger  <aj@suse.de>
75837
75838         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
75839         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
75840         inptr and inend for must_buffer_ch.
75841         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
75842         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
75843         * stdio-common/Makefile (tests): Remove bug15.
75844         (bug15-ENV): Remove macro.
75845         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
75846         anymore.
75847
75848 2012-05-19  Andreas Jaeger  <aj@suse.de>
75849             Roland McGrath  <roland@hack.frob.com>
75850
75851         * manual/contrib.texi: Completely rewritten. It contains now an
75852         alphabetical list of contributors and their contributions.
75853
75854 2012-05-21  Richard Henderson  <rth@twiddle.net>
75855
75856         * misc/getauxval.c (__getauxval): Use unsigned long int.
75857         * misc/sys/auxv.h: Include <sys/cdefs.h>.
75858         (getauxval): Use unsigned long int.
75859
75860 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
75861
75862         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
75863
75864 2012-05-21  Roland McGrath  <roland@hack.frob.com>
75865
75866         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
75867         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
75868         __alignof__ (long double).
75869
75870 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75871
75872         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
75873
75874 2012-05-20  Richard Henderson  <rth@twiddle.net>
75875
75876         * misc/getauxval.c: New file.
75877         * misc/sys/auxv.h: New file.
75878         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
75879         (routines): Add getauxval.
75880         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
75881         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
75882         * elf/dl-sysdep.c (_dl_auxv): Remove.
75883         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
75884         * elf/dl-support.c (_dl_auxv): New variable.
75885         (_dl_aux_init): Initialize it.
75886         * manual/startup.texi (Auxiliary Vector): New node.
75887         * sysdeps/generic/bits/hwcap.h: New file.
75888         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
75889         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
75890         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
75891         * sysdeps/sparc/sysdep.h: ... here.  Include it.
75892         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
75893         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
75894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
75895         Update.
75896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
75897         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
75898         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
75899         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
75900         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
75901         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
75902         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
75903         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
75904
75905 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75906
75907         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
75908
75909 2012-05-19  David S. Miller  <davem@davemloft.net>
75910
75911         * sysdeps/sparc/fpu/libm-test-ulps: Update.
75912
75913 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
75914
75915         [BZ #14123]
75916         * math/s_ccosh.c: Include <float.h>
75917         (__ccosh): Avoid internal overflow calculating sinh and cosh
75918         values before multiplying by sin and cos values.
75919         * math/s_ccoshf.c: Likewise.
75920         * math/s_ccoshl.c: Likewise.
75921         * math/s_csin.c: Likewise.
75922         * math/s_csinf.c: Likewise.
75923         * math/s_csinl.c: Likewise.
75924         * math/s_csinh.c: Likewise.
75925         * math/s_csinhf.c: Likewise.
75926         * math/s_csinhl.c: Likewise.
75927         * math/libm-test.inc (ccos_test): Add more tests.
75928         (ccosh_test): Likewise.
75929         (csin_test): Likewise.
75930         (csinh_test): Likewise.
75931         * sysdeps/i386/fpu/libm-test-ulps: Update.
75932         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75933
75934 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
75935
75936         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
75937         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
75938
75939         * sysdeps/x86_64/x32/_itoa.h: Add comment.
75940
75941 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
75942
75943         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
75944         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
75945         * sysdeps/powerpc/soft-fp/Versions: Likewise.
75946         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
75947         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
75948         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
75949         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
75950         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
75951         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
75952         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
75953         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
75954         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
75955         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
75956         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
75957         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
75958         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
75959         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
75960         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
75961         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
75962         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
75963         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
75964         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
75965         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
75966         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
75967         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
75968         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
75969         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
75970         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
75971         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
75972         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
75973         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
75974
75975 2012-05-18  Andreas Jaeger  <aj@suse.de>
75976
75977         * csu/.gitignore: Delete.
75978
75979 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
75980
75981         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
75982         (timex): Use __syscall_slong_t.
75983
75984 2012-05-18  Andreas Jaeger  <aj@suse.de>
75985             Carlos O'Donell  <carlos_odonell@mentor.com>
75986
75987         * manual/install.texi (Configuring and compiling): Update
75988         description about files modified in the source directory.
75989         * INSTALL: Regenerated.
75990
75991 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
75992
75993         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
75994         value.  Use "or" to set return value to -1.
75995         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
75996         negate return value.
75997
75998 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
75999
76000         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
76001         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
76002         failure if the compiler has Graphite support disabled.
76003         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
76004         Likewise.
76005         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
76006         (CFLAGS-memmove.c): Likewise.
76007         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
76008         Likewise.
76009
76010 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
76011
76012         * sysdeps/x86_64/x32/_itoa.h: New file.
76013
76014         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
76015         getdents system call only if kernel and user dirents have the
76016         same d_ino and d_off.
76017
76018         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
76019         LLONG_MAX != LONG_MAX.
76020         (_itoa_word): Use _ITOA_WORD_TYPE on value.
76021         (_fitoa_word): Likewise.
76022
76023         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
76024         years.
76025         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
76026         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
76027         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
76028
76029         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
76030         include <bits/wordsize.h>.  Check __x86_64__ instead of
76031         __WORDSIZE.
76032         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
76033         if __x86_64__ is defined.  Use anonymous union on fpstate.
76034
76035         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
76036         anonymous union.
76037
76038 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
76039
76040         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
76041         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
76042         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
76043         Refer to _rtld_local_ro instead of _rtld_global_ro.
76044         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
76045         Likewise.
76046         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
76047         Likewise.
76048         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
76049         Likewise.
76050         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
76051         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
76052         of _rtld_global, and rtld_progname instead of _dl_argv[0].
76053
76054         [BZ #10882]
76055         * sysdeps/powerpc/powerpc32/dl-machine.c
76056         (__elf_machine_runtime_setup) [PROF]: Don't reference
76057         _dl_prof_resolve.
76058
76059 2012-05-18  Andreas Jaeger  <aj@suse.de>
76060
76061         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
76062         function only available for GCCs before 3.4 since GCC 3.4
76063         introduced a builtin.
76064         (lrint): Likewise.
76065         (llrintf): Likewise.
76066         (llrint): Likewise.
76067         (fmaxf): Likewise.
76068         (fmax): Likewise.
76069         (fminf): Likewise.
76070         (fmin): Likewise.
76071         (rint): Likewise.
76072         (rintf): Likewise.
76073         (nearbyint): Likewise.
76074         (nearbyintf): Likewise.
76075         (ceil): Likewise.
76076         (ceilf): Likewise.
76077         (floor): Likewise.
76078         (floorf): Likewise.
76079
76080 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
76081
76082         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
76083         on both fields and cast pointer to __syscall_ulong_t.
76084
76085         * bits/types.h (__fsword_t): New type.
76086         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
76087         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
76088         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
76089         (__FSWORD_T_TYPE): Likewise.
76090         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
76091         (__FSWORD_T_TYPE): Likewise.
76092         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
76093         (__FSWORD_T_TYPE): Likewise.
76094         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
76095         (__FSWORD_T_TYPE): Likewise.
76096         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
76097         __SWORD_TYPE with __fsword_t.
76098         (statfs64): Likewise.
76099
76100 2012-05-17  David S. Miller  <davem@davemloft.net>
76101
76102         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
76103
76104 2012-05-17  Andreas Jaeger  <aj@suse.de>
76105
76106         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
76107         warning.
76108
76109 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
76110
76111         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
76112
76113 2012-05-17  Andreas Jaeger  <aj@suse.de>
76114
76115         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
76116         when it is used.
76117
76118 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
76119
76120         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
76121
76122 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
76123
76124         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
76125         * sysdeps/x86_64/tst-mallocalign1.c: New file.
76126
76127 2012-05-17  Andreas Jaeger  <aj@suse.de>
76128             Carlos O'Donell  <carlos_odonell@mentor.com>
76129
76130         [BZ #14059]
76131         * sysdeps/x86_64/multiarch/init-arch.h
76132         (bit_YMM_Usable): Rename to...
76133         (bit_AVX_Usable): ... this.
76134         (bit_FMA4_Usable): New macro.
76135         (bit_XMM_state): New macro.
76136         (bit_YMM_state): New macro.
76137         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
76138         [__ASSEMBLER__] (index_AVX_Usable): ... this.
76139         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
76140         (CPUID_OSXSAVE): New macro.
76141         (CPUID_AVX): New macro.
76142         (CPUID_FMA4): New macro.
76143         (index_YMM_Usable): Rename to...
76144         (index_AVX_Usable): ... this.
76145         (HAS_AVX): Use HAS_ARCH_FEATURE.
76146         (HAS_FMA4): Likewise.
76147         (HAS_YMM_USABLE): Remove.
76148         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76149         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
76150         are present.
76151         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
76152         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
76153         * sysdeps/x86_64/multiarch/Makefile: Likewise.
76154         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
76155         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
76156
76157 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
76158
76159         * math/libm-test.c: Support platforms without multiple rounding modes.
76160         * math/bug-nextafter.c: Support platforms without FP exceptions.
76161         * math/bug-nexttoward.c: Likewise.
76162         * math/test-fenv.c: Likewise.
76163         * math/test-misc.c: Likewise.
76164         * stdlib/bug-getcontext.c: Likewise.
76165
76166 2012-05-17  Andreas Jaeger  <aj@suse.de>
76167
76168         * manual/examples/search.c (critter_cmp): Change signature to
76169         avoid warnings.
76170         * manual/string.texi (Collation Functions): Likewise.
76171
76172 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76173
76174         * bits/types.h: Fold copyright years.
76175         * bits/typesizes.h: Likewise.
76176         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
76177         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
76178         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
76179         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
76180         * time/time.h: Likewise.
76181
76182 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
76183
76184         [BZ #208]
76185         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
76186         in instead of returning them.  Return void.
76187         (__libc_mallinfo): Accumulate over all arenas.
76188         (__malloc_stats): Adjust for change in int_mallinfo interface.
76189
76190 2012-05-16  Roland McGrath  <roland@hack.frob.com>
76191
76192         [BZ #10375]
76193         * configure.in (NM): Add AC_CHECK_TOOL for it.
76194         (libc_extra_cflags): New substituted variable.
76195         Check for -fstack-protector being used implicitly.
76196         * configure: Regenerated.
76197         * config.make.in (config-extra-cflags): New variable,
76198         gets @libc_extra_cflags@.
76199         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
76200
76201         [BZ #10375]
76202         * configure.in: Check for _FORTIFY_SOURCE being predefined.
76203         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
76204         * configure: Regenerated.
76205         * config.make.in (CPPUNDEFS): New substituted variable.
76206         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
76207         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
76208         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
76209
76210 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76211
76212         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
76213         (mq_attr): Use __syscall_slong_t.
76214
76215 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76216
76217         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
76218         Check __x86_64__ instead of __WORDSIZE.
76219         (_STAT_VER_LINUX): Likewise.
76220         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
76221         __syscall_ulong_t and __syscall_slong_t.
76222         (stat64): Likewise.
76223
76224 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76225
76226         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
76227
76228 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76229
76230         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
76231
76232 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76233
76234         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
76235         __syscall_ulong_t.
76236
76237         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
76238         include <bits/wordsize.h>.  Check __x86_64__ instead of
76239         __WORDSIZE.
76240         (greg_t): Use "__extension__ long long int" if __x86_64__ is
76241         defined.
76242         (mcontext_t): Replace "unsigned long" with "unsigned long long".
76243
76244         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
76245         include <bits/wordsize.h>.  Check __x86_64__ instead of
76246         __WORDSIZE.
76247         (user_regs_struct): Use "__extension__ unsigned long long"
76248         instead of "unsigned long" if __x86_64__ is defined.
76249         (user): Likewise.  Pad after pointer field if __ILP32__ is
76250         defined.
76251
76252 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
76253
76254         * configure.in (makeinfo): Require version 4.5 or later.  Allow
76255         versions 5 to 9.
76256         * configure: Regenerated.
76257         * manual/install.texi (texinfo): Increase version requirement to
76258         4.5 or later.
76259         * INSTALL: Regenerated.
76260
76261         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
76262
76263 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76264
76265         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
76266
76267         * sysdeps/x86_64/x32/ffs.c: New file.
76268
76269         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
76270         __syscall_ulong_t.
76271         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
76272         defined.  Use __syscall_ulong_t.
76273         (shminfo): Use __syscall_ulong_t.
76274         (shm_info): Likewise.
76275
76276         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
76277         __syscall_ulong_t.
76278
76279         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
76280         <bits/wordsize.h>.
76281         (msgqnum_t): Use __syscall_ulong_t.
76282         (msglen_t): Likewise.
76283         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
76284         __syscall_ulong_t.
76285
76286         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
76287         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
76288
76289         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
76290
76291         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
76292         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
76293
76294         * sysvipc/sys/msg.h (msgbuf): Replace long int with
76295         __syscall_slong_t.
76296
76297         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
76298         include <bits/wordsize.h>.  Check __x86_64__ instead of
76299         __WORDSIZE.
76300
76301         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
76302         "unsigned long long int" if __x86_64__ is defined.
76303         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
76304
76305         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
76306         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
76307         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
76308
76309         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
76310         <stdint.h>.
76311         (GET_PC): Cast to uintptr_t first.
76312         (GET_FRAME): Likewise.
76313         (GET_STACK): Likewise.
76314
76315         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
76316         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
76317         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
76318         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
76319         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
76320         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
76321         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
76322         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
76323         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
76324         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
76325         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
76326         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
76327         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
76328         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
76329         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
76330         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
76331         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
76332         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
76333         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
76334         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
76335         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
76336         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
76337         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
76338         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
76339         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
76340         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
76341         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
76342         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
76343         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
76344
76345 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
76346
76347         * Makerules (+depfiles): Also collect depfiles from .oS in
76348         $(extra-objs).
76349         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
76350         .oS, $(libnldbl-routines)).
76351
76352         * Makerules (native-compile-mkdep-flags): Define.
76353         * sunrpc/Makefile (extra-objs): Add $(addprefix
76354         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
76355         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
76356         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
76357         calling $(make-target-directory).
76358
76359 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76360
76361         * bits/types.h (__snseconds_t): Removed.
76362         * time/time.h (struct timespec): Replace __snseconds_t with
76363         __syscall_slong_t.
76364         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
76365         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
76366         Likewise.
76367         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
76368         (__SNSECONDS_T_TYPE): Likewise.
76369         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
76370         (__SNSECONDS_T_TYPE): Likewise.
76371         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
76372         (__SNSECONDS_T_TYPE): Likewise.
76373
76374 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76375
76376         * sysdeps/mach/hurd/bits/typesizes.h
76377         (__SYSCALL_SLONG_TYPE): New macro.
76378         (__SYSCALL_ULONG_TYPE): Likewise.
76379
76380 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76381
76382         * bits/types.h (__syscall_slong_t): New type.
76383         (__syscall_ulong_t): Likewise.
76384
76385         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
76386         (__SYSCALL_ULONG_TYPE): Likewise.
76387         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
76388         (__SYSCALL_SLONG_TYPE): Likewise.
76389         (__SYSCALL_ULONG_TYPE): Likewise.
76390         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
76391         (__SYSCALL_SLONG_TYPE): Likewise.
76392         (__SYSCALL_ULONG_TYPE): Likewise.
76393         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
76394         (__SYSCALL_SLONG_TYPE): Likewise.
76395         (__SYSCALL_ULONG_TYPE): Likewise.
76396
76397 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76398
76399         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
76400         Add sigaltstack-offsets.sym.
76401         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
76402         <sigaltstack-offsets.h>.
76403         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
76404         longjmp_msg pointer.
76405         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
76406         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
76407         signal stack.
76408         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
76409
76410 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
76411
76412         * elf/stackguard-macros.h: Remove file.
76413         * sysdeps/generic/stackguard-macros.h: New file.
76414         * sysdeps/i386/stackguard-macros.h: Likewise.
76415         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
76416         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
76417         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
76418         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
76419         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
76420         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
76421         * sysdeps/x86_64/stackguard-macros.h: Likewise.
76422         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
76423         <elf/stackguard-macros.h>.
76424
76425         [BZ #14109]
76426         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
76427         __aligned__ in attribute.
76428         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
76429         (gregset_t): Likewise.
76430
76431 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76432
76433         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
76434         * sysdeps/x86_64/64/Implies-after: Here.  New file.
76435         * sysdeps/x86_64/x32/Implies-after: New file.
76436
76437 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76438
76439         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
76440         and access return value for _dl_profile_fixup.  Use R10_LP to
76441         load frame size.
76442
76443 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76444
76445         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
76446
76447 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76448
76449         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
76450         * sysdeps/x86_64/x32/sysdep.h: New file.
76451
76452 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76453
76454         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
76455         * sysdeps/x86_64/setjmp.S: Likewise.
76456
76457 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76458
76459         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
76460         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
76461         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
76462         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
76463         remove unused global constant.
76464
76465 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
76466
76467         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
76468         include of <not-cancel.h>.
76469
76470 2012-05-15  Roland McGrath  <roland@hack.frob.com>
76471
76472         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
76473
76474 2012-05-15  Jeff Law  <law@redhat.com>
76475             Andreas Jaeger  <aj@suse.de>
76476
76477         [BZ #13594]
76478         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
76479         out from...
76480         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
76481         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
76482         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
76483         code changing __hst_map_handle.map.
76484
76485 2012-05-15  Roland McGrath  <roland@hack.frob.com>
76486
76487         * configure.in (sysnames): Look for Implies-before and Implies-after
76488         files.
76489         * configure: Regenerated.
76490
76491 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76492
76493         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
76494         8-byte data alignment with LP_SIZE alignment.
76495
76496 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76497
76498         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
76499         into R10_LP.
76500
76501 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76502
76503         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
76504
76505 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76506
76507         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
76508         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
76509         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
76510         Likewise.
76511         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
76512
76513 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76514
76515         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
76516         (stackinfo_sub_sp): Likewise.
76517
76518 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76519
76520         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
76521         RAX_LP.
76522
76523 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76524
76525         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
76526         into R*_LP.
76527
76528 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76529
76530         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
76531         sizes into R*_LP.
76532
76533 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76534
76535         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
76536
76537 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76538
76539         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
76540         into R11_LP and load __x86_64_shared_cache_size_half into
76541         R8_LP.
76542
76543 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76544
76545         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
76546         R8_LP.
76547
76548 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76549
76550         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
76551         logb for POWER7.
76552         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
76553         logbf for POWER7.
76554         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
76555         logbl for POWER7.
76556         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
76557         powerpc32/power7/fpu/s_logb.c via #include.
76558         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
76559         powerpc32/power7/fpu/s_logbf.c via #include.
76560         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
76561         powerpc32/power7/fpu/s_logbl.c via #include.
76562
76563 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
76564
76565         * README.libm: Remove file.
76566
76567 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76568
76569         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
76570         count for x32.  Use R*_LP and omit operand-size suffix.
76571
76572 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76573
76574         * shlib-versions: Move x86_64-.*-linux.* entries to ...
76575         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
76576         * sysdeps/x86_64/x32/shlib-versions: New file.
76577
76578 2012-05-14  Roland McGrath  <roland@hack.frob.com>
76579
76580         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
76581         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
76582         Use _dl_fatal_printf instead.
76583
76584 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
76585
76586         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
76587         set if not set by the user.  Do not allow for being unset.
76588         * sysdeps/unix/sysv/linux/configure: Regenerated.
76589
76590 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76591
76592         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
76593         the `q' suffix from lea and replace .quad with ASM_ADDR.
76594
76595 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76596
76597         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
76598         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
76599         instead of $17.
76600         (PTR_DEMANGLE): Likewise.
76601
76602 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76603
76604         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
76605         (LP_OP): Likewise.
76606         (ASM_ADDR): Likewise.
76607         (RAX_LP): Likewise.
76608         (RBP_LP): Likewise.
76609         (RBX_LP): Likewise.
76610         (RCX_LP): Likewise.
76611         (RDI_LP): Likewise.
76612         (RSI_LP): Likewise.
76613         (RSP_LP): Likewise.
76614         (R8_LP): Likewise.
76615         (R9_LP): Likewise.
76616         (R10_LP): Likewise.
76617         (R10_LP): Likewise.
76618         (R11_LP): Likewise.
76619         (R12_LP): Likewise.
76620         (R13_LP): Likewise.
76621         (R14_LP): Likewise.
76622         (R15_LP): Likewise.
76623
76624 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76625
76626         * sysdeps/x86_64/x32/dl-machine.h: New file.
76627
76628 2012-05-14  Andreas Jaeger  <aj@suse.de>
76629
76630         * manual/Makefile (subdir): Remove export of subdir.
76631         (all): Remove target.
76632         (.PHONY): Remove all from list.
76633         (mkinstalldirs): Remove.
76634         (.PHONY): Remove installdirs from list.
76635         ($(inst_infodir)/libc.info): Use make-target-directory.
76636         (installdirs): Remove.
76637         (subdir_%): Remove.
76638         (glibc-targets): Remove.
76639         (lib): Remove.
76640         (stubs): Remove.
76641         ($(objpfx)stubs ../po/manual.pot): Remove.
76642         ($(objpfx)stamp%): Remove.
76643         (make-target-directory): Remove.
76644         (subdir_install): Remove.
76645         (routines): Remove.
76646         (aux): Remove.
76647         (sources): Remove.
76648         (objects): Remove.
76649         (headers): Remove.
76650
76651         [BZ #13750]
76652         * manual/.gitignore: Remove, it's not needed anymore.
76653         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
76654         all files in it.
76655         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
76656         directory.
76657         (texis): Renamed to $(objpfx)texis.
76658         (texis-path): New, contains path to generated files.
76659         (chapters.%): Use texis-path for complete path, add extra argument
76660         libc-texinfo.sh.
76661         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
76662         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
76663         (summary,texi, stamp-summary): Use complete path of
76664         files. Generate files in build dir.
76665         (dir-add.texi): Build in build dir.
76666         (libm-err.texi,stamp-libm-err): Likewise.
76667         (version.texi, stamp-version): Likewise.
76668         (.%c.texi): Likewise.
76669         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
76670         (mostlyclean): Remove target.
76671         (realclean): Remove target.
76672         (generated): Add new variable with contents from mostlyclean and
76673         realclean, remove entries duplicated in common-mostlyclean, add
76674         stamp-libm-err and stamp-version.
76675         (generated-dirs): Add libc directory.
76676         ($(inst_infodir)/libc.info): Install files from build dir.
76677
76678         * manual/install.texi (Configuring and compiling): Adjust since
76679         the info files are not part of the tar ball anymore.
76680
76681 2012-05-14  Andreas Jaeger  <aj@suse.de>
76682
76683         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
76684         variable.
76685
76686 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
76687
76688         [BZ #13717]
76689         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
76690         to 2.2.0 where earlier.
76691         * sysdeps/unix/sysv/linux/configure: Regenerated.
76692         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
76693         Remove conditional code.
76694         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
76695         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
76696         Remove conditional code.
76697         [!__NR_lchown]: Likewise.
76698         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
76699         [__NR_lchown]: Likewise.
76700         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
76701         comment referencing __ASSUME_LCHOWN_SYSCALL.
76702         * sysdeps/unix/sysv/linux/i386/sigaction.c
76703         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76704         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76705         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
76706         Remove conditional code.
76707         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
76708         (__protocol_available): Remove #if 0 code.
76709         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
76710         conditional code.
76711         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
76712         * sysdeps/unix/sysv/linux/kernel-features.h
76713         (__ASSUME_GETCWD_SYSCALL): Don't define.
76714         (__ASSUME_REALTIME_SIGNALS): Likewise.
76715         (__ASSUME_PREAD_SYSCALL): Likewise.
76716         (__ASSUME_PWRITE_SYSCALL): Likewise.
76717         (__ASSUME_POLL_SYSCALL): Likewise.
76718         (__ASSUME_LCHOWN_SYSCALL): Likewise.
76719         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
76720         non-SPARC.
76721         (__ASSUME_SIOCGIFNAME): Don't define.
76722         (__ASSUME_MSG_NOSIGNAL): Likewise.
76723         (__ASSUME_SENDFILE): Define unconditionally.
76724         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
76725         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
76726         conditional code.
76727         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
76728         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
76729         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
76730         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
76731         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
76732         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
76733         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
76734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
76735         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
76736         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
76738         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
76739         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
76741         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76742         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
76744         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76745         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
76747         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
76748         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
76750         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
76751         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
76753         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76754         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
76756         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76757         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76758         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
76759         Remove conditional code.
76760         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76761         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
76762         Remove conditional code.
76763         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76764         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
76765         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
76766         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
76767         Remove conditional code.
76768         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76769         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
76770         Remove conditional code.
76771         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76772         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
76773         Remove conditional code.
76774         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76775         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
76776         Remove conditional code.
76777         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76778         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
76779         Remove conditional code.
76780         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76781         * sysdeps/unix/sysv/linux/sh/pwrite64.c
76782         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76783         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76784         * sysdeps/unix/sysv/linux/sigaction.c
76785         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76786         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76787         * sysdeps/unix/sysv/linux/sigpending.c
76788         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76789         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76790         * sysdeps/unix/sysv/linux/sigprocmask.c
76791         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76792         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76793         * sysdeps/unix/sysv/linux/sigsuspend.c
76794         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76795         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76796         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
76797         (__libc_missing_rt_sigs): Remove.
76798         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
76799         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
76800         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
76801         Remove conditional code.
76802         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
76803         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
76804         return 1.
76805         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
76806         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
76807         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
76808         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
76809
76810 2012-05-14  Andreas Jaeger  <aj@suse.de>
76811
76812         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
76813         it's not used in glibc.
76814         (__coshm1): Likewise.
76815         (__acosh1p): Likewise.
76816         (__sgn): Likewise.
76817
76818         * manual/string.texi (Copying and Concatenation): Add missing
76819         variable in concat example.
76820         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
76821
76822 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76823
76824         [BZ #14103]
76825         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
76826         __builtin_clzl with __builtin_clzll.
76827
76828 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76829
76830         [BZ #14104]
76831         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
76832         libc_freeres_ptr.
76833
76834 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76835
76836         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
76837         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
76838         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
76839         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
76840
76841 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
76842
76843         * NEWS: Update ia64 info.
76844
76845 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
76846
76847         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
76848         used as bcopy.
76849
76850 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
76851
76852         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
76853         * sysdeps/unix/syscalls.list (dup3): Likewise.
76854         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
76855         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
76856
76857 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
76858
76859         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
76860         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
76861
76862 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
76863
76864         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
76865         thread pointer.
76866         (TLS_IE): Use mov/add instead of movq/addq to load thread
76867         pointer.
76868         (TLS_GD_PREFIX): New.
76869         (TLS_GD): Use it.
76870
76871 2012-05-11  David S. Miller  <davem@davemloft.net>
76872
76873         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
76874         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
76875         (_FPU_SETCW): Likewise.
76876
76877 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
76878
76879         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
76880         is 32-byte aligned.
76881
76882 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
76883
76884         [BZ #11837]
76885         * iconvdata/gb18030.c: Update tables.
76886         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
76887         characters specially.
76888         (BODY for TO_LOOP): Add encoding of missing ranges.
76889
76890 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
76891
76892         [BZ #13673]
76893         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
76894         * sysdeps/mach/hurd/dup3.c: Likewise.
76895         * sysdeps/mach/hurd/readlinkat.c: Likewise.
76896         * sysdeps/powerpc/memmove.c:: Likewise.
76897
76898 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
76899
76900         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
76901         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
76902
76903 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
76904
76905         * elf/elf.h (R_X86_64_RELATIVE64): New.
76906         (R_X86_64_NUM): Updated.
76907         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
76908         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
76909         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
76910         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
76911         tst-quad1pie tst-quad2pie
76912         (modules-names): Add tst-quadmod1 tst-quadmod2.
76913         ($(objpfx)tst-quad1): New dependency.
76914         ($(objpfx)tst-quad2): Likewise.
76915         ($(objpfx)tst-quad1pie): Likewise.
76916         ($(objpfx)tst-quad2pie): Likewise.
76917         * sysdeps/x86_64/tst-quad1.c: New file.
76918         * sysdeps/x86_64/tst-quad1pie.c: New file.
76919         * sysdeps/x86_64/tst-quad2.c: Likewise.
76920         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
76921         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
76922         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
76923         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
76924         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
76925
76926 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76927
76928         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
76929         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
76930         * streams/stropts.h (t_scalar_t): Define type.
76931
76932         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
76933         (_PATH_PRESERVE): Set to "/var/lib".
76934         (_PATH_RWHODIR): Set to "/var/spool/rwho".
76935
76936         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
76937         instead of int.
76938
76939         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
76940         if __dir_mkfile succeeded.
76941
76942         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
76943         checking for _hurd_dtablesize.  Unlock it right after having
76944         finished _hurd_dtable allocation.
76945
76946 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76947
76948         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
76949         * sysdeps/mach/hurd/configure: Regenerated.
76950         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
76951         special-casing to...
76952         * sysdeps/gnu/configure.in: ... this new file.
76953         * sysdeps/unix/sysv/linux/configure: Regenerated.
76954         * sysdeps/gnu/configure: New generated file.
76955
76956         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
76957         for Linux: use nsec instead of usec, as well as:
76958         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
76959         members of type struct timespec.
76960         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
76961         New macros.
76962         (struct stat64): Likewise.
76963         (_STATBUF_ST_NSEC): New macro.
76964         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
76965
76966         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
76967         __strtoul_internal rather than strtoul.
76968
76969 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
76970
76971         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
76972         and reject them.
76973
76974 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76975
76976         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
76977         which preserves existing values.
76978         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
76979
76980 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
76981
76982         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
76983         TIMEOUT values.  Return EINVAL for NFDS values either negative or
76984         greater than FD_SETSIZE.
76985
76986 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76987
76988         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
76989         allocated, call __vm_protect to finish enabling the existing space, and
76990         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
76991         allocate the remainder.
76992
76993 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
76994
76995         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
76996         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
76997
76998 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76999
77000         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
77001         sysdeps/mach/hurd/readlink.c.
77002
77003         * posix/tst-sysconf.c (posix_options): Only use
77004         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
77005         _POSIX_SYNCHRONIZED_IO when they are defined
77006         * sysdeps/mach/hurd/bits/posix_opt.h:
77007         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
77008         (_XOPEN_REALTIME): Undefine macro.
77009         (_XOPEN_REALTIME_THREADS): Undefine macro.
77010         (_XOPEN_SHM): Undefine macro.
77011         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
77012         macro to -1.
77013         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
77014         macro to -1.
77015         (_POSIX_ASYNC_IO): Undefine macro.
77016         (_POSIX_PRIORITIZED_IO): Undefine macro.
77017         (_POSIX_SPIN_LOCKS): Define macro to -1.
77018
77019         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
77020         SA_NODEFER, SA_RESETHAND.
77021         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
77022         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
77023         F_DUPFD_CLOEXEC.
77024
77025 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77026
77027         * elf/Makefile (pldd-modules): Define unconditionally.
77028
77029 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77030
77031         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
77032
77033 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77034
77035         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
77036         Return ENOENT when name is empty.
77037         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
77038
77039 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77040
77041         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
77042
77043         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
77044
77045 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77046
77047         Fix mlock in all cases except non-readable pages.
77048         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
77049         instead of VM_PROT_ALL as parameter to __vm_wire function.
77050
77051         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
77052         (__mkdir): When path is `/', just fail with EEXIST.
77053         * sysdeps/mach/hurd/mkdirat.c: Likewise.
77054
77055 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77056
77057         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
77058         <sys/uio.h> (for writev).
77059         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
77060         and <sys/param.h> (for MIN).
77061
77062 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
77063
77064         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
77065         REQUESTED_TIME.  Properly set the remaining time and return EINTR
77066         if interrupted.
77067
77068 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77069
77070         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
77071         Depend on against $(link-rpcuserlibs).
77072
77073 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77074
77075         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
77076         (__libc_stack_end): Do not use attribute_relro.
77077         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
77078         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
77079         to libthread-provided value.
77080         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
77081         attribute_relro.
77082
77083 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77084
77085         [BZ #3748]
77086         * bits/libc-lock.h (__libc_once_get): New macro.
77087         * sysdeps/mach/bits/libc-lock.h: Likewise.
77088         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
77089         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
77090         instead of using implementation details.
77091
77092         * libio/fileops.c: Unconditionally include <kernel-features.h>.
77093         * libio/freopen.c: Likewise.
77094         * libio/freopen64.c: Likewise.
77095         * misc/syslog.c: Likewise.
77096         * nscd/connections.c: Likewise.
77097         * nscd/netgroupcache.c: Likewise.
77098         * sysdeps/posix/getcwd.c: Likewise.
77099
77100 2012-05-10  Roland McGrath  <roland@hack.frob.com>
77101
77102         * math/w_ilogbf.c: Add #include <limits.h>.
77103
77104 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77105
77106         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
77107         path instead of returning without unlocking.
77108
77109         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
77110         immediate-write ioctls.
77111         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
77112
77113 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77114
77115         * sysdeps/mach/hurd/i386/init-first.c (init): Use
77116         __builtin_frame_address instead of making assumptions about the
77117         location of the return address relative to DATA.  Force early load of
77118         the return address.
77119         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
77120         __builtin_frame_address.
77121
77122         dup3 for GNU Hurd.
77123         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
77124         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
77125         implement dup3 and do some further code clean-ups.
77126         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
77127         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
77128
77129 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77130
77131         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
77132
77133         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
77134         HURD_CRITICAL_END around holding _hurd_dtable_lock.
77135         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
77136         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
77137         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
77138         d->port.lock.
77139
77140         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
77141         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
77142         when handler == SIG_ERR, not when handler != SIG_ERR.
77143
77144 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77145
77146         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
77147         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
77148         definitions.
77149
77150         accept4 for GNU Hurd.
77151         * include/sys/socket.h (__libc_accept4): New prototype.
77152         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
77153         to implement __libc_accept4.
77154         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
77155         __libc_accept4.
77156         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
77157
77158         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
77159         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
77160         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
77161         signal-defines.sym.
77162
77163 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77164
77165         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
77166
77167 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77168
77169         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
77170         assertion on O_CLOEXEC flag.
77171         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
77172         * hurd/intern-fd.c: Likewise.
77173         * hurd/port2fd.c: Likewise.
77174
77175 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77176
77177         [BZ #3906]
77178         * bits/in.h (IPV6_PKTINFO): Define new macro.
77179         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
77180
77181 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77182
77183         [BZ #13954]
77184         [BZ #13955]
77185         [BZ #13956]
77186         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
77187         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
77188         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
77189         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
77190         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
77191         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
77192         * math/libm-test.inc (logb_test) : Additional logb tests.
77193
77194 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
77195             Andreas Jaeger  <aj@suse.de>
77196
77197         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
77198         * configure: Regenerated.
77199         * config.h.in (LINK_OBSOLETE_RPC): New macro.
77200         * config.make.in (link-obsolete-rpc): New substituted variable.
77201         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
77202         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
77203         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
77204         (shared-only-routines): Don't set it under [link-obsolete-rpc],
77205         so that libc.a contains the symbols.
77206         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
77207         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
77208         * sunrpc/auth_none.c: Likewise.
77209         * sunrpc/auth_unix.c: Likewise.
77210         * sunrpc/authdes_prot.c: Likewise.
77211         * sunrpc/authuxprot.c: Likewise.
77212         * sunrpc/clnt_gen.c: Likewise.
77213         * sunrpc/clnt_perr.c: Likewise.
77214         * sunrpc/clnt_raw.c: Likewise.
77215         * sunrpc/clnt_simp.c: Likewise.
77216         * sunrpc/clnt_tcp.c: Likewise.
77217         * sunrpc/clnt_udp.c: Likewise.
77218         * sunrpc/clnt_unix.c: Likewise.
77219         * sunrpc/des_crypt.c: Likewise.
77220         * sunrpc/des_soft.c: Likewise.
77221         * sunrpc/get_myaddr.c: Likewise.
77222         * sunrpc/key_call.c: Likewise.
77223         * sunrpc/key_prot.c: Likewise.
77224         * sunrpc/netname.c: Likewise.
77225         * sunrpc/pm_getmaps.c: Likewise.
77226         * sunrpc/pm_getport.c: Likewise.
77227         * sunrpc/pmap_clnt.c: Likewise.
77228         * sunrpc/pmap_prot.c: Likewise.
77229         * sunrpc/pmap_prot2.c: Likewise.
77230         * sunrpc/pmap_rmt.c: Likewise.
77231         * sunrpc/publickey.c: Likewise.
77232         * sunrpc/rpc_cmsg.c: Likewise.
77233         * sunrpc/rpc_common.c: Likewise.
77234         * sunrpc/rpc_dtable.c: Likewise.
77235         * sunrpc/rpc_prot.c: Likewise.
77236         * sunrpc/rpc_thread.c: Likewise.
77237         * sunrpc/rtime.c: Likewise.
77238         * sunrpc/svc.c: Likewise.
77239         * sunrpc/svc_auth.c: Likewise.
77240         * sunrpc/svc_raw.c: Likewise.
77241         * sunrpc/svc_run.c: Likewise.
77242         * sunrpc/svc_tcp.c: Likewise.
77243         * sunrpc/svc_udp.c: Likewise.
77244         * sunrpc/svc_unix.c: Likewise.
77245         * sunrpc/svcauth_des.c: Likewise.
77246         * sunrpc/xcrypt.c: Likewise.
77247         * sunrpc/xdr.c: Likewise.
77248         * sunrpc/xdr_array.c: Likewise.
77249         * sunrpc/xdr_float.c: Likewise.
77250         * sunrpc/xdr_intXX_t.c: Likewise.
77251         * sunrpc/xdr_mem.c: Likewise.
77252         * sunrpc/xdr_rec.c: Likewise.
77253         * sunrpc/xdr_ref.c: Likewise.
77254         * sunrpc/xdr_sizeof.c: Likewise.
77255         * sunrpc/xdr_stdio.c: Likewise.
77256
77257 2012-05-10  Roland McGrath  <roland@hack.frob.com>
77258
77259         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
77260         change.  Update copyright years.
77261
77262 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
77263
77264         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
77265
77266 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
77267             Joseph Myers  <joseph@codesourcery.com>
77268             Paul Pluzhnikov  <ppluzhnikov@google.com>
77269
77270         [BZ #14012]
77271         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
77272         requiring rpcgen.
77273         [cross-compiling] (extra-libs): Likewise.
77274         [cross-compiling] (extra-libs-others): Likewise.
77275         [cross-compiling] (librpcsvc-routines): Likewise.
77276         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
77277         [cross-compiling] (omit-deps): Likewise.
77278         (sunrpc-CPPFLAGS): New variable.
77279         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
77280         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
77281         (cross-rpcgen-objs): New variable.
77282         (extra-objs): Append $(cross-rpcgen-objs).
77283         ($(cross-rpcgen-objs)): New rule.
77284         ($(objpfx)cross-rpcgen): Likewise.
77285         (rpcgen-cmd): Define to use $(built-program-file).  Expand
77286         comment.
77287         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
77288         ($(objpfx)x%.stmp): Likewise.
77289         * sunrpc/proto.h [IS_IN_build] (_): Define.
77290         [IS_IN_build] (_libc_intl_domainname): Likewise.
77291
77292 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
77293
77294         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
77295         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
77296         and R_X86_64_TPOFF64.
77297
77298 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
77299
77300         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
77301         sysdeps/unix/sysv/syscalls.list.
77302         (stime): Likewise.
77303         (utime): Likewise.
77304         * sysdeps/unix/sysv/syscalls.list: Remove file.
77305
77306 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77307
77308         [BZ #3440]
77309         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
77310         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
77311         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
77312         (__LC_IDENTIFICATION): Make these macros useful in #if
77313         expressions, as required by C99.
77314
77315 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
77316
77317         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
77318         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
77319         after this.
77320
77321 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
77322
77323         * stdlib/longlong.h: Updated from GCC.
77324
77325 2012-05-09  Andreas Jaeger  <aj@suse.de>
77326
77327         * nscd/nscd.c (run_modes): Make named enum, reorder so that
77328         default is first entry.
77329         (run_mode): Set type.
77330         (main): Remove informal message about syslog.
77331         (options): Fix typo.
77332
77333         [BZ #14053]
77334         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
77335         to asm.
77336         (lrint): Likewise.
77337         (llrintf): Likewise.
77338         (llrint): Likewise.
77339         (rint): Likewise.
77340         (rintf): Likewise.
77341         (nearbyint): Likewise.
77342         (nearbyintf): Likewise.
77343
77344 2012-05-09  Andreas Jaeger  <aj@suse.de>
77345             Pedro Alves  <palves@redhat.com>
77346
77347         * nscd/nscd.c (run_mode): Use enum.
77348         (main): Cleanup coding style issue.
77349
77350 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
77351             Andreas Jaeger  <aj@suse.de>
77352
77353         * nscd/nscd.c (go_background): Replaced with...
77354         (run_mode): ... this.
77355         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
77356         (options): Add -F --foreground.
77357         (main): Implement it.
77358         (parse_opt): Parse it.
77359
77360 2012-05-09  Andreas Jaeger  <aj@suse.de>
77361
77362         [BZ #14083]
77363         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
77364         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
77365         -Wconversion warning.
77366         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
77367         Likewise.
77368
77369 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
77370
77371         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
77372         == 0.
77373         (LC_ALL): Use macro-int-constant.
77374         (LC_COLLATE): Likewise.
77375         (LC_CTYPE): Likewise.
77376         (LC_MESSAGES): Likewise.
77377         (LC_MONETARY): Likewise.
77378         (LC_NUMERIC): Likewise.
77379         (LC_TIME): Likewise.
77380         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
77381         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
77382         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77383         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
77384         Specify type.
77385         [C99-based standards] (float_t): Expect type.
77386         [C99-based standards] (double_t): Expect type.
77387         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
77388         type.
77389         [C99-based standards] (HUGE_VALL): Likewise.
77390         [C99-based standards] (INFINITY): Likewise.
77391         [C99-based standards] (NAN): Likewise.
77392         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
77393         [C99-based standards] (FP_NAN): Likewise.
77394         [C99-based standards] (FP_NORMAL): Likewise.
77395         [C99-based standards] (FP_SUBNORMAL): Likewise.
77396         [C99-based standards] (FP_ZERO): Likewise.
77397         [C99-based standards] (FP_FAST_FMA): Use
77398         optional-macro-int-constant.  Specify type.  Require == 1.
77399         [C99-based standards] (FP_FAST_FMAF): Likewise.
77400         [C99-based standards] (FP_FAST_FMAL): Likewise.
77401         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
77402         [C99-based standards] (FP_ILOGBNAN): Likewise.
77403         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
77404         Specify type.
77405         [C99-based standards] (MATH_ERREXCEPT): Likewise.
77406         [C99-based standards] (math_errhandling): Specify type.
77407         [ISO99 || ISO11] (signgam): Do not allow.
77408         [non-C99-based standards] (copysignf): Do not allow.
77409         [non-C99-based standards] (exp2f): Likewise.
77410         [non-C99-based standards] (log2f): Likewise.
77411         [non-C99-based standards] (modff): Allow.
77412         [non-C99-based standards] (erff): Do not allow.
77413         [non-C99-based standards] (erfcf): Likewise.
77414         [non-C99-based standards] (gammaf): Likewise.
77415         [non-C99-based standards] (hypotf): Likewise.
77416         [non-C99-based standards] (j0f): Likewise.
77417         [non-C99-based standards] (j1f): Likewise.
77418         [non-C99-based standards] (jnf): Likewise.
77419         [non-C99-based standards] (lgammaf): Likewise.
77420         [non-C99-based standards] (tgammaf): Likewise.
77421         [non-C99-based standards] (y0f): Likewise.
77422         [non-C99-based standards] (y1f): Likewise.
77423         [non-C99-based standards] (ynf): Likewise.
77424         [non-C99-based standards] (isnanf): Likewise.
77425         [non-C99-based standards] (acoshf): Likewise.
77426         [non-C99-based standards] (asinhf): Likewise.
77427         [non-C99-based standards] (atanhf): Likewise.
77428         [non-C99-based standards] (cbrtf): Likewise.
77429         [non-C99-based standards] (expm1f): Likewise.
77430         [non-C99-based standards] (ilogbf): Likewise.
77431         [non-C99-based standards] (log1pf): Likewise.
77432         [non-C99-based standards] (logbf): Likewise.
77433         [non-C99-based standards] (nextafterf): Likewise.
77434         [non-C99-based standards] (remainderf): Likewise.
77435         [non-C99-based standards] (rintf): Likewise.
77436         [non-C99-based standards] (scalbf): Likewise.
77437         [non-C99-based standards] (copysignl): Likewise.
77438         [non-C99-based standards] (exp2l): Likewise.
77439         [non-C99-based standards] (log2l): Likewise.
77440         [non-C99-based standards] (modfl): Allow.
77441         [non-C99-based standards] (erfl): Do not allow.
77442         [non-C99-based standards] (erfcl): Likewise.
77443         [non-C99-based standards] (gammal): Likewise.
77444         [non-C99-based standards] (hypotl): Likewise.
77445         [non-C99-based standards] (j0l): Likewise.
77446         [non-C99-based standards] (j1l): Likewise.
77447         [non-C99-based standards] (jnl): Likewise.
77448         [non-C99-based standards] (lgammal): Likewise.
77449         [non-C99-based standards] (tgammal): Likewise.
77450         [non-C99-based standards] (y0l): Likewise.
77451         [non-C99-based standards] (y1l): Likewise.
77452         [non-C99-based standards] (ynl): Likewise.
77453         [non-C99-based standards] (isnanl): Likewise.
77454         [non-C99-based standards] (acoshl): Likewise.
77455         [non-C99-based standards] (asinhl): Likewise.
77456         [non-C99-based standards] (atanhl): Likewise.
77457         [non-C99-based standards] (cbrtl): Likewise.
77458         [non-C99-based standards] (expm1l): Likewise.
77459         [non-C99-based standards] (ilogbl): Likewise.
77460         [non-C99-based standards] (log1pl): Likewise.
77461         [non-C99-based standards] (logbl): Likewise.
77462         [non-C99-based standards] (nextafterl): Likewise.
77463         [non-C99-based standards] (remainderl): Likewise.
77464         [non-C99-based standards] (rintl): Likewise.
77465         [non-C99-based standards] (scalbl): Likewise.
77466         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77467         [non-C99-based standards] (FP_*): Do not allow.
77468         [C99-based standards] (FP_*): Change to
77469         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
77470         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
77471         allow.
77472         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
77473         (SIG_ERR): Likewise.
77474         [X/Open-based standards] (SIG_HOLD): Likewise.
77475         (SIG_IGN): Likewise.
77476         (SIGABRT): Use macro-int-constant.  Specify type.  Require
77477         positive value.
77478         (SIGFPE): Likewise.
77479         (SIGILL): Likewise.
77480         (SIGINT): Likewise.
77481         (SIGSEGV): Likewise.
77482         (SIGTER): Likewise.
77483         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
77484         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
77485         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
77486         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
77487         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
77488         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
77489         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
77490         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
77491         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
77492         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
77493         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
77494         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
77495         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
77496         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
77497         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
77498         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
77499         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
77500         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
77501         [X/Open-based standards] (SIGTRAP): Likewise.
77502         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
77503         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
77504         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
77505         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
77506         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
77507         allow.
77508
77509 2012-05-08  Ian Wienand  <ianw@vmware.com>
77510
77511         [BZ #14080]
77512         * time/tzset.c (__tzset_parse_tz): Update default rules for
77513         daylight time changes in the Energy Policy Act of 2005.
77514
77515 2012-05-09  Andreas Jaeger  <aj@suse.de>
77516
77517         [BZ #13983]
77518         * elf/ldconfig.c (parse_conf): Change string to make clear that
77519         ldconfig only issued a warning if ld.so.conf does not exist.
77520
77521 2012-05-08  David S. Miller  <davem@davemloft.net>
77522
77523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
77524         movxtod instead of popping the value on the stack.
77525
77526         * sysdeps/sparc/fpu/libm-test-ulps: Update.
77527
77528 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
77529
77530         * config.h.in: Add HAVE_ARM_PCS_VFP.
77531
77532 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
77533
77534         [BZ #13979]
77535         * include/features.h: Warn if user requests __FORTIFY_SOURCE
77536         checking but the checks are disabled for any reason.
77537
77538 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
77539
77540         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
77541         and ELF64_R_TYPE with ELFW(R_TYPE).
77542
77543 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
77544
77545         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
77546         (ulimit): Likewise.
77547
77548         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
77549         (settimeofday): Likewise.
77550
77551 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
77552
77553         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
77554         a struct th_u2 inside the union, and move tu_block/tu_code into
77555         a new th_u3 union of tu_block/tu_code inside of that.  Move
77556         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
77557         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
77558         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
77559         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
77560         (th_stuff): Change to th_u1.tu_stuff.
77561         (th_data): Define.
77562         (th_msg): Change to th_u1.th_u2.tu_data.
77563
77564 2012-05-07  David S. Miller  <davem@davemloft.net>
77565
77566         * sysdeps/sparc/fpu/libm-test-ulps: Update.
77567
77568         [BZ #14074]
77569         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
77570         (SETUP_PIC_REG): Use it.
77571         (SETUP_PIC_REG_LEAF): Use it.
77572
77573 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
77574
77575         [BZ #13885]
77576         [BZ #13923]
77577         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77578         USE_AS_EXPM1L.
77579         (EXPL_FINITE): Likewise.
77580         (FLDLOG): Likewise.
77581         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
77582         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
77583         e_expl.S.
77584         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77585         USE_AS_EXPM1L.
77586         (EXPL_FINITE): Likewise.
77587         (FLDLOG): Likewise.
77588         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
77589         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
77590         e_expl.S.
77591         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
77592         test of -max_value argument for long double.
77593         * sysdeps/i386/fpu/libm-test-ulps: Update.
77594         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
77595
77596 2012-05-06  David S. Miller  <davem@davemloft.net>
77597
77598         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
77599         quad soft-float symbols whose references which are compiler
77600         generated.
77601         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
77602
77603 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
77604
77605         [BZ #13884]
77606         [BZ #13914]
77607         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77608         USE_AS_EXP10L.
77609         (EXPL_FINITE): Likewise.
77610         (FLDLOG): Likewise.
77611         (c0): Likewise.
77612         (c1): Likewise.
77613         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
77614         Adjust comments for base varying.
77615         (__expl_finite): Change alias to EXPL_FINITE.
77616         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
77617         e_expl.S.
77618         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
77619         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
77620         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
77621         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
77622         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77623         USE_AS_EXP10L.
77624         (EXPL_FINITE): Likewise.
77625         (FLDLOG): Likewise.
77626         (c0): Likewise.
77627         (c1): Likewise.
77628         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
77629         Adjust comments for base varying.
77630         (__expl_finite): Change alias to EXPL_FINITE.
77631         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
77632         tests for bugs.
77633         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
77634
77635         [BZ #14064]
77636         * math/libm-test.inc (check_float_internal): Correct ulp
77637         calculation for subnormal expected results.
77638
77639 2012-05-06  Andreas Jaeger  <aj@suse.de>
77640
77641         * Makeconfig (+math-flags): New, set to -frounding-math.
77642         (+cflags): Add +math-flags so that all of glibc gets compiled with
77643         it.
77644
77645         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
77646
77647 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
77648
77649         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
77650         Disable one test.
77651
77652         [BZ #13787]
77653         [BZ #13922]
77654         [BZ #14036]
77655         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
77656         (__ieee754_expl): Allow for and saturate large arguments.
77657         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
77658         (u_threshold): Likewise.
77659         (__exp): Call __ieee754_exp before checking for overflow and
77660         underflow.
77661         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
77662         (u_threshold): Likewise.
77663         (__expf): Call __ieee754_expf before checking for overflow and
77664         underflow.
77665         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
77666         (u_threshold): Likewise.
77667         (__expl): Call __ieee754_expl before checking for overflow and
77668         underflow.
77669         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
77670         (__ieee754_expl): Allow for and saturate large arguments.
77671         * math/libm-test.inc (exp_test): Add another test.  Do not allow
77672         missing overflow exception on overflow.
77673         (expm1_test): Do not allow missing overflow exception on overflow.
77674
77675         * sysdeps/i386/fpu/e_expl.c: Move to ...
77676         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
77677         rather than using inline asm.
77678         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
77679         * sysdeps/x86_64/fpu/e_expl.S: Copy from
77680         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
77681
77682         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
77683         (nice): Likewise.
77684         (poll): Likewise.
77685         (signal): Likewise.
77686         (time): Likewise.
77687         (times): Likewise.
77688
77689 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
77690
77691         * sysdeps/unix/syscalls.list (adjtime): Add entry from
77692         sysdeps/unix/common/syscalls.list.
77693         (fchmod): Likewise.
77694         (fchown): Likewise.
77695         (ftruncate): Likewise.
77696         (getrusage): Likewise.
77697         (gettimeofday): Likewise.
77698         (setpgid): Likewise.
77699         (setregid): Likewise.
77700         (setreuid): Likewise.
77701         (sigaction): Likewise.
77702         (truncate): Likewise.
77703         (vhangup): Likewise.
77704         * sysdeps/unix/common/syscalls.list: Remove file.
77705         * sysdeps/unix/bsd/Implies: Don't include unix/common.
77706         * sysdeps/unix/sysv/linux/Implies: Likewise.
77707
77708 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
77709
77710         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
77711         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
77712         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
77713         Moved to ...
77714         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
77715         Here.
77716         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
77717         to ...
77718         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
77719         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
77720         to ...
77721         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
77722         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
77723         to ...
77724         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
77725         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
77726         to ...
77727         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
77728         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
77729         to ...
77730         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
77731         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
77732         to ...
77733         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
77734         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
77735         to ...
77736         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
77737         Here.
77738         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
77739         to ...
77740         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
77741         Here.
77742         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
77743         to ...
77744         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
77745         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
77746         Moved to ...
77747         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
77748         Here.
77749         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
77750         to ...
77751         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
77752
77753 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
77754
77755         * sysdeps/unix/common/bits/dirent.h: Remove file.
77756         * sysdeps/unix/common/bits/fcntl.h: Likewise.
77757
77758         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
77759         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
77760         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
77761         * sysdeps/unix/bsd/isatty.c: Likewise.
77762         * sysdeps/unix/bsd/tcdrain.c: Likewise.
77763         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
77764         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
77765
77766 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77767
77768         [BZ #13563]
77769         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
77770         long double comparison inaccuracies.
77771         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
77772         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
77773
77774 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
77775
77776         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
77777         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
77778
77779 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
77780
77781         [BZ #14049]
77782         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
77783         nonzero digits before rounding a hex value.
77784         * stdlib/tst-strtod.c (tests): Add another test.
77785
77786 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
77787
77788         * sysdeps/s390/fpu/libm-test-ulps: Update.
77789
77790 2012-05-03  Andreas Jaeger  <aj@suse.de>
77791
77792         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
77793         does not get optimized out.
77794         (malloc_opt_barrier): New.
77795
77796 2012-05-03  Andreas Jaeger  <aj@suse.de>
77797             Roland McGrath  <roland@hack.frob.com>
77798
77799         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
77800         intermediate file deletion.
77801         (generated): Add .symlist files.
77802
77803 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
77804
77805         [BZ #13775]
77806         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
77807         Redirect under this condition.
77808         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
77809         [__USE_GNU] (__dprintf_chk): Not under this condition.
77810         [__USE_GNU] (__vdprintf_chk): Likewise.
77811         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
77812         under this condition.
77813         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
77814         [__USE_XOPEN2K8] (dprintf): Define under this condition.
77815         [__USE_XOPEN2K8] (vdprintf): Likewise.
77816         [__USE_GNU] (__dprintf_chk): Not under this condition.
77817         [__USE_GNU] (__vdprintf_chk): Likewise.
77818         [__USE_GNU] (dprintf): Likewise.
77819         [__USE_GNU] (vdprintf): Likewise.
77820
77821 2012-05-03  Roland McGrath  <roland@hack.frob.com>
77822
77823         * elf/Makefile (common-generated): Set this instead of generated for
77824         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
77825         $(all-built-dso)-derived lists.
77826
77827 2012-05-03  Andreas Jaeger  <aj@suse.de>
77828
77829         * sysdeps/i386/fpu/libm-test-ulps: Update.
77830
77831         * FAQ: Removed.
77832         * FAQ.in: Likewise.
77833         * scripts/gen-FAQ.pl: Likewise.
77834         * manual/install.texi (Installation): Point to online location of
77835         FAQ.
77836         * Makefile (files-for-dist): Remove FAQ.
77837         (FAQ): Remove.
77838
77839 2012-05-02  Allan McRae  <allan@archlinux.org>
77840
77841         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
77842         (LDFLAGS-reldepmod5.so): Likewise.
77843         (LDFLAGS-reldep6mod1.so): Likewise.
77844         (LDFLAGS-reldep6mod4.so): Likewise.
77845         (LDFLAGS-reldep8mod3.so): Likewise.
77846         (LDFLAGS-unload4mod1.so): Likewise.
77847         (LDFLAGS-unload4mod2.so): Likewise.
77848         (LDFLAGS-tst-initorder): Likewise.
77849         (LDFLAGS-tst-initordera2.so): Likewise.
77850         (LDFLAGS-tst-initordera3.so): Likewise.
77851         (LDFLAGS-tst-initordera4.so): Likewise.
77852         (LDFLAGS-tst-initorderb2.so): Likewise.
77853         (LDFLAGS-noload): Likewise.
77854         (LDFLAGS-next): Likewise.
77855         (LDFLAGS-order2mod1.so): Likewise.
77856         (LDFLAGS-order2mod2.so): Likewise.
77857         (LDFLAGS-tst-initorder2): Likewise.
77858         (LDFLAGS-tst-initorder2a.so): Likewise.
77859         (LDFLAGS-tst-initorder2b.so): Likewise.
77860         (LDFLAGS-tst-initorder2c.so): Likewise.
77861         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
77862
77863 2012-05-02  David S. Miller  <davem@davemloft.net>
77864
77865         * sysdeps/sparc/fpu/libm-test-ulps: Update.
77866
77867 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
77868
77869         [BZ #14055]
77870         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
77871
77872 2012-05-02  Andreas Jaeger  <aj@suse.de>
77873
77874         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
77875         since we manipulate rounding mode.
77876         (CPPFLAGS-test-idouble.c): Likewise.
77877         (CPPFLAGS-test-ifloat.c): Likewise.
77878         (CFLAGS-test-ldouble.c): Likewise.
77879         (CFLAGS-test-double.c): Likewise.
77880         (CFLAGS-test-float.c): Likewise.
77881         (CFLAGS-test-misc.c): Likewise.
77882         (CFLAGS-test-test-fenv.c): Likewise.
77883
77884 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77885
77886         [BZ #2550]
77887         [BZ #2570]
77888         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
77889         comparisons to determine direction to adjust input.
77890
77891 2012-05-01  Roland McGrath  <roland@hack.frob.com>
77892
77893         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
77894         output to the target.
77895
77896         * scripts/localplt.awk: New file.
77897         * elf/Makefile ($(objpfx)check-localplt): Target removed.
77898         (check-localplt-CFLAGS): Variable removed.
77899         ($(all-built-dso:=.jmprel)): New static pattern rule.
77900         (generated): Add those targets.
77901         (localplt-built-dso): New variable.
77902         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
77903
77904         * elf/check-localplt.c: File removed.
77905
77906         * scripts/check-execstack.awk: New file.
77907         * elf/Makefile ($(objpfx)check-execstack): Target removed.
77908         (check-execstack-CFLAGS): Variable removed.
77909         ($(objpfx)check-execstack.h): Target removed.
77910         ($(objpfx)execstack-default): New target.
77911         (generated): Add that instead of check-execstack.h.
77912         ($(all-built-dso:=.phdr)): New static pattern rule.
77913         (generated): Add those targets.
77914         * elf/check-execstack.c: File removed.
77915
77916         * scripts/check-textrel.awk: New file.
77917         * elf/Makefile ($(objpfx)check-textrel): Target removed.
77918         (check-textrel-CFLAGS): Variable removed.
77919         (all-built-dso): Use := to define.o
77920         ($(all-built-dso:=.dyn)): New static pattern rule.
77921         (generated): Add those targets.
77922         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
77923         * config.make.in (READELF): New substituted variable.
77924         * elf/check-textrel.c: File removed.
77925
77926 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
77927
77928         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
77929         allow.
77930         * conform/data/ctype.h-data [C99-based standards] (isblank):
77931         Expect function.
77932         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
77933         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
77934         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77935         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
77936         Specify type.  Require positive value.
77937         (EILSEQ): Likewise.
77938         (ERANGE): Likewise.
77939         [ISO || POSIX] (EILSEQ): Do not expect.
77940         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
77941         Specify type.  Require positive value.
77942         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
77943         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
77944         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
77945         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
77946         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
77947         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
77948         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
77949         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
77950         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
77951         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
77952         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
77953         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
77954         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
77955         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
77956         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
77957         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
77958         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
77959         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
77960         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
77961         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
77962         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
77963         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
77964         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
77965         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
77966         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
77967         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
77968         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
77969         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
77970         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
77971         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
77972         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
77973         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
77974         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
77975         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
77976         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
77977         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
77978         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
77979         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
77980         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
77981         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
77982         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
77983         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
77984         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
77985         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
77986         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
77987         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
77988         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
77989         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
77990         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
77991         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
77992         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
77993         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
77994         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
77995         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
77996         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
77997         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
77998         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
77999         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
78000         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
78001         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
78002         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
78003         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
78004         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
78005         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
78006         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
78007         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
78008         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
78009         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
78010         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
78011         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
78012         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
78013         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
78014         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
78015         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
78016         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
78017         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
78018         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
78019         Require >= 2.
78020         (FLT_ROUNDS): Expect as macro, not constant.
78021         (FLT_MANT_DIG): Use macro-int-constant.
78022         (DBL_MANT_DIG): Likewise.
78023         (LDBL_MANT_DIG): Likewise.
78024         (FLT_DIG): Likewise.
78025         (DBL_DIG): Likewise.
78026         (LDBL_DIG): Likewise.
78027         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
78028         (DBL_MIN_EXP): Likewise.
78029         (LDBL_MIN_EXP): Likewise.
78030         (FLT_MAX_EXP): Use macro-int-constant.
78031         (DBL_MAX_EXP): Likewise.
78032         (LDBL_MAX_EXP): Likewise.
78033         (FLT_MAX_10_EXP): Likewise.
78034         (DBL_MAX_10_EXP): Likewise.
78035         (LDBL_MAX_10_EXP): Likewise.
78036         (FLT_MAX): Use macro-constant.
78037         (DBL_MAX): Likewise.
78038         (LDBL_MAX): Likewise.
78039         (FLT_EPSILON): Use macro-constant.  Give upper bound.
78040         (DBL_EPSILON): Likewise.
78041         (LDBL_EPSILON): Likewise.
78042         (FLT_MIN): Likewise.
78043         (DBL_MIN): Likewise.
78044         (LDBL_MIN): Likewise.
78045         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
78046         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
78047         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
78048         [ISO11] (FLT_HAS_SUBNORM): Likewise.
78049         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
78050         [ISO11] (DBL_DECIMAL_DIG): Likewise.
78051         [ISO11] (FLT_DECIMAL_DIG): Likewise.
78052         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
78053         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
78054         [ISO11] (FLT_TRUE_MIN): Likewise.
78055         [ISO11] (LDBL_TRUE_MIN): Likewise.
78056         [ISO || ISO99 || ISO11] (*_t): Do not allow.
78057         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
78058         (SCHAR_MIN): Use macro-int-constant.  Specify type.
78059         (SCHAR_MAX): Likewise.
78060         (UCHAR_MAX): Likewise.
78061         (CHAR_MIN): Likewise.
78062         (CHAR_MAX): Likewise.
78063         (MB_LEN_MAX): Use macro-int-constant.
78064         (SHRT_MIN): Use macro-int-constant.  Specify type.
78065         (SHRT_MAX): Likewise.
78066         (USHRT_MAX): Likewise.
78067         (INT_MAX): Likewise.
78068         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
78069         bound negative.
78070         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
78071         bound with "U".
78072         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
78073         bound with "L".
78074         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
78075         bound negative.  Suffix upper bound with "L".
78076         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
78077         bound with "UL".
78078         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
78079         Specify type.
78080         [C99-based standards] (LLONG_MAX): Likewise.
78081         [C99-based standards] (ULLONG_MAX): Likewise.
78082         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
78083         == 0.
78084         [ISO11] (max_align_t): Require type.
78085         [ISO || ISO99 || ISO11] (*_t): Do not allow.
78086
78087         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
78088         from $CFLAGS, without defining away __attribute__ calls.
78089         (checknamespace): Use $CFLAGS_namespace.
78090
78091         * conform/conformtest.pl (@keywords): Only include C99 keywords
78092         for standards based on C99 or C11.
78093
78094         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
78095         Disable tests.
78096         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
78097         UNIX98]: Likewise.
78098
78099         * conform/conformtest.pl: Handle "macro-int-constant" and test for
78100         usability of symbols in #if.
78101
78102         * conform/conformtest.pl: If macro or constant types start
78103         "promoted:", expect the symbol to be of the following type
78104         promoted by the integer promotions.
78105
78106         * conform/conformtest.pl: Parse all "constant" and "macro" lines
78107         in one place.  Also handle "macro-constant".
78108
78109         * conform/conformtest.pl: Only accept expected macro values with
78110         "==".  Parse all "macro" lines in one place.
78111         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
78112
78113         * conform/conformtest.pl: Handle braced types on "constant" lines
78114         instead of handling "typed-constant".
78115         * conform/data/signal.h-data: Use "constant" instead of
78116         "typed-constant".
78117
78118         * conform/conformtest.pl: Handle "optional-" at start of lines in
78119         one place rather than duplicating several cases.  Handle each
78120         format of "macro" line with initial "optional-".
78121
78122         * conform/conformtest.pl: Only accept expected constant or
78123         optional-constant values with "==".  Parse all "constant" lines in
78124         one place.  Parse all "optional-constant" lines in one place.
78125         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
78126         * conform/data/fmtmsg.h-data: Likewise.
78127         * conform/data/netinet/in.h-data: Likewise.
78128         * conform/data/tar.h-data: Likewise.
78129         * conform/data/limits.h-data: Use "==" form on "constant" and
78130         "optional-constant" lines.
78131
78132         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
78133         Use -std=c99 for XOPEN2K.
78134         (@knownproblems): Remove.
78135         (newtoken): Don't check %isknown.
78136
78137         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
78138         Do not expect macro.
78139         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
78140         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
78141         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
78142         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
78143         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
78144         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
78145         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
78146         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
78147         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
78148         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
78149         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
78150         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
78151         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
78152         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
78153         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
78154         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
78155         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
78156         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
78157         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
78158         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
78159         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
78160         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
78161         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
78162         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
78163         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
78164         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
78165         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
78166         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
78167         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
78168         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
78169         [XPG3] (acosh): Likewise.
78170         [XPG3] (asinh): Likewise.
78171         [XPG3] (atanh): Likewise.
78172         [XPG3] (cbrt): Likewise.
78173         [XPG3] (expm1): Likewise.
78174         [XPG3] (ilogb): Likewise.
78175         [XPG3] (log1p): Likewise.
78176         [XPG3] (logb): Likewise.
78177         [XPG3] (nextafter): Likewise.
78178         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
78179         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
78180         [XPG3] (remainder): Likewise.
78181         [XPG3] (rint): Likewise.
78182         [XPG3 || XPG4 || UNIX98] (round): Likewise.
78183         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
78184         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
78185         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
78186         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
78187         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
78188         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
78189         [UNIX98 || XOPEN2K] (scalb): Expect.
78190         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
78191         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
78192         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
78193         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
78194         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
78195         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
78196         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
78197         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
78198         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
78199         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
78200         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
78201         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
78202         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
78203         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
78204         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
78205         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
78206         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
78207         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
78208         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
78209         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
78210         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
78211         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
78212         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
78213         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
78214         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
78215         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
78216         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
78217         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
78218         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
78219         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
78220         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
78221         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
78222         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
78223         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
78224         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
78225         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
78226         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
78227         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
78228         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
78229         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
78230         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
78231         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
78232         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
78233         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
78234         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
78235         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
78236         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
78237         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
78238         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
78239         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
78240         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
78241         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
78242         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
78243         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
78244         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
78245         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
78246         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
78247         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
78248         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
78249         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
78250         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
78251         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
78252         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
78253         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
78254         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
78255         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
78256         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
78257         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
78258         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
78259         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
78260         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
78261         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
78262         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
78263         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
78264         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
78265         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
78266         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
78267         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
78268         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
78269         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
78270         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
78271         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
78272         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
78273         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
78274         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
78275         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
78276         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
78277         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
78278         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
78279         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
78280         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
78281         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
78282         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
78283         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
78284         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
78285         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
78286         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
78287         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
78288         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
78289         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
78290         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
78291         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
78292         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
78293         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
78294         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
78295         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
78296         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
78297         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
78298         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
78299         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
78300         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
78301         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
78302         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
78303         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
78304         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
78305         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
78306         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
78307         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
78308         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
78309         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
78310         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
78311         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
78312         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
78313         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
78314         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
78315         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
78316         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
78317         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
78318         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
78319         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
78320         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
78321         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
78322         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
78323         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
78324         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
78325         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
78326         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
78327
78328         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
78329         _XOPEN_SOURCE_EXTENDED for XPG4.
78330
78331         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
78332
78333         * Makeconfig (localtime): Remove variable.
78334         (inst_localtime-file): Likewise.
78335
78336 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
78337
78338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
78339         Update.
78340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
78341         Update.
78342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
78343         Update.
78344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
78345         Update.
78346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
78347         Update.
78348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
78349         Update.
78350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
78351         Update.
78352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
78353         Update.
78354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
78355         Update.
78356
78357 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
78358
78359         [BZ #2550]
78360         [BZ #2570]
78361         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
78362         comparisons to determine direction to adjust input.
78363         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
78364         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
78365         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
78366         Likewise.
78367         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
78368         Likewise.
78369         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
78370         Likewise.
78371         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
78372         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
78373         Likewise.
78374         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
78375         Likewise.
78376         * math/libm-test.inc (nexttoward_test): Add more tests.
78377
78378 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
78379
78380         [BZ #14040]
78381         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
78382         in version GLIBC_2.1, not GLIBC_2.0.
78383         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
78384         Likewise.
78385
78386 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
78387
78388         [BZ #13942]
78389         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
78390         (1 - x) * (1 + x).
78391         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
78392         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
78393         * math/libm-test.inc (acos_test): Add more tests.
78394         (asin_test): Likewise.
78395         * sysdeps/i386/fpu/libm-test-ulps: Update.
78396         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
78397
78398         [BZ #14034]
78399         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
78400         of square root.
78401         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
78402         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
78403         * math/libm-test.inc (acos_test_tonearest): New function.
78404         (acos_test_towardzero): Likewise.
78405         (acos_test_downward): Likewise.
78406         (acos_test_upward): Likewise.
78407         (asin_test_tonearest): Likewise.
78408         (asin_test_towardzero): Likewise.
78409         (asin_test_downward): Likewise.
78410         (asin_test_upward): Likewise.
78411         (main): Call the new functions.
78412         * sysdeps/i386/fpu/libm-test-ulps: Update.
78413         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
78414
78415         [BZ #13884]
78416         [BZ #13924]
78417         * math/e_exp10.c: Include <float.h>.
78418         (__ieee754_exp10): Handle underflow here rather than multiplying
78419         large negative argument by M_LN10.
78420         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
78421         of __ieee754_expf.
78422         * math/e_exp10l.c: Include <float.h>.
78423         (__ieee754_exp10l): Handle underflow here rather than multiplying
78424         large negative argument by M_LN10l.
78425         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
78426         spurious overflow exception on underflow.
78427
78428 2012-04-29  Marek Polacek  <polacek@redhat.com>
78429
78430         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
78431         (__fortify_function): New macro.
78432         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
78433         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
78434         __extern_always_inline.
78435         * libio/bits/stdio2.h: Likewise.
78436         * libio/bits/stdio.h: Likewise.
78437         * string/string.h: Likewise.
78438         * string/bits/string3.h: Likewise.
78439         * include/stdio.h: Likewise.
78440         * stdlib/bits/stdlib.h: Likewise.
78441         * stdlib/stdlib.h: Likewise.
78442         * rt/bits/mqueue2.h: Likewise.
78443         * rt/mqueue.h: Likewise.
78444         * posix/bits/unistd.h: Likewise.
78445         * posix/unistd.h: Likewise.
78446         * io/bits/poll2.h: Likewise.
78447         * io/bits/fcntl2.h: Likewise.
78448         * io/fcntl.h: Likewise.
78449         * io/sys/poll.h: Likewise.
78450         * misc/bits/syslog.h: Likewise.
78451         * misc/bits/syslog-ldbl.h: Likewise.
78452         * misc/sys/syslog.h: Likewise.
78453         * socket/bits/socket2.h: Likewise.
78454         * socket/sys/socket.h: Likewise.
78455         * debug/tst-chk1.c: Likewise.
78456         * wcsmbs/bits/wchar2.h: Likewise.
78457         * wcsmbs/bits/wchar-ldbl.h: Likewise.
78458         * wcsmbs/wchar.h: Likewise.
78459
78460 2012-04-29  Andreas Jaeger  <aj@suse.de>
78461
78462         * Makerules (tests): Remove enable-check-abi protection.
78463         (check-abi-warn): Remove.
78464         (check-abi-%): Remove check-abi-warn usage.
78465
78466         * configure.in: Remove check-abi configure option.
78467         * configure: Regenerated.
78468         * config.make.in (enable-check-abi): Remove.
78469
78470 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
78471
78472         [BZ #14033]
78473         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
78474         double functions to double *_finite functions.
78475
78476         [BZ #13941]
78477         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
78478         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
78479         LDBL_MIN_EXP.
78480         * stdio-common/Makefile (tests): Add tst-sprintf3.
78481         * stdio-common/tst-sprintf3.c: New file.
78482
78483         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
78484         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
78485
78486 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
78487
78488         * conform/conformtest.pl: Remove duplicate typed-constant
78489         handling.
78490
78491 2012-04-28  David S. Miller  <davem@davemloft.net>
78492
78493         * Makerules (%.abilist): Add vpath on sysdep_dirs.
78494         (check-abi-%): Remove AWK script prerequisite and explicit
78495         abilist directory.
78496         (check-abi): Rewrite to just diff the symlist with the abilist.
78497         (config-tls, config-abi-config): Delete, no longer used.
78498         (update-abi-%): Remove AWK script and explicit abilist directory.
78499         (update-abi): Rewrite to simply compare and conditionally copy the
78500         symlist and the sysdep abilist file.  Remove update-abi-config
78501         checks.
78502         * abilist/ld.abilist: Remove.
78503         * abilist/libBrokenLocale.abilist: Remove.
78504         * abilist/libanl.abilist: Remove.
78505         * abilist/libcrypt.abilist: Remove.
78506         * abilist/libdl.abilist: Remove.
78507         * abilist/librt.abilist: Remove.
78508         * abilist/libthread_db.abilist: Remove.
78509         * abilist/libutil.abilist: Remove.
78510         * scripts/extract-abilist.awk: Remove.
78511         * scripts/merge-abilist.awk: Remove.
78512         * sysdeps/generic/libcidn.abilist: New file.
78513         * sysdeps/generic/libnss_compat.abilist: New file.
78514         * sysdeps/generic/libnss_db.abilist: New file.
78515         * sysdeps/generic/libnss_dns.abilist: New file.
78516         * sysdeps/generic/libnss_files.abilist: New file.
78517         * sysdeps/generic/libnss_hesiod.abilist: New file.
78518         * sysdeps/generic/libnss_nis.abilist: New file.
78519         * sysdeps/generic/libnss_nisplus.abilist: New file.
78520         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
78521         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
78522         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
78523         file.
78524         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
78525         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
78526         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
78527         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
78528         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
78529         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
78530         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
78531         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
78532         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
78533         file.
78534         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
78535         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
78536         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
78537         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
78538         file.
78539         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
78540         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
78541         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
78542         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
78543         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
78544         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
78545         file.
78546         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
78547         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
78548         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
78549         file.
78550         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
78551         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
78552         New file.
78553         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
78554         New file.
78555         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
78556         New file.
78557         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
78558         New file.
78559         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
78560         New file.
78561         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
78562         New file.
78563         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
78564         New file.
78565         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
78566         New file.
78567         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
78568         New file.
78569         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
78570         New file.
78571         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
78572         New file.
78573         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
78574         New file.
78575         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
78576         New file.
78577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
78578         file.
78579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
78580         New file.
78581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
78582         New file.
78583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
78584         file.
78585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
78586         New file.
78587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
78588         New file.
78589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
78590         file.
78591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
78592         New file.
78593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
78594         New file.
78595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
78596         New file.
78597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
78598         New file.
78599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
78600         New file.
78601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
78602         New file.
78603         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
78604         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
78605         file.
78606         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
78607         New file.
78608         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
78609         file.
78610         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
78611         file.
78612         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
78613         file.
78614         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
78615         file.
78616         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
78617         file.
78618         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
78619         New file.
78620         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
78621         file.
78622         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
78623         file.
78624         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
78625         New file.
78626         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
78627         file.
78628         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
78629         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
78630         file.
78631         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
78632         New file.
78633         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
78634         file.
78635         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
78636         file.
78637         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
78638         file.
78639         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
78640         file.
78641         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
78642         file.
78643         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
78644         New file.
78645         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
78646         file.
78647         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
78648         file.
78649         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
78650         New file.
78651         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
78652         file.
78653         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
78654         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
78655         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
78656         file.
78657         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
78658         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
78659         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
78660         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
78661         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
78662         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
78663         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
78664         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
78665         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
78666         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
78667         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
78668         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
78669         file.
78670         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
78671         New file.
78672         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
78673         file.
78674         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
78675         file.
78676         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
78677         file.
78678         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
78679         file.
78680         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
78681         file.
78682         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
78683         New file.
78684         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
78685         New file.
78686         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
78687         file.
78688         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
78689         New file.
78690         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
78691         file.
78692         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
78693         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
78694         file.
78695         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
78696         New file.
78697         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
78698         file.
78699         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
78700         file.
78701         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
78702         file.
78703         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
78704         file.
78705         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
78706         file.
78707         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
78708         New file.
78709         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
78710         New file.
78711         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
78712         file.
78713         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
78714         New file.
78715         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
78716         file.
78717
78718 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
78719
78720         * conform/conformtest.pl: Fix typo in handling typed-constant from
78721         allow-header.
78722
78723 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
78724
78725         * README: Cut down references to pre-2.6 Linux kernels and
78726         Linuxthreads.  Update lists of configurations in libc and ports
78727         and sort alphabetically.  Say "or newer" with Linux kernel version
78728         requirements.
78729
78730         * config.h.in [IS_IN_build]: Allow compiling without optimization.
78731
78732 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
78733
78734         [BZ #887]
78735         * math/libm-test.inc (logb_test_downward): New test to expose
78736         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
78737         rounding mode.
78738
78739 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
78740
78741         [BZ #14027]
78742         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
78743         to be done.
78744         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
78745         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
78746
78747 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
78748
78749         * sysdeps/unix/i386/brk.S: Remove file.
78750         * sysdeps/unix/i386/dl-brk.S: Likewise.
78751         * sysdeps/unix/i386/pipe.S: Likewise.
78752         * sysdeps/unix/i386/sigreturn.S: Likewise.
78753         * sysdeps/unix/i386/syscall.S: Likewise.
78754         * sysdeps/unix/i386/vfork.S: Likewise.
78755         * sysdeps/unix/i386/wait.S: Likewise.
78756
78757         * sysdeps/unix/common/tcsendbrk.c: Move to ...
78758         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
78759
78760         * configure.in (arm*-none*): Do not allow without
78761         --enable-hacker-mode.
78762         (netbsd*): Remove case setting base_os.
78763         (386bsd*): Likewise.
78764         (freebsd*): Likewise.
78765         (bsdi*): Likewise.
78766         (osf*): Likewise.
78767         (sunos*): Likewise.
78768         (ultrix*): Likewise.
78769         (newsos*): Likewise.
78770         (dynix*): Likewise.
78771         (*bsd*): Likewise.
78772         (sysv*): Likewise.
78773         (isc*): Likewise.
78774         (esix*): Likewise.
78775         (sco*): Likewise.
78776         (minix*): Likewise.
78777         (irix4*): Likewise.
78778         (irix6*): Likewise.
78779         (solaris[2-9]*): Likewise.
78780         (none): Likewise.
78781         * configure: Regenerated.
78782
78783 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
78784
78785         [BZ #11521]
78786         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
78787         overflow or cancellation in calculating denominator.
78788         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
78789         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
78790         down expression to avoid unexpected rounding in newer GCCs.
78791         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
78792
78793 2012-04-26  David S. Miller  <davem@davemloft.net>
78794
78795         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
78796         long-double compat symbols.
78797         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
78798         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
78799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
78800         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
78801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
78802         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
78803         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
78804         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
78805         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
78806         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
78807         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
78808         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
78809         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
78810
78811 2012-04-25  David S. Miller  <davem@davemloft.net>
78812
78813         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
78814         HWCAP_* values only after the memory barriers have been defined.
78815         (atomic_full_barrier): Define.
78816         (atomic_read_barrier): Define.
78817         (atomic_write_barrier): Define.
78818
78819 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
78820
78821         * shlib-versions: Add libgcc_s version information.
78822         * sysdeps/generic/libgcc_s.h: Remove.
78823         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
78824         libgcc_s.h.
78825         * sysdeps/gnu/unwind-resume.c: Likewise.
78826         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
78827
78828 2012-04-25  David S. Miller  <davem@davemloft.net>
78829
78830         * sysdeps/unix/sparc/brk.S: Delete.
78831         * sysdeps/unix/sparc/dl-brk.S: Delete.
78832         * sysdeps/unix/sparc/pipe.S: Delete.
78833         * sysdeps/unix/sparc/sysdep.S: Delete.
78834         * sysdeps/unix/sparc/sysdep.h: Delete.
78835         * sysdeps/unix/sparc/vfork.S: Delete.
78836         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
78837         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
78838         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
78839         (ret_ERRVAL, r0, r1, MOVE): Define.
78840         (JUMPTARGET): Remove.
78841         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
78842         sysdeps/unix/sparc/sysdep.h
78843         (ENTRY, END): Remove.
78844         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
78845
78846 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
78847
78848         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
78849         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
78850         -DIS_IN_build.
78851
78852         * timezone/README: Update upstream location and email address for
78853         tzcode and tzdata.
78854         * timezone/zdump.c: Update from tzcode 2012b.
78855         * timezone/zic.c: Likewise.
78856
78857         * configure.in (libc_cv_as_needed): Remove test.
78858         * configure: Regenerated.
78859         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
78860         conditional definition.
78861         [$(have-as-needed) != yes] (no-as-needed): Likewise.
78862         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
78863         * config.make.in (have-as-needed): Remove variable.
78864
78865 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
78866             Paul Pluzhnikov  <ppluzhnikov@google.com>
78867
78868         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
78869         strings correctly.
78870
78871 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
78872
78873         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
78874         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
78875         * sysdeps/sh/strlen.S: Likewise.
78876
78877 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
78878
78879         * sysdeps/unix/fork.S: Remove file.
78880         * sysdeps/unix/i386/fork.S: Likewise.
78881         * sysdeps/unix/sparc/fork.S: Likewise.
78882
78883         * sysdeps/unix/system.c: Remove file.
78884         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
78885
78886         * sysdeps/unix/getegid.S: Remove file.
78887         * sysdeps/unix/geteuid.S: Likewise.
78888
78889 2012-04-24  Roland McGrath  <roland@hack.frob.com>
78890
78891         * scripts/check-localplt.awk: New file.
78892         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
78893         of diff.
78894         * scripts/data/localplt-generic.data: Add a comment.
78895
78896         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
78897         NODE when __dir_mkfile failed.
78898         * sysdeps/mach/hurd/symlinkat.c: Likewise.
78899         Reported by Ludovic Courtès <ludo@gnu.org>.
78900
78901 2012-04-24  Andreas Jaeger  <aj@suse.de>
78902
78903         * Makerules (common-clean): Also remove gen-as-const-headers
78904         files.
78905
78906 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
78907
78908         * Makerules (native-compile): Do not change working directory for
78909         build.  Use $(OUTPUT_OPTION) in command.
78910         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
78911
78912 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
78913
78914         [BZ #13886]
78915         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
78916         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
78917         * math/libm-test.inc (floor_test): Add more tests.
78918         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
78919
78920 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
78921
78922         * sysdeps/unix/getdents.c: Remove file.
78923         * sysdeps/unix/sysv/getdents.c: Likewise.
78924         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
78925
78926         * sysdeps/unix/syscalls.list (madvise): Add syscall from
78927         sysdeps/unix/mman/syscalls.list.
78928         (mmap): Likewise.
78929         (mprotect): Likewise.
78930         (msync): Likewise.
78931         (munmap): Likewise.
78932         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
78933         * sysdeps/unix/mman/syscalls.list: Remove.
78934         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
78935
78936         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
78937         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
78938         * configure: Regenerated.
78939         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
78940         $(libgcc_s_suffix).
78941         * config.make.in (libgcc_s_suffix): Remove variable.
78942
78943 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
78944
78945         * sysdeps/unix/sysv/gethostname.c: Move to ...
78946         * sysdeps/posix/gethostname.c: ... here.
78947
78948         * sysdeps/unix/execve.S: Remove file.
78949
78950         * sysdeps/unix/_exit.S: Remove file.
78951
78952 2012-04-23  Andreas Jaeger  <aj@suse.de>
78953
78954         [BZ #13739]
78955         * manual/Makefile: Remove make dist support, there's no
78956         need for a stand-alone documentation tar ball.
78957         (TEXI2DVI): Define always, it's not in Makeconfig.
78958         (dist): Removed.
78959         (tar-it): Removed.
78960         (edition): Removed.
78961         (glibc-doc-$(edition).tar): Removed
78962         (%.Z): Removed.
78963         (%.gz): Removed.
78964         (%.uu): Removed.
78965         (ETAGS): Remove, it's in Makeconfig.
78966         (move-if-change): Remove, it's in Makeconfig.
78967
78968 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
78969
78970         [BZ #13970]
78971         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
78972         (strtod, strtof, strtold, strtol, strtoul, strtoq)
78973         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
78974         (strtod_l, strtof_l, strtold_l): Remove __wur.
78975         It is not necessarily an error to ignore strtol's return value.
78976         One can reliably look at the stored endptr to decide whether
78977         the number had valid syntax.
78978
78979 2012-04-21  Andreas Jaeger  <aj@suse.de>
78980
78981         [BZ #13739]
78982         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
78983
78984 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
78985
78986         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
78987         * sysdeps/unix/sysv/Versions: Remove file.
78988
78989 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
78990
78991         [BZ #13927]
78992         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
78993
78994 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
78995
78996         [BZ #7064]
78997         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
78998         version from __vm86.
78999
79000 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
79001
79002         * sysdeps/unix/common/lxstat.c: Remove file.
79003         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
79004
79005         * sysdeps/unix/sysv/Makefile: Remove file.
79006
79007         * sysdeps/unix/sysv/direct.h: Remove file.
79008
79009         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
79010         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
79011         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
79012         * sysdeps/unix/sysv/bits/signum.h: Likewise.
79013         * sysdeps/unix/sysv/bits/stat.h: Likewise.
79014         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
79015         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
79016
79017         * sysdeps/unix/sysv/setrlimit.c: Remove file.
79018
79019         * sysdeps/unix/xmknod.c: Remove file.
79020         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
79021
79022         * sysdeps/unix/sysv/settimeofday.c: Remove file.
79023
79024         * sysdeps/unix/sysv/i386/time.S: Remove file.
79025
79026         * sysdeps/unix/fxstat.c: Remove file.
79027         * sysdeps/unix/xstat.c: Likewise.
79028         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
79029
79030         * sysdeps/unix/sysv/sigaction.c: Remove file.
79031
79032         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
79033         (sysdep_headers): Remove variable.
79034         [termio.h not in sysdep_headers] (generated): Likewise.
79035         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
79036         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
79037         * sysdeps/unix/sysv/tcdrain.c: Likewise.
79038         * sysdeps/unix/sysv/tcflow.c: Likewise.
79039         * sysdeps/unix/sysv/tcflush.c: Likewise.
79040         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
79041         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
79042         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
79043         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
79044         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
79045
79046         * sysdeps/unix/siglist.c: Remove file.
79047
79048         * sysdeps/unix/getppid.S: Remove file.
79049
79050         * sysdeps/unix/mkdir.c: Remove file.
79051         * sysdeps/unix/rmdir.c: Likewise.
79052
79053 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
79054
79055         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
79056         ERR_MAX value.
79057         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
79058         errlist-compat value.
79059
79060 2012-04-18  David S. Miller  <davem@davemloft.net>
79061
79062         * sysdeps/generic/memcopy.h (reg_char): Delete.
79063         * debug/strcat_chk.c: Use char, not reg_char.
79064         * debug/strcpy_chk.c: Likewise.
79065         * debug/strncat_chk.c: Likewise.
79066         * debug/strncpy_chk.c: Likewise.
79067         * string/memchr.c: Likewise.
79068         * string/memrchr.c: Likewise.
79069         * string/rawmemchr.c: Likewise.
79070         * string/strcat.c: Likewise.
79071         * string/strchr.c: Likewise.
79072         * string/strchrnul.c: Likewise.
79073         * string/strcmp.c: Likewise.
79074         * string/strcpy.c: Likewise.
79075         * string/strncat.c: Likewise.
79076         * string/strncmp.c: Likewise.
79077         * string/strncpy.c: Likewise.
79078
79079 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
79080
79081         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
79082         __builtin_memcopy is called when src and dest ranges are known to not
79083         overlap.
79084
79085 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
79086
79087         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
79088         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
79089         fwd_align_merge macro call.
79090         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
79091         bwd_align_merge macro call.
79092         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
79093
79094 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
79095
79096         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
79097         bwd_align_merge macros.
79098         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
79099         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
79100         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
79101
79102 2012-04-18  David S. Miller  <davem@davemloft.net>
79103
79104         * sysdeps/sparc/sparc64/memcopy.h: Delete.
79105
79106 2012-04-18  Andreas Jaeger  <aj@suse.de>
79107
79108         [BZ #6794]
79109         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
79110         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
79111         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
79112
79113         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
79114         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
79115         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
79116
79117         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
79118         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
79119         Adjust for changed ldbl-128 files.
79120
79121         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
79122         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
79123         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
79124
79125 2012-04-17  David S. Miller  <davem@davemloft.net>
79126
79127         * sysdeps/sparc/sparc32/memcopy.h: Delete.
79128
79129 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
79130
79131         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
79132         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
79133         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
79134         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
79135         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
79136         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
79137
79138 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
79139
79140         [BZ #6794]
79141         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
79142         * math/libm-test.inc: Add ilogb errno and exception tests.
79143         * math/w_ilogb.c: New file: ilogb wrapper.
79144         * math/w_ilogbf.c: New file: ilogbf wrapper.
79145         * math/w_ilogbl.c: New file: ilogbl wrapper.
79146         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
79147         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
79148         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
79149         exception being thrown with 0.0 as argument.
79150         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
79151         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
79152         exception being thrown with 0.0 as argument.
79153         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
79154         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
79155         exception being thrown with 0.0 as argument.
79156         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
79157         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
79158         exception being thrown with 0.0 as argument.
79159         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
79160         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
79161         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
79162         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
79163         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
79164         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
79165         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
79166         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
79167         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
79168
79169 2012-04-17  Petr Baudis  <pasky@ucw.cz>
79170
79171         * include/sys/uio.h: Change __vector to __iovec to avoid clash
79172         with altivec.
79173
79174 2012-04-16  Marek Polacek  <polacek@redhat.com>
79175
79176         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
79177
79178 2012-04-16  Marek Polacek  <polacek@redhat.com>
79179
79180         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
79181         operands of fdivp instruction.
79182
79183 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
79184
79185         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
79186         * elf/tst-auditmod3b.c: Likewise.
79187         * elf/tst-auditmod4b.c: Likewise.
79188         * elf/tst-auditmod5b.c: Likewise.
79189         * elf/tst-auditmod6b.c: Likewise.
79190         * elf/tst-auditmod6c.c: Likewise.
79191         * elf/tst-auditmod7b.c: Likewise.
79192         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
79193         * sysdeps/x86_64/preconfigure.in: Likewise.
79194         * sysdeps/x86_64/preconfigure: Regenerated.
79195
79196 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
79197
79198         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
79199         __ILP32__.
79200
79201 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
79202
79203         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
79204         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
79205
79206 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
79207
79208         [BZ #13973]
79209         * locale/iso-639.def: Fix gl language name. Spotted by
79210         Yaron Shahrabani.
79211
79212 2012-04-12  Roland McGrath  <roland@hack.frob.com>
79213
79214         [BZ #2074]
79215         * libio/libio.h (__io_write_fn): Update comment.
79216
79217 2012-04-12  Petr Baudis  <pasky@ucw.cz>
79218
79219         [BZ #2074]
79220         * stdio.texi (Hook Functions): The user provided writer function
79221         is not allowed to return -1.
79222
79223 2012-04-11  David S. Miller  <davem@davemloft.net>
79224
79225         * sysdeps/sparc/fpu/libm-test-ulps: Update.
79226
79227 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
79228
79229         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
79230         Add a leading slash to rtkaio.
79231
79232 2012-04-11  Jim Meyering  <meyering@redhat.com>
79233
79234         [BZ #11959]
79235         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
79236         It is not necessarily an error to ignore fwrite's return
79237         value.  One can reliably use ferror to test for errors after
79238         the fact.
79239
79240 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
79241
79242         * bits/types.h (__snseconds_t): New type.
79243         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
79244
79245         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
79246         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
79247         (__SNSECONDS_T_TYPE): Likewise.
79248         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
79249         (__SNSECONDS_T_TYPE): Likewise.
79250         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
79251         (__SNSECONDS_T_TYPE): Likewise.
79252
79253 2012-04-10  Andreas Jaeger  <aj@suse.de>
79254
79255         [BZ #2636]
79256         * manual/time.texi (Processor Time): Return type of times is
79257         elapsed real time since an arbitrary point in the past.
79258         (CPU Time): Move CLK_TCK from here...
79259         (Processor Time): ...to here.  Correct description.
79260         * manual/conf.texi (Constants for Sysconf): Correct description of
79261         _SC_CLK_TCK.
79262
79263 2012-04-10  David S. Miller  <davem@davemloft.net>
79264
79265         [BZ #13967]
79266         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
79267         where the is a gap between DT_REL(A) and DT_JMPREL.
79268
79269 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
79270
79271         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
79272         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
79273         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
79274
79275 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
79276
79277         * elf/dl-support.c (_dl_inhibit_cache): New variable.
79278         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
79279         (dl_main): Handle --inhibit-cache.
79280         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
79281         _dl_inhibit_cache.
79282         * elf/dl-load.c (_dl_map_object): Use it.
79283         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
79284
79285 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
79286
79287         [BZ #13872]
79288         * sysdeps/i386/fpu/e_powl.S (p78): New object.
79289         (__ieee754_powl): Saturate large exponents rather than testing for
79290         overflow of y*log2(x).
79291         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
79292         * math/libm-test.inc (pow_test): Do not permit spurious overflow
79293         exceptions.
79294
79295         [BZ #11521]
79296         * math/s_ctan.c: Include <float.h>.
79297         (__ctan): Avoid internal overflow or cancellation in calculating
79298         denominator.
79299         * math/s_ctanf.c: Likewise.
79300         * math/s_ctanl.c: Likewise.
79301         * math/s_ctanh.c: Likewise.
79302         * math/s_ctanhf.c: Likewise.
79303         * math/s_ctanhl.c: Likewise.
79304         * math/libm-test.inc (ctan_test): Add more tests.
79305         (ctanh_test): Likewise.
79306         * sysdeps/i386/fpu/libm-test-ulps: Update.
79307         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
79308
79309 2012-04-09  Andreas Jaeger  <aj@suse.de>
79310
79311         [BZ #6894]
79312         * manual/filesys.texi (Directory Entries): Mention that d_namlen
79313         is an optional BSD extension.
79314
79315         [BZ #10254]
79316         * manual/stdio.texi (Opening Streams): Document additional fopen
79317         parameters.
79318
79319 2012-04-09  Roland McGrath  <roland@hack.frob.com>
79320
79321         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
79322         %eax without telling the compiler.
79323
79324 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
79325
79326         [BZ # 13963]
79327         * manual/install.texi: Use sourceware.org.
79328
79329 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
79330
79331         [BZ #13873]
79332         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
79333         (__ieee754_pow): Generate overflow and underflow using huge*huge
79334         and tiny*tiny rather than just returning constant infinity or zero
79335         for large exponents.
79336         * math/libm-test.inc (pow_test): Require overflow exceptions for
79337         applicable cases of large exponents.
79338
79339         [BZ #706]
79340         * sysdeps/i386/fpu/e_pow.S (p10): New object.
79341         (__ieee754_pow): Use iterative multiplication algorithm only for
79342         integer exponents with absolute value below 1024.  Check for odd
79343         integer exponents when using algorithm for real exponents.
79344         * math/libm-test.inc (pow_test): Add more tests.
79345         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
79346
79347 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
79348
79349         [BZ #13705]
79350         * math/libm-test.inc (exp_test): Do not allow overflow exception
79351         on underflow test.
79352
79353 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
79354
79355         [BZ #13705]
79356         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
79357         instead of __kernel_standard_f.
79358
79359 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
79360
79361         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
79362         * sysdeps/x86_64/memset_chk.S: Likewise.
79363
79364 2012-04-08  Andreas Jaeger  <aj@suse.de>
79365
79366         [BZ #10153]
79367         * manual/startup.texi (Environment Access): Describe return value
79368         for putenv and setenv.
79369
79370         [BZ #6895]
79371         * manual/filesys.texi (Directory Entries): Add description for
79372         DT_LNK.
79373
79374         [BZ #6890]
79375         * manual/filesys.texi (Directory Entries): Clarify that it's file
79376         system not operating system in the description of DT_UNKNOWN.
79377
79378         [BZ #6578]
79379         * manual/syslog.texi (closelog): Fix reference, it's openlog.
79380
79381 2012-04-08  Stephen Compall  <s11@member.fsf.org>
79382
79383         [BZ #6649]
79384         * manual/llio.texi (Opening and Closing Files): Add cross
79385         reference to explain mode argument.
79386
79387 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
79388
79389         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
79390         * sysdeps/x86_64/memset_chk.S: Likewise.
79391
79392 2012-04-07  David S. Miller  <davem@davemloft.net>
79393
79394         * elf/elf.h (R_SPARC_WDISP10): Define.
79395         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
79396         R_SPARC_SIZE32.
79397         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
79398         R_SPARC_SIZE64 and R_SPARC_H34.
79399
79400 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
79401
79402         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
79403         conditions and remove no longer applicable assertion.
79404
79405 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
79406
79407         * bits/byteswap.h: Include <features.h>.
79408         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
79409         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
79410
79411 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
79412
79413         * bits/byteswap.h (__bswap_16): Removed.
79414         Include <bits/byteswap-16.h> to get __bswap_16.
79415         * sysdeps/i386/bits/byteswap.h: Likewise.
79416         * sysdeps/s390/bits/byteswap.h: Likewise.
79417         * sysdeps/x86_64/bits/byteswap.h: Likewise.
79418         * bits/byteswap-16.h: New file.
79419         * sysdeps/i386/bits/byteswap-16.h: Likewise.
79420         * sysdeps/s390/bits/byteswap-16.h: Likewise.
79421         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
79422         * string/Makefile (headers): Add bits/byteswap-16.h.
79423
79424 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
79425
79426         [BZ #13895]
79427         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
79428         extra indirection.
79429         * nss/Makefile (tests-static, tests): Add tst-nss-static.
79430         * nss/tst-nss-static.c: New.
79431
79432 2012-04-06  Robert Millan  <rmh@gnu.org>
79433
79434         [BZ #6486]
79435         * manual/llio.texi (File Position Primitive): lseek
79436         refers to WHENCE when it really means OFFSET.
79437
79438 2012-04-06  Andreas Jaeger  <aj@suse.de>
79439
79440         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
79441         strncmp declarations.
79442
79443         * abilist/libc.abilist: Add __poll and __ppoll.
79444
79445 2012-04-05  David S. Miller  <davem@davemloft.net>
79446
79447         * scripts/check-local-headers.sh: Accept a host triplet in the
79448         path matched by the exclude regexp.
79449
79450         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
79451         definition.
79452         * sysdeps/powerpc/powerpc32/dl-machine.h
79453         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
79454         * sysdeps/s390/s390-32/dl-machine.h
79455         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
79456         * sysdeps/sparc/sparc32/dl-machine.h
79457         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
79458         * sysdeps/sparc/sparc64/dl-machine.h
79459         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
79460
79461         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
79462         lazy binding.
79463         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
79464         undefined symbol errors.
79465
79466         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
79467         DT_NEEDED entries.
79468
79469 2012-04-05  Michael Matz  <matz@suse.de>
79470
79471         [BZ #13592]
79472         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
79473
79474 2012-04-05  Andreas Jaeger  <aj@suse.de>
79475
79476         [BZ #13908]
79477         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
79478         comment.
79479
79480 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79481
79482         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
79483         which ROUND is no valid rounding mode.
79484
79485 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79486
79487         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
79488         read again.
79489         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
79490
79491 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79492
79493         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
79494         an exception using FPU order intentionally.
79495
79496 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79497
79498         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
79499         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
79500         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
79501         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
79502
79503 2012-04-05  Simon Josefsson  <simon@josefsson.org>
79504
79505         [BZ #12340]
79506         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
79507         EINVAL when BUFLEN is too smal.
79508
79509 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
79510
79511         [BZ #13553]
79512         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
79513         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
79514
79515 2012-04-03  Andreas Jaeger  <aj@suse.de>
79516
79517         [BZ #13938]
79518         * manual/setjmp.texi (System V contexts): Fix sentence.
79519
79520         [BZ #13926]
79521         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
79522         New macro for this case.
79523         [!__GNUC__] (__bswap_64): New inline function for this case.
79524         * sysdeps/x86_64/bits/byteswap.h: Likewise.
79525         * bits/byteswap.h: Likewise.
79526         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
79527         ull, guard with __GLIBC_HAVE_LONG_LONG.
79528
79529         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
79530         __GLIBC_HAVE_LONG_LONG.
79531
79532         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
79533         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
79534
79535 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
79536
79537         [BZ #13691]
79538         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
79539         inptr and inend, rather than using last_ch.
79540
79541 2012-04-02  David S. Miller  <davem@davemloft.net>
79542
79543         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
79544         * stdio-common/printf-parse.h (read_int): Change return type to
79545         'int', return -1 on INT_MAX overflow.
79546         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
79547         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
79548         overflows INT_MAX.  Check for overflow of in-format-string precision
79549         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
79550         SIZE_MAX not INT_MAX for integer overflow test.
79551         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
79552         skip the construct in the format string but do not record anything.
79553         * stdio-common/bug22.c: Adjust to test both width/prevision
79554         INT_MAX overflow as well as total length INT_MAX overflow.  Check
79555         explicitly for proper errno values.
79556
79557 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
79558
79559         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
79560         CHAR_MAX.
79561         * string/test-strcmp.c [! WIDE]: Likewise.
79562         * time/tst-mktime2.c: Likewise for INT_MAX.
79563         * string/test-string.h: #include <sys/param.h> for MIN.
79564
79565         * csu/init-first.c (__libc_init_first): Call __ctype_init.
79566         * sysdeps/i386/init-first.c (init): Likewise.
79567         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
79568         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
79569         * sysdeps/sh/init-first.c (init): Likewise.
79570
79571 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
79572
79573         * po/ru.po: Update from translation team.
79574         * po/vi.po: Likewise.
79575
79576 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
79577
79578         * resolv/nss_dns/dns-host.c: Merge copyright years.
79579
79580 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79581
79582         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
79583         Optimize memcpy with prefetch if
79584         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
79585         src, dst pointers have unequal 16 byte alignments.
79586
79587 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
79588
79589         [BZ #13928]
79590         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
79591         from a CNAME entry and return the minimum ttl for the query.
79592         (gaih_getanswer_slice): Likewise.
79593
79594 2012-03-30  Jeff Law  <law@redhat.com>
79595
79596         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
79597         due to long keys.
79598         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
79599         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
79600
79601         * resolv/nss_dns/dns-host.c: Update copyright year.
79602
79603 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
79604
79605         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
79606         requests to save a system call.  Fix check that all bytes are sent.
79607
79608         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
79609         comments for sendmmsg.
79610
79611 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
79612
79613         [BZ #13691]
79614         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
79615         with only 1 character between 0x0041 and 0x01b0.
79616         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
79617         * wcsmbs/tst-mbsnrtowcs.c: New file.
79618
79619 2012-03-29  David S. Miller  <davem@davemloft.net>
79620
79621         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
79622         small copies by hand.
79623
79624 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
79625
79626         [BZ #13761]
79627         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
79628         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
79629         group memberships.
79630
79631 2012-03-28  David S. Miller  <davem@davemloft.net>
79632
79633         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
79634         that branches into memcpy.
79635         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
79636         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
79637         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
79638         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
79639         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
79640         bits.
79641         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
79642         implementation too.
79643         * sysdeps/sparc/mempcpy.S: New file.
79644
79645         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
79646         the IFUNC routine in the libc case.
79647         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
79648
79649         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
79650         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
79651         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
79652         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
79653         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
79654         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
79655         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
79656         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
79657
79658         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
79659         loop to 256 bytes instead of 64 bytes and fix test signedness.
79660
79661         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
79662         * sysdeps/sparc/sparc32/Makefile: rather than here...
79663         * sysdeps/sparc/sparc64/Makefile: and here.
79664
79665 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
79666
79667         * malloc/mallocbug.c: Avoid warnings about unused variables.
79668
79669 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
79670
79671         [BZ #13760]
79672         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
79673         in the right place. Discard and retry query if response is
79674         larger than input buffer size.
79675
79676 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
79677
79678         [BZ #369]
79679         [BZ #2678]
79680         [BZ #3866]
79681         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
79682         x for large integer exponent.
79683         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
79684         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
79685         sign of result as needed afterwards.
79686         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
79687         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
79688         result for underflowing pow the same as for overflow.
79689         (__kernel_standard_l): Handle powl overflow and underflow here
79690         rather than calling __kernel_standard.
79691         * math/libm-test.inc (pow_test): Add more tests.
79692
79693         [BZ #3868]
79694         [BZ #13879]
79695         [BZ #13910]
79696         [BZ #13911]
79697         [BZ #13912]
79698         [BZ #13913]
79699         [BZ #13915]
79700         [BZ #13916]
79701         [BZ #13917]
79702         [BZ #13918]
79703         [BZ #13919]
79704         [BZ #13920]
79705         [BZ #13921]
79706         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
79707         * sysdeps/ieee754/k_standard.c: Include <float.h>.
79708         (__kernel_standard_l): New function.
79709         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
79710         __kernel_standard.
79711         * math/w_acosl.c (__acosl): Likewise.
79712         * math/w_asinl.c (__asinl): Likewise.
79713         * math/w_atan2l.c (__atan2l): Likewise.
79714         * math/w_atanhl.c (__atanhl): Likewise.
79715         * math/w_coshl.c (__coshl): Likewise.
79716         * math/w_exp10l.c (__exp10l): Likewise.
79717         * math/w_exp2l.c (__exp2l): Likewise.
79718         * math/w_fmodl.c (__fmodl): Likewise.
79719         * math/w_hypotl.c (__hypotl): Likewise.
79720         * math/w_j0l.c (__j0l, __y0l): Likewise.
79721         * math/w_j1l.c (__j1l, __y1l): Likewise.
79722         * math/w_jnl.c (__jnl, __ynl): Likewise.
79723         * math/w_lgammal.c (__lgammal): Likewise.
79724         * math/w_log10l.c (__log10l): Likewise.
79725         * math/w_log2l.c (__log2l): Likewise.
79726         * math/w_logl.c (__logl): Likewise.
79727         * math/w_powl.c (__powl): Likewise.
79728         * math/w_remainderl.c (__remainderl): Likewise.
79729         * math/w_scalbl.c (sysv_scalbl): Likewise.
79730         * math/w_sinhl.c (__sinhl): Likewise.
79731         * math/w_sqrtl.c (__sqrtl): Likewise.
79732         * math/w_tgammal.c (__tgammal): Likewise.
79733         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
79734         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
79735         * math/libm-test.inc (acos_test): Add more tests.
79736         (acosh_test): Likewise.
79737         (asin_test): Likewise.
79738         (atanh_test): Likewise.
79739         (exp_test): Likewise.
79740         (exp10_test): Likewise.
79741         (exp2_test): Likewise.
79742         (expm1_test): Likewise.
79743         (lgamma_test): Likewise.
79744         (log_test): Likewise.
79745         (log10_test): Likewise.
79746         (log1p_test): Likewise.
79747         (log2_test): Likewise.
79748         (pow_test): Do not allow some spurious overflow exceptions.
79749         (sqrt_test): Add more tests.
79750         (tgamma_test): Likewise.
79751         (y0_test): Likewise.
79752         (y1_test): Likewise.
79753         (yn_test): Likewise.
79754
79755 2012-03-27  Anton Blanchard  <anton@samba.org>
79756
79757         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
79758         MAP_HUGETLB.
79759         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
79760         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
79761         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
79762
79763 2012-03-27  David S. Miller  <davem@davemloft.net>
79764
79765         * conform/Makefile: Run run-conformtest.sh using $(BASH).
79766
79767         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
79768         have-as-vis3 check.
79769
79770 2012-03-27  Andreas Jaeger  <aj@suse.de>
79771
79772         * sysdeps/x86_64/elf/configure.in: Moved to ...
79773         * sysdeps/x86_64/configure.in: ... here.
79774         * sysdeps/x86_64/elf/start.S: Moved to ...
79775         * sysdeps/x86_64/start.S: ... here.
79776         * sysdeps/x86_64/elf/configure: Delete.
79777
79778         * sysdeps/x86_64/configure.in: Merge contents from
79779         sysdeps/i386/configure.in (without i686 check).
79780
79781         * sysdeps/i386/elf/Versions: Merge into ...
79782         * sysdeps/i386/Versions: ... this.
79783         * sysdeps/i386/elf/Versions: Delete file.
79784         * sysdeps/i386/elf/start.S: Moved to ...
79785         * sysdeps/i386/start.S: ...here.
79786         * sysdeps/i386/elf/configure.in: Merge into...
79787         * sysdeps/i386/configure.in: ...here.
79788         * sysdeps/i386/elf/configure.in: Delete file.
79789         * sysdeps/i386/elf/configure: Delete file.
79790
79791         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
79792         * debug/backtracesyms.c: ... here.
79793         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
79794         * debug/backtracesymsfd.c: ... here.
79795         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
79796         * sysdeps/generic/ifunc-sel.h: ... here.
79797
79798         * sysdeps/unix/i386/start.c: Delete file.
79799         * sysdeps/unix/sparc/start.c: Delete file.
79800         * sysdeps/unix/start.c: Delete file.
79801
79802         * sysdeps/sh/elf/configure.in: Moved to ...
79803         * sysdeps/sh/configure.in: ... here.
79804         * sysdeps/sh/elf/start.S: Moved to ...
79805         * sysdeps/sh/start.S: ... here.
79806         * sysdeps/sh/elf/configure: Delete file.
79807
79808         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
79809         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
79810         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
79811         * sysdeps/powerpc/powerpc64/entry.h: ... here.
79812         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
79813         * sysdeps/powerpc/powerpc64/start.S: here.
79814         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
79815         * sysdeps/powerpc/powerpc64/Makefile: ... this.
79816         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
79817         * sysdeps/powerpc/powerpc64/configure.in: ... this.
79818         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
79819
79820         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
79821         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
79822         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
79823         * sysdeps/powerpc/powerpc32/start.S: ... here.
79824         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
79825         * sysdeps/powerpc/powerpc32/configure.in: ... this.
79826         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
79827
79828         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
79829         * sysdeps/powerpc/ifunc-sel.h: ... here.
79830         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
79831         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
79832
79833         * sysdeps/sparc/elf/configure.in: Moved to ...
79834         * sysdeps/sparc/configure.in: ... here.
79835         * sysdeps/sparc/elf/configure: Delete file.
79836         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
79837         * sysdeps/sparc/sparc32/start.S: ... here.
79838         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
79839         * sysdeps/sparc/sparc64/start.S: ... here.
79840         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
79841         * sysdeps/sparc/sparc32/Makefile: ... this.
79842         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
79843         * sysdeps/sparc/sparc64/Makefile: ... this.
79844
79845         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
79846         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
79847         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
79848         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
79849         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
79850         * sysdeps/s390/s390-32/setjmp.S: ... here.
79851         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
79852         * sysdeps/s390/s390-32/configure.in: ... here.
79853         * sysdeps/s390/s390-32/elf/configure: Delete file.
79854         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
79855         * sysdeps/s390/s390-32/start.S: ... here.
79856
79857         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
79858         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
79859         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
79860         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
79861         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
79862         * sysdeps/s390/s390-64/setjmp.S: ... here.
79863         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
79864         * sysdeps/s390/s390-64/configure.in: ... here
79865         * sysdeps/s390/s390-64/elf/configure: Delete file.
79866         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
79867         * sysdeps/s390/s390-64/start.S: ... here.
79868         * sysdeps/s390/s390-64/elf/configure: Delete.
79869
79870         * configure.in: Remove support for elf directories in sysdeps.
79871
79872         * configure: Regenerated.
79873         * sysdeps/i386/configure: Regenerated.
79874         * sysdeps/powerpc/powerpc32/configure: Regenerated.
79875         * sysdeps/powerpc/powerpc64/configure: Regenerated.
79876         * sysdeps/s390/s390-32/configure: Regenerated.
79877         * sysdeps/s390/s390-64/configure: Regenerated.
79878         * sysdeps/sh/configure: Regenerated.
79879         * sysdeps/sparc/configure: Regenerated.
79880         * sysdeps/x86_64/configure: Regenerated.
79881
79882 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
79883
79884         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
79885
79886         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
79887         denormal result into account.
79888
79889 2012-03-25  Roland McGrath  <roland@hack.frob.com>
79890
79891         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
79892         Reported by Allan McRae <allan@archlinux.org>.
79893
79894 2012-03-23  Jeff Law  <law@redhat.com>
79895
79896         * nss/getnssent.c (__nss_getent): Fix typo.
79897
79898 2012-03-23  David S. Miller  <davem@davemloft.net>
79899
79900         * sysdeps/sparc/fpu/libm-test-ulps: Update.
79901
79902 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
79903
79904         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
79905         to pad to uint64_t for each field.
79906         (dl_tls_index): Replace unsigned long with uint64_t.
79907
79908 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
79909         Paul Pluzhnikov  <ppluzhnikov@google.com>
79910
79911         [BZ #6528]
79912         * grp/Makefile (otherlibs): Don't set it.
79913         * inet/Makefile (otherlibs): Likewise.
79914         * login/Makefile (otherlibs): Likewise.
79915         * nscd/Makefile (otherlibs): Likewise.
79916         * posix/Makefile (otherlibs): Likewise.
79917         * pwd/Makefile (otherlibs): Likewise.
79918         * rt/Makefile (otherlibs): Likewise.
79919         * sunrpc/Makefile (otherlibs): Likewise.
79920         * nss/Makefile (otherlibs): Likewise.
79921         Add libnss_files to routines and static-only-routines.
79922         ($(objpfx)getent): Remove rule.
79923         * resolv/Makefile: Add libnss_dns and libresolv to routines and
79924         static-only-routines.
79925
79926 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
79927
79928         [BZ #13892]
79929         * math/s_cexp.c: Include <float.h>.
79930         (__cexp): Handle exp result overflowing not necessarily
79931         overflowing both real and imaginary parts of result.
79932         * math/s_cexpf.c: Likewise.
79933         * math/s_cexpl.c: Likewise.
79934         * math/libm-test.inc (cexp_test): Add more tests.
79935         * sysdeps/i386/fpu/libm-test-ulps: Update.
79936         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
79937
79938 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
79939
79940         * include/link.h (ELFW): New macro.
79941         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
79942         Replace ELF64_R_TYPE with ELFW(R_TYPE).
79943
79944 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
79945
79946         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
79947         with uint64_t.
79948
79949 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
79950
79951         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
79952         declaration.
79953         (struct La_x32_retval): Likewise.
79954
79955 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
79956
79957         * sysdeps/x86_64/preconfigure.in: New file.
79958         * sysdeps/x86_64/preconfigure: New generated file.
79959
79960 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
79961
79962         [BZ #13824]
79963         * math/e_exp2l.c: Include <float.h>.
79964         (__ieee754_exp2l): Handle overflow and underflow cases
79965         separately.  Only pass fractional part of argument to
79966         __ieee754_expl.
79967         * math/libm-test.inc (exp2_test): Add more tests.
79968
79969         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
79970         negating x to take absolute value.
79971         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
79972         Likewise.
79973         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
79974         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
79975         Likewise.
79976         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
79977         computing low part if x was negated.
79978         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
79979
79980 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
79981
79982         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
79983         la_x32_gnu_pltexit.
79984         (pltexit): Cast int_retval to ptrdiff_t.
79985         * elf/tst-auditmod3b.c: Likewise.
79986         * elf/tst-auditmod4b.c: Likewise.
79987         * elf/tst-auditmod5b.c: Likewise.
79988         * elf/tst-auditmod6b.c: Likewise.
79989         * elf/tst-auditmod6c.c: Likewise.
79990         * elf/tst-auditmod7b.c: Likewise.
79991
79992         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
79993         and x32_gnu_pltexit.
79994
79995         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
79996         __ELF_NATIVE_CLASS.
79997         (La_x32_regs): New macro.
79998         (La_x32_retval): Likewise.
79999         (la_x32_gnu_pltenter): New function prototype.
80000         (la_x32_gnu_pltexit): Likewise.
80001
80002 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
80003
80004         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
80005         exponent.
80006
80007         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80008
80009         * configure.in (libc_cv_cc_nofma): Check for option to disable
80010         generation of FMA instructions.
80011         * configure: Regenerate.
80012         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
80013         * sysdeps/ieee754/dbl-64/Makefile: New file.
80014         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
80015         Remove brandred-fma4.
80016         (CFLAGS-brandred-fma4.c): Remove.
80017         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
80018         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
80019         define.
80020         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
80021         define.
80022
80023 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
80024
80025         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
80026         LLONG_MAX != LONG_MAX.
80027         (_itoa_word): Use _ITOA_WORD_TYPE on value.
80028         (_fitoa_word): Likewise.
80029         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
80030         LLONG_MAX != LONG_MAX.
80031         * stdio-common/_itowa.h: Include <_itoa.h>.
80032         (_itowa_word): Use _ITOA_WORD_TYPE on value.
80033         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
80034         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
80035         only if not defined.
80036         (_ITOA_WORD_TYPE): Likewise.
80037         (_itoa_word): Use _ITOA_WORD_TYPE on value.
80038         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
80039
80040 2012-03-21  David S. Miller  <davem@davemloft.net>
80041
80042         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80043
80044 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
80045
80046         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
80047         of x86_64 when setting libc_cv_slibdir, libdir and
80048         libc_cv_localedir.
80049         * sysdeps/unix/sysv/linux/configure: Regenerated.
80050
80051 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
80052
80053         * manual/lang.texi (Old Varargs): Remove section.
80054         (How Variadic): Update menu.
80055         (va_start): Do not mention varargs.h.
80056
80057 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
80058             Joseph Myers  <joseph@codesourcery.com>
80059
80060         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
80061         link test.
80062         * configure: Regenerated.
80063
80064 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
80065
80066         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
80067         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
80068         conformtest.pl
80069
80070 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
80071
80072         * NOTES: Remove.
80073         * Makefile (files-for-dist): Remove NOTES.
80074         (NOTES): Remove rule.
80075         * README: Don't refer to NOTES.
80076         * manual/creature.texi: Don't include macros.texi.
80077         * manual/intro.texi (creature.texi): Remove comment referring to
80078         NOTES.
80079
80080         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
80081         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
80082         * configure: Regenerated.
80083         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
80084         LIBC_TRY_CC_OPTION.
80085         (libc_cv_as_i686): Likewise.
80086         (libc_cv_cc_avx): Likewise.
80087         (libc_cv_cc_sse2avx): Likewise.
80088         (libc_cv_cc_fma4): Likewise.
80089         (libc_cv_cc_novzeroupper): Likewise.
80090         * sysdeps/i386/configure: Regenerated.
80091
80092         [BZ #13883]
80093         * sysdeps/i386/fpu/s_cexp.S: Remove.
80094         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
80095         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
80096         * math/libm-test.inc (cexp_test): Add more tests.
80097         * sysdeps/i386/fpu/libm-test-ulps: Update.
80098         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80099
80100 2012-03-21  Allan McRae  <allan@archlinux.org>
80101
80102         * timezone/Makefile: Do not install iso3166.tab and zone.tab
80103
80104 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
80105
80106         [BZ #13871]
80107         * math/w_exp2.c: Do not include <float.h>.
80108         (o_threshold, u_threshold): Remove.
80109         (__exp2): Calculate result before checking finiteness and calling
80110         __kernel_standard.
80111         * math/w_exp2f.c: Likewise.
80112         * math/w_exp2l.c: Likewise.
80113         * math/libm-test.inc (exp2_test): Require overflow exception for
80114         1e6 input.
80115
80116         [BZ #3866]
80117         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
80118         range of signed 64-bit integers before using fistpll.  Remove
80119         checks for whether integers fit in mantissa bits.
80120         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
80121         the range of signed 32-bit integers before using fistpl.  Remove
80122         checks for whether integers fit in mantissa bits.
80123         * sysdeps/i386/fpu/e_powl.S (p64): New object.
80124         (__ieee754_powl): Test for y outside the range of signed 64-bit
80125         integers before using fistpll.  Reduce 64-bit values to 63-bit
80126         ones as needed.
80127         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
80128         divide-by-zero is raised for zero to large negative powers.
80129         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
80130         (__ieee754_powl): Test for y outside the range of signed 64-bit
80131         integers before using fistpll.  Reduce 64-bit values to 63-bit
80132         ones as needed.
80133         * math/libm-test.inc (pow_test): Add more tests.
80134
80135 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
80136
80137         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
80138         <stdio-common/_itoa.h>.
80139         * debug/segfault.c: Likewise.
80140         * elf/dl-cache.c: Likewise.
80141         * elf/dl-minimal.c: Likewise.
80142         * elf/dl-misc.c: Likewise.
80143         * elf/dl-sysdep.c: Likewise.
80144         * elf/dl-version.c: Likewise.
80145         * elf/rtld.c: Likewise.
80146         * hurd/hurdsock.c: Likewise.
80147         * hurd/lookup-retry.c: Likewise.
80148         * malloc/malloc.c: Likewise.
80149         * malloc/mtrace.c: Likewise.
80150         * nscd/nscd_getgr_r.c: Likewise.
80151         * nscd/nscd_getpw_r.c: Likewise.
80152         * nscd/nscd_getserv_r.c: Likewise.
80153         * posix/getopt_init.c: Likewise.
80154         * posix/wordexp.c: Likewise.
80155         * stdio-common/_itoa.c: Likewise.
80156         * stdio-common/printf_fphex.c: Likewise.
80157         * stdio-common/vfprintf.c: Likewise.
80158         * string/_strerror.c: Likewise.
80159         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
80160         * sysdeps/i386/i686/hp-timing.h: Likewise.
80161         * sysdeps/mach/_strerror.c: Likewise.
80162         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
80163         * sysdeps/mach/hurd/sethostid.c: Likewise.
80164         * sysdeps/mach/hurd/xmknodat.c: Likewise.
80165         * sysdeps/mach/xpg-strerror.c: Likewise.
80166         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
80167         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
80168         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
80169         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
80170         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
80171         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
80172         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
80173         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
80174         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
80175         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
80176         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
80177         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
80178         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
80179         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
80180         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
80181         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
80182         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
80183         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
80184         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
80185         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
80186         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
80187
80188         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
80189
80190         * stdio-common/_itoa.h: Moved to ...
80191         * sysdeps/generic/_itoa.h: Here.
80192
80193         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
80194
80195         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
80196         instead of "_itoa.h" and "_itowa.h".
80197         * stdio-common/vfprintf.: Likewise.
80198
80199 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
80200
80201         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
80202         <bits/wordsize.h>.
80203         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
80204         (__signbit): Likewise.
80205         (llrintf): Likewise.
80206         (llrint): Likewise.
80207
80208 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
80209
80210         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
80211         __WORDSIZE != 64.
80212
80213 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
80214
80215         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
80216         OVERFLOW_EXCEPTION_OK.
80217         * math/libm-test.inc ("Philosophy"): Update comment about
80218         exception testing.
80219         (OVERFLOW_EXCEPTION): Define.
80220         (OVERFLOW_EXCEPTION_OK): Likewise.
80221         (INVALID_EXCEPTION_OK): Renumber.
80222         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
80223         (IGNORE_ZERO_INF_SIGN): Likewise.
80224         (test_exceptions): Handle FE_OVERFLOW.
80225         (exp10_test): Expect overflow exceptions.
80226         (exp2_test): Likewise.
80227         (expm1_test): Likewise.
80228         (nextafter_test): Likewise.
80229         (pow_test): Likewise.
80230         (scalbn_test): Likewise.
80231         (scalbln_test): Likewise.
80232
80233 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80234
80235         * sysdeps/x86_64/bits/atomic.h
80236         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
80237         64bit integer.
80238         (atomic_exchange_acq): Likewise.
80239         (__arch_exchange_and_add_body): Likewise.
80240         (__arch_add_body): Likewise.
80241         (atomic_add_negative): Likewise.
80242         (atomic_add_zero): Likewise.
80243
80244 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80245
80246         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
80247         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
80248
80249 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80250
80251         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
80252         Check __x86_64__ instead of __WORDSIZE.
80253
80254 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80255
80256         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
80257
80258 2012-03-19  David S. Miller  <davem@davemloft.net>
80259
80260         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80261
80262         * sysdeps/sparc/fpu/fenv_private.h: New file.
80263         * sysdeps/sparc/fpu/math_private.h: Use it.
80264         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
80265         Remove.
80266         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
80267         (libc_feholdexcept_setroundl): Remove.
80268         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
80269         Remove.
80270         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
80271         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
80272
80273 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80274
80275         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
80276         int64_t instead of long int.
80277         (INSERT_WORDS64): Likewise.
80278
80279 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80280
80281         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
80282         _Unwind_GetCFA return to _Unwind_Ptr first.
80283
80284 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
80285
80286         [BZ #13629]
80287         * math/s_clog.c: Include <float.h>.
80288         (__clog): Scale large or subnormal inputs.
80289         * math/s_clogf.c: Likewise.
80290         * math/s_clogl.c: Likewise.
80291         * math/s_clog10.c: Include <float.h>.
80292         (M_LOG10_2): Define.
80293         (__clog10): Scale large or subnormal inputs.
80294         * math/s_clog10f.c: Likewise.
80295         * math/s_clog10l.c: Likewise.
80296         * math/libm-test.inc (clog_test): Add more tests.
80297         (clog10_test): Likewise.
80298         * sysdeps/i386/fpu/libm-test-ulps: Update.
80299         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80300
80301         [BZ #11451]
80302         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
80303         x and y.
80304         * math/libm-test.inc (atan2_test): Add another test.
80305
80306         * Makerules (common-objdir-compile): Remove.
80307         * sysdeps/unix/Makefile (config-generated): Do not add
80308         $(unix-generated) to variable.
80309         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
80310         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
80311         Remove rule.
80312         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
80313         Likewise.
80314         [generic bits/local_lim.h] (before-compile): Do not append to
80315         variable.
80316         [generic bits/local_lim.h] (common-generated): Likewise.
80317         [generic sys/param.h] (before-compile): Do not append to variable.
80318         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
80319         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
80320         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
80321         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
80322         include.
80323         [generic sys/param.h] (sys/param.h-includes): Remove variable.
80324         [generic sys/param.h] (sys/param.h-includes): Remove rule.
80325         [generic sys/param.h] ($(addprefix
80326         $(common-objpfx),$(sys/param.h-includes))): Likewise.
80327         [generic sys/param.h] (common-generated): Do not append to
80328         variable.
80329         [generic sys/param.h] (sysdep_headers): Likewise.
80330         [generic bits/errno.h] (before-compile): Do not append to
80331         variable.
80332         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
80333         rule.
80334         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
80335         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
80336         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
80337         [generic bits/errno.h] (common-generated): Do not append to
80338         variable.
80339         [generic bits/ioctls.h] (before-compile): Do not append to
80340         variable.
80341         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
80342         rule.
80343         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
80344         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
80345         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
80346         rule.
80347         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
80348         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
80349         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
80350         [generic bits/ioctls.h] (common-generated): Do not append to
80351         variable.
80352         [generic sys/syscall.h] (syscall.h): Remove variable.
80353         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
80354         rule.
80355         [generic sys/syscall.h] (before-compile): Do not append to
80356         variable.
80357         [generic sys/syscall.h] (common-generated): Likewise.
80358         * sysdeps/unix/errnos-tmpl.c: Remove file.
80359         * sysdeps/unix/errnos.awk: Likewise.
80360         * sysdeps/unix/ioctls-tmpl.c: Likewise.
80361         * sysdeps/unix/ioctls.awk: Likewise.
80362         * sysdeps/unix/mk-local_lim.c: Likewise.
80363         * sysdeps/unix/snarf-ioctls: Likewise.
80364
80365 2012-03-19  Richard Henderson  <rth@twiddle.net>
80366
80367         * sysdeps/i386/fpu/fenv_private.h: New file.
80368         * sysdeps/i386/fpu/math_private.h: Use it.
80369         (math_opt_barrier, math_force_eval): Remove.
80370         (libc_feholdexcept_setround_53bit): Remove.
80371         (libc_feupdateenv_53bit): Remove.
80372         * sysdeps/x86_64/fpu/math_private.h: Likewise.
80373         (math_opt_barrier, math_force_eval): Remove.
80374         (libc_feholdexcept): Remove.
80375         (libc_feholdexcept_setround): Remove.
80376         (libc_fetestexcept, libc_fesetenv): Remove.
80377         (libc_feupdateenv_test): Remove.
80378         (libc_feupdateenv, libc_feholdsetround): Remove.
80379         (libc_feresetround): Remove.
80380
80381         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
80382         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
80383
80384         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
80385         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
80386         (libc_feupdateenv_testl): New.
80387         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
80388         (libc_feupdateenv_testf): New.
80389         (libc_feupdateenv): Use libc_feupdateenv_test.
80390         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
80391         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
80392
80393         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
80394         (libc_feholdsetroundf, libc_feholdsetroundl): New.
80395         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
80396         (libc_feresetround_noex): New.
80397         (libc_feresetround_noexf): New.
80398         (libc_feresetround_noexl): New.
80399         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
80400         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
80401         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
80402         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
80403         SET_RESTORE_ROUND.
80404         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
80405         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
80406         (__cos): Likewise.
80407         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
80408         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
80409         SET_RESTORE_ROUND_NOEX.
80410         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
80411         SET_RESTORE_ROUND_NOEXF.
80412         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
80413         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
80414         (libc_feholdsetroundf): New.
80415         (libc_feresetround, libc_feresetroundf): New.
80416
80417         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
80418         (libc_feholdexcept_setround_53bit): Convert from macro to function.
80419         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
80420
80421         * sysdeps/generic/math_private.h: Include <fenv.h>.
80422         (default_libc_feholdexcept): New.
80423         (default_libc_feholdexcept_setround): New.
80424         (default_libc_fesetenv, default_libc_feupdateenv): New.
80425         (libc_feholdexcept): Only define if undefined.
80426         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
80427         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
80428         (libc_feholdexcept_setroundl): Likewise.
80429         (libc_feholdexcept_setround_53bit): Likewise.
80430         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
80431         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
80432         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
80433         (libc_feupdateenv_53bit): Likewise.
80434         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
80435         (libc_feholdexcept): Convert from macro to inline function.
80436         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
80437         (libc_fesetenv, libc_feupdateenv): Likewise.
80438
80439         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
80440         not previously defined.
80441         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
80442         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
80443         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
80444         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
80445         * sysdeps/ieee754/flt-32/math_private.h: New file.
80446         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
80447         math_private.h below SET_FLOAT_WORD.
80448         (__isnan, __isinf_ns, __finite): Remove.
80449         (__isnanf, __isinf_nsf, __finitef): Remove.
80450
80451 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
80452
80453         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80454
80455 2012-03-17  David S. Miller  <davem@davemloft.net>
80456
80457         [BZ #6471]
80458         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
80459         for 2.16.
80460
80461 2012-03-16  David S. Miller  <davem@davemloft.net>
80462
80463         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
80464         warnings.
80465
80466         [BZ #6471]
80467         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
80468         properly.
80469         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
80470         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
80471         sysdep_routines when subdir is sysvipc.
80472         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
80473         __getshmlba helper.
80474
80475         * sysdeps/sparc/fpu/libm-test/ulps: Update.
80476
80477 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80478
80479         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
80480         [__LP64__].
80481
80482 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80483
80484         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
80485         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
80486         (__lround): Renamed to ...
80487         (__llround): This.  Replace long int with long long int.
80488         Define lround functions as aliases of llround functions.
80489         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
80490
80491 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80492
80493         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
80494         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
80495         adresses to uintptr_t.  Replace "long int" and "unsigned long
80496         int" with "greg_t" on va_arg.
80497
80498 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80499
80500         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
80501         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
80502
80503         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
80504         Move e_machine check before EI_CLASS check.  Handle x32
80505         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
80506         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
80507         SKIP_EM_IA_64 and include
80508         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
80509
80510         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
80511         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
80512         (add_system_dir): New macro.
80513
80514         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
80515         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
80516
80517 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
80518
80519         [BZ #2551]
80520         [BZ #2552]
80521         [BZ #2553]
80522         [BZ #2554]
80523         [BZ #2562]
80524         [BZ #2563]
80525         [BZ #2565]
80526         [BZ #2566]
80527         [BZ #2576]
80528         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
80529         (y0): Likewise.
80530         * math/w_j0f.c (j0f): Likewise.
80531         (y0f): Likewise.
80532         * math/w_j0l.c (__j0l): Likewise.
80533         (__y0l): Likewise.
80534         * math/w_j1.c (j1): Likewise.
80535         (y1): Likewise.
80536         * math/w_j1f.c (j1f): Likewise.
80537         (y1f): Likewise.
80538         * math/w_j1l.c (__j1l): Likewise.
80539         (__y1l): Likewise.
80540         * math/w_jn.c (jn): Likewise.
80541         (yn): Likewise.
80542         * math/w_jnf.c (jnf): Likewise.
80543         (ynf): Likewise.
80544         * math/w_jnl.c (__jnl): Likewise.
80545         (__ynl): Likewise.
80546         * math/libm-test.inc (j0_test): Add more tests.
80547         (j1_test): Likewise.
80548         (jn_test): Likewise.  Add trailing semicolon to existing test.
80549         (y0_test): Likewise.
80550         (y1_test): Likewise.
80551         * sysdeps/i386/fpu/libm-test-ulps: Update.
80552         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80553
80554         [BZ #13851]
80555         [BZ #13854]
80556         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
80557         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
80558         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
80559         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
80560         (__tanl): Set errno for infinite argument.
80561         * sysdeps/i386/fpu/mptan.c: Remove.
80562         * sysdeps/i386/fpu/s_tan.S: Likewise.
80563         * sysdeps/i386/fpu/s_tanl.S: Likewise.
80564         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
80565         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
80566         * math/libm-test.inc (tan_test): Add more tests and enable more
80567         tests for double and long double.
80568         * sysdeps/i386/fpu/libm-test-ulps: Update.
80569         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80570
80571 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
80572
80573         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
80574         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
80575
80576 2012-03-16  Roland McGrath  <roland@hack.frob.com>
80577
80578         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
80579         * configure.in: Use it for both main tree and add-ons.
80580         * configure: Regenerated.
80581
80582 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80583
80584         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
80585
80586 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
80587
80588         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
80589         in comment.
80590
80591         [BZ #13851]
80592         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
80593         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
80594         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
80595         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
80596         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
80597         infinite argument.
80598         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
80599         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
80600         != 0 for prec == 2.
80601         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
80602         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
80603         * sysdeps/i386/fpu/s_cosl.S: Likewise.
80604         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
80605         * sysdeps/i386/fpu/s_sinl.S: Likewise.
80606         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
80607         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
80608         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
80609         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
80610         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
80611         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
80612         * math/libm-test.inc (cos_test): Add more tests and enable more
80613         tests for long double.
80614         (sin_test): Likewise.
80615         (sincos_test): Likewise.
80616         * sysdeps/i386/fpu/libm-test-ulps: Update.
80617         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80618
80619 2012-03-16  David S. Miller  <davem@davemloft.net>
80620
80621         * sysdeps/sparc/fpu/math_private.h: New file.
80622
80623 2012-03-15  David S. Miller  <davem@davemloft.net>
80624
80625         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
80626         file.
80627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
80628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
80629         file.
80630         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
80631         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
80632         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
80633         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
80634         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
80635         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
80636         sysdep routines.
80637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
80638
80639         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
80640         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
80641
80642         * sysdeps/sparc/sparc-ifunc.h: New file.
80643         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
80644         sparc-ifunc.h
80645         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
80646         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
80647         Likewise.
80648         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
80649         Likewise.
80650         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
80651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
80652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
80653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
80654         Likewise.
80655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
80656         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
80657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
80658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
80659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
80660         Likewise.
80661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
80662         Likewise.
80663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
80664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
80665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
80666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
80667         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
80668         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
80669         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
80670         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
80671         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
80672         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
80673         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
80674         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
80675         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
80676         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
80677         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
80678         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
80679         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
80680         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
80681         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
80682         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
80683         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
80684         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
80685         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
80686         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
80687
80688 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
80689
80690         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
80691         scaling.
80692         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80693
80694 2012-03-15  Andreas Jaeger  <aj@suse.de>
80695
80696         [BZ #13852]
80697         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
80698         ieee754/flt-32 implementation for sin, cos and sincos.
80699         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
80700         * sysdeps/i386/fpu/s_cosf.S: Likewise.
80701         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
80702         * sysdeps/i386/fpu/s_sinf.S: Likewise.
80703         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
80704         ieee754/flt-32 implementation for tan.
80705
80706         * math/libm-test.inc (cos_test): Enable some large input tests for
80707         float as well
80708         (sin_test): Likewise.
80709         (sincos_test): Likewise.
80710         (tan_test): Add tests for large input.
80711
80712         * sysdeps/i386/fpu/libm-test-ulps: Update.
80713
80714 2012-03-15  Andreas Jaeger  <aj@suse.de>
80715
80716         [BZ #13658]
80717         * math/libm-test.inc (cos_test): Add more test cases.
80718         (sin_test): Likewise.
80719         (sincos_test): Likewise.
80720
80721 2012-03-15  Andreas Jaeger  <aj@suse.de>
80722
80723         [BZ #13837]
80724         * math/libm-test.inc (cos_test): Add a test case for large input
80725         value.
80726         (sin_test): Likewise.
80727         (sincos_test): Likewise.
80728
80729 2012-03-15  Andreas Jaeger  <aj@suse.de>
80730             Joseph Myers  <joseph@codesourcery.com>
80731
80732         [BZ #13658]
80733         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
80734         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
80735         * sysdeps/i386/fpu/branred.c: Likewise.
80736         * sysdeps/i386/fpu/dosincos.c: Likewise.
80737         * sysdeps/i386/fpu/mpa.c: Likewise.
80738         * sysdeps/i386/fpu/s_cos.S: Likewise.
80739         * sysdeps/i386/fpu/s_sin.S: Likewise.
80740         * sysdeps/i386/fpu/s_sincos.S: Likewise.
80741         * sysdeps/i386/fpu/sincos32.c: Likewise.
80742
80743         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
80744         Define.
80745         (libc_feupdateenv_53bit): Define.
80746         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
80747         Define.
80748         (libc_feupdateenv_53bit): Define.
80749
80750         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
80751         53 bit (without extend i386 double precision).
80752
80753         * math/libm-test.inc (sincos_test): Add tests for large input.
80754         (sin): Likewise.
80755         (cos): Likewise.
80756
80757         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
80758
80759 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
80760
80761         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80762
80763 2012-03-15  David S. Miller  <davem@davemloft.net>
80764
80765         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
80766         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
80767         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
80768         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
80769         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
80770         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
80771         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
80772         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
80773         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
80774         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
80775         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
80776         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
80777         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
80778         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
80779         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
80780         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
80781         file.
80782         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
80783         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
80784         file.
80785         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
80786         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
80787         file.
80788         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
80789         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
80790         file.
80791         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
80792         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
80793         fmin/fmax sysdep routines.
80794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
80795
80796 2012-03-14  David S. Miller  <davem@davemloft.net>
80797
80798         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
80799         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
80800         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
80801         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
80802         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
80803         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
80804         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
80805         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
80806         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
80807         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
80808         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
80809         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
80810         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
80811         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
80812         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
80813         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
80814         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
80815         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
80816         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
80817         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
80818         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
80819         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
80820         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
80821         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
80822         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
80823         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
80824         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
80825         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
80826         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
80827         routines.
80828         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
80829         file.
80830         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
80831         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
80832         file.
80833         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
80834         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
80835         file.
80836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
80837         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
80838         file.
80839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
80840         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
80841         file.
80842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
80843         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
80844         file.
80845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
80846         file.
80847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
80848         file.
80849         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
80850         file.
80851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
80852         New file.
80853         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
80854         file.
80855         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
80856         file.
80857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
80858         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
80859         file.
80860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
80861         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
80862         file.
80863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
80864         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
80865         file.
80866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
80867         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
80868         VIS3 routines.
80869
80870         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
80871         New file.
80872
80873         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80874
80875         * sysdeps/sparc/configure.in: New file.
80876         * sysdeps/sparc/configure: Generate.
80877         * configure.in (libc_cv_sparc_as_vis3): Substitute.
80878         * configure: Regenerate.
80879         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
80880         * config.make.in (have-as-vis3): New.
80881         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
80882         available use -Av9d instead of -Av9a.
80883         * sysdeps/sparc/sparc64/Makefile: Likewise.
80884         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
80885         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
80886         New file.
80887         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
80888         file.
80889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
80890         New file.
80891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
80892         file.
80893         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
80894         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
80895         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
80896         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
80897         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
80898
80899         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
80900         fzeros/fnegs to load 0x80000000 into a float register instead of
80901         using the stack.
80902         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
80903
80904 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
80905
80906         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
80907         bits/syscall.h.
80908         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
80909         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
80910         ($(inst_includedir)/bits/syscall.h): Remove rule.
80911         ($(objpfx)bits/syscall.d): Include instead of
80912         $(objpfx)syscall-list.d.
80913         (generated): Change syscall-list.h and syscall-list.d to
80914         bits/syscall.h and bits/syscall.d.
80915
80916 2012-03-14  Roland McGrath  <roland@hack.frob.com>
80917
80918         [BZ #13846]
80919         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
80920
80921 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
80922
80923         [BZ #13841]
80924         * math/s_csqrt.c: Include <float.h>.
80925         (__csqrt): Scale large or subnormal inputs.
80926         * math/s_csqrtf.c: Likewise.
80927         * math/s_csqrtl.c: Likewise.
80928         * math/libm-test.inc (csqrt_test): Add more tests.
80929         * sysdeps/i386/fpu/libm-test-ulps: Update.
80930         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80931
80932         [BZ #13840]
80933         * math/libm-test.inc (hypot_test): Add more tests.
80934
80935 2012-03-13  David S. Miller  <davem@davemloft.net>
80936
80937         [BZ #13840]
80938         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
80939         double-precision for the calculation instead of scaling.
80940
80941 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
80942
80943         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
80944         manipulate bits before adding and subtracting TWO52[sx].
80945         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
80946         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
80947         Likewise.
80948         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
80949
80950 2012-03-13  David S. Miller  <davem@davemloft.net>
80951
80952         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
80953         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
80954         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
80955         rtld-global-offsets.h
80956         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
80957
80958         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
80959         large parameters.
80960
80961         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
80962
80963         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
80964         'err' in the ifdef scope in which it is actually used.
80965
80966         * nss/nss_db/db-init.c: Include string.h
80967
80968 2012-03-12  David S. Miller  <davem@davemloft.net>
80969
80970         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
80971         masking out of the most significant byte of random value used.
80972         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
80973         Fix coding style in previous change.
80974
80975         * sysdeps/unix/sysv/linux/kernel-features.h
80976         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
80977         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
80978         expression.
80979         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
80980         later.
80981
80982 2012-03-11  David S. Miller  <davem@davemloft.net>
80983
80984         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
80985         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
80986         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
80987         for 'resultvar' otherwise things get truncated on 64-bit.
80988
80989         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
80990         Fix masking out of the most significant byte of random value used.
80991
80992         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80993
80994 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
80995
80996         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80997
80998 2012-03-09  David S. Miller  <davem@davemloft.net>
80999
81000         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
81001         variables with appropriate CPP guards.
81002         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
81003         from the frame pointer, not the stack pointer.  Correct layout
81004         comments.  Fix test on resulting framesize and the management of
81005         the outregs buffer for pltexit.  Preserve floating point return
81006         values across _dl_call_pltexit call.
81007         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
81008         framesize and the management of the outregs buffer for pltexit.
81009         Preserve floating point return values across _dl_call_pltexit
81010         call.
81011         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
81012         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
81013         (la_sparc64_gnu_pltexit): New functions.
81014         (print_exit): Fix format string for return register value.
81015
81016 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
81017
81018         * sunrpc/Makefile (others): Add rpcgen.
81019         ($(objpfx)rpcgen): Remove special build rule and dependency on
81020         libc.
81021         * sunrpc/rpcgen.c: New file.
81022
81023 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
81024
81025         [BZ #13673]
81026         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
81027         * stdio-common/bug-vfprintf-nargs.c: Likewise.
81028         * sysdeps/i386/crti.S: Likewise.
81029         * sysdeps/i386/crtn.S: Likewise.
81030         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
81031         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
81032         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
81033         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
81034         * sysdeps/sh/crti.S: Likewise.
81035         * sysdeps/sh/crtn.S: Likewise.
81036         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
81037
81038         [BZ #13673]
81039         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
81040         with URL.
81041         * locale/programs/locfile-kw.gperf: Likewise.
81042         * locale/programs/charmap-kw.h: Regenerated.
81043         * locale/programs/locfile-kw.h: Likewise.
81044
81045         [BZ #13673]
81046         * intl/plural.y: Replace FSF snail mail address with URL.
81047         * intl/plural.c: Regenerated.
81048
81049 2012-03-09  Richard Henderson  <rth@twiddle.net>
81050
81051         * include/math_private.h: Remove file.
81052         * math/math_private.h: Move file ...
81053         * sysdeps/generic/math_private.h: ... here.
81054
81055         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
81056         * sysdeps/powerpc/fpu/math_private.h: Likewise.
81057         * sysdeps/x86_64/fpu/math_private.h: Likewise.
81058
81059         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
81060         and <math_private.h>.
81061         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
81062         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
81063         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
81064         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
81065         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
81066         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
81067         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
81068         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
81069         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
81070         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
81071         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
81072         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
81073         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
81074         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
81075         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
81076         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
81077         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
81078         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
81079         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
81080         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
81081         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
81082         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
81083         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
81084         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
81085         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
81086         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
81087         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
81088         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
81089         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
81090         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
81091         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
81092         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
81093         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
81094         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
81095         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
81096         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
81097         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
81098         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
81099         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
81100         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
81101         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
81102         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
81103         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
81104         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
81105         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
81106         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
81107         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
81108         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
81109         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
81110         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
81111         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
81112         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
81113         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
81114         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
81115         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
81116         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
81117         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
81118         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
81119         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
81120         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
81121         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
81122         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
81123         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
81124         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
81125         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
81126         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
81127         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
81128         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
81129         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
81130         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
81131         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
81132         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
81133         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
81134         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
81135         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
81136         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
81137         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
81138         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
81139         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
81140         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
81141         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
81142         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
81143         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
81144         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
81145         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
81146         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
81147         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
81148         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
81149         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
81150         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
81151         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
81152         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
81153         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
81154         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
81155         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
81156         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
81157         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
81158         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
81159         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
81160         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
81161         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
81162         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
81163         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
81164         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
81165         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
81166         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
81167         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
81168         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
81169         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
81170         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
81171         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
81172         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
81173         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
81174         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
81175         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
81176         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
81177         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
81178         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
81179         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
81180         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
81181         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
81182         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
81183         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
81184         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
81185         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
81186         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
81187         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
81188         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
81189         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
81190         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
81191         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
81192         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
81193         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
81194         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
81195         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
81196         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
81197         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
81198         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
81199         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
81200         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
81201         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
81202         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
81203         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
81204         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
81205         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
81206         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
81207         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
81208         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
81209         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
81210         * sysdeps/ieee754/k_standard.c: Likewise.
81211         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
81212         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
81213         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
81214         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
81215         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
81216         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
81217         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
81218         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
81219         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
81220         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
81221         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
81222         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
81223         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
81224         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
81225         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
81226         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
81227         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
81228         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
81229         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
81230         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
81231         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
81232         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
81233         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
81234         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
81235         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
81236         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
81237         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
81238         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
81239         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
81240         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
81241         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
81242         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
81243         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
81244         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
81245         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
81246         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
81247         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
81248         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
81249         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
81250         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
81251         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
81252         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
81253         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
81254         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
81255         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
81256         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
81257         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
81258         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
81259         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
81260         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
81261         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
81262         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
81263         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
81264         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
81265         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
81266         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
81267         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
81268         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
81269         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
81270         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
81271         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
81272         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
81273         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
81274         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
81275         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
81276         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
81277         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
81278         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
81279         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
81280         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
81281         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
81282         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
81283         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
81284         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
81285         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
81286         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
81287         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
81288         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
81289         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
81290         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
81291         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
81292         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
81293         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
81294         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
81295         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
81296         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
81297         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
81298         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
81299         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
81300         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
81301         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
81302         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
81303         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
81304         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
81305         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
81306         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
81307         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
81308         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
81309         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
81310         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
81311         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
81312         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
81313         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
81314         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
81315         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
81316         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
81317         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
81318         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
81319         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
81320         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
81321         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
81322         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
81323         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
81324         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
81325         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
81326         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
81327         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
81328         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
81329         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
81330         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
81331         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
81332         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
81333         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
81334         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
81335         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
81336         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
81337         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
81338         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
81339         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
81340         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
81341         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
81342         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
81343         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
81344         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
81345         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
81346         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
81347         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
81348         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
81349         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
81350         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
81351         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
81352         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
81353         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
81354         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
81355         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
81356         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
81357         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
81358         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
81359         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
81360         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
81361         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
81362         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
81363         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
81364         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
81365         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
81366         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
81367         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
81368         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
81369         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
81370         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
81371         * sysdeps/ieee754/s_lib_version.c: Likewise.
81372         * sysdeps/ieee754/s_matherr.c: Likewise.
81373         * sysdeps/ieee754/s_signgam.c: Likewise.
81374         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
81375         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
81376         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
81377         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
81378         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
81379         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
81380         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
81381         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
81382         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
81383         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
81384         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
81385         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
81386         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
81387         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
81388         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
81389         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
81390         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
81391         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
81392         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
81393         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
81394         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
81395
81396 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
81397
81398         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
81399         * sunrpc/rpc_main.c: Likewise.
81400         * sunrpc/rpc_svcout.c: Likewise.
81401
81402 2012-03-09  David S. Miller  <davem@davemloft.net>
81403
81404         * include/math_private.h: New file.
81405
81406 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
81407
81408         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
81409         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
81410         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
81411         from <bits/socket_type.h>.
81412         (enum __socket_type): Don't define here.
81413         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
81414         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
81415         bits/socket_type.h.
81416
81417         [BZ #13566]
81418         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
81419         checking __USE_GNU.
81420
81421         * Makerules ($(inst_includedir)/%.h): New rule.
81422         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
81423         (install-others): Remove variable setting.
81424         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
81425
81426 2012-03-08  Richard Henderson  <rth@twiddle.net>
81427
81428         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
81429         from macro to inline function; merge with the
81430         !__LIBC_INTERNAL_MATH_INLINES version.
81431         (__ieee754_sqrtf): Likewise.
81432
81433         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
81434         to inline function.
81435         (__rintf, __floor, __floorf): Likewise.
81436
81437         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
81438         macro to inline function.
81439         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
81440
81441         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
81442         not <math/math_private.h>.
81443
81444 2012-03-08  David S. Miller  <davem@davemloft.net>
81445
81446         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
81447         copyright year.
81448         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
81449
81450 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
81451
81452         * resolv/gai_misc.c (handle_requests): Fix struct timespec
81453         normalization.
81454         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
81455         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
81456
81457 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
81458
81459         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
81460         be defined individually, they must be defined as a block.  Define
81461         S for printing a string instead of hidint the different by using a
81462         macro for adding the 'l'.
81463         * stdio-common/tst-fphex-wide.c: Adjust.
81464
81465 2012-03-07  Marek Polacek  <polacek@redhat.com>
81466
81467         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
81468
81469 2012-03-08  Marek Polacek  <polacek@redhat.com>
81470
81471         [BZ #13806]
81472         * stdio-common/Makefile (tests): Add tst-fphex-wide.
81473         * stdio-common/tst-fphex.c: Define a few macros to make the
81474         test reusable.  Use them.
81475         * stdio-common/tst-fphex-wide.c: New file.
81476
81477 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
81478
81479         [BZ #6911]
81480         * manual/macros.texi (gnusystems): New macro.
81481         (nongnusystems): Likewise.
81482         (gnulinuxhurdsystems): Likewise.
81483         (gnuhurdsystems): Likewise..
81484         (gnulinuxsystems): Likewise.
81485         * manual/charset.texi: Use new macros or @theglibc{} to refer to
81486         variants of the GNU system, not "GNU system".
81487         * manual/conf.texi: Likewise.
81488         * manual/errno.texi: Likewise.  Update example of errno macro
81489         expansion.
81490         * manual/filesys.texi: Likewise.
81491         (getumask): Document as specific to GNU/Hurd.
81492         * manual/install.texi: Likewise.  Reword some references to
81493         GNU/Linux.
81494         * manual/intro.texi: Likewise.
81495         * manual/io.texi: Likewise.
81496         (File Name Portability): Detail which constraints are inapplicable
81497         to all GNU systems and which are only inapplicable to GNU/Hurd.
81498         * manual/job.texi: Likewise.
81499         * manual/llio.texi: Likewise.
81500         (O_NOCTTY): Document as present on GNU/Linux.
81501         * manual/maint.texi: Likewise.
81502         * manual/memory.texi: Likewise.
81503         * manual/pattern.texi: Likewise.
81504         * manual/pipe.texi: Likewise.
81505         * manual/process.texi: Likewise.
81506         * manual/resource.texi: Likewise.
81507         (RUSAGE_CHILDREN): Remove statement about specifying a particular
81508         child on GNU/Hurd.
81509         * manual/setjmp.texi: Likewise.
81510         * manual/signal.texi: Likewise.
81511         * manual/startup.texi: Likewise.
81512         * manual/stdio.texi: Likewise.
81513         * manual/terminal.texi: Likewise.
81514         (ONLCR): Document as POSIX.
81515         (OXTABS): Document availability on GNU/Linux as XTABS.
81516         (ONOEOT): Document availability separately from other bits.
81517         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
81518         * manual/time.texi: Likewise.
81519         * manual/users.texi: Likewise.
81520         * INSTALL: Regenerated.
81521         * sysdeps/gnu/errlist.c: Regenerated.
81522
81523         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
81524         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
81525         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
81526         puts.
81527         * configure: Regenerated.
81528
81529 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
81530
81531         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
81532         default includes instead of AC_HEADER_CHECK.
81533         * sysdeps/i386/configure: Regenerated.
81534
81535         [BZ #10716]
81536         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
81537         * math/s_cacoshf.c (__cacoshf): Likewise.
81538         * math/s_cacoshl.c (__cacoshl): Likewise.
81539         * math/s_casinh.c (__casinh): Set signs of result from argument.
81540         * math/s_casinhf.c (__casinhf): Likewise.
81541         * math/s_casinhl.c (__casinhl): Likewise.
81542         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
81543         (casinh_test): Add more tests.
81544         * sysdeps/i386/fpu/libm-test-ulps: Update.
81545         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81546
81547 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
81548
81549         * po/zh_TW.po: Update from translation team.
81550
81551         * login/Makefile (distribute): Remove variable.
81552         * catgets/Makefile: Likewise.
81553         * mach/Makefile: Likewise.
81554         * malloc/Makefile: Likewise.
81555         * misc/Makefile: Likewise.
81556         * iconv/Makefile: Likewise.
81557         * nscd/Makefile: Likewise.
81558         * hurd/Makefile: Likewise.
81559         * manual/Makefile: Likewise.
81560         * locale/Makefile: Likewise.
81561         * intl/Makefile: Likewise.
81562         * conform/Makefile: Likewise.
81563         * nss/Makefile: Likewise.
81564         * time/Makefile: Likewise.
81565         * soft-fp/Makefile: Likewise.
81566         * dirent/Makefile: Likewise.
81567         * gmon/Makefile: Likewise.
81568         * po/Makefile: Likewise.
81569         * rt/Makefile: Likewise.
81570         * socket/Makefile: Likewise.
81571         * math/Makefile: Likewise.
81572         * signal/Makefile: Likewise.
81573         * debug/Makefile: Likewise.
81574         * elf/Makefile: Likewise.
81575         * timezone/Makefile: Likewise.
81576         * stdlib/Makefile: Likewise.
81577         * iconvdata/Makefile: Likewise.
81578         * sunrpc/Makefile: Likewise.
81579         * io/Makefile: Likewise.
81580         * argp/Makefile: Likewise.
81581         * inet/Makefile: Likewise.
81582         * hesiod/Makefile: Likewise.
81583         * grp/Makefile: Likewise.
81584         * csu/Makefile: Likewise.
81585         * wctype/Makefile: Likewise.
81586         * crypt/Makefile: Likewise.
81587         * libio/Makefile: Likewise.
81588         * string/Makefile: Likewise.
81589         * nis/Makefile: Likewise.
81590         * resolv/Makefile: Likewise.
81591         * stdio-common/Makefile: Likewise.
81592         * wcsmbs/Makefile: Likewise.
81593         * dlfcn/Makefile: Likewise.
81594         * posix/Makefile: Likewise.
81595
81596         [BZ #6959]
81597         * timezone/Makefile: Don't install timezone files, just the programs
81598         and scripts.
81599
81600 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
81601
81602         * nss/databases.def: Add missing gshadow entry.
81603
81604         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
81605
81606 2012-03-06  Marek Polacek  <polacek@redhat.com>
81607
81608         [BZ #13726]
81609         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
81610         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
81611         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
81612         * stdio-common/tst-long-dbl-fphex.c: New file.
81613
81614 2012-03-06  David S. Miller  <davem@davemloft.net>
81615
81616         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
81617         (set_obp_int): New function.
81618         (get_obp_int): New function.
81619         (__get_clockfreq_via_dev_openprom): Likewise.
81620         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
81621         Avoid unused variable warnings on 'val' and use builtin_expect.
81622         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
81623         __builtin_expect.
81624         (INLINE_CLONE_SYSCALL): Likewise.
81625
81626 2012-03-05  David S. Miller  <davem@davemloft.net>
81627
81628         * sysdeps/sparc/fpu/libm-test-ulps: Update.
81629
81630 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
81631
81632         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
81633
81634         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
81635         only for |x| >= 40.
81636         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
81637
81638 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
81639
81640         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
81641         Replace gettimeofday with __vdso_gettimeofday.
81642
81643         * sysdeps/unix/sysv/linux/x86_64/init-first.c
81644         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
81645         __vdso_clock_gettime and __vdso_getcpu.
81646
81647         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
81648         time with __vdso_time.
81649
81650 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
81651
81652         * manual/lang.texi (size_t): Note types to which size_t may be
81653         equivalent with the GNU C Library, but do not describe when
81654         differences between them are significant.
81655
81656 2012-03-05  Andreas Jaeger  <aj@suse.de>
81657
81658         * sysdeps/i386/fpu/libm-test-ulps: Update.
81659
81660 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
81661
81662         [BZ #3976]
81663         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
81664         (__ieee754_pow): Save and restore rounding mode and use
81665         round-to-nearest for main computations.
81666         * math/libm-test.inc (pow_test_tonearest): New function.
81667         (pow_test_towardzero): Likewise.
81668         (pow_test_downward): Likewise.
81669         (pow_test_upward): Likewise.
81670         (main): Call the new functions.
81671         * sysdeps/i386/fpu/libm-test-ulps: Update.
81672         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81673
81674         [BZ #3976]
81675         * math/libm-test.inc (cosh_test_tonearest): New function.
81676         (cosh_test_towardzero): Likewise.
81677         (cosh_test_downward): Likewise.
81678         (cosh_test_upward): Likewise.
81679         (sinh_test_tonearest): Likewise.
81680         (sinh_test_towardzero): Likewise.
81681         (sinh_test_downward): Likewise.
81682         (sinh_test_upward): Likewise.
81683         (main): Call the new functions.
81684         * sysdeps/i386/fpu/libm-test-ulps: Update.
81685         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81686
81687 2012-03-05  Tom de Vries  <tom@codesourcery.com>
81688
81689         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
81690         default stack guard is set in last bytes.
81691         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
81692
81693 2012-03-05  Kees Cook  <keescook@chromium.org>
81694
81695         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
81696
81697         [BZ #13656]
81698         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
81699         possibly allocate from heap instead of stack.
81700         * stdio-common/bug-vfprintf-nargs.c: New file.
81701         * stdio-common/Makefile (tests): Add nargs overflow test.
81702
81703 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
81704
81705         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
81706
81707 2012-03-03  Marek Polacek  <polacek@redhat.com>
81708
81709         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
81710         * math/math_private.h: Likewise.
81711         * stdlib/tst-strtod.c: Likewise.
81712         * sysdeps/i386/i486/bits/atomic.h: Likewise.
81713         * sysdeps/x86_64/bits/atomic.h: Likewise.
81714
81715 2012-03-02  David S. Miller  <davem@davemloft.net>
81716
81717         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
81718         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
81719         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
81720         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
81721         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
81722         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
81723         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
81724         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
81725
81726 2012-03-02  Roland McGrath  <roland@hack.frob.com>
81727
81728         [BZ #13792]
81729         * manual/examples/README: New file, says the example source files
81730         can be used under GPL>=2.
81731         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
81732         line containing just "*/".
81733         * manual/examples/add.c: Add copyright header (GPL>=2).
81734         * manual/examples/argp-ex1.c: Likewise.
81735         * manual/examples/argp-ex2.c: Likewise.
81736         * manual/examples/argp-ex3.c: Likewise.
81737         * manual/examples/argp-ex4.c: Likewise.
81738         * manual/examples/atexit.c: Likewise.
81739         * manual/examples/db.c: Likewise.
81740         * manual/examples/dir.c: Likewise.
81741         * manual/examples/dir2.c: Likewise.
81742         * manual/examples/execinfo.c: Likewise.
81743         * manual/examples/filecli.c: Likewise.
81744         * manual/examples/filesrv.c: Likewise.
81745         * manual/examples/fmtmsgexpl.c: Likewise.
81746         * manual/examples/genpass.c: Likewise.
81747         * manual/examples/inetcli.c: Likewise.
81748         * manual/examples/inetsrv.c: Likewise.
81749         * manual/examples/isockad.c: Likewise.
81750         * manual/examples/longopt.c: Likewise.
81751         * manual/examples/memopen.c: Likewise.
81752         * manual/examples/memstrm.c: Likewise.
81753         * manual/examples/mkfsock.c: Likewise.
81754         * manual/examples/mkisock.c: Likewise.
81755         * manual/examples/mygetpass.c: Likewise.
81756         * manual/examples/pipe.c: Likewise.
81757         * manual/examples/popen.c: Likewise.
81758         * manual/examples/rprintf.c: Likewise.
81759         * manual/examples/search.c: Likewise.
81760         * manual/examples/select.c: Likewise.
81761         * manual/examples/setjmp.c: Likewise.
81762         * manual/examples/sigh1.c: Likewise.
81763         * manual/examples/sigusr.c: Likewise.
81764         * manual/examples/stpcpy.c: Likewise.
81765         * manual/examples/strdupa.c: Likewise.
81766         * manual/examples/strftim.c: Likewise.
81767         * manual/examples/strncat.c: Likewise.
81768         * manual/examples/subopt.c: Likewise.
81769         * manual/examples/swapcontext.c: Likewise.
81770         * manual/examples/termios.c: Likewise.
81771         * manual/examples/testopt.c: Likewise.
81772         * manual/examples/testpass.c: Likewise.
81773         * manual/examples/timeval_subtract.c: Likewise.
81774
81775         [BZ #13792]
81776         * manual/time.texi (Elapsed Time): Move timeval_subtract example
81777         function to ...
81778         * manual/timeval_subtract.c.texi: ... here, new file.
81779
81780 2012-03-02  David S. Miller  <davem@davemloft.net>
81781
81782         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
81783
81784 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
81785
81786         [BZ #3976]
81787         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
81788         (__sin): Save and restore rounding mode and use round-to-nearest
81789         for all computations.
81790         (__cos): Save and restore rounding mode and use round-to-nearest
81791         for all computations.
81792         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
81793         <fenv.h>.
81794         (tan): Save and restore rounding mode and use round-to-nearest for
81795         all computations.
81796         * math/libm-test.inc (cos_test_tonearest): New function.
81797         (cos_test_towardzero): Likewise.
81798         (cos_test_downward): Likewise.
81799         (cos_test_upward): Likewise.
81800         (sin_test_tonearest): Likewise.
81801         (sin_test_towardzero): Likewise.
81802         (sin_test_downward): Likewise.
81803         (sin_test_upward): Likewise.
81804         (tan_test_tonearest): Likewise.
81805         (tan_test_towardzero): Likewise.
81806         (tan_test_downward): Likewise.
81807         (tan_test_upward): Likewise.
81808         (main): Call the new functions.
81809         * sysdeps/i386/fpu/libm-test-ulps: Update.
81810         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81811
81812         [BZ #10135]
81813         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
81814         small n, then large n, before computing and testing k+n.
81815         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
81816         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
81817         Likewise.
81818         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
81819         Likewise.
81820         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
81821         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
81822         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
81823         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
81824         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
81825         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
81826         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
81827         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
81828         * math/libm-test.inc (scalbn_test): Add more tests.
81829         (scalbln_test): Likewise.
81830
81831         * manual/filesys.texi (mode_t): Describe constraints on size and
81832         signedness, not exact equivalence to a particular type.
81833         (ino_t): Likewise.
81834         (ino64_t): Likewise.
81835         (dev_t): Likewise.
81836         (nlink_t): Likewise.
81837         (blkcnt_t): Likewise.
81838         (blkcnt64_t): Likewise.
81839         * manual/llio.texi (off_t): Likewise.
81840
81841         [BZ #3976]
81842         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
81843         (__ieee754_exp): Save and restore rounding mode and use
81844         round-to-nearest for all computations.
81845         * math/libm-test.inc (exp_test_tonearest): New function.
81846         (exp_test_towardzero): Likewise.
81847         (exp_test_downward): Likewise.
81848         (exp_test_upward): Likewise.
81849         (main): Call the new functions.
81850         * sysdeps/i386/fpu/libm-test-ulps: Update.
81851         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81852
81853 2012-03-01  Chris Demetriou  <cgd@google.com>
81854
81855         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
81856         have predictable order.
81857
81858 2012-03-01  David S. Miller  <davem@davemloft.net>
81859
81860         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
81861
81862         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
81863         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
81864         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
81865         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
81866
81867         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
81868         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
81869         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
81870         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
81871         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
81872         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
81873         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
81874         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
81875         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
81876
81877         * sysdeps/sparc/fpu/libm-test-ulps: Update.
81878
81879         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
81880         * sysdeps/sparc/fpu/libm-test-ulps: to here.
81881         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
81882
81883         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
81884         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
81885         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
81886         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
81887         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
81888         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
81889         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
81890         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
81891         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
81892         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
81893         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
81894         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
81895         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
81896         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
81897         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
81898         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
81899         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
81900         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
81901         * sysdeps/sparc/elf/configure: Regenerated.
81902
81903 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
81904
81905         * configure.in (AS, LD): Require binutils 2.20 or later.
81906         * configure: Regenerated.
81907         * manual/install.texi (Tools for Compilation): Give binutils 2.20
81908         as required minimum version.
81909         * INSTALL: Regenerated.
81910
81911         [BZ #2541]
81912         [BZ #4108]
81913         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
81914         before squaring exponent.
81915         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
81916         bottom long double and 27 bits of top long double before squaring
81917         exponent.
81918         * math/libm-test.inc (erfc_test): Add more tests.
81919         * sysdeps/i386/fpu/libm-test-ulps: Update.
81920         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
81921         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81922
81923 2012-03-01  Kai Tietz  <ktietz@redhat.com>
81924
81925         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
81926         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
81927         containing bit-fields.
81928         * soft-fp/extended.h (_FP_UNION_E): Likewise.
81929         * soft-fp/single.h (_FP_UNION_S): Likewise.
81930         * soft-fp/double.h (_FP_UNION_D): Likewise.
81931
81932 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
81933
81934         [BZ #13786]
81935         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
81936         not include ../strcmp.S.
81937         [USE_AS_STRNCASECMP_L]: Likewise.
81938         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
81939         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
81940         * sysdeps/i386/i686/multiarch/strncase_l-c.c
81941         (__strncasecmp_l_ia32): Define as alias to
81942         __strncasecmp_l_nonascii.
81943
81944         [BZ #5794]
81945         * math/libm-test.inc (expm1_test): Add test for bug 5794.
81946         * sysdeps/i386/fpu/libm-test-ulps: Update.
81947         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81948
81949         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
81950         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81951
81952 2012-02-29  Jeff Law  <law@redhat.com>
81953
81954         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
81955         out of bounds read.
81956
81957 2012-02-29  Marek Polacek  <polacek@redhat.com>
81958
81959         [BZ #13706]
81960         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
81961         * elf/Makefile: Add rules to run tst-unused-dep.out.
81962
81963 2012-02-28  David S. Miller  <davem@davemloft.net>
81964
81965         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
81966         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
81967         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
81968         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
81969         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
81970         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
81971
81972 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
81973
81974         * math/libm-test.inc (llround_test): Move one test from
81975         lround_test.  Use TEST_f_L in moved test.
81976         (lround_test): Move misplaced test to llround_test.  Add testcase
81977         from bug 2561.
81978
81979 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
81980
81981         * sysdeps/x86_64/fpu/e_expf.S: New file.
81982         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
81983
81984 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
81985
81986         [BZ #13637]
81987         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
81988         of remain_len that may cause incomplete multi-byte character and
81989         false match.
81990         * posix/bug-regex33.c: New file.
81991         * posix/Makefile (tests): Add bug-regex33.
81992
81993 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
81994
81995         * manual/macros.texi: New file.
81996         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
81997         * manual/libc.texinfo: Include macros.texi.
81998         * manual/creatute.texi: Likewise.
81999         * manual/install.texi: Likewise.
82000         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
82001         @glibcadj{} in references to the GNU C Library.
82002         * manual/charset.texi: Likewise.
82003         * manual/conf.texi: Likewise.
82004         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
82005         when not using those macros.
82006         * manual/creature.texi: Likewise.
82007         * manual/crypt.texi: Likewise.
82008         * manual/errno.texi: Likewise.
82009         * manual/filesys.texi: Likewise.
82010         * manual/header.texi: Likewise.
82011         * manual/install.texi: Likewise.
82012         * manual/intro.texi: Likewise.
82013         * manual/io.texi: Likewise.
82014         * manual/job.texi: Likewise.
82015         * manual/lang.texi: Likewise.
82016         * manual/libc.texiinfo: Likewise.
82017         * manual/llio.texi: Likewise.
82018         * manual/locale.texi: Likewise.
82019         * manual/maint.texi: Likewise.
82020         * manual/math.texi: Likewise.
82021         * manual/memory.texi: Likewise.
82022         * manual/message.texi: Likewise.
82023         * manual/nss.texi: Likewise.
82024         * manual/pattern.texi: Likewise.
82025         * manual/process.texi: Likewise.
82026         * manual/resource.texi: Likewise.
82027         * manual/search.texi: Likewise.
82028         * manual/setjmp.texi: Likewise.
82029         * manual/signal.texi: Likewise.
82030         * manual/socket.texi: Likewise.
82031         * manual/startup.texi: Likewise.
82032         * manual/stdio.texi: Likewise.
82033         * manual/string.texi: Likewise.
82034         * manual/sysinfo.texi: Likewise.
82035         * manual/syslog.texi: Likewise.
82036         * manual/terminal.texi: Likewise.
82037         * manual/time.texi: Likewise.
82038         * manual/users.texi: Likewise.
82039         * INSTALL: Regenerated.
82040         * NOTES: Regenerated.
82041         * sysdeps/gnu/errlist.c: Regenerated.
82042
82043 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
82044
82045         * include/dirent.h: Include <dirstream.h> before
82046         <dirent/dirent.h>.
82047
82048 2012-02-28  David S. Miller  <davem@davemloft.net>
82049
82050         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
82051         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
82052         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
82053         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
82054
82055 2012-02-27  David S. Miller  <davem@davemloft.net>
82056
82057         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
82058         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
82059         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
82060         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
82061
82062         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
82063         frame pointer instead of stack pointer relative arg slot.
82064         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
82065         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
82066         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
82067
82068 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
82069
82070         [BZ #3992]
82071         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
82072
82073 2012-02-27  David S. Miller  <davem@davemloft.net>
82074
82075         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
82076         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
82077         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
82078         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
82079         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
82080         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
82081         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
82082         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
82083
82084 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
82085
82086         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
82087         later.  Allow versions 5-9.
82088         * configure: Regenerated.
82089         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
82090         required minimum version and 4.6 as recommended version.  Do not
82091         mention bugs in GCC 2.7 and 2.8.
82092         * INSTALL: Regenerated.
82093
82094 2012-02-27  David S. Miller  <davem@davemloft.net>
82095
82096         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
82097         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
82098         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
82099         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
82100         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
82101         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
82102         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
82103         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
82104
82105         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
82106         manipulate bits before adding and subtracting TWO112[sx].
82107         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
82108
82109 2012-02-27  Roland McGrath  <roland@hack.frob.com>
82110
82111         [BZ #13775]
82112         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
82113         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
82114         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
82115         being in POSIX, because they are in 1003.1-2008.
82116
82117         * rt/tst-aio.c: Include <fcntl.h>.
82118         * rt/tst-aio7.c: Likewise.
82119         * rt/tst-aio64.c: Likewise.
82120
82121         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
82122
82123 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
82124
82125         * manual/install.texi (--with-headers): Describe headers as
82126         interface headers, not private headers.
82127         (Specific advice for GNU/Linux systems): Describe use of headers
82128         from "make headers_install", not private headers from older
82129         kernels.
82130         * INSTALL: Regenerated.
82131         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
82132         Change to 2.6.19.
82133         * sysdeps/unix/sysv/linux/configure: Regenerated.
82134
82135         * manual/llio.texi (fclean): Remove documentation.
82136
82137         * manual/Makefile (libc-texi-generated): New variable.  Include
82138         version.texi.
82139         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
82140         $(libc-texi-generated), not duplicated list of files.
82141         (version.texi, stamp-version): New rules.
82142         (realclean): Remove $(libc-texi-generated), not individual files
82143         from that list.  Do not remove dir-add.texinfo.
82144         * manual/libc.texinfo: Comment out uses of edition numbers and
82145         references to printed manual.  Remove last-updated dates.
82146         (EDITION): Comment out.
82147         (ISBN): Likewise.
82148         (VERSION, UPDATED): Remove.
82149         (version.texi): Include.
82150
82151 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
82152
82153         * sysdeps/posix/spawni.c: Include <signal.h>.
82154         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
82155         * sysdeps/pthread/aio_fsync.c: Likewise.
82156
82157 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
82158
82159         * conform/Makefile (tests): Run only when not cross-compiling and
82160         when fast-check is not defined.
82161
82162         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
82163         * conform/data/limits.h-data: Fixes for POSIX2008.
82164         * conform/run-conformtest.sh: Run all tests.
82165         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
82166         headers.
82167         * include/bits/dlfcn.h: Likewise.
82168         * include/langinfo.h: Likewise.
82169         * include/monetary.h: Likewise.
82170         * include/sys/poll.h: Likewise.
82171
82172         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
82173         for __USE_GNU.
82174         * posix/spawn.h: Define __need_sigset_t.
82175         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
82176         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
82177         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
82178         to get sigevent_t only.
82179         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
82180         only for __USE_GNU.
82181         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
82182         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
82183         process_vm_writev only for __USE_GNU.
82184         * termios/termios.h: Declare tcgetsid also for POSIX2008.
82185
82186         * conform/Makefile: For now ignore errors from run-conformtest.
82187         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
82188         POSIX to avoid namespace pollution.  Don't prepend headers.
82189         * conform/data/aio.h-data: Fixes for POSIX testing.
82190         * conform/data/fcntl.h-data: Likewise.
82191         * conform/data/glob.h-data: Likewise.
82192         * conform/data/grp.h-data: Likewise.
82193         * conform/data/pthread.h-data: Likewise.
82194         * conform/data/pwd.h-data: Likewise.
82195         * conform/data/signal.h-data: Likewise.
82196         * conform/data/spawn.h-data: Likewise.
82197         * conform/data/stdio.h-data: Likewise.
82198         * conform/data/stdlib.h-data: Likewise.
82199         * conform/data/stropts.h-data: Likewise.
82200         * conform/data/sys/mman.h-data: Likewise.
82201         * conform/data/sys/stat.h-data: Likewise.
82202         * conform/data/sys/types.h-data: Likewise.
82203         * conform/data/sys/wait.h-data: Likewise.
82204         * conform/data/time.h-data: Likewise.
82205         * conform/data/unistd.h-data: Likewise.
82206         * conform/data/utime.h-data: Likewise.
82207
82208         * io/sys/stat.h: fchmod was always in POSIX.
82209         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
82210         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
82211         * rt/aio.h: Define __need_timespec before including <time.h>.
82212         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
82213         struct.  Add forward declaration of pthread_attr_t and use it in
82214         sigevent.
82215         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
82216         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
82217         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
82218         always remove CLK_TCK definition.
82219
82220 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
82221
82222         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
82223
82224 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
82225
82226         * conform/run-conformtest.sh: New file.
82227         * conform/Makefile: Run run-conformtest for tests.
82228         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
82229         support.
82230
82231         * conform/data/uchar.h-data: New file.
82232         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
82233         * conform/data/arpa/inet.h-data: Likewise.
82234         * conform/data/assert.h-data: Likewise.
82235         * conform/data/complex.h-data: Likewise.
82236         * conform/data/cpio.h-data: Likewise.
82237         * conform/data/ctype.h-data: Likewise.
82238         * conform/data/dirent.h-data: Likewise.
82239         * conform/data/dlfcn.h-data: Likewise.
82240         * conform/data/errno.h-data: Likewise.
82241         * conform/data/fcntl.h-data: Likewise.
82242         * conform/data/float.h-data: Likewise.
82243         * conform/data/fmtmsg.h-data: Likewise.
82244         * conform/data/fnmatch.h-data: Likewise.
82245         * conform/data/ftw.h-data: Likewise.
82246         * conform/data/glob.h-data: Likewise.
82247         * conform/data/grp.h-data: Likewise.
82248         * conform/data/iconv.h-data: Likewise.
82249         * conform/data/inttypes.h-data: Likewise.
82250         * conform/data/langinfo.h-data: Likewise.
82251         * conform/data/libgen.h-data: Likewise.
82252         * conform/data/limits.h-data: Likewise.
82253         * conform/data/locale.h-data: Likewise.
82254         * conform/data/math.h-data: Likewise.
82255         * conform/data/monetary.h-data: Likewise.
82256         * conform/data/mqueue.h-data: Likewise.
82257         * conform/data/ndbm.h-data: Likewise.
82258         * conform/data/net/if.h-data: Likewise.
82259         * conform/data/netdb.h-data: Likewise.
82260         * conform/data/netinet/in.h-data: Likewise.
82261         * conform/data/nl_types.h-data: Likewise.
82262         * conform/data/poll.h-data: Likewise.
82263         * conform/data/pthread.h-data: Likewise.
82264         * conform/data/pwd.h-data: Likewise.
82265         * conform/data/regex.h-data: Likewise.
82266         * conform/data/sched.h-data: Likewise.
82267         * conform/data/search.h-data: Likewise.
82268         * conform/data/semaphore.h-data: Likewise.
82269         * conform/data/setjmp.h-data: Likewise.
82270         * conform/data/signal.h-data: Likewise.
82271         * conform/data/spawn.h-data: Likewise.
82272         * conform/data/stdarg.h-data: Likewise.
82273         * conform/data/stdio.h-data: Likewise.
82274         * conform/data/stdlib.h-data: Likewise.
82275         * conform/data/string.h-data: Likewise.
82276         * conform/data/strings.h-data: Likewise.
82277         * conform/data/stropts.h-data: Likewise.
82278         * conform/data/sys/ipc.h-data: Likewise.
82279         * conform/data/sys/mman.h-data: Likewise.
82280         * conform/data/sys/msg.h-data: Likewise.
82281         * conform/data/sys/resource.h-data: Likewise.
82282         * conform/data/sys/select.h-data: Likewise.
82283         * conform/data/sys/sem.h-data: Likewise.
82284         * conform/data/sys/shm.h-data: Likewise.
82285         * conform/data/sys/socket.h-data: Likewise.
82286         * conform/data/sys/stat.h-data: Likewise.
82287         * conform/data/sys/statvfs.h-data: Likewise.
82288         * conform/data/sys/time.h-data: Likewise.
82289         * conform/data/sys/timeb.h-data: Likewise.
82290         * conform/data/sys/times.h-data: Likewise.
82291         * conform/data/sys/types.h-data: Likewise.
82292         * conform/data/sys/uio.h-data: Likewise.
82293         * conform/data/sys/un.h-data: Likewise.
82294         * conform/data/sys/utsname.h-data: Likewise.
82295         * conform/data/sys/wait.h-data: Likewise.
82296         * conform/data/syslog.h-data: Likewise.
82297         * conform/data/tar.h-data: Likewise.
82298         * conform/data/termios.h-data: Likewise.
82299         * conform/data/utime.h-data: Likewise.
82300         * conform/data/utmpx.h-data: Likewise.
82301         * conform/data/varargs.h-data: Likewise.
82302         * conform/data/wchar.h-data: Likewise.
82303         * conform/data/wctype.h-data: Likewise.
82304         * conform/data/wordexp.h-data: Likewise.
82305
82306         * include/stropts.h: New file.
82307         * include/uchar.h: New file.
82308         * include/aio.h: Changes to allow conformtest.pl to use the headers.
82309         * include/assert.h: Likewise.
82310         * include/ctype.h: Likewise.
82311         * include/dirent.h: Likewise.
82312         * include/dlfcn.h: Likewise.
82313         * include/fcntl.h: Likewise.
82314         * include/fnmatch.h: Likewise.
82315         * include/glob.h: Likewise.
82316         * include/grp.h: Likewise.
82317         * include/libio.h: Likewise.
82318         * include/locale.h: Likewise.
82319         * include/math.h: Likewise.
82320         * include/net/if.h: Likewise.
82321         * include/netdb.h: Likewise.
82322         * include/netinet/in.h: Likewise.
82323         * include/pthread.h: Likewise.
82324         * include/pwd.h: Likewise.
82325         * include/regex.h: Likewise.
82326         * include/sched.h: Likewise.
82327         * include/search.h: Likewise.
82328         * include/setjmp.h: Likewise.
82329         * include/signal.h: Likewise.
82330         * include/stdio.h: Likewise.
82331         * include/stdlib.h: Likewise.
82332         * include/string.h: Likewise.
82333         * include/sys/cdefs.h: Likewise.
82334         * include/sys/mman.h: Likewise.
82335         * include/sys/msg.h: Likewise.
82336         * include/sys/resource.h: Likewise.
82337         * include/sys/select.h: Likewise.
82338         * include/sys/socket.h: Likewise.
82339         * include/sys/stat.h: Likewise.
82340         * include/sys/statvfs.h: Likewise.
82341         * include/sys/time.h: Likewise.
82342         * include/sys/times.h: Likewise.
82343         * include/sys/uio.h: Likewise.
82344         * include/sys/utsname.h: Likewise.
82345         * include/sys/wait.h: Likewise.
82346         * include/termios.h: Likewise.
82347         * include/time.h: Likewise.
82348         * include/ulimit.h: Likewise.
82349         * include/unistd.h: Likewise.
82350         * include/utime.h: Likewise.
82351         * include/wchar.h: Likewise.
82352         * include/wctype.h: Likewise.
82353         * include/wordexp.h: Likewise.
82354
82355         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
82356
82357         * time/time.h: TIME_UTC must be a macro.
82358         Make timespec_get available for ISO C11 only as well.
82359
82360 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
82361
82362         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
82363         Reported by Peng Haitao <penght@cn.fujitsu.com>.
82364
82365 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
82366
82367         * configure.in: Use -o not -a in test for unsupported multi-arch.
82368
82369 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
82370
82371         * manual/texinfo.tex: Update to version 2012-01-19.16.
82372
82373 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
82374
82375         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
82376
82377 2012-02-24  Roland McGrath  <roland@hack.frob.com>
82378
82379         [BZ #13738]
82380         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
82381         * manual/fdl-1.3.texi: New file.
82382         * manual/fdl-1.1.texi: File removed.
82383
82384         [BZ #13738]
82385         * manual/libc.texinfo (FDL_VERSION): New @set.
82386         Use it for mention of FDL in cover text.
82387         (Documentation License): Use it in @include file name.
82388
82389 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82390             Roland McGrath  <roland@hack.frob.com>
82391
82392         [BZ #5461]
82393         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
82394         (not LONG_LONG_MAX and LONG_LONG_MIN.
82395         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
82396         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
82397         name.
82398         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
82399
82400 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82401
82402         [BZ #2547]
82403         [BZ #11365]
82404         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
82405         manipulate bits before adding and subtracting TWO23[sx].
82406         * math/libm-test.inc (nearbyint_test): Add more tests.
82407
82408 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82409
82410         [BZ #2548]
82411         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
82412         bits before adding and subtracting TWO23[sx].
82413         * math/libm-test.inc (rint_test): Add more tests.
82414         (rint_test_tonearest): Likewise.
82415         (rint_test_towardzero): Likewise.
82416         (rint_test_downward): Likewise.
82417         (rint_test_upward: Likewise.
82418
82419 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82420
82421         [BZ #10110]
82422         * include/stdc-predef.h: New file.  Extracted from features.h.
82423         * include/features.h: Include stdc-predef.h.
82424         * Makefile (headers): Add stdc-predef.h.
82425         * CONFORMANCE (Compiler limitations): Update.
82426
82427 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82428
82429         * manual/libc.texinfo (VERSION, UPDATED): Revert.
82430
82431 2012-02-21  David S. Miller  <davem@davemloft.net>
82432
82433         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
82434         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
82435
82436 2012-02-20  David S. Miller  <davem@davemloft.net>
82437
82438         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
82439         using a normal save/restore sequence, rather than allocating a
82440         dummy stack frame just to store a frame pointer and restore.
82441         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
82442
82443 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
82444
82445         * manual/install.texi: Fix stray word in line-wrapped comment.
82446
82447 2012-02-20  David S. Miller  <davem@davemloft.net>
82448
82449         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
82450         both binutils and gcc support GOTDATA.
82451
82452         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
82453         "rd %pc" in the PIC register setup sequences.
82454
82455         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
82456         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
82457         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
82458         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
82459         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
82460         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
82461         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
82462         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
82463         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
82464         (SYSCALL_ERROR_HANDLER): Likewise.
82465         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
82466         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
82467         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
82468         (SYSCALL_ERROR_HANDLER): Likewise.
82469
82470         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
82471         (HAVE_GCC_GOTDATA): New.
82472         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
82473         relocation support in both binutils and gcc.
82474         * sysdeps/sparc/elf/configure: Regenerate.
82475
82476         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
82477         * sysdeps/sparc/sparc32/elf/configure: Delete.
82478         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
82479         * sysdeps/sparc/sparc64/elf/configure: Delete.
82480         * sysdeps/sparc/elf/configure.in: New file.
82481         * sysdeps/sparc/elf/configure: Generate.
82482
82483         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
82484         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
82485         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
82486         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
82487         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
82488
82489 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
82490
82491         * manual/install.texi: Do not mention specific glibc version
82492         numbers.
82493         * manual/libc.texinfo (VERSION, UPDATED): Update.
82494         (@copying): Use @copyright{} and range of years.
82495
82496 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
82497
82498         [BZ #13695]
82499         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
82500         [crti.S not in sysdirs] (generated): Do not append.
82501         [crti.S not in sysdirs] (omit-deps): Likewise.
82502         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
82503         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
82504         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
82505         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
82506         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
82507         Likewise.
82508         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
82509         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
82510         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
82511         * csu/defs.awk: Remove file.
82512         * sysdeps/generic/initfini.c: Likewise.
82513         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
82514         variable.
82515         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
82516         Likewise.
82517
82518 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
82519
82520         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
82521         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
82522         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
82523         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
82524         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
82525         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
82526         <bits/epoll.h>.
82527         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
82528         (__EPOLL_PACKED): Define to empty if not defined by
82529         <bits/epoll.h>.
82530         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
82531         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82532         bits/epoll.h.
82533
82534 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
82535
82536         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
82537         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
82538         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
82539         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
82540         <bits/timerfd.h>.
82541         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
82542         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82543         bits/timerfd.h.
82544
82545 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
82546
82547         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
82548         in C locale.
82549         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
82550         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
82551         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
82552         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82553
82554 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
82555
82556         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
82557         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
82558
82559 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
82560
82561         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
82562         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
82563         defined.
82564         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
82565         Likewise.
82566         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
82567         entry for 2.16.
82568
82569 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
82570
82571         * math/w_acos.c: Use non-signaling floating-point comparisons.
82572         * math/w_acosf.c: Likewise.
82573         * math/w_acosh.c: Likewise.
82574         * math/w_acoshf.c: Likewise.
82575         * math/w_acoshl.c: Likewise.
82576         * math/w_acosl.c: Likewise.
82577         * math/w_asin.c: Likewise.
82578         * math/w_asinf.c: Likewise.
82579         * math/w_asinl.c: Likewise.
82580         * math/w_atanh.c: Likewise.
82581         * math/w_atanhf.c: Likewise.
82582         * math/w_atanhl.c: Likewise.
82583         * math/w_exp2.c: Likewise.
82584         * math/w_exp2f.c: Likewise.
82585         * math/w_exp2l.c: Likewise.
82586         * math/w_j0.c: Likewise.
82587         * math/w_j0f.c: Likewise.
82588         * math/w_j0l.c: Likewise.
82589         * math/w_j1.c: Likewise.
82590         * math/w_j1f.c: Likewise.
82591         * math/w_j1l.c: Likewise.
82592         * math/w_jn.c: Likewise.
82593         * math/w_jnf.c: Likewise.
82594         * math/w_log.c: Likewise.
82595         * math/w_log10.c: Likewise.
82596         * math/w_log10f.c: Likewise.
82597         * math/w_log10l.c: Likewise.
82598         * math/w_log2.c: Likewise.
82599         * math/w_log2f.c: Likewise.
82600         * math/w_log2l.c: Likewise.
82601         * math/w_logf.c: Likewise.
82602         * math/w_logl.c: Likewise.
82603         * math/w_sqrt.c: Likewise.
82604         * math/w_sqrtf.c: Likewise.
82605         * math/w_sqrtl.c: Likewise.
82606         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
82607         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
82608         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
82609         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
82610         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
82611
82612 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
82613
82614         [BZ #9739]
82615         * manual/string.texi (strnlen): Use correct parameter name in
82616         equivalent expression.
82617
82618 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
82619
82620         [BZ #11174]
82621         * manual/users.texi (seteuid): Consistently use neweuid for
82622         argument name.
82623
82624 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
82625
82626         [BZ #13704]
82627         * manual/nss.texi (Services in the NSS configuration): Correct
82628         list of services in example configuration file.
82629
82630 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
82631
82632         [BZ #11322]
82633         * manual/arith.texi: Remove statements about negative zero
82634         behaving identically to zero.
82635
82636 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
82637
82638         [BZ #5993]
82639         * manual/install.texi: Do not document upgrading from libc5.
82640
82641 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
82642
82643         [BZ #4596]
82644         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
82645
82646 2012-02-18  David S. Miller  <davem@davemloft.net>
82647
82648         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
82649         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
82650         %o7 across the call.
82651         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
82652         instead.
82653         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
82654         SETUP_PIC_REG_LEAF.
82655         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
82656         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
82657         * sysdeps/sparc/crtn.S: Likewise.
82658
82659 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
82660
82661         * aout/Makefile: Remove.
82662
82663 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
82664
82665         [BZ #13058]
82666         * manual/examples/argp-ex1.c (main): Format definition in GNU
82667         style.
82668         * manual/examples/argp-ex2.c (main): Likewise.
82669         * manual/examples/argp-ex3.c (main): Likewise.
82670         * manual/examples/argp-ex4.c (main): Likewise.
82671         * manual/examples/longopt.c (main): Use new-style prototype
82672         definition.
82673         * manual/examples/strncat.c (main): Specify return type and use
82674         (void) for arguments.
82675         * manual/examples/subopt.c (main): Use char **argv argument.
82676
82677 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82678
82679         [BZ #5077]
82680         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
82681         rounding modes.
82682
82683 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
82684
82685         [BZ #6907]
82686         * manual/string.texi (strchr): Change when strchrnul is
82687         recommended.
82688
82689 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
82690
82691         [BZ #174]
82692         * manual/locale.texi (setlocale): Document LOCPATH.
82693
82694 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82695
82696         [BZ #10210]
82697         * manual/process.texi (execle): Move @dots{} before last argument.
82698
82699 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
82700
82701         [BZ #12047]
82702         * manual/charset.texi (Generic Charset Conversion): Fix typo
82703         (LC_TYPE -> LC_CTYPE).
82704
82705 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
82706
82707         [BZ #5805]
82708         * manual/arith.texi (scalbn): Use @var{} on parameter names.
82709         (scalbnf): Likewise.
82710         (scalbnl): Likewise.
82711         (scalbln): Likewise.
82712         (scalblnf): Likewise.
82713         (scalblnl): Likewise.
82714         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
82715         (vwarnx): Likewise.
82716         (verr): Likewise.
82717         (verrx): Likewise.
82718         * manual/filesys.texi (telldir): Use braces around return type.
82719         * manual/llio.texi (mmap): Add space after comma.
82720         (mmap64): Likewise.
82721         * manual/math.texi (jn): Use @var{} on parameter names.
82722         (jnf): Likewise.
82723         (jnl): Likewise.
82724         (yn): Likewise.
82725         (ynf): Likewise.
82726         (ynl): Likewise.
82727         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
82728         line.
82729         * manual/resource.texi (ulimit): Use @dots{} instead of literal
82730         "...".
82731         (sched_get_priority_min): Remove semicolon on @deftypefun line.
82732         (sched_get_priority_max): Likewise.
82733         * manual/signal.texi (sigvec): Add space after comma.
82734         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
82735         names.
82736         (if_indextoname): Likewise.
82737         (if_freenameindex): Likewise.
82738         (sendto): Use ',' instead of '.' in prototype.
82739         * manual/startup.texi (syscall): Use @dots{} instead of literal
82740         "...".
82741         * manual/stdio.texi (__fpending): Separate initial words of
82742         paragraph from @deftypefun line.
82743         * manual/syslog.texi (syslog): Use @dots{} instead of literal
82744         "...".
82745         (vsyslog): Use @var{} on parameter names.
82746         * manual/terminal.texi (stty): Use @var{} on parameter names.
82747         * manual/users.texi (getutmp): Use @var{} on parameter names.
82748         (getutmpx): Likewise.
82749
82750 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82751
82752         [BZ #6884]
82753         * manual/stdio.texi (fopen): Fix typos in description of
82754         ",ccs=STRING".
82755
82756 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
82757
82758         [BZ #4026]
82759         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
82760         get clock_id definition.
82761
82762 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
82763
82764         [BZ #4822]
82765         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
82766         (madvise): Cast every argument to void on its own.
82767
82768 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82769
82770         [BZ #9902]
82771         * manual/startup.texi (Exit Status): Fix typo.
82772
82773 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82774
82775         [BZ #10140]
82776         * manual/examples/argp-ex1.c: Include <stdlib.h>.
82777         * manual/examples/argp-ex2.c: Likewise.
82778         * manual/examples/argp-ex3.c: Likewise.
82779
82780 2012-02-16  Richard Henderson  <rth@redhat.com>
82781
82782         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
82783         * sysdeps/s390/s390-32/initfini.c: Remove.
82784         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
82785         * sysdeps/s390/s390-64/initfini.c: Remove.
82786
82787 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
82788
82789         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
82790         compiler output for sysdeps/generic/initfini.c.
82791         * sysdeps/sh/elf/initfini.c: Remove file.
82792
82793 2012-02-16  David S. Miller  <davem@davemloft.net>
82794
82795         [BZ #11494]
82796         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
82797
82798         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
82799         * sysdeps/sparc/crti.S: New file.
82800         * sysdeps/sparc/crtn.S: New file.
82801         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
82802         * sysdeps/sparc/sparc64/Makefile: Likewise.
82803
82804 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
82805
82806         [BZ #3335]
82807         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
82808
82809 2012-02-15  Roland McGrath  <roland@hack.frob.com>
82810
82811         [BZ #4822]
82812         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
82813
82814         * mach/devstream.c (cookie_io_functions_t): Macro removed.
82815         (write, read, close): Likewise.
82816         Patch by Aurelien Jarno <aurelien@aurel32.net>.
82817
82818 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
82819
82820         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
82821         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
82822         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
82823         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
82824         <bits/signalfd.h>.
82825         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
82826         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82827         bits/signalfd.h.
82828
82829 2012-02-14  Marek Polacek  <polacek@redhat.com>
82830
82831         * sysdeps/x86_64/crti.S: New file.
82832         * sysdeps/x86_64/crtn.S: New file.
82833         * sysdeps/x86_64/elf/initfini.c: Remove file.
82834
82835 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
82836
82837         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
82838         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
82839         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
82840         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
82841         <bits/inotify.h>.
82842         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
82843         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82844         bits/inotify.h.
82845
82846 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
82847
82848         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
82849         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
82850         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
82851         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
82852         <bits/eventfd.h>.
82853         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
82854         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82855         bits/eventfd.h.
82856
82857 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
82858
82859         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
82860         __feraiseexcept instead of feraiseexcept.
82861
82862         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
82863         nanosleep invocations.
82864         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
82865         strings, and add error checking for a nanosleep invocations.
82866
82867 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
82868
82869         Replace FSF snail mail address with URLs, as per GNU coding standards.
82870         Most of the snail mail addresses were wrong anyway, and omitting
82871         them makes the source code easier to maintain.  Almost all of the
82872         changes are to license notices and to locale LC_IDENTIFICATION
82873         addresses, except for this one:
82874         * manual/libc.texinfo: In "Published by", give the FSF's URL,
82875         not its snail mail address.
82876
82877 2012-02-09  Richard Henderson  <rth@twiddle.net>
82878
82879         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
82880         of kernel-features.h.
82881
82882         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
82883
82884 2012-02-08  Marek Polacek  <polacek@redhat.com>
82885
82886         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
82887         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
82888         * sysdeps/gnu/_G_config.h: Likewise.
82889         * sysdeps/generic/_G_config.h: Likewise.
82890
82891 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
82892
82893         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
82894         tests.
82895         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82896
82897         * sysdeps/powerpc/powerpc32/crti.S: New file.
82898         * sysdeps/powerpc/powerpc32/crtn.S: New file.
82899         * sysdeps/powerpc/powerpc64/crti.S: New file.
82900         * sysdeps/powerpc/powerpc64/crtn.S: New file.
82901
82902         * Makeconfig (have-initfini): Don't set.
82903         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
82904         * configure.in (nopic_initfini): Don't substitute.
82905         * config.h.in (HAVE_INITFINI): Don't #undef.
82906         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
82907         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
82908
82909 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
82910
82911         Support crti.S and crtn.S provided directly by architectures.
82912         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
82913         [crti.S in sysdirs] (omit-deps): Likewise.
82914         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
82915         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
82916         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
82917         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
82918         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
82919         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
82920         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
82921         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
82922         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
82923         compiler output for sysdeps/generic/initfini.c.
82924         * sysdeps/i386/elf/Makefile: Remove file.
82925         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
82926
82927 2012-02-07  Marek Polacek  <polacek@redhat.com>
82928
82929         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
82930         * sysdeps/gnu/_G_config.h: Likewise.
82931         * sysdeps/mach/hurd/_G_config.h: Likewise.
82932
82933 2012-02-07  Marek Polacek  <polacek@redhat.com>
82934
82935         * math/Makefile (tests): Add tst-CMPLX2.
82936         * math/tst-CMPLX2.c: New file.
82937
82938 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
82939
82940         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
82941
82942         * math/libm-test.inc (jn_test): Add missing L suffix.
82943
82944 2012-02-06  Marek Polacek  <polacek@redhat.com>
82945
82946         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
82947         * sysdeps/i386/fpu/e_powf.S: Likewise.
82948         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
82949         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
82950         * sysdeps/i386/fpu/e_acosh.S: Likewise.
82951         * sysdeps/i386/fpu/e_pow.S: Likewise.
82952         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
82953         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
82954         * sysdeps/i386/fpu/s_expm1.S: Likewise.
82955         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
82956         * sysdeps/i386/fpu/e_log2.S: Likewise.
82957         * sysdeps/i386/fpu/e_log2l.S: Likewise.
82958         * sysdeps/i386/fpu/e_scalb.S: Likewise.
82959         * sysdeps/i386/fpu/e_powl.S: Likewise.
82960         * sysdeps/i386/fpu/s_log1p.S: Likewise.
82961         * sysdeps/i386/fpu/e_log10f.S: Likewise.
82962         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
82963         * sysdeps/i386/fpu/e_logl.S: Likewise.
82964         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
82965         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
82966         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
82967         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
82968         * sysdeps/i386/fpu/e_log2f.S: Likewise.
82969         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
82970         * sysdeps/i386/fpu/e_log.S: Likewise.
82971         * sysdeps/i386/fpu/s_cexp.S: Likewise.
82972         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
82973         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
82974         * sysdeps/i386/fpu/e_logf.S: Likewise.
82975         * sysdeps/i386/fpu/e_log10l.S: Likewise.
82976         * sysdeps/i386/fpu/e_atanh.S: Likewise.
82977         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
82978         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
82979         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
82980         * sysdeps/i386/fpu/e_log10.S: Likewise.
82981         * sysdeps/i386/fpu/s_frexp.S: Likewise.
82982         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
82983         * sysdeps/i386/fpu/s_asinh.S: Likewise.
82984         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
82985         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
82986         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
82987         * sysdeps/i386/asm-syntax.h: Likewise.
82988         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
82989         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
82990         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
82991         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
82992         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
82993         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
82994         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
82995         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
82996         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
82997         * sysdeps/powerpc/sysdep.h: Likewise.
82998         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
82999         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
83000
83001 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
83002
83003         [BZ #411]
83004         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
83005
83006 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
83007
83008         * sysdeps/i386/sysdep.h: Include <features.h>.
83009         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
83010         version.
83011
83012 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
83013
83014         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
83015         Define.
83016         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
83017         LOAD_PIC_REG_STR.
83018
83019 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
83020
83021         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
83022         (SETUP_PIC_REG): Use GET_PC_THUNK.
83023         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
83024         macro.
83025
83026 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
83027
83028         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
83029         for non-PIC compilation.
83030         (SETUP_PIC_REG): Add .p2align directive.
83031         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
83032         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
83033         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
83034         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
83035         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
83036         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
83037         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
83038         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
83039         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
83040         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
83041         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
83042         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
83043         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
83044         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
83045         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
83046         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
83047         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
83048         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
83049         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
83050         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
83051         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
83052         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
83053         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
83054         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
83055         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
83056         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
83057         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
83058         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
83059         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
83060         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
83061         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
83062         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
83063         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
83064         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
83065         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
83066         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
83067         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
83068         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
83069         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
83070         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
83071         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
83072
83073 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
83074
83075         * math/tst-CMPLX.c: Include <stdio.h>.
83076
83077 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
83078
83079         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
83080         float.
83081         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
83082         * sysdeps/sparc/bits/mathdef.h: Likewise.
83083
83084 2012-01-31  Marek Polacek  <polacek@redhat.com>
83085
83086         * libio/libio.h: Don't define _PARAMS.
83087         * locale/programs/config.h: Don't define PARAMS.
83088         * stdlib/strtol_l.c: Likewise.
83089         (__strtol_l): Remove PARAMS from the prototype.
83090
83091 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
83092
83093         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
83094         names.  Just use the correct names.  Remove unnecessary wrapper
83095         functions.
83096         * malloc/arena.c: Likewise.
83097         * malloc/hooks.c: Likewise.
83098
83099         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
83100         ARENA_TEST says not to.  Simplify test for creation of a new arena.
83101         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
83102
83103 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
83104
83105         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
83106         into tail calls.
83107         (update_get_addr): New function.
83108         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
83109         GET_ADDR_MODULE parameter.
83110
83111 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
83112
83113         * crypt/cert.c: Remove __STDC__ conditionals.
83114         * crypt/crypt-entry.c: Likewise.
83115         * crypt/crypt_util.c: Likewise.
83116         * libio/filedoalloc.c: Likewise.
83117         * libio/fileops.c: Likewise.
83118         * libio/genops.c: Likewise.
83119         * libio/iofclose.c: Likewise.
83120         * libio/iofdopen.c: Likewise.
83121         * libio/iofopen.c: Likewise.
83122         * libio/iofopen64.c: Likewise.
83123         * libio/iogetdelim.c: Likewise.
83124         * libio/iopopen.c: Likewise.
83125         * libio/obprintf.c: Likewise.
83126         * libio/oldfileops.c: Likewise.
83127         * libio/oldiofclose.c: Likewise.
83128         * libio/oldiofdopen.c: Likewise.
83129         * libio/oldiofopen.c: Likewise.
83130         * libio/oldiopopen.c: Likewise.
83131         * libio/wfiledoalloc.c: Likewise.
83132         * libio/wgenops.c: Likewise.
83133         * locale/programs/xmalloc.c: Likewise.
83134         * misc/syslog.c: Likewise.
83135         * stdio-common/xbug.c: Likewise.
83136         * string/memchr.c: Likewise.
83137         * string/memcmp.c: Likewise.
83138         * string/memrchr.c: Likewise.
83139         * string/rawmemchr.c: Likewise.
83140         * sysdeps/posix/getcwd.c: Likewise.
83141         * time/strftime_l.c: Likewise.
83142
83143 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
83144
83145         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
83146         * config.make.in (config-cflags-sse2avx): Define.
83147         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
83148         Fix typo.
83149
83150 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
83151
83152         * scripts/config.guess: Update from upstream config git repository.
83153         * scripts/config.sub: Likewise.
83154
83155 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
83156
83157         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
83158         (EM_NUM): Update.
83159         (R_TILEPRO_*, R_TILEGX_*): New macros.
83160
83161         * scripts/firstversions.awk: Fix bug in version range handling.
83162
83163         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
83164
83165         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
83166
83167         * include/sys/epoll.h: New file.
83168         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
83169         libc_hidden_def.
83170
83171 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
83172
83173         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
83174         Avoid unnecessary __WORDSIZE == 64 test.
83175         (fmaxf): Use VEX format if possible.
83176         (fmax): Likewise.
83177         (fminf): Likewise.
83178         (fmin): Likewise.
83179
83180         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
83181         * math/math_private.h: Remove libc_fegetround* and
83182         libc_fesetround*.
83183         * sysdeps/i386/configure.in: Check for -msse2avx.
83184         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
83185         also if SSE2AVX is defined.
83186         Remove libc_fegetround* and libc_fesetround*.
83187         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
83188         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
83189         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
83190         of HAS_YMM_USABLE.
83191         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
83192         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
83193         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
83194         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
83195         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
83196
83197         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
83198
83199 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
83200
83201         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
83202         size is not set.
83203         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
83204
83205 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
83206
83207         [BZ #13618]
83208         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
83209         relocation.
83210         * Makeconfig (libm): Define.
83211         * elf/Makefile: Add rules to build and run tst-relsort1.
83212         * elf/tst-relsort1.c: New file.
83213         * elf/tst-relsort1mod1.c: New file.
83214         * elf/tst-relsort1mod2.c: New file.
83215
83216 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
83217
83218         * math/s_ldexp.c: Remove __STDC__ conditionals.
83219         * math/s_ldexpf.c: Likewise.
83220         * math/s_ldexpl.c: Likewise.
83221         * math/s_nextafter.c: Likewise.
83222         * math/s_nexttowardf.c: Likewise.
83223         * math/s_significand.c: Likewise.
83224         * math/s_significandf.c: Likewise.
83225         * math/s_significandl.c: Likewise.
83226         * math/w_jnl.c: Likewise.
83227         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
83228         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
83229         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
83230         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
83231         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
83232         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
83233         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
83234         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
83235         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
83236         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
83237         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
83238         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
83239         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
83240         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
83241         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
83242         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
83243         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
83244         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
83245         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
83246         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
83247         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
83248         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
83249         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
83250         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
83251         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
83252         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
83253         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
83254         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
83255         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
83256         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
83257         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
83258         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
83259         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
83260         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
83261         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
83262         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
83263         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
83264         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
83265         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
83266         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
83267         * sysdeps/ieee754/k_standard.c: Likewise.
83268         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
83269         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
83270         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
83271         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
83272         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
83273         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
83274         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
83275         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
83276         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
83277         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
83278         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
83279         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
83280         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
83281         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
83282         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
83283         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
83284         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
83285         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
83286         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
83287         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
83288         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
83289         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
83290         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
83291         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
83292         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
83293         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
83294         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
83295         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
83296         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
83297         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
83298         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
83299         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
83300         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
83301         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
83302         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
83303         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
83304         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
83305         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
83306         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
83307         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
83308         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
83309         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
83310         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
83311         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
83312         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
83313         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
83314         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
83315         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
83316         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
83317         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
83318         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
83319         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
83320         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
83321         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
83322         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
83323         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
83324         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
83325         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
83326         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
83327         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
83328         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
83329         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
83330         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
83331         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
83332         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
83333         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
83334         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
83335         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
83336         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
83337         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
83338         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
83339         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
83340         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
83341         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
83342         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
83343         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
83344         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
83345         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
83346         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
83347         * sysdeps/ieee754/s_matherr.c: Likewise.
83348         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
83349         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
83350         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
83351         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
83352
83353 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
83354
83355         * crypt/md5.h: Remove __STDC__ conditionals.
83356         * libio/libioP.h: Likewise.
83357         * locale/programs/config.h: Likewise.
83358         * sysdeps/generic/sysdep.h: Likewise.
83359         * sysdeps/i386/asm-syntax.h: Likewise.
83360         * sysdeps/s390/asm-syntax.h: Likewise.
83361         * sysdeps/unix/sysdep.h: Likewise.
83362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
83363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
83364
83365 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
83366
83367         * libio/libio.h: Remove __STDC__ conditionals.
83368         * malloc/obstack.h: Likewise.
83369         * math/complex.h: Likewise.
83370         * math/math.h: Likewise.
83371         * sysdeps/generic/_G_config.h: Likewise.
83372         * sysdeps/gnu/_G_config.h: Likewise.
83373         * sysdeps/mach/hurd/_G_config.h: Likewise.
83374         * sysdeps/powerpc/bits/mathdef.h: Likewise.
83375         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
83376         * sysdeps/sparc/bits/mathdef.h: Likewise.
83377
83378 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
83379
83380         [BZ #13583]
83381         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
83382         Clean up HAS_* macros.
83383         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
83384         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
83385         possible.
83386         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
83387         HAS_AVX.
83388         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
83389         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
83390         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
83391         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
83392         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
83393
83394 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
83395
83396         * elf/tst-unique3.cc (gets): Remove declaration.
83397         * elf/tst-unique3lib.cc (gets): Likewise.
83398         * elf/tst-unique3lib2.cc (gets): Likewise.
83399         * elf/tst-unique4.cc (gets): Likewise.
83400
83401 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
83402
83403         * include/stdio.h: Add C++ protection.  Add gets declarations and
83404         definitions.
83405         * debug/tst-chk1.c: Don't declare gets here.
83406         * stdio-common/tst-gets.c: Likewise.
83407
83408 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
83409
83410         * posix/glob: Remove directory.
83411
83412 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
83413
83414         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
83415
83416 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
83417
83418         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
83419         of the non-standard EPFNOSUPPORT.
83420
83421 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
83422
83423         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
83424         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
83425         ANYWHERE set to 1 only on KERN_NO_SPACE error.
83426
83427 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
83428
83429         * wcsmbs/uchar.h: Test __STDC_VERSION__.
83430
83431 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
83432
83433         * nscd/aicache.c (addhstaiX): Do not cache negative results of
83434         transient errors.
83435         * nscd/grpcache.c (cache_addgr): Likewise.
83436         * nscd/hstcache.c (cache_addhst): Likewise.
83437         * nscd/initgrcache.c (addinitgroupsX): Likewise.
83438         * nscd/pwdcache.c (cache_addpw): Likewise.
83439         * nscd/servicescache.c (cache_addserv): Likewise.
83440
83441 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
83442
83443         * malloc/malloc.c: Various cleanups.
83444         * malloc/hooks.c: Likewise.
83445
83446         * stdlib/Makefile (tests): Add bug-fmtmsg1.
83447         * stdlib/bug-fmtmsg1.c: New file.
83448
83449         * stdlib/fmtmsg.c (init): Add missing unlock.
83450         Patch by Peng Haitao <penght@cn.fujitsu.com>.
83451
83452 2012-01-12  Marek Polacek  <polacek@redhat.com>
83453
83454         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
83455         and _GNU_SOURCE.
83456
83457 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
83458
83459         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
83460         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
83461         macro to ensure uniqueness of label name.
83462         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
83463         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
83464
83465 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
83466
83467         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
83468
83469         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
83470         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
83471         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
83472         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
83473
83474 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
83475
83476         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
83477
83478         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
83479         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
83480         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
83481
83482         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
83483
83484         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
83485         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
83486         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
83487         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
83488
83489         * math/bits/math-finite.h: Add ldexp support.
83490
83491 2012-01-10  Marek Polacek  <polacek@redhat.com>
83492
83493         * locale/programs/localedef.h (show_archive_content): Add noreturn
83494         attribute.
83495
83496 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
83497
83498         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
83499
83500 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
83501
83502         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
83503
83504         * io/Makefile (headers): Add bits/poll2.h.
83505
83506 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
83507
83508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
83509         typo #include statement.
83510
83511 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
83512
83513         * include/sys/cdefs.h: Define __attribute_alloc_size.
83514         * catgets/gencat.c: Add alloc_size attribute and apply consistently
83515         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
83516         * elf/pldd.c: Likewise.
83517         * iconv/iconv_charmap.c: Likewise.
83518         * iconv/iconvconfig.c: Likewise.
83519         * iconv/strtab.c: Likewise.
83520         * locale/programs/locale.c: Likewise.
83521         * locale/programs/localedef.h: Likewise.
83522         * locale/programs/simple-hash.c: Likewise.
83523         * nscd/nscd.h: Likewise.
83524         * nss/makedb.c: Likewise.
83525         * sysdeps/generic/ldconfig.h: Likewise.
83526         * locale/programs/localedef.c: Remove xmalloc prototype.
83527         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
83528
83529 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
83530
83531         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
83532         appropriate.
83533
83534 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
83535
83536         * math/Makefile (tests): Add tst-CMPLX.
83537         * math/tst-CMPLX.c: New file.
83538
83539         * math/complex.h (CMPLXL): Fix typo.
83540
83541         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
83542         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
83543         GLIBC_2.16.
83544         * debug/tst-chk1.c: Add poll and ppoll tests.
83545         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
83546         * include/sys/poll.h: Add hidden proto for ppoll.
83547         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
83548         * sysdeps/mach/hurd/ppoll.c: Likewise.
83549         * io/ppoll.c: Likewise.
83550         * debug/poll_chk.c: New file.
83551         * debug/ppoll_chk.c: New file.
83552         * include/bits/poll2.h: New file.
83553         * io/bits/poll2.h: New file.
83554
83555         [BZ #1350]
83556         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
83557
83558         * configure.in: static is always set to yes.  Remove.
83559         * config.make.in: Don't set build-static.
83560         * Makeconfig: Remove use of build-static.
83561         * dlfcn/Makefile: Likewise.
83562         * elf/Makefile: Likewise.
83563         * math/Makefile: Likewise.
83564         * misc/Makefile: Likewise.
83565         * nptl/Makefile: Likewise.
83566         * sysdeps/mach/hurd/Makefile: Likewise.
83567
83568         * configure.in: PWD_P is not used anymore.
83569         * config.make.in: Remove PWD_P entry.
83570
83571         * configure.in: Remove last remnants of RANLIB.
83572         No need to check for signed size_t anymore.
83573         Don't set libc_commonpagesize and libc_relro_required here for Alpha
83574         and IA-64.
83575         Remove __builtin_expect test because we require at least gcc 3.4.
83576         * aclocal.m4: Likewise.
83577
83578         * wcsmbs/mbrtoc16.c: Implement using towc function.
83579         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
83580         * wcsmbs/wcsmbsload.c: Likewise.
83581         * iconv/gconv_simple.c: Likewise.
83582         * iconv/gconv_int.h: Likewise.
83583         * iconv/gconv_builtin.h: Likewise.
83584         * iconv/iconv_prog.c: Remove CHAR16 handling.
83585
83586         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
83587
83588         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
83589
83590         * configure.in: Remove --with-elf and --enable-bounded options.
83591         Dont set base_machine for ia64.  More non-ELF conditions removed.
83592         Remove testing and setting of leading underscore information.
83593         * config.make.in (build-bounded): Set to no.
83594         * config.h.in: Remove NO_UNDERSCORES entry.
83595         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
83596         them.
83597         * csu/start.c: Remove !NO_UNDERSCORE code.
83598         * locale/localeinfo.h: Likewise.
83599         * sysdeps/generic/machine-gmon.h: Likewise.
83600         * sysdeps/generic/sysdep.h: Likewise.
83601         * sysdeps/i386/sysdep.h: Likewise.
83602         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
83603         * sysdeps/mach/sysdep.h: Likewise.
83604         * sysdeps/s390/s390-32/sysdep.h: Likewise.
83605         * sysdeps/s390/s390-64/sysdep.h: Likewise.
83606         * sysdeps/sh/sysdep.h: Likewise.
83607         * sysdeps/sparc/sparc32/alloca.S: Likewise.
83608         * sysdeps/unix/i386/sysdep.S: Likewise.
83609         * sysdeps/unix/sparc/start.c: Likewise.
83610         * sysdeps/unix/sparc/sysdep.S: Likewise.
83611         * sysdeps/unix/sparc/sysdep.h: Likewise.
83612         * sysdeps/unix/start.c: Likewise.
83613         * sysdeps/unix/x86_64/sysdep.S: Likewise.
83614         * sysdeps/x86_64/sysdep.h: Likewise.
83615
83616 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
83617
83618         [BZ #13553]
83619         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
83620         for non-gcc.
83621         * argp/argp-fmtstream.h: Use const instead __const.
83622         * argp/argp.h: Likewise.
83623         * assert/assert.h: Likewise.
83624         * bits/fenv.h: Likewise.
83625         * bits/sched.h: Likewise.
83626         * bits/sigset.h: Likewise.
83627         * bits/sigthread.h: Likewise.
83628         * catgets/nl_types.h: Likewise.
83629         * conform/data/pthread.h-data: Likewise.
83630         * crypt/crypt-private.h: Likewise.
83631         * crypt/crypt.h: Likewise.
83632         * crypt/crypt_util.c: Likewise.
83633         * ctype/ctype.h: Likewise.
83634         * debug/execinfo.h: Likewise.
83635         * debug/mbsnrtowcs_chk.c: Likewise.
83636         * debug/mbsrtowcs_chk.c: Likewise.
83637         * debug/wcsnrtombs_chk.c: Likewise.
83638         * debug/wcsrtombs_chk.c: Likewise.
83639         * debug/wcstombs_chk.c: Likewise.
83640         * dirent/dirent.h: Likewise.
83641         * dlfcn/dlfcn.h: Likewise.
83642         * elf/neededtest4.c: Likewise.
83643         * grp/grp.h: Likewise.
83644         * gshadow/gshadow.h: Likewise.
83645         * iconv/gconv.h: Likewise.
83646         * iconv/gconv_int.h: Likewise.
83647         * iconv/gconv_simple.c: Likewise.
83648         * iconv/iconv.h: Likewise.
83649         * iconv/loop.c: Likewise.
83650         * iconv/skeleton.c: Likewise.
83651         * include/aio.h: Likewise.
83652         * include/aliases.h: Likewise.
83653         * include/argz.h: Likewise.
83654         * include/arpa/inet.h: Likewise.
83655         * include/assert.h: Likewise.
83656         * include/dirent.h: Likewise.
83657         * include/dlfcn.h: Likewise.
83658         * include/execinfo.h: Likewise.
83659         * include/fcntl.h: Likewise.
83660         * include/fenv.h: Likewise.
83661         * include/glob.h: Likewise.
83662         * include/grp.h: Likewise.
83663         * include/libintl.h: Likewise.
83664         * include/mntent.h: Likewise.
83665         * include/netdb.h: Likewise.
83666         * include/pwd.h: Likewise.
83667         * include/rpc/netdb.h: Likewise.
83668         * include/sched.h: Likewise.
83669         * include/search.h: Likewise.
83670         * include/shadow.h: Likewise.
83671         * include/signal.h: Likewise.
83672         * include/stdio.h: Likewise.
83673         * include/stdlib.h: Likewise.
83674         * include/string.h: Likewise.
83675         * include/sys/socket.h: Likewise.
83676         * include/sys/stat.h: Likewise.
83677         * include/sys/statfs.h: Likewise.
83678         * include/sys/statvfs.h: Likewise.
83679         * include/sys/syslog.h: Likewise.
83680         * include/sys/time.h: Likewise.
83681         * include/sys/uio.h: Likewise.
83682         * include/time.h: Likewise.
83683         * include/unistd.h: Likewise.
83684         * include/utmp.h: Likewise.
83685         * include/wchar.h: Likewise.
83686         * include/wctype.h: Likewise.
83687         * inet/aliases.h: Likewise.
83688         * inet/arpa/inet.h: Likewise.
83689         * inet/netinet/ether.h: Likewise.
83690         * inet/netinet/in.h: Likewise.
83691         * intl/libintl.h: Likewise.
83692         * io/bits/fcntl2.h: Likewise.
83693         * io/fcntl.h: Likewise.
83694         * io/ftw.h: Likewise.
83695         * io/sys/poll.h: Likewise.
83696         * io/sys/stat.h: Likewise.
83697         * io/sys/statfs.h: Likewise.
83698         * io/sys/statvfs.h: Likewise.
83699         * io/utime.h: Likewise.
83700         * libio/bits/stdio.h: Likewise.
83701         * libio/bits/stdio2.h: Likewise.
83702         * libio/libio.h: Likewise.
83703         * libio/libioP.h: Likewise.
83704         * libio/stdio.h: Likewise.
83705         * locale/lc-ctype.c: Likewise.
83706         * locale/locale.h: Likewise.
83707         * login/utmp.h: Likewise.
83708         * malloc/arena.c: Likewise.
83709         * malloc/malloc.c: Likewise.
83710         * malloc/malloc.h: Likewise.
83711         * malloc/mcheck.c: Likewise.
83712         * malloc/mtrace.c: Likewise.
83713         * math/bits/mathcalls.h: Likewise.
83714         * math/fenv.h: Likewise.
83715         * math/math_private.h: Likewise.
83716         * misc/bits/error.h: Likewise.
83717         * misc/bits/syslog.h: Likewise.
83718         * misc/err.h: Likewise.
83719         * misc/error.h: Likewise.
83720         * misc/fstab.h: Likewise.
83721         * misc/mntent.h: Likewise.
83722         * misc/regexp.h: Likewise.
83723         * misc/search.h: Likewise.
83724         * misc/sgtty.h: Likewise.
83725         * misc/sys/mman.h: Likewise.
83726         * misc/sys/syslog.h: Likewise.
83727         * misc/sys/uio.h: Likewise.
83728         * misc/sys/xattr.h: Likewise.
83729         * misc/ttyent.h: Likewise.
83730         * nis/rpcsvc/ypclnt.h: Likewise.
83731         * nss/nss.h: Likewise.
83732         * posix/bits/unistd.h: Likewise.
83733         * posix/fnmatch.h: Likewise.
83734         * posix/glob.h: Likewise.
83735         * posix/sched.h: Likewise.
83736         * posix/spawn.h: Likewise.
83737         * posix/sys/wait.h: Likewise.
83738         * posix/unistd.h: Likewise.
83739         * posix/wordexp.h: Likewise.
83740         * pwd/pwd.h: Likewise.
83741         * resolv/netdb.h: Likewise.
83742         * resource/sys/resource.h: Likewise.
83743         * rt/aio.h: Likewise.
83744         * rt/bits/mqueue2.h: Likewise.
83745         * rt/mqueue.h: Likewise.
83746         * shadow/shadow.h: Likewise.
83747         * signal/signal.h: Likewise.
83748         * socket/send.c: Likewise.
83749         * socket/sendto.c: Likewise.
83750         * socket/sys/socket.h: Likewise.
83751         * stdio-common/printf.h: Likewise.
83752         * stdlib/bits/stdlib.h: Likewise.
83753         * stdlib/fmtmsg.h: Likewise.
83754         * stdlib/monetary.h: Likewise.
83755         * stdlib/stdlib.h: Likewise.
83756         * stdlib/ucontext.h: Likewise.
83757         * streams/stropts.h: Likewise.
83758         * string/argz.h: Likewise.
83759         * string/bits/string2.h: Likewise.
83760         * string/string.h: Likewise.
83761         * string/strings.h: Likewise.
83762         * sunrpc/rpc/auth.h: Likewise.
83763         * sunrpc/rpc/auth_des.h: Likewise.
83764         * sunrpc/rpc/clnt.h: Likewise.
83765         * sunrpc/rpc/netdb.h: Likewise.
83766         * sunrpc/rpc/pmap_clnt.h: Likewise.
83767         * sunrpc/rpc/xdr.h: Likewise.
83768         * sysdeps/generic/inttypes.h: Likewise.
83769         * sysdeps/generic/net/if.h: Likewise.
83770         * sysdeps/generic/sys/swap.h: Likewise.
83771         * sysdeps/gnu/net/if.h: Likewise.
83772         * sysdeps/gnu/utmpx.h: Likewise.
83773         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
83774         * sysdeps/i386/i486/bits/string.h: Likewise.
83775         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
83776         * sysdeps/s390/bits/string.h: Likewise.
83777         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
83778         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
83779         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
83780         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
83781         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
83782         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
83783         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
83784         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
83785         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
83786         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
83787         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
83788         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
83789         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
83790         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
83791         * sysdeps/unix/sysv/linux/readv.c: Likewise.
83792         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
83793         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
83794         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
83795         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
83796         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
83797         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
83798         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
83799         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
83800         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
83801         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
83802         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
83803         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
83804         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
83805         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
83806         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
83807         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
83808         * sysvipc/sys/ipc.h: Likewise.
83809         * sysvipc/sys/msg.h: Likewise.
83810         * sysvipc/sys/sem.h: Likewise.
83811         * sysvipc/sys/shm.h: Likewise.
83812         * termios/termios.h: Likewise.
83813         * time/sys/time.h: Likewise.
83814         * time/time.h: Likewise.
83815         * wcsmbs/bits/wchar2.h: Likewise.
83816         * wcsmbs/uchar.h: Likewise.
83817         * wcsmbs/wchar.h: Likewise.
83818         * wctype/wctype.h: Likewise.
83819
83820         [BZ #13551]
83821         * Makeconfig: Remove all but ELF support including AIX support.
83822         * Makerules: Likewise.
83823         * config.h.in: Likewise.
83824         * config.make.in: Likewise.
83825         * configure: Likewise.
83826         * configure.in: Likewise.
83827         * csu/Makefile: Likewise.
83828         * csu/version.c: Likewise.
83829         * debug/Makefile: Likewise.
83830         * dlfcn/Makefile: Likewise.
83831         * elf/Makefile: Likewise.
83832         * extra-lib.mk: Likewise.
83833         * iconv/Makefile: Likewise.
83834         * include/libc-symbols.h: Likewise.
83835         * include/shlib-compat.h: Likewise.
83836         * resolv/Makefile: Likewise.
83837         * resolv/res_libc.c: Likewise.
83838         * rt/Makefile: Likewise.
83839         * sysdeps/i386/asm-syntax.h: Likewise.
83840         * sysdeps/i386/sysdep.h: Likewise.
83841         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
83842         * sysdeps/mach/sysdep.h: Likewise.
83843         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
83844         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
83845         * sysdeps/s390/asm-syntax.h: Likewise.
83846         * sysdeps/s390/s390-32/sysdep.h: Likewise.
83847         * sysdeps/s390/s390-64/sysdep.h: Likewise.
83848         * sysdeps/sh/sysdep.h: Likewise.
83849         * sysdeps/unix/sparc/sysdep.h: Likewise.
83850         * sysdeps/wordsize-32/divdi3.c: Likewise.
83851         * sysdeps/x86_64/sysdep.h: Likewise.
83852
83853         * argp/Versions: Remove _argp_unlock_xxx.
83854
83855         [BZ #13559]
83856         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
83857         * abilist/libBrokenLocale.abilist: Likewise.
83858         * abilist/libanl.abilist: Likewise.
83859         * abilist/libc.abilist: Likewise.
83860         * abilist/libcrypt.abilist: Likewise.
83861         * abilist/libdl.abilist: Likewise.
83862         * abilist/libm.abilist: Likewise.
83863         * abilist/libnsl.abilist: Likewise.
83864         * abilist/libpthread.abilist: Likewise.
83865         * abilist/libresolv.abilist: Likewise.
83866         * abilist/librt.abilist: Likewise.
83867         * abilist/libthread_db.abilist: Likewise.
83868         * abilist/libutil.abilist: Likewise.
83869         * abilist/libnss_db.abilist: New file.
83870
83871         * scripts/abilist.awk: Add support for indirect functions.
83872
83873         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
83874
83875         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
83876
83877         * shlib-versions: Remove entries for ports architectures.
83878
83879         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
83880         files in ports.
83881         * elf/stackguard-macros.h: Remove support for IA-64.
83882         * elf/tst-auditmod1.c: Likewise.
83883         * sysdeps/generic/ldsodefs.h: Likewise.
83884
83885         * sysdeps/unix/sysv/linux/configure.in: Ports should define
83886         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
83887         configure files.
83888
83889         [BZ #13552]
83890         * configure.in: Remove --enable-omitfp support.
83891         * FAQ.in: Adjust.
83892         * config.make.in: Likewise.
83893         * Makeconfig: Likewise.
83894         * manual/install.texi: Likewise.
83895
83896         In case anyone cares, the IA-64 architecture could move to ports.
83897         * sysdeps/ia64/*: Removed.
83898         * sysdeps/unix/sysv/linux/ia64/*: Removed.
83899         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
83900
83901         [BZ #13555]
83902         * configure.in: Remove entries for unsupported architectures.
83903
83904         [BZ #13533]
83905         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
83906         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
83907         routines.
83908         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
83909         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
83910         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
83911         fall back to using wcrtomb.
83912         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
83913         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
83914         renaming.
83915         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
83916         * wcsmbs/tst-c16c32-1.c: New file.
83917
83918         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
83919         local variable.
83920
83921         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
83922
83923         * elf/tst-unique3.cc: Add explicit declaration of gets.
83924         * elf/tst-unique3lib.cc: Likewise.
83925         * elf/tst-unique3lib2.cc: Likewise.
83926         * elf/tst-unique4.cc: Likewise.
83927
83928         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
83929
83930 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
83931
83932         [BZ #13566]
83933         * assert/assert.h (static_assert): Don't define for C++.
83934         * libio/stdio.h (gets): Do declare for C++ <= C++11.
83935         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
83936
83937 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
83938
83939         * iconv/loop.c (single loop): Fix assertion in storing of
83940         remaining bytes.
83941
83942         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
83943
83944 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
83945
83946         * posix/getconf.c: Update copyright year.
83947         * nss/getent.c: Likewise.
83948         * nss/makedb.c: Likewise.
83949         * iconv/iconvconfig.c: Likewise.
83950         * iconv/iconv_prog.c: Likewise.
83951         * elf/ldconfig.c: Likewise.
83952         * elf/pldd.c: Likewise.
83953         * elf/sotruss.ksh: Likewise.
83954         * catgets/gencat.c: Likewise.
83955         * csu/version.c: Likewise.
83956         * elf/ldd.bash.in: Likewise.
83957         * elf/sprof.c (print_version): Likewise.
83958         * locale/programs/locale.c: Likewise.
83959         * locale/programs/localedef.c: Likewise.
83960         * login/programs/pt_chown.c: Likewise.
83961         * nscd/nscd.c (print_version): Likewise.
83962         * debug/xtrace.sh: Likewise.
83963         * malloc/memusage.sh: Likewise.
83964         * malloc/mtrace.pl: Likewise.
83965         * debug/catchsegv.sh: Likewise.
83966
83967 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
83968
83969         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
83970         pure attribute.
83971
83972 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
83973
83974         [BZ #13533]
83975         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
83976         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
83977         transformations.
83978         * iconv/gconv_int.h: Likewise.
83979         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
83980         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
83981         from libc for GLIBC_2.16.
83982         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
83983         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
83984         * wcsmbs/uchar.h: Really define mbstate_t.
83985         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
83986         * wcsmbs/c16rtomb.c: New file.
83987         * wcsmbs/mbrtoc16.c: New file.
83988         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
83989         for C/POSIX locale.
83990         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
83991         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
83992
83993         * wcsmbs/wchar.h: Add missing __restrict.
83994
83995 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
83996
83997         [BZ #13532]
83998         * time/Makefile (routines): Add timespec_get.
83999         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
84000         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
84001         timespec for ISO C11.
84002         * time/timespec_get.c: New file.
84003         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
84004         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
84005
84006         [BZ #13531]
84007         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
84008         * stdlib/stdlib.h: Declare aligned_alloc.
84009         * Versions.def: Add GLIBC_2.16 for libc.
84010         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
84011
84012         [BZ 13527]
84013         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
84014         ISO C11.
84015
84016         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
84017         code.
84018
84019         [BZ #13528]
84020         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
84021
84022         [BZ #13529]
84023         * assert/assert.h (static_assert): Define.
84024
84025         * version.h: Update for 2.16 development version.
84026
84027         [BZ #13526]
84028         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
84029         _ISOC11_SOURCE.
84030
84031         * version.h (RELEASE): Bump for 2.15 release.
84032         * include/features.h (__GLIBC_MINOR__): Bump to 15.
84033
84034         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
84035         Patch by Marek Polacek <mpolacek@redhat.com>.
84036
84037         * bits/byteswap.h: Protect long long constants with __extension__.
84038         * sysdeps/i386/bits/byteswap.h: Likewise.
84039         * sysdeps/ia64/bits/byteswap.h: Likewise.
84040         * sysdeps/s390/bits/byteswap.h: Likewise.
84041         * sysdeps/x86_64/bits/byteswap.h: Likewise.
84042
84043 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84044
84045         [BZ #13540]
84046         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
84047         destination buffer.
84048         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
84049
84050 2011-12-23  Marek Polacek  <polacek@redhat.com>
84051
84052         * elf/dl-addr.c (determine_info): Add inline keyword.
84053         * elf/tst-auditmod4b.c (check_avx): Likewise.
84054         * elf/tst-auditmod6b.c (check_avx): Likewise.
84055         * elf/tst-auditmod6c.c (check_avx): Likewise.
84056         * elf/tst-auditmod7b.c (check_avx): Likewise.
84057
84058 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
84059
84060         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
84061         !__SSE_MATH__.
84062
84063 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84064
84065         [BZ #13540]
84066         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
84067         processing for last bytes.
84068
84069 2011-08-06  Bruno Haible  <bruno@clisp.org>
84070
84071         [BZ #13061]
84072         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
84073         U+0385, not to U+1FEE.
84074
84075         [BZ #13062]
84076         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
84077         entry for U+00A5 U+0301.
84078
84079 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
84080
84081         [BZ #13166]
84082         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
84083         buffer for the output is too small.
84084
84085         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
84086         optimization.
84087
84088         [BZ #13185]
84089         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
84090         SSE flags if possible.
84091
84092 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84093
84094         [BZ #13540]
84095         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
84096         processing for last bytes.
84097
84098 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
84099
84100         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
84101         (syscall-list-default-options, syscall-list-default-condition)
84102         (syscall-list-includes): Define.
84103         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
84104         list of ABIs and options and #if conditions for each ABI.  Do not
84105         handle common syscalls between ABIs specially.
84106         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
84107         Remove.
84108         (syscall-list-variants, syscall-list-32bit-options)
84109         (syscall-list-32bit-condition, syscall-list-64bit-options)
84110         (syscall-list-64bit-condition): Define.
84111         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
84112         (syscall-list-variants, syscall-list-32bit-options)
84113         (syscall-list-32bit-condition, syscall-list-64bit-options)
84114         (syscall-list-64bit-condition): Define.
84115         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
84116         Remove.
84117         (syscall-list-variants, syscall-list-32bit-options)
84118         (syscall-list-32bit-condition, syscall-list-64bit-options)
84119         (syscall-list-64bit-condition): Define.
84120         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
84121         Remove.
84122         (syscall-list-variants, syscall-list-32bit-options)
84123         (syscall-list-32bit-condition, syscall-list-64bit-options)
84124         (syscall-list-64bit-condition): Define.
84125
84126 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
84127
84128         * locale/iso-639.def: Add brx entry.
84129
84130         [BZ #13328]
84131         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
84132         Proposed by Mariusz_Cukr <marcukr@op.pl>.
84133
84134         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
84135         __feraiseexcept_renamed.
84136
84137 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
84138
84139         [BZ #13538]
84140         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
84141         EPOLLET with unsigned values.
84142         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
84143         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
84144
84145         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
84146         to large cancellation.
84147         * math/s_cacoshf.c: Likewise.
84148         * math/s_cacoshl.c: Likewise.
84149
84150 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
84151
84152         [BZ #13305]
84153         [BZ #12786]
84154         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
84155         * math/s_cacoshf.c: Likewise.
84156         * math/s_cacoshl.c: Likewise.
84157
84158 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
84159
84160         [BZ #13439]
84161         * iconv/gconv.h: Define __GCONV_SWAP.
84162         * iconvdata/unicode.c: The swap bit must be stored in __flags.
84163         * iconvdata/utf-16.c: Likewise.
84164         * iconvdata/utf-32.c: Likewise.
84165
84166 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
84167
84168         [BZ #13524]
84169         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
84170         numerator after shifting it by one limb.
84171
84172 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
84173
84174         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
84175         under [__USE_EXTERN_INLINES].
84176
84177 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
84178
84179         [BZ #13446]
84180         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
84181
84182 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
84183
84184         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
84185         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
84186         optimized code.
84187         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
84188         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
84189         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
84190         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
84191         for strncasecmp/strncasecmp_l compilation.
84192         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
84193         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
84194
84195 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
84196
84197         [BZ #13484]
84198         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
84199         of __asm__.
84200
84201 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
84202
84203         [BZ #13506]
84204         * time/tzfile.c (__tzfile_read): Check values from file header.
84205
84206 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
84207
84208         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
84209         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
84210         * powerpc/powerpc32/dl-start.S: Likewise.
84211         * powerpc/powerpc32/elf/start.S: Likewise.
84212         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
84213         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
84214         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
84215         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
84216         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
84217         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
84218         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
84219         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
84220         * powerpc/powerpc32/fpu/s_round.S: Likewise.
84221         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
84222         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
84223         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
84224         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
84225         * powerpc/powerpc32/memset.S: Likewise.
84226         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
84227         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
84228         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
84229         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
84230         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
84231         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
84232         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
84233         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
84234         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
84235         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
84236         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
84237         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
84238         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
84239
84240 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
84241
84242         * math/libm-test.inc: Added more nearbyint tests.
84243         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
84244         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
84245         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
84246         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
84247
84248 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
84249
84250         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
84251         FD_CLOEXEC.
84252
84253 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84254
84255         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
84256         Add wcscpy-ssse3 wcscpy-c.
84257         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
84258         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
84259         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
84260         * sysdeps/x86_64/wcschr.S: New file.
84261         * sysdeps/x86_64/wcsrchr.S: New file.
84262         * string/test-strcmp.c: Remove checking of wcscmp function for
84263         wrong alignments.
84264         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
84265         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
84266         wcsrchr-sse2 wcsrchr-c.
84267         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
84268         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
84269         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
84270         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
84271         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
84272         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
84273         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
84274         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
84275         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
84276         * wcsmbc/wcschr.c (WCSCHR): New macro.
84277
84278 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84279
84280         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
84281         * wcsmbs/test-wcsrchr.c: New file.
84282         * string/test-strrchr.c: Add wcsrchr support.
84283         (WIDE): New macro.
84284         * wcsmbs/test-wcscpy.c: New file.
84285         * string/test-strcpy.c: Add wcscpy support.
84286         (WIDE): New macro.
84287
84288 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
84289
84290         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
84291         the inner loop.
84292
84293 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
84294
84295         [BZ #13472]
84296         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
84297
84298 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
84299
84300         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
84301         Minor optimizations.
84302
84303         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
84304         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
84305         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
84306
84307 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
84308
84309         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
84310         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
84311         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
84312         for gcc to avoid warnings.
84313         * inet/Makefile (tests): Add tst-checks.
84314         * inet/tst-checks.c: New file.
84315
84316         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
84317         warning.
84318
84319         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
84320         __wmemcmp_sse2.
84321
84322         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
84323         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
84324
84325         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
84326
84327 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
84328
84329         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
84330         problem.
84331
84332         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
84333
84334 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
84335
84336         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
84337         conditional on GCC version.
84338         (__arch_compare_and_exchange_val_8_acq)
84339         (__arch_compare_and_exchange_val_16_acq)
84340         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
84341         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
84342         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
84343
84344 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
84345
84346         * sysdeps/sh/backtrace.c: New file.
84347
84348 2011-12-02  Andreas Schwab  <schwab@redhat.com>
84349
84350         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
84351         parenthesis.
84352
84353 2011-12-01  Andreas Schwab  <schwab@redhat.com>
84354
84355         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
84356         falling back to utime.
84357
84358 2011-11-30  Andreas Schwab  <schwab@redhat.com>
84359
84360         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
84361         expectations for float.
84362
84363 2011-11-29  Andreas Schwab  <schwab@redhat.com>
84364
84365         * locale/weight.h (findidx): Add parameter len.
84366         * locale/weightwc.h (findidx): Likewise.
84367         * posix/fnmatch_loop.c (FCT): Adjust caller.
84368         * posix/regcomp.c (build_equiv_class): Likewise.
84369         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
84370         * posix/regexec.c (check_node_accept_bytes): Likewise.
84371         * string/strcoll_l.c (STRCOLL): Likewise.
84372         * string/strxfrm_l.c (STRXFRM): Likewise.
84373
84374 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
84375
84376         * Makefile.in: Remove CVSOPT handling.
84377         * configure.in: Remove use of AC_REVISION.
84378         * iconvdata/Makefile (distribute): No need to filter out CVS.
84379         * scripts/list-sources.sh: Remove CVS, subversion and monotone
84380         handling.
84381
84382 2011-11-16  Andreas Schwab  <schwab@redhat.com>
84383
84384         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
84385         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
84386         [USE_AS_STRNCASECMP_L]: Likewise.
84387         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
84388         NO_TLS_DIRECT_SEG_REFS.
84389         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
84390         Fix argument offsets for non-PIC.
84391         [USE_AS_STRNCASECMP_L]: Likewise.
84392         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
84393         NO_TLS_DIRECT_SEG_REFS.
84394
84395 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
84396
84397         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
84398         O_CLOEXEC.
84399         * locale/loadlocale.c (_nl_load_locale): Likewise.
84400
84401 2011-11-15  Andreas Schwab  <schwab@redhat.com>
84402
84403         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
84404         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
84405         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
84406         (SYSCALL_GETTIME): Set errno on error.
84407
84408         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
84409         count references to noai6ai_cached.
84410
84411 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
84412
84413         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
84414
84415         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
84416         FD_CLOEXEC for /proc/self/maps.
84417
84418         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
84419         FD_CLOEXEC for /proc/meminfo.
84420
84421         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
84422         gai.conf.
84423
84424         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
84425         FD_CLOEXEC for given file.
84426
84427         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
84428
84429         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
84430         FD_CLOEXEC for /etc/hosts.
84431         (_gethtent): Likewise.
84432
84433         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
84434
84435         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
84436         cancellation and set FD_CLOEXEC for /etc/netgroup.
84437
84438         * nss/nss_files/files-key.c (search): Don't allow cancellation when
84439         reading /etc/publickey.
84440
84441         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
84442         allow cancellation when reading /etc/group.
84443
84444         * nss/nss_files/files-alias.c (internal_setent): Don't allow
84445         cancellation.
84446         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
84447
84448         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
84449         when using data file.
84450
84451         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
84452
84453         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
84454         (write_nis_obj): Use "c" and "e" in fopen.
84455
84456         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
84457
84458         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
84459
84460         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
84461
84462         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
84463
84464         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
84465         locale.alias.
84466
84467         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
84468
84469         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
84470
84471         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
84472
84473         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
84474         file parsing and set FD_CLOEXEC.
84475
84476 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
84477
84478         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
84479
84480 2011-11-14  Andreas Schwab  <schwab@redhat.com>
84481
84482         * malloc/arena.c (arena_get2): Don't call reused_arena when
84483         _int_new_arena failed.
84484
84485 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
84486
84487         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
84488         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
84489         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
84490         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
84491         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
84492         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
84493         to compile strcasecmp and strncasecmp.
84494         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
84495         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
84496
84497         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
84498
84499 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
84500
84501         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
84502         locale-defines.sym to gen-as-const-headers.
84503         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
84504         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
84505         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
84506         to compile strcasecmp and strncasecmp.
84507         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
84508         strcasecmp_l and strncasecmp_l.
84509         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
84510         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
84511         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
84512         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
84513         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
84514         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
84515         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
84516         * sysdeps/i386/i686/multiarch/strncase.S: New file.
84517         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
84518         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
84519         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
84520
84521 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
84522
84523         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
84524         result of SYSDEP_GETTIME_CPU to retval.
84525         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
84526         parameter list to macro.  Remove trailing semicolon.  Adjust users.
84527
84528         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
84529         variable.
84530
84531         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
84532         mantissa words.
84533         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
84534
84535         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
84536         from unused variable.
84537
84538         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
84539         DWARF definitions.
84540         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
84541         for assembling.
84542
84543         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
84544         over namespaces.
84545
84546         * sunrpc/rpc_prot.c (rejected): Fix case value.
84547
84548         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
84549         unsigned long long int to avoid warnings in shift.
84550
84551         * posix/regex_internal.c (re_string_reconstruct): Actually use result
84552         of use of trans.
84553         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
84554         variable tmp.
84555
84556         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
84557         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
84558         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
84559
84560         * nis/nis_table.c (nis_list): Use variable of correct type for
84561         result of __follow_path call.
84562
84563 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
84564
84565         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
84566         of math functions ceil, trunc, floor, round, and sqrt, when
84567         avaliable on the platform.
84568         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
84569         name clash.
84570         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
84571         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
84572         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
84573
84574 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
84575
84576         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
84577         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
84578
84579 2011-11-11  Roland McGrath  <roland@hack.frob.com>
84580
84581         * include/unistd.h: Fix __readlink return type.
84582         Reported by Chris Metcalf <cmetcalf@tilera.com>.
84583
84584 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
84585
84586         * stdlib/ucontext.h: Undo last change for makecontext.
84587
84588 2011-11-11  Andreas Schwab  <schwab@redhat.com>
84589
84590         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
84591
84592         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
84593         * setjmp/setjmp.h: Mark functions as non-leaf.
84594         * setjmp/bits/setjmp2.h: Likewise.
84595         * stdlib/ucontext.h: Likewise.
84596
84597 2011-11-10  Andreas Schwab  <schwab@redhat.com>
84598
84599         * malloc/arena.c (_int_new_arena): Don't increment narenas.
84600         (reused_arena): Don't check arena limit.
84601         (arena_get2): Atomically check arena limit.
84602
84603 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
84604
84605         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
84606         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
84607
84608         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
84609         instructions.
84610
84611 2011-11-07  Andreas Schwab  <schwab@redhat.com>
84612
84613         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
84614         handler when locking.
84615
84616         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
84617         Fix size of allocated buffer.
84618
84619 2011-11-04  Andreas Schwab  <schwab@redhat.com>
84620
84621         [BZ #10103]
84622         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
84623         declarations for long double functions.
84624         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
84625
84626         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
84627
84628 2011-11-03  Andreas Schwab  <schwab@redhat.com>
84629
84630         * nscd/nscd.c (main): Don't start AVC thread until credentials are
84631         installed.
84632
84633         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
84634         is disabled.
84635
84636 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
84637
84638         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
84639
84640 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
84641
84642         * include/alloca.h (stackinfo_alloca_round): Define.
84643         (extend_alloca): Use it.
84644         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
84645         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
84646         here.
84647
84648         * scripts/check-local-headers.sh: Ignore libaudit.h.
84649
84650         * nscd/Makefile (extra-objs): Make recursively expanded.
84651
84652 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
84653
84654         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
84655         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
84656
84657         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
84658         * posix/tst-rfc3484-2.c: Likewise.
84659         * posix/tst-rfc3484-3.c: Likewise.
84660
84661         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
84662         process_vm_writev.
84663         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
84664         process_vm_writev.
84665         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
84666         process_vm_writev from libc using GLIBC_2.15 version.
84667
84668         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
84669
84670 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
84671
84672         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
84673         stack usage.
84674
84675 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
84676
84677         [BZ #13367]
84678         * nss/getent.c (initgroups_keys): Show error message in case no group
84679         names are given.
84680
84681         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
84682         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
84683         __bump_nl_timestamp.
84684         * nscd/connections (nscd_init): When host database is served open
84685         netlink socket and request notification about configuration changes.
84686         (main_loop_poll): Track netlink file descriptor and bump timestamp
84687         in case data becomes available.
84688         (main_loop_epoll): Likewise.
84689         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
84690         (database_pers_head): Add extra_data fileds.
84691         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
84692         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
84693         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
84694         Adjust caller.
84695         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
84696         in6ai data, call __free_in6ai.
84697         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
84698         Add -DHAVE_NETLINK.
84699         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
84700         interface information.  Reuse previous data if netlink timestamp
84701         is not changed.
84702         (__bump_nl_timestamp): New function.
84703         (__free_in6ai): New function.
84704
84705 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
84706
84707         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
84708         close_not_cancel_no_status here.
84709         (__check_pf): Reorganize code a bit to not call close twice if OOM.
84710
84711 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
84712
84713         [BZ #13276]
84714         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
84715         return value.
84716
84717         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
84718         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
84719         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
84720
84721 2011-07-03  Andreas Jaeger  <aj@suse.de>
84722
84723         [BZ #10709]
84724         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
84725         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
84726         * math/libm-test.inc (sin_test): Add test case.
84727
84728 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
84729
84730         [BZ #13337]
84731         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
84732         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
84733
84734         * elf/chroot_canon.c (chroot_canon): Cleanups.
84735
84736         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
84737
84738         [BZ #13335]
84739         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
84740         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
84741
84742         * string/test-strchr.c: Make usable for strchrnul testing.
84743         * string/test-strchrnul.c: New file.
84744         * string/Makefile (strop-tests): Add strchrnul.
84745
84746         * po/it.po: Update from translation team.
84747         * po/es.po: Likewise.
84748
84749 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
84750
84751         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
84752         the three constants needed as parameters.  Drop the others.
84753         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
84754         __m128i_strloadu_tolower.
84755         Create and initialize variable zero and use it in all the places
84756         where _mm_setzero_si128 was used.
84757
84758         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
84759         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
84760         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
84761         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
84762         anymore.
84763         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
84764         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
84765         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
84766         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
84767         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
84768         __mpranred, __mptan.
84769         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
84770         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
84771         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
84772         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
84773         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
84774         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
84775         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
84776         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
84777         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
84778
84779 2011-10-28  Andreas Schwab  <schwab@redhat.com>
84780
84781         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
84782         redefine if SHARED.
84783         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
84784
84785         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
84786         wide char related routines to wcsmbs subdir.
84787
84788 2011-10-27  Andreas Schwab  <schwab@redhat.com>
84789
84790         [BZ #13344]
84791         * misc/sys/cdefs.h (__THROWNL): Define.
84792         * posix/unistd.h: Use __THREADNL instead of __THREAD
84793         for memory synchronization functions.
84794
84795 2011-10-26  Roland McGrath  <roland@hack.frob.com>
84796
84797         [BZ #13349]
84798         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
84799         doesn't exist.
84800         * manual/stdio.texi (Obstack Streams): Node removed.
84801
84802 2011-10-26  Andreas Schwab  <schwab@redhat.com>
84803
84804         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
84805         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
84806         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
84807
84808         * math/math_private.h (math_force_eval): Allow non-addressable
84809         arguments.
84810         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
84811
84812 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
84813
84814         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
84815         file is not needed.
84816
84817         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
84818         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
84819         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
84820         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
84821         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
84822         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
84823         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
84824         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
84825         Add AVX variants.
84826         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
84827         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
84828         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
84829         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
84830         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
84831         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
84832         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
84833         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
84834         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
84835         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
84836         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
84837         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
84838         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
84839         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
84840         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
84841         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
84842         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
84843         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
84844         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
84845
84846         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
84847         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
84848
84849         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
84850         place.  Use VEX encoding when compiling for AVX.
84851
84852 2011-10-25  Andreas Schwab  <schwab@redhat.com>
84853
84854         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
84855         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
84856
84857         * string/test-strchr.c (do_test): Don't generate NUL bytes.
84858
84859 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
84860
84861         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
84862         useless if() expression.
84863         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
84864         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
84865         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
84866         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
84867         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
84868         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
84869         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
84870         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
84871         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
84872         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
84873         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
84874         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
84875         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
84876         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
84877         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
84878         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
84879         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
84880         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
84881         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
84882
84883         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
84884
84885 2011-10-25  Andreas Schwab  <schwab@redhat.com>
84886
84887         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
84888         condition.
84889         * elf/dl-fini.c (_dl_sort_fini): Likewise.
84890
84891 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
84892
84893         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
84894         .text section.  Avoid duplicate constants.
84895         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
84896         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
84897         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
84898         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
84899         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
84900         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
84901         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
84902         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
84903         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
84904         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
84905         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
84906         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
84907         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
84908         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
84909         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
84910         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
84911         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
84912         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
84913         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
84914         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
84915         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
84916         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
84917         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
84918         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
84919         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
84920         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
84921         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
84922         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
84923         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
84924         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
84925         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
84926         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
84927         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
84928         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
84929         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
84930         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
84931         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
84932         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
84933         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
84934         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
84935         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
84936         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
84937         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
84938         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
84939         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
84940
84941 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
84942
84943         * sysdeps/x86_64/dla.h: Move to ...
84944         * sysdeps/x86_64/fpu/dla.h: ...here.
84945         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
84946         situations.  Use __builtin_fma only for gcc 4.6 and up.
84947
84948         * config.make.in: Add have-mfma4 entry.
84949         * configure.in: Substitute libc_cv_cc_fma4.
84950         * math/Makefile (dbl-only-routines): Add sincostab.
84951         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
84952         Use __sincostab not sincos.
84953         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
84954         name is a macro.
84955         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
84956         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
84957         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
84958         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
84959         using __copysign.
84960         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
84961         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
84962         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
84963         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
84964         and __inv.
84965         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
84966         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
84967         __copysign.
84968         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
84969         define aliases when function name is a macro.
84970         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
84971         sysdeps/ieee754/dbl-64/sincos.tbl.
84972         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
84973         fma4-enabled routines.
84974         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
84975         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
84976         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
84977         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
84978         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
84979         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
84980         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
84981         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
84982         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
84983         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
84984         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
84985         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
84986         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
84987         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
84988         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
84989         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
84990         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
84991         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
84992         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
84993         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
84994         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
84995         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
84996         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
84997         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
84998         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
84999         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
85000         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
85001         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
85002         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
85003         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
85004
85005         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
85006         rename.
85007         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85008         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85009         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85010         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85011         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85012         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85013         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
85014         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
85015
85016 2011-10-24  Andreas Schwab  <schwab@redhat.com>
85017
85018         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
85019
85020 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
85021
85022         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
85023
85024         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
85025         prediction.
85026         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
85027
85028         * string/strnlen.c: Don't define STRNLEN, reverse logic.
85029         Remove unused variable magic_bits.
85030         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
85031
85032         * string/strnlen.c: Define and use STRNLEN macro.
85033         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
85034         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
85035         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
85036         * wcsmbs/wcslen.c: Define and use WCSLEN.
85037         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
85038         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
85039         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
85040         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
85041         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
85042         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
85043         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
85044
85045 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85046
85047         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
85048         strnlen-sse2-no-bsf.
85049         Rename strlen-no-bsf to strlen-sse2-no-bsf.
85050         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
85051         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
85052         Add strnlen support.
85053         (USE_AS_STRNLEN): New macro.
85054         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
85055         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
85056         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
85057         * sysdeps/x86_64/wcslen.S: New file.
85058
85059 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
85060
85061         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
85062         XMM-moves are used for copying on small sizes.
85063
85064 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85065
85066         * wcsmbs/Makefile (strop-tests): Add wcschr.
85067         * wcsmbs/test-wcschr.c: New file.
85068         * string/test-strchr.c: Update.
85069         Add wcschr support.
85070         (WIDE): New macro.
85071
85072 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85073
85074         * wcsmbs/Makefile (strop-tests): Add wcslen.
85075         * wcsmbs/test-wcslen.c: New file.
85076         * string/test-strlen.c: Update.
85077         Add wcslen support.
85078         (WIDE): New macro.
85079
85080 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
85081
85082         * po/it.po: Update from translation team.
85083
85084 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85085
85086         * sysdeps/x86_64/wcscmp.S: Update.
85087         Fix wrong comparison semantics.
85088         wcscmp shall use signed comparison not unsigned.
85089         Don't use substraction to avoid overflow bug.
85090         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
85091         * wcsmbc/wcscmp.c: Likewise.
85092         * string/test-strcmp.c: Likewise.
85093         Add new tests to check cases with negative values.
85094
85095 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
85096
85097         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
85098         * sysdeps/x86_64/dla.h: ...here.  New file.
85099         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
85100         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85101         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85102         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85103         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85104         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
85105         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85106         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
85107         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
85108
85109 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
85110
85111         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
85112         __ynl_finite aliases.
85113
85114 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
85115
85116         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
85117
85118         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
85119         define DLA_FMA.
85120         [DLA_FMA] (EMULV): Use DLA_FMA.
85121         [DLA_FMA] (MUL12): Use EMULV.
85122         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
85123         that are not needed.
85124         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85125         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85126         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85127         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85128         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85129         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
85130         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
85131
85132 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
85133
85134         * math/s_nan.c: Undef __nan.
85135         * math/s_nanf.c: Undef __nanf.
85136         * math/s_nanl.c: Undef __nanl.
85137         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
85138         "math_private.h".
85139
85140 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
85141
85142         * math/s_catan.c: Add branch predictions.
85143         * math/s_catanf.c: Likewise.
85144         * math/s_catanh.c: Likewise.
85145         * math/s_catanhf.c: Likewise.
85146         * math/s_catanhl.c: Likewise.
85147         * math/s_catanl.c: Likewise.
85148         * math/s_cexp.c: Likewise.
85149         * math/s_cexpf.c: Likewise.
85150         * math/s_cexpl.c: Likewise.
85151         * math/s_clog.c: Likewise.
85152         * math/s_clog10.c: Likewise.
85153         * math/s_clog10f.c: Likewise.
85154         * math/s_clog10l.c: Likewise.
85155         * math/s_clogf.c: Likewise.
85156         * math/s_clogl.c: Likewise.
85157         * math/s_csqrt.c: Likewise.
85158         * math/s_csqrtf.c: Likewise.
85159         * math/s_csqrtl.c: Likewise.
85160         * math/s_ctanf.c: Likewise.
85161         * math/s_ctanh.c: Likewise.
85162         * math/s_ctanhf.c: Likewise.
85163         * math/s_ctanhl.c: Likewise.
85164         * math/s_ctanl.c: Likewise.
85165
85166         * math/math_private.h: Define __nan, __nanf, __nanl.
85167         * math/s_cacosh.c: Include <math_private.h>.
85168         * math/s_cacoshl.c: Likewise.
85169         * math/s_casinh.c: Likewise.
85170         * math/s_casinhf.c: Likewise.
85171         * math/s_casinhl.c: Likewise.
85172         * math/s_ccos.c: Rely entire on ccosh.
85173         * math/s_ccosf.c: Rely entire on ccoshf.
85174         * math/s_ccosl.c: Rely entirely on ccoshl.
85175         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
85176         Remove tests for FE_INVALID.
85177         * math/s_ccoshf.c: Likewise.
85178         * math/s_ccoshl.c: Likewise.
85179         * math/s_csin.c: Likewise.
85180         * math/s_csinf.c: Likewise.
85181         * math/s_csinh.c Likewise.
85182         * math/s_csinhf.c: Likewise.
85183         * math/s_csinhl.c: Likewise.
85184         * math/s_csinl.c: Likewise.
85185         * math/s_ctan.c: Likewise.
85186         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
85187         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
85188         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
85189
85190 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
85191
85192         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
85193         compilation problems.
85194
85195         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
85196         __builtin_expect.
85197
85198 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
85199
85200         * sysdeps/i386/configure.in: Test for -mfma4 option.
85201         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
85202         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
85203         COMMON_CPUID_INDEX_80000001.
85204         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
85205         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
85206         use it if FMA3 is not supported.
85207         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
85208
85209         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
85210         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
85211
85212 2011-10-20  Andreas Schwab  <schwab@redhat.com>
85213
85214         [BZ #12892]
85215         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
85216         it would create a cycle with a link time dependency.
85217
85218 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
85219
85220         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
85221         instruction.
85222         * string/Makefile (strop-tests): Add rawmemchr.
85223         * string/test-rawmemchr.c: New file.
85224
85225         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
85226         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
85227         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
85228         when compiling str{,n}casecmp and when AVX is available.  Hook up
85229         new optimized code in initializers.
85230
85231 2011-10-19  Andreas Schwab  <schwab@redhat.com>
85232
85233         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
85234         __feraiseexcept instead of feraiseexcept.
85235
85236 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
85237
85238         * math/math_private.h: Define defaults for libc_fetestexcept and
85239         libc_feupdateenv.
85240         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
85241         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
85242         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
85243         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
85244         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
85245         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
85246         libc_fetestexcept and libc_feupdateenv.
85247
85248         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
85249         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
85250         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
85251         * sysdeps/x86_64/fpu/math_private.h: Define special version of
85252         libc_feholdexcept_setround.
85253
85254         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
85255         Add s_nearbyint-c and s_nearbyintf-c.
85256         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
85257         nearbyintf inlines.
85258         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
85259         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
85260         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
85261         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
85262
85263         * math/math_private.h: Define defaults for libc_fegetround,
85264         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
85265         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
85266         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
85267         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
85268         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
85269         standard functions.
85270         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
85271         Remove comments and hacks for old compiler versions.
85272         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
85273         libc_fegetround, libc_fesetround, libc_feholdexcept, and
85274         libc_feholdexceptl.
85275
85276 2011-10-18  Andreas Schwab  <schwab@redhat.com>
85277
85278         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
85279         (__feraiseexcept_renamed): Add __NTH.
85280         (feraiseexcept): Add __NTH.  Rename local variables to fix
85281         namespace violations.
85282
85283 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
85284
85285         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
85286
85287         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
85288
85289         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
85290         recently added interfaces.
85291         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
85292
85293         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
85294         about macro parameter expansion.
85295
85296         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
85297         __NO_MATH_INLINES is defined.  Cleanups.
85298
85299         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
85300         and __floorf is target has SSE4.1.
85301         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
85302         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
85303         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
85304         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
85305
85306         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
85307         name.
85308         (floorf): Likewise.
85309
85310         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
85311
85312 2011-10-17  Andreas Schwab  <schwab@redhat.com>
85313
85314         * misc/sys/cdefs.h: Fix last change.
85315
85316         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
85317         database lookup.
85318
85319 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
85320
85321         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
85322
85323         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
85324         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
85325         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
85326         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
85327         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
85328         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
85329         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
85330         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
85331         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
85332         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
85333         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
85334         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
85335         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
85336         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
85337         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
85338         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
85339         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
85340         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
85341         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
85342         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
85343         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
85344         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
85345
85346         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
85347         ceil, ceilf, floor, floorf.
85348
85349         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
85350         Perform IRELATIVE relocations last.
85351
85352         * elf/do-rel.h: Add another parameter nrelative, replacing the
85353         local variable with the same name.  Change name of the function
85354         to end in Rel or Rela (uppercase).
85355         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
85356         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
85357         elf_dynamic_do_##reloc function.
85358
85359 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
85360
85361         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
85362         is sufficient, at least on modern CPUs.
85363
85364         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
85365
85366         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
85367         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
85368
85369         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
85370         __expl_finite.
85371         * math/bits/math-finite.h: Add entries for exp.
85372         * math/e_expl.c: Add __*_finite alias.
85373         * sysdeps/i386/fpu/e_exp.S: Likewise.
85374         * sysdeps/i386/fpu/e_expf.S: Likewise.
85375         * sysdeps/i386/fpu/e_expl.c: Likewise.
85376         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
85377         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
85378         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
85379         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
85380         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
85381         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
85382         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
85383
85384         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
85385         is sufficient, at least on modern CPUs.
85386
85387         * ctype/ctype-info.c (__ctype_init): Define.
85388         * include/ctype.h (__ctype_init): Declare.
85389         (__ctype_b_loc): The variable is always initialized.
85390         (__ctype_toupper_loc): Likewise.
85391         (__ctype_tolower_loc): Likewise.
85392         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
85393         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
85394
85395 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
85396
85397         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
85398
85399         * configure.in: Also look in $cxxmachine/include for C++ system
85400         headers.
85401
85402 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85403
85404         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
85405         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
85406         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
85407         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
85408         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
85409         (USE_AS_WMEMCMP): New macro.
85410         Fixing indents.
85411         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
85412         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
85413         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
85414         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
85415         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
85416         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
85417         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
85418         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
85419         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
85420         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
85421         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
85422         (USE_AS_WMEMCMP): New macro.
85423         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
85424         * sysdeps/string/test-memcmp.c: Update.
85425         Fix simple_wmemcmp.
85426         Add new tests.
85427         * wcsmbs/wmemcmp.c: Update.
85428         (WMEMCMP): New macro.
85429         Fix overflow bug.
85430
85431 2011-10-12  Andreas Jaeger  <aj@suse.de>
85432
85433         [BZ #13268]
85434         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
85435
85436 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
85437
85438         * libio/iofwide.c (do_length): Avoid warning.
85439
85440         * ctype/ctype.h (__isctype_f): Add missing __THROW.
85441
85442 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
85443
85444         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
85445
85446         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
85447         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
85448         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
85449         * sysdeps/i386/i686/fpu/e_log.S: New file.
85450         * sysdeps/i386/i686/fpu/e_logf.S: New file.
85451         * sysdeps/i386/i686/fpu/e_logl.S: New file.
85452
85453         * ctype/ctype.h: Add support for inlined isXXX functions when
85454         compiling C++ code.
85455
85456 2011-10-14  Andreas Schwab  <schwab@redhat.com>
85457
85458         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
85459
85460         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
85461
85462 2011-10-13  Roland McGrath  <roland@hack.frob.com>
85463
85464         [BZ #13291]
85465         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
85466
85467 2011-10-13  Andreas Schwab  <schwab@redhat.com>
85468
85469         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
85470         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
85471         feraiseexcept.
85472
85473         * sysdeps/x86_64/memrchr.S: Check for zero size.
85474
85475         * string/stratcliff.c: Add memrchr tests.
85476
85477 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85478
85479         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
85480         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
85481         rawmemchr-sse2 rawmemchr-sse2-bsf.
85482         * sysdeps/i386/i686/multiarch/memchr.S: New file.
85483         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
85484         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
85485         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
85486         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
85487         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
85488         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
85489         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
85490         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
85491         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
85492         * string/memrchr.c (MEMRCHR): New macro.
85493
85494 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
85495
85496         Add integration with gcc's -ffinite-math-only and optimize wrapper
85497         functions in libm.
85498         * Versions.def: Define GLIBC_2.15 version for libm.
85499         * math/Makefile (headers): Add bits/math-finite.h.
85500         * math/bits/math-finite.h: New file.
85501         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
85502         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
85503         * math/e_acoshl.c: Add __*_finite alias.
85504         * math/e_acosl.c: Likewise.
85505         * math/e_asinl.c: Likewise.
85506         * math/e_atan2l.c: Likewise.
85507         * math/e_atanhl.c: Likewise.
85508         * math/e_coshl.c: Likewise.
85509         * math/e_exp10.c: Likewise.
85510         * math/e_exp10f.c: Likewise.
85511         * math/e_exp10l.c: Likewise.
85512         * math/e_exp2l.c: Likewise.
85513         * math/e_fmodl.c: Likewise.
85514         * math/e_gammal_r.c: Likewise.
85515         * math/e_hypotl.c: Likewise.
85516         * math/e_j0l.c: Likewise.
85517         * math/e_j1l.c: Likewise.
85518         * math/e_jnl.c: Likewise.
85519         * math/e_lgammal_r.c: Likewise.
85520         * math/e_log10l.c: Likewise.
85521         * math/e_log2l.c: Likewise.
85522         * math/e_logl.c: Likewise.
85523         * math/e_powl.c: Likewise.
85524         * math/e_sinhl.c: Likewise.
85525         * math/e_sqrtl.c: Likewise.
85526         * math/e_scalb.c: Completely rewritten and optimized.
85527         * math/e_scalbf.c: Likewise.
85528         * math/e_scalbl.c: Likewise.
85529         * math/w_acos.c: Likewise.
85530         * math/w_acosf.c: Likewise.
85531         * math/w_acosl.c: Likewise.
85532         * math/w_acosh.c: Likewise.
85533         * math/w_acoshf.c: Likewise.
85534         * math/w_acoshl.c: Likewise.
85535         * math/w_asin.c: Likewise.
85536         * math/w_asinf.c: Likewise.
85537         * math/w_asinl.c: Likewise.
85538         * math/w_atan2.c: Likewise.
85539         * math/w_atan2f.c: Likewise.
85540         * math/w_atan2l.c: Likewise.
85541         * math/w_atanh.c: Likewise.
85542         * math/w_atanhf.c: Likewise.
85543         * math/w_atanhl.c: Likewise.
85544         * math/w_exp10.c: Likewise.
85545         * math/w_exp10f.c: Likewise.
85546         * math/w_exp10l.c: Likewise.
85547         * math/w_fmod.c: Likewise.
85548         * math/w_fmodf.c: Likewise.
85549         * math/w_fmodl.c: Likewise.
85550         * math/w_j0.c: Likewise.
85551         * math/w_j0f.c: Likewise.
85552         * math/w_j0l.c: Likewise.
85553         * math/w_j1.c: Likewise.
85554         * math/w_j1f.c: Likewise.
85555         * math/w_j1l.c: Likewise.
85556         * math/w_jn.c: Likewise.
85557         * math/w_jnf.c: Likewise.
85558         * math/w_log.c: Likewise.
85559         * math/w_logf.c: Likewise.
85560         * math/w_logl.c: Likewise.
85561         * math/w_log10.c: Likewise.
85562         * math/w_log10f.c: Likewise.
85563         * math/w_log10l.c: Likewise.
85564         * math/w_log2.c: Likewise.
85565         * math/w_log2f.c: Likewise.
85566         * math/w_log2l.c: Likewise.
85567         * math/w_pow.c: Likewise.
85568         * math/w_powf.c: Likewise.
85569         * math/w_powl.c: Likewise.
85570         * math/w_remainder.c: Likewise.
85571         * math/w_remainderf.c: Likewise.
85572         * math/w_remainderl.c: Likewise.
85573         * math/w_scalb.c: Likewise.
85574         * math/w_scalbf.c: Likewise.
85575         * math/w_scalbl.c: Likewise.
85576         * math/w_sqrt.c: Likewise.
85577         * math/w_sqrtf.c: Likewise.
85578         * math/w_sqrtl.c: Likewise.
85579         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
85580         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
85581         used.
85582         * math/math_private.h: Declare __kernel_standard_f.
85583         * math/w_cosh.c: Remove cruft and optimize a bit.
85584         * math/w_coshf.c: Likewise.
85585         * math/w_coshl.c: Likewise.
85586         * math/w_exp2.c: Likewise.
85587         * math/w_exp2f.c: Likewise.
85588         * math/w_exp2l.c: Likewise.
85589         * math/w_hypot.c: Likewise.
85590         * math/w_hypotf.c: Likewise.
85591         * math/w_hypotl.c: Likewise.
85592         * math/w_lgamma.c: Likewise.
85593         * math/w_lgamma_r.c: Likewise.
85594         * math/w_lgammaf.c: Likewise.
85595         * math/w_lgammaf_r.c: Likewise.
85596         * math/w_lgammal.c: Likewise.
85597         * math/w_lgammal_r.c: Likewise.
85598         * math/w_sinh.c: Likewise.
85599         * math/w_sinhf.c: Likewise.
85600         * math/w_sinhl.c: Likewise.
85601         * math/w_tgamma.c: Likewise.
85602         * math/w_tgammaf.c: Likewise.
85603         * math/w_tgammal.c: Likewise.
85604         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
85605         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
85606         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
85607         Minor optimizations.  Pretty printing.  Remove cruft.
85608         * sysdeps/i386/fpu/e_acosf.S: Likewise.
85609         * sysdeps/i386/fpu/e_acosh.S: Likewise.
85610         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
85611         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
85612         * sysdeps/i386/fpu/e_acosl.c: Likewise.
85613         * sysdeps/i386/fpu/e_asin.S: Likewise.
85614         * sysdeps/i386/fpu/e_asinf.S: Likewise.
85615         * sysdeps/i386/fpu/e_atan2.S: Likewise.
85616         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
85617         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
85618         * sysdeps/i386/fpu/e_atanh.S: Likewise.
85619         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
85620         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
85621         * sysdeps/i386/fpu/e_exp10.S: Likewise.
85622         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
85623         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
85624         * sysdeps/i386/fpu/e_exp2.S: Likewise.
85625         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
85626         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
85627         * sysdeps/i386/fpu/e_fmod.S: Likewise.
85628         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
85629         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
85630         * sysdeps/i386/fpu/e_hypot.S: Likewise.
85631         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
85632         * sysdeps/i386/fpu/e_log.S: Likewise.
85633         * sysdeps/i386/fpu/e_log10.S: Likewise.
85634         * sysdeps/i386/fpu/e_log10f.S: Likewise.
85635         * sysdeps/i386/fpu/e_log10l.S: Likewise.
85636         * sysdeps/i386/fpu/e_log2.S: Likewise.
85637         * sysdeps/i386/fpu/e_log2f.S: Likewise.
85638         * sysdeps/i386/fpu/e_log2l.S: Likewise.
85639         * sysdeps/i386/fpu/e_logf.S: Likewise.
85640         * sysdeps/i386/fpu/e_logl.S: Likewise.
85641         * sysdeps/i386/fpu/e_pow.S: Likewise.
85642         * sysdeps/i386/fpu/e_powf.S: Likewise.
85643         * sysdeps/i386/fpu/e_powl.S: Likewise.
85644         * sysdeps/i386/fpu/e_remainder.S: Likewise.
85645         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
85646         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
85647         * sysdeps/i386/fpu/e_scalb.S: Likewise.
85648         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
85649         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
85650         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
85651         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
85652         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
85653         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
85654         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
85655         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85656         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
85657         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
85658         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
85659         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
85660         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
85661         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
85662         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
85663         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
85664         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
85665         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85666         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
85667         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
85668         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85669         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
85670         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
85671         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
85672         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85673         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
85674         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
85675         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
85676         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
85677         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
85678         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
85679         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
85680         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
85681         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
85682         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
85683         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
85684         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
85685         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
85686         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
85687         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
85688         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
85689         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
85690         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
85691         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
85692         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
85693         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
85694         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
85695         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
85696         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
85697         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
85698         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
85699         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
85700         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
85701         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
85702         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
85703         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
85704         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
85705         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
85706         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
85707         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
85708         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
85709         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
85710         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
85711         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
85712         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
85713         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
85714         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
85715         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
85716         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
85717         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
85718         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
85719         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
85720         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
85721         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
85722         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
85723         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
85724         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
85725         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
85726         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
85727         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
85728         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
85729         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
85730         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
85731         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
85732         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
85733         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
85734         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
85735         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
85736         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
85737         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
85738         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
85739         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
85740         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
85741         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
85742         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
85743         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
85744         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
85745         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
85746         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
85747         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
85748         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
85749         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
85750         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
85751         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
85752         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
85753         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
85754         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
85755         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
85756         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
85757         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
85758         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
85759         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
85760         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
85761         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
85762         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
85763         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
85764         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
85765         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
85766         (__isnanf): Likewise.
85767         (__isinf_ns): Likewise.
85768         (__isinf_nsf): Likewise.
85769         (__finite): Likewise.
85770         (__finitef): Likewise.
85771         (__ieee754_sqrt): Define as macro.
85772         (__ieee754_sqrtf): Define as macro.
85773         (__ieee754_sqrtl): Define as macro.
85774         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
85775         inlined copy.
85776         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
85777         __FINITE_MATH_ONLY__ consistent.
85778         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
85779
85780 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
85781
85782         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
85783         of rawmemchr.
85784
85785         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
85786
85787 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
85788
85789         * po/ja.po: Update from translation team.
85790
85791 2011-10-08  Roland McGrath  <roland@hack.frob.com>
85792
85793         * locale/programs/locarchive.c (prepare_address_space): New function.
85794         (create_archive, enlarge_archive, open_archive): Use it.
85795
85796         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
85797         inside [SHARED], where it is used.
85798
85799         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
85800
85801         * nss/getent.c (netgroup_keys): Remove unused variable.
85802         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
85803
85804 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
85805
85806         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
85807         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
85808         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
85809         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
85810         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
85811         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
85812         * math/Makefile (libm-calls): Add s_isinf_ns.
85813         * math/divtc3.c: Use __isinf_nsl instead of isinf.
85814         * math/multc3.c: Likewise.
85815         * math/s_casin.c: Likewise.
85816         * math/s_casinf.c: Likewise.
85817         * math/s_casinl.c: Likewise.
85818         * math/s_ccos.c: Likewise.
85819         * math/s_ccosf.c: Likewise.
85820         * math/s_ccosl.c: Likewise.
85821         * math/s_ctan.c: Likewise.
85822         * math/s_ctanf.c: Likewise.
85823         * math/s_ctanh.c: Likewise.
85824         * math/s_ctanhf.c: Likewise.
85825         * math/s_ctanhl.c: Likewise.
85826         * math/s_ctanl.c: Likewise.
85827         * math/w_fmod.c: Likewise.
85828         * math/w_fmodf.c: Likewise.
85829         * math/w_fmodl.c: Likewise.
85830         * math/w_remainder.c: Likewise.
85831         * math/w_remainderf.c: Likewise.
85832         * math/w_remainderl.c: Likewise.
85833         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
85834         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
85835         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
85836         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
85837         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
85838         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
85839         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
85840         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
85841
85842         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
85843         of the number.
85844         * stdio-common/printf_fphex.c: Likewise.
85845         * stdio-common/printf_size.c: Likewise.
85846
85847         * math/e_exp10.c: Include math_private.h using <...> not "...".
85848         * math/e_exp10f.c: Likewise.
85849         * math/e_exp10l.c: Likewise.
85850         * math/e_exp2l.c: Likewise.
85851         * math/e_j0l.c: Likewise.
85852         * math/e_j1l.c: Likewise.
85853         * math/e_jnl.c: Likewise.
85854         * math/e_lgammal_r.c: Likewise.
85855         * math/e_rem_pio2l.c: Likewise.
85856         * math/e_scalb.c: Likewise.
85857         * math/e_scalbf.c: Likewise.
85858         * math/e_scalbl.c: Likewise.
85859         * math/k_cosl.c: Likewise.
85860         * math/k_sinl.c: Likewise.
85861         * math/k_tanl.c: Likewise.
85862         * math/s_cacoshf.c: Likewise.
85863         * math/s_catan.c: Likewise.
85864         * math/s_catanf.c: Likewise.
85865         * math/s_catanh.c: Likewise.
85866         * math/s_catanhf.c: Likewise.
85867         * math/s_catanhl.c: Likewise.
85868         * math/s_catanl.c: Likewise.
85869         * math/s_ccosh.c: Likewise.
85870         * math/s_ccoshf.c: Likewise.
85871         * math/s_ccoshl.c: Likewise.
85872         * math/s_cexp.c: Likewise.
85873         * math/s_cexpf.c: Likewise.
85874         * math/s_cexpl.c: Likewise.
85875         * math/s_clog.c: Likewise.
85876         * math/s_clog10.c: Likewise.
85877         * math/s_clog10f.c: Likewise.
85878         * math/s_clog10l.c: Likewise.
85879         * math/s_clogf.c: Likewise.
85880         * math/s_clogl.c: Likewise.
85881         * math/s_csin.c: Likewise.
85882         * math/s_csinf.c: Likewise.
85883         * math/s_csinh.c: Likewise.
85884         * math/s_csinhf.c: Likewise.
85885         * math/s_csinhl.c: Likewise.
85886         * math/s_csinl.c: Likewise.
85887         * math/s_csqrt.c: Likewise.
85888         * math/s_csqrtf.c: Likewise.
85889         * math/s_csqrtl.c: Likewise.
85890         * math/s_ctan.c: Likewise.
85891         * math/s_ctanf.c: Likewise.
85892         * math/s_ctanh.c: Likewise.
85893         * math/s_ctanhf.c: Likewise.
85894         * math/s_ctanhl.c: Likewise.
85895         * math/s_ctanl.c: Likewise.
85896         * math/s_ldexp.c: Likewise.
85897         * math/s_ldexpf.c: Likewise.
85898         * math/s_ldexpl.c: Likewise.
85899         * math/s_significand.c: Likewise.
85900         * math/s_significandf.c: Likewise.
85901         * math/s_significandl.c: Likewise.
85902         * math/w_acos.c: Likewise.
85903         * math/w_acosf.c: Likewise.
85904         * math/w_acosh.c: Likewise.
85905         * math/w_acoshf.c: Likewise.
85906         * math/w_acoshl.c: Likewise.
85907         * math/w_acosl.c: Likewise.
85908         * math/w_asin.c: Likewise.
85909         * math/w_asinf.c: Likewise.
85910         * math/w_asinl.c: Likewise.
85911         * math/w_atan2.c: Likewise.
85912         * math/w_atan2f.c: Likewise.
85913         * math/w_atan2l.c: Likewise.
85914         * math/w_atanh.c: Likewise.
85915         * math/w_atanhf.c: Likewise.
85916         * math/w_atanhl.c: Likewise.
85917         * math/w_cosh.c: Likewise.
85918         * math/w_coshf.c: Likewise.
85919         * math/w_coshl.c: Likewise.
85920         * math/w_dremf.c: Likewise.
85921         * math/w_exp10.c: Likewise.
85922         * math/w_exp10f.c: Likewise.
85923         * math/w_exp10l.c: Likewise.
85924         * math/w_exp2.c: Likewise.
85925         * math/w_exp2f.c: Likewise.
85926         * math/w_fmod.c: Likewise.
85927         * math/w_fmodf.c: Likewise.
85928         * math/w_fmodl.c: Likewise.
85929         * math/w_hypot.c: Likewise.
85930         * math/w_hypotf.c: Likewise.
85931         * math/w_hypotl.c: Likewise.
85932         * math/w_j0.c: Likewise.
85933         * math/w_j0f.c: Likewise.
85934         * math/w_j0l.c: Likewise.
85935         * math/w_j1.c: Likewise.
85936         * math/w_j1f.c: Likewise.
85937         * math/w_j1l.c: Likewise.
85938         * math/w_jn.c: Likewise.
85939         * math/w_jnf.c: Likewise.
85940         * math/w_jnl.c: Likewise.
85941         * math/w_lgamma.c: Likewise.
85942         * math/w_lgamma_r.c: Likewise.
85943         * math/w_lgammaf.c: Likewise.
85944         * math/w_lgammaf_r.c: Likewise.
85945         * math/w_lgammal.c: Likewise.
85946         * math/w_lgammal_r.c: Likewise.
85947         * math/w_log.c: Likewise.
85948         * math/w_log10.c: Likewise.
85949         * math/w_log10f.c: Likewise.
85950         * math/w_log10l.c: Likewise.
85951         * math/w_log2.c: Likewise.
85952         * math/w_log2f.c: Likewise.
85953         * math/w_log2l.c: Likewise.
85954         * math/w_logf.c: Likewise.
85955         * math/w_logl.c: Likewise.
85956         * math/w_pow.c: Likewise.
85957         * math/w_powf.c: Likewise.
85958         * math/w_powl.c: Likewise.
85959         * math/w_remainder.c: Likewise.
85960         * math/w_remainderf.c: Likewise.
85961         * math/w_remainderl.c: Likewise.
85962         * math/w_scalb.c: Likewise.
85963         * math/w_scalbf.c: Likewise.
85964         * math/w_scalbl.c: Likewise.
85965         * math/w_sinh.c: Likewise.
85966         * math/w_sinhf.c: Likewise.
85967         * math/w_sinhl.c: Likewise.
85968         * math/w_sqrt.c: Likewise.
85969         * math/w_sqrtf.c: Likewise.
85970         * math/w_sqrtl.c: Likewise.
85971         * math/w_tgamma.c: Likewise.
85972         * math/w_tgammaf.c: Likewise.
85973         * math/w_tgammal.c: Likewise.
85974
85975         * po/ja.po: Update from translation team.
85976
85977 2011-09-29  Andreas Jaeger  <aj@suse.de>
85978
85979         [BZ #13179]
85980         * sunrpc/netname.c (netname2host): Fix logic.
85981
85982         [BZ #6779]
85983         [BZ #6783]
85984         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
85985         correctly.
85986         * math/w_remainder.c (__remainder): Likewise.
85987         * math/w_remainderf.c (__remainderf): Likewise.
85988         * math/libm-test.inc (remainder_test): Add test cases.
85989
85990 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
85991
85992         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
85993         sdiv_qrnnd.
85994
85995 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
85996
85997         * string/test-memcmp.c: Avoid unncessary #defines.
85998         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
85999
86000 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
86001
86002         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
86003         Use new sse2 version for core i3 - i7 as it's faster
86004         than sse42 version.
86005         (bit_Prefer_PMINUB_for_stringop): New.
86006         * sysdeps/x86_64/rawmemchr.S: Update.
86007         Replace with faster SSE2 version.
86008         * sysdeps/x86_64/memrchr.S: New file.
86009         * sysdeps/x86_64/memchr.S: Update.
86010         Replace with faster SSE2 version.
86011
86012 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
86013
86014         * elf/dl-load.c (lose): Add cast to avoid warning.
86015
86016 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
86017
86018         * po/ca.po: Update from translation team.
86019
86020         * inet/getnetgrent_r.c: Hook up nscd.
86021         * nscd/Makefile (routines): Add nscd_netgroup.
86022         (nscd-modules): Add netgroupcache.
86023         (CFLAGS-netgroupcache.c): Define.
86024         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
86025         (cache_search): Add const to second parameter.
86026         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
86027         INNETGR.
86028         (dbs): Add netgrdb entry.
86029         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
86030         (verify_persistent_db): Handle netgrdb.
86031         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
86032         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
86033         GETFDNETGR.
86034         (netgroup_response_header): Define.
86035         (innetgroup_response_header): Define.
86036         (datahead): Add netgroup_response_header and innetgroup_response_header
86037         elements.
86038         * nscd/nscd.conf: Add entries for netgroup cache.
86039         * nscd/nscd.h (dbtype): Add netgrdb.
86040         (_PATH_NSCD_NETGROUP_DB): Define.
86041         (netgroup_iov_disabled): Declare.
86042         (xmalloc, xcalloc, xrealloc): Move declarations here.
86043         (cache_search): Adjust prototype.
86044         Add netgroup-related prototypes.
86045         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
86046         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
86047         (__nscd_innetgr): Declare.
86048         * nscd/selinux.c (perms): Use access_vector_t as element type and
86049         add netgroup-related initializers.
86050         * nscd/netgroupcache.c: New file.
86051         * nscd/nscd_netgroup.c: New file.
86052         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
86053         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
86054         For four parameters use innetgr.
86055         * nss/nss_files/files-init.c: Add definition and callback for netgr.
86056         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
86057         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
86058         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
86059
86060         * nscd/connections.c (register_traced_file): Don't register file
86061         for disabled databases.
86062
86063 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
86064
86065         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
86066
86067         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
86068         from tree and freeing node.
86069
86070 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
86071
86072         * nss/nsswitch.c (__nss_database_lookup): Handle
86073         nss_parse_service_list out of memory case.
86074
86075 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
86076
86077         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
86078         out of memory case.
86079
86080 2011-10-04  Andreas Schwab  <schwab@redhat.com>
86081
86082         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
86083         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
86084         pass it down.
86085         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
86086         elf_machine_rela, elf_machine_lazy_rel.
86087         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
86088         (ELF_DYNAMIC_DO_REL): Likewise.
86089         (ELF_DYNAMIC_DO_RELA): Likewise.
86090         (ELF_DYNAMIC_RELOCATE): Likewise.
86091         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
86092         to ELF_DYNAMIC_DO_REL.
86093         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
86094         (dl_main): In trace mode always set __RTLD_NOIFUNC.
86095         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
86096         elf_machine_rela.
86097         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
86098         skip_ifunc, don't call ifunc function if non-zero.
86099         (elf_machine_rela): Likewise.
86100         (elf_machine_lazy_rel): Likewise.
86101         (elf_machine_lazy_rela): Likewise.
86102         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
86103         (elf_machine_lazy_rel): Likewise.
86104         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
86105         Likewise.
86106         (elf_machine_lazy_rel): Likewise.
86107         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
86108         Likewise.
86109         (elf_machine_lazy_rel): Likewise.
86110         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
86111         (elf_machine_lazy_rel): Likewise.
86112         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
86113         (elf_machine_lazy_rel): Likewise.
86114         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
86115         (elf_machine_lazy_rel): Likewise.
86116         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
86117         (elf_machine_lazy_rel): Likewise.
86118         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
86119         (elf_machine_lazy_rel): Likewise.
86120         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
86121         (elf_machine_lazy_rel): Likewise.
86122
86123 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
86124
86125         * nss/nss_files/files-init.c (_nss_files_init): Use static
86126         initialization for all the *_traced_file variables.
86127
86128 2011-09-28  Andreas Schwab  <schwab@redhat.com>
86129
86130         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
86131
86132 2011-09-27  Roland McGrath  <roland@hack.frob.com>
86133
86134         [BZ #13226]
86135         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
86136
86137 2011-09-27  Andreas Schwab  <schwab@redhat.com>
86138
86139         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
86140         Reread the line before reparsing it.
86141
86142 2011-09-26  Andreas Schwab  <schwab@redhat.com>
86143
86144         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
86145
86146 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
86147             Maxim Kuvyrkov  <maxim@codesourcery.com>
86148             Joseph Myers  <joseph@codesourcery.com>
86149
86150         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
86151         if needed for __stack_chk_guard.
86152
86153 2011-09-19  Roland McGrath  <roland@hack.frob.com>
86154
86155         * sysdeps/posix/spawni.c (script_execute): Always define it.
86156         It will be optimized away if unused.
86157         (maybe_script_execute): New function.
86158         (__spawni): Call it.
86159
86160         * Makerules: Don't include tls.make.
86161         (config-tls): Always set to thread.
86162         * tls.make.c: File removed.
86163
86164 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
86165
86166         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
86167         * config.make.in (CPPFLAGS-config): New substituted variable.
86168
86169 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
86170
86171         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
86172
86173         [BZ #13192]
86174         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
86175         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
86176
86177 2011-09-15  Roland McGrath  <roland@hack.frob.com>
86178
86179         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
86180         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
86181         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
86182         (CALL_FAIL): Likewise.
86183         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
86184         (CALL_FAIL): Macro removed.
86185         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
86186
86187 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
86188
86189         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
86190         for __FINITE_MATH_ONLY__ == 1.
86191
86192 2011-09-15  Andreas Schwab  <schwab@redhat.com>
86193
86194         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
86195         __ieee754_sqrt instead of sqrt.
86196         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
86197         __ieee754_sqrtf instead of sqrtf.
86198         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
86199         __floorf instead of floorf.
86200         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
86201         __floorf, __truncf instead of floorf, truncf.
86202
86203 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
86204
86205         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
86206
86207         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
86208         __extern_always_inline.
86209         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
86210         32-bit.
86211
86212 2011-09-14  Andreas Schwab  <schwab@redhat.com>
86213
86214         * elf/rtld.c (dl_main): Also relocate in dependency order when
86215         doing symbol dependency testing.
86216
86217 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
86218
86219         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
86220         Always define `refsym'.
86221
86222 2011-09-13  Andreas Schwab  <schwab@redhat.com>
86223
86224         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
86225         (__FD_ELT): Renamed from __FDELT.
86226         * misc/bits/select2.h (__FD_ELT): Likewise.
86227         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
86228         __FD_MASK instead of __FDELT, __FDMASK.
86229         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
86230         Likewise.
86231         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
86232         Likewise.
86233
86234         * elf/Makefile (gen-ldd): Fix pattern.
86235
86236         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
86237         (init_tls): Likewise.
86238
86239 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
86240
86241         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
86242
86243 2011-09-12  Andreas Schwab  <schwab@redhat.com>
86244
86245         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
86246         `struct cmsghdr *' instead of `void *'.
86247         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
86248         Likewise.
86249
86250 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
86251
86252         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
86253         if non-absolute.
86254         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
86255         ldd_rewrite_script.
86256
86257 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
86258
86259         * configure.in: Remove --with-tls option.
86260         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
86261         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
86262         out in case it is missing.
86263         * sysdeps/ia64/elf/configure.in: Likewise.
86264         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
86265         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
86266         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
86267         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
86268         * sysdeps/sh/elf/configure.in: Likewise.
86269         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
86270         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
86271         * sysdeps/x86_64/elf/configure.in: Likewise.
86272         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
86273         * sysdeps/mach/hurd/tls.h: Likewise.
86274
86275         [BZ #13067]
86276         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
86277
86278         [BZ #13090]
86279         * configure.in: Fix use of AC_INIT.
86280
86281         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
86282
86283 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
86284
86285         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
86286         __set_errno.
86287         * malloc/hooks.c: Likewise.
86288
86289         [BZ #11929]
86290         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
86291         variables statically.
86292         (narenas): Initialize.
86293         (list_lock): Initialize.
86294         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
86295         initializtion of main_arena and list_lock.  Small cleanups.
86296         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
86297         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
86298         Add initializers to main_arena and mp_.
86299         (malloc_state): Remove pagesize member.  Change all users to use
86300         GLRO(dl_pagesize).
86301
86302         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
86303         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
86304         is always initialized.
86305
86306         * malloc/malloc.c: Removed unused configurations and dead code.
86307         * malloc/arena.c: Likewise.
86308         * malloc/hooks.c: Likewise.
86309         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
86310
86311         * include/tls.h: Removed.  USE___THREAD must always be defined.
86312         * bits/libc-tsd.h: Don't handle !USE___THREAD.
86313         * elf/dl-libc.c: Likewise.
86314         * elf/dl-tsd.c: Likewise.
86315         * include/errno.h: Likewise.
86316         * include/netdb.h: Likewise.
86317         * include/resolv.h: Likewise.
86318         * inet/herrno-loc.c: Likewise.
86319         * inet/herrno.c: Likewise.
86320         * malloc/arena.c: Likewise.
86321         * malloc/hooks.c: Likewise.
86322         * malloc/malloc.c: Likewise.
86323         * resolv/res-state.c: Likewise.
86324         * resolv/res_libc.c: Likewise.
86325         * sysdeps/i386/dl-machine.h: Likewise.
86326         * sysdeps/ia64/dl-machine.h: Likewise.
86327         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
86328         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
86329         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
86330         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
86331         * sysdeps/sh/dl-machine.h: Likewise.
86332         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
86333         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
86334         * sysdeps/unix/i386/sysdep.S: Likewise.
86335         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
86336         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
86337         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
86338         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
86339         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
86340         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
86341         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
86342         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
86343         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
86344         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
86345         * sysdeps/unix/x86_64/sysdep.S: Likewise.
86346         * sysdeps/x86_64/dl-machine.h: Likewise.
86347         * tls.make.c: Likewise.
86348
86349         * configure.in: Remove --with-__thread option.  Make tests for
86350         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
86351         tls_model attribute fail if no support is available.  Remove
86352         USE_IN_LIBIO.
86353         * Makeconfig: Adjust for dropped configure option.  All features are
86354         now mandatory.
86355         * Makerules: Likewise.
86356         * Versions.def: Likewise.
86357         * argp/argp-fmtstream.c: Likewise.
86358         * argp/argp-fmtstream.h: Likewise.
86359         * argp/argp-help.c: Likewise.
86360         * assert/assert.c: Likewise.
86361         * config.h.in: Likewise.
86362         * config.make.in: Likewise.
86363         * configure: Likewise.
86364         * configure.in: Likewise.
86365         * csu/Versions: Likewise.
86366         * csu/init.c: Likewise.
86367         * elf/tst-audit2.c: Likewise.
86368         * elf/tst-tls10.c: Likewise.
86369         * elf/tst-tls10.h: Likewise.
86370         * elf/tst-tls11.c: Likewise.
86371         * elf/tst-tls12.c: Likewise.
86372         * elf/tst-tls14.c: Likewise.
86373         * elf/tst-tlsmod11.c: Likewise.
86374         * elf/tst-tlsmod12.c: Likewise.
86375         * elf/tst-tlsmod13.c: Likewise.
86376         * elf/tst-tlsmod13a.c: Likewise.
86377         * elf/tst-tlsmod14a.c: Likewise.
86378         * elf/tst-tlsmod15b.c: Likewise.
86379         * elf/tst-tlsmod16a.c: Likewise.
86380         * elf/tst-tlsmod16b.c: Likewise.
86381         * elf/tst-tlsmod7.c: Likewise.
86382         * elf/tst-tlsmod8.c: Likewise.
86383         * elf/tst-tlsmod9.c: Likewise.
86384         * gmon/gmon.c: Likewise.
86385         * grp/fgetgrent_r.c: Likewise.
86386         * grp/putgrent.c: Likewise.
86387         * hurd/fopenport.c: Likewise.
86388         * include/libc-symbols.h: Likewise.
86389         * include/tls.h: Likewise.
86390         * intl/gettextP.h: Likewise.
86391         * intl/loadinfo.h: Likewise.
86392         * locale/global-locale.c: Likewise.
86393         * locale/localeinfo.h: Likewise.
86394         * mach/devstream.c: Likewise.
86395         * malloc/arena.c: Likewise.
86396         * malloc/set-freeres.c: Likewise.
86397         * misc/err.c: Likewise.
86398         * misc/getttyent.c: Likewise.
86399         * misc/mntent_r.c: Likewise.
86400         * posix/getopt.c: Likewise.
86401         * posix/wordexp.c: Likewise.
86402         * pwd/fgetpwent_r.c: Likewise.
86403         * resolv/Versions: Likewise.
86404         * resolv/res_hconf.c: Likewise.
86405         * shadow/fgetspent_r.c: Likewise.
86406         * shadow/putspent.c: Likewise.
86407         * stdio-common/printf_fphex.c: Likewise.
86408         * stdio-common/tmpfile.c: Likewise.
86409         * stdlib/abort.c: Likewise.
86410         * stdlib/fmtmsg.c: Likewise.
86411         * sunrpc/auth_unix.c: Likewise.
86412         * sunrpc/clnt_perr.c: Likewise.
86413         * sunrpc/clnt_tcp.c: Likewise.
86414         * sunrpc/clnt_udp.c: Likewise.
86415         * sunrpc/clnt_unix.c: Likewise.
86416         * sunrpc/openchild.c: Likewise.
86417         * sunrpc/svc_simple.c: Likewise.
86418         * sunrpc/svc_tcp.c: Likewise.
86419         * sunrpc/svc_udp.c: Likewise.
86420         * sunrpc/svc_unix.c: Likewise.
86421         * sunrpc/xdr.c: Likewise.
86422         * sunrpc/xdr_array.c: Likewise.
86423         * sunrpc/xdr_rec.c: Likewise.
86424         * sunrpc/xdr_ref.c: Likewise.
86425         * sunrpc/xdr_stdio.c: Likewise.
86426
86427 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
86428
86429         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
86430
86431 2011-07-03  Andreas Jaeger  <aj@suse.de>
86432
86433         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
86434         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
86435         regenerate with gen-libm-tests.pl.
86436
86437 2010-05-12  Petr Baudis  <pasky@suse.cz>
86438
86439         [BZ #11589]
86440         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
86441         around j0() zero points by switching to j1().
86442         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
86443         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
86444         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
86445         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
86446
86447 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
86448
86449         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
86450         instead of 0.
86451         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
86452         instead of 0.
86453         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
86454         Patch in part by Pavel Roskin <proski@gnu.org>.
86455
86456         [BZ #13138]
86457         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
86458         realloc.
86459         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
86460         Free memory block if necessary.
86461
86462         [BZ #12847]
86463         * libio/genops.c (INTDEF): For string streams the _lock pointer can
86464         be NULL.  Don't lock in this case.
86465
86466 2011-09-09  Roland McGrath  <roland@hack.frob.com>
86467
86468         * elf/elf.h (ELFOSABI_GNU): New macro.
86469         (ELFOSABI_LINUX): Define to that.
86470
86471 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
86472
86473         * string/strncat.c (strncat): Undef the symbol in case it has been
86474         defined in bits/string.h.
86475
86476 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
86477
86478         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
86479
86480         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
86481         link map.
86482
86483 2011-08-17  Andreas Jaeger  <aj@suse.de>
86484
86485         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
86486
86487 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
86488             Ian Lance Taylor  <iant@google.com>
86489
86490         * math/libm-test.inc (lround_test): New testcase.
86491         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
86492
86493 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
86494
86495         * Makefile: Remove support for automatic cvs check-ins.
86496         * Makerules: Likewise.
86497         * config.make.in: Likewise.
86498         * configure.in: Likewise.
86499         * intl/Makefile: Likewise.
86500         * locale/Makefile: Likewise.
86501         * po/Makefile: Likewise.
86502         * posix/Makefile: Likewise.
86503         * sysdeps/gnu/Makefile: Likewise.
86504         * sysdeps/mach/hurd/Makefile: Likewise.
86505         * sysdeps/sparc/sparc32/Makefile: Likewise.
86506
86507         [BZ #13118]
86508         * posix/Makefile (bug-regex32-ENV): Define.
86509         Patch by John Stanley <jpsinthemix@verizon.net>.
86510
86511         * misc/Makefile (headers): Add bits/select2.h.
86512         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
86513         * misc/bits/select2.h: New file.
86514         * include/bits/select2.h: New file.
86515         * debug/Makefile (routines): Add fdelt_chk.
86516         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
86517         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
86518         FD_ISSET.
86519         * debug/fdelt_chk.c: New file.
86520
86521         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
86522         * wcsmbs/test-wmemcmp.c: Likewise.
86523         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
86524         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
86525
86526 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
86527
86528         * string/Makefile (strop-tests): Add memcmp.
86529         * string/test-wmemcmp.c: New file.
86530         * string/test-memcmp.c: Add wmemcmp support.
86531
86532 2011-09-08  Roland McGrath  <roland@hack.frob.com>
86533
86534         [BZ #13153]
86535         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
86536         2011-07-19 change.
86537
86538         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
86539         garbage value in a __mach_port_mod_refs call in the cases of the
86540         task-self and thread-self ports.
86541
86542 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
86543
86544         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
86545
86546 2011-09-08  Andreas Schwab  <schwab@redhat.com>
86547
86548         * elf/dl-load.c (lose): Check for non-null L.
86549
86550 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
86551
86552         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
86553
86554         * elf/dl-libc.c (dlerror_run): Pass back error code from
86555         dl_catch_error.
86556
86557         [BZ #13123]
86558         * elf/dl-load.c (lose): Free l_origin if it is valid.
86559
86560         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
86561         names.
86562         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
86563         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
86564         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
86565         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
86566         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
86567         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
86568
86569 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
86570
86571         * sysdeps/powerpc/fpu/e_hypot.c: New file.
86572         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
86573         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
86574         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
86575         * sysdeps/powerpc/fpu/k_cosf.c: New file.
86576         * sysdeps/powerpc/fpu/k_sinf.c: New file.
86577         * sysdeps/powerpc/fpu/s_cosf.c: New file.
86578         * sysdeps/powerpc/fpu/s_sinf.c: New file.
86579         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
86580         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
86581
86582 2011-08-15  Alan Modra  <amodra@gmail.com>
86583
86584         [BZ #13092]
86585         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
86586         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
86587         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
86588         ppc_mcount to static-only-routines.
86589         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
86590         __mcount_internal.
86591         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
86592         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
86593
86594 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
86595
86596         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
86597         for finite and infinity parameters.
86598
86599 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
86600
86601         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
86602         and add nop instructions for throughput optimization.
86603         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
86604
86605 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
86606
86607         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
86608         aligned copy for power7 with vector-scalar instructions.
86609         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
86610
86611 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
86612
86613         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
86614         AVX check.
86615
86616 2011-09-07  Andreas Schwab  <schwab@redhat.com>
86617
86618         [BZ #13144]
86619         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
86620         last change.
86621
86622 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
86623
86624         * sysdeps/unix/sysv/linux/x86_64/init-first.c
86625         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
86626         syscall wrapper around clock_gettime in __vdso_clock_gettime.
86627         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
86628         clock_gettime.
86629
86630 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
86631
86632         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
86633         Forgot to demangle the pointer.
86634
86635         * sysdeps/i386/sysdep.h: Define atom_text_section.
86636         * sysdeps/x86_64/sysdep.h: Likewise.
86637         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
86638         section with atom_text_section.
86639         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
86640         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
86641         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
86642         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
86643         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
86644
86645         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
86646         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
86647         already be defined.  Change to take two parameters and don't assign
86648         result to variable.  Adjust all users.
86649         Define INTERNAL_GETTIME if not already defined.
86650         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
86651         call.
86652         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
86653         HAVE_CLOCK_GETTIME_VSYSCALL.
86654         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
86655
86656         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
86657         gettimeofday vsyscall, just use time.
86658
86659 2011-09-06  Andreas Schwab  <schwab@redhat.com>
86660
86661         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
86662         <errno.h>.
86663
86664 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
86665
86666         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
86667         syscall on x86-64.
86668         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
86669         syscall.
86670         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
86671         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
86672         syscall if possible.
86673
86674 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
86675
86676         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
86677         e_ident.  Don't pass to find_mapsXX.
86678         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
86679
86680 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
86681
86682         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
86683         strchr-sse2-no-bsf strrchr-sse2-no-bsf
86684         * sysdeps/x86_64/multiarch/strchr.S: Update.
86685         Check bit_slow_BSF bit.
86686         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
86687         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
86688         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
86689
86690 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
86691
86692         [BZ #13134]
86693         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
86694         before glibc 2.15.
86695         (tryshell): Define.
86696         (__spawni): Change last parameter to be flag.  Test
86697         SPAWN_XFLAGS_USE_PATH flag to use path or not.
86698         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
86699         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
86700         * posix/spawni.c: Likewise.
86701         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
86702         * posix/spawnp.c: Likewise.  Change normal version to use
86703         SPAWN_XFLAGS_USE_PATH.
86704         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
86705         SPAWN_XFLAGS_TRY_SHELL.
86706
86707         [BZ #13150]
86708         * posix/glob.h: Remove gcc 1.x support.
86709
86710         [BZ #13068]
86711         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
86712
86713 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
86714
86715         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
86716         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
86717         strrchr-sse2-bsf
86718         * sysdeps/i386/i686/multiarch/strchr.S: New file.
86719         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
86720         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
86721         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
86722         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
86723         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
86724
86725 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
86726
86727         * sysdeps/x86_64/wcscmp.S: New file.
86728
86729         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
86730         wcscmp-c wcscmp-sse2
86731         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
86732         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
86733         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
86734         * wcsmbs/wcscmp.c: Allow renaming.
86735
86736 2011-09-05  David S. Miller  <davem@davemloft.net>
86737
86738         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
86739         stack slot, rather than the struct return pointer slot.
86740         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
86741         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
86742         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
86743         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
86744
86745 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
86746
86747         * po/ja.po: Update from translation team.
86748
86749         [BZ #13144]
86750         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
86751         kernel in 64-bit binaries.
86752
86753 2011-09-01  David S. Miller  <davem@davemloft.net>
86754
86755         * elf/elf.h (HWCAP_SPARC_*): Move to..
86756         * sysdeps/sparc/sysdep.h: this new file and add new values.
86757         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
86758         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
86759         _DL_HWCAP_COUNT to 24.
86760         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
86761         entries.
86762         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
86763         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
86764         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
86765         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
86766         instead of magic constants.
86767         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
86768
86769 2011-08-31  David S. Miller  <davem@davemloft.net>
86770
86771         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
86772         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
86773         Reimplement to do errno handling inline.
86774         (SYSCALL_ERROR_HANDLER): New macro.
86775         (__SYSCALL_STRING): Do not do errno handling in asm.
86776         (__CLONE_SYSCALL_STRING): Delete.
86777         (__INTERNAL_SYSCALL_STRING): Delete.
86778         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
86779         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
86780         (PSEUDO): Reimplement to do errno handling inline.
86781         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
86782         (SYSCALL_ERROR_HANDLER): New macro.
86783         (__SYSCALL_STRING): Do not do errno handling in asm.
86784         (__CLONE_SYSCALL_STRING): Delete.
86785         (__INTERNAL_SYSCALL_STRING): Delete.
86786         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
86787         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
86788         i386.
86789         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
86790         (inline_syscall*): Add 'err' argument.
86791         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
86792         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
86793         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
86794         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
86795
86796         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
86797         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
86798
86799 2011-08-30  Andreas Schwab  <schwab@redhat.com>
86800
86801         * elf/rtld.c (dl_main): Relocate objects in dependency order.
86802
86803 2011-08-29  Jiri Olsa <jolsa@redhat.com>
86804
86805         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
86806         directive.
86807
86808 2011-08-24  David S. Miller  <davem@davemloft.net>
86809
86810         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
86811
86812 2011-08-24  Andreas Schwab  <schwab@redhat.com>
86813
86814         * elf/Makefile: Add rules to build and run unload8 test.
86815         * elf/unload8.c: New file.
86816         * elf/unload8mod1.c: New file.
86817         * elf/unload8mod1x.c: New file.
86818         * elf/unload8mod2.c: New file.
86819         * elf/unload8mod3.c: New file.
86820
86821         * elf/dl-close.c (_dl_close_worker): Reset private search list if
86822         it wasn't used.
86823
86824 2011-08-23  David S. Miller  <davem@davemloft.net>
86825
86826         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
86827         subtract stack bias.
86828         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
86829         %sp not %fp in calculations.
86830         (_JMPBUF_UNWINDS_ADJ): Likewise.
86831
86832         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
86833         (aio_suspend): Call it to force an exception region around the
86834         AIO_MISC_WAIT() invocation.
86835
86836 2011-08-23  Andreas Schwab  <schwab@redhat.com>
86837
86838         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
86839         backslash.
86840
86841 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
86842
86843         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
86844         protection macro.
86845         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
86846         and <dl-machine.h>.
86847         (Elf64_FuncDesc): Remove.
86848
86849 2011-08-22  David S. Miller  <davem@davemloft.net>
86850
86851         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
86852         sigaltstack check, add missing cfi directives.
86853         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
86854         missing cfi directives, and sigaltstack handling.
86855
86856 2011-08-16  Andreas Schwab  <schwab@redhat.com>
86857
86858         [BZ #11724]
86859         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
86860         object is seen twice.
86861         * elf/dl-fini.c (_dl_sort_fini): Likewise.
86862
86863         * elf/Makefile (distribute): Add tst-initorder2.c.
86864         (tests): Add tst-initorder2.
86865         (modules-names): Add tst-initorder2a tst-initorder2b
86866         tst-initorder2c tst-initorder2d.  Add rules to build them.
86867         ($(objpfx)tst-initorder2.out): New rule.
86868         * elf/tst-initorder2.c: New file.
86869         * elf/tst-initorder2.exp: New file.
86870
86871 2011-08-22  Andreas Schwab  <schwab@redhat.com>
86872
86873         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
86874
86875         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
86876         dependencies back to end of function.
86877
86878         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
86879         $(elfobjdir)/ld.so.
86880
86881 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
86882
86883         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
86884         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
86885         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
86886         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
86887         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
86888         of __vdso_gettimeofday.
86889         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
86890         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
86891         attribute_hidden.
86892         (_libc_vdso_platform_setup): Remove initialization of
86893         __vdso_gettimeofday and __vdso_time.
86894
86895 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
86896
86897         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
86898         and fgetc_unlocked.
86899         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
86900         getc_unlocked.
86901
86902         * elf/dl-open.c (add_to_global): Report additions to the global scope
86903         for LD_DEBUG=scopes.
86904         (dl_open_worker): Also print scope of newly loaded dependencies.
86905         (_dl_show_scope): Indicate if there is no scope.
86906
86907         [BZ #13114]
86908         * stdio-common/Makefile (tests): Add bug24.
86909         * stdio-common/bug24.c: New file.
86910
86911 2011-08-19  Andreas Jaeger  <aj@suse.de>
86912
86913         [BZ #13114]
86914         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
86915         non-existant file when using close-on-exec mode.
86916
86917 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
86918
86919         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
86920         the very first instruction.
86921
86922         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
86923         the CFI state in the end.
86924         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
86925         inclusion of dl-trampoline.h.
86926         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
86927
86928 2011-08-19  Andreas Schwab  <schwab@redhat.com>
86929
86930         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
86931         expectations for long double.
86932
86933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
86934         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
86935
86936 2011-08-14  David S. Miller  <davem@davemloft.net>
86937
86938         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
86939         artificual limit depends upon the system page size.
86940
86941 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
86942
86943         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
86944         * resolv/Makefile: Define CFLAGS-libresolv.
86945
86946 2011-08-17  Andreas Schwab  <schwab@redhat.com>
86947
86948         * nss/makedb.c (compute_tables): Make variables used in nested
86949         function static.
86950
86951 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
86952
86953         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
86954         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
86955         if buffer was too small.
86956
86957         * elf/pldd.c (main): Attach to all threads in the process.
86958         Rewrite /proc handling to use *at functions.
86959
86960 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
86961
86962         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
86963         specifies first scope to show.
86964         (dl_open_worker): Update callers.  Move printing scope of new
86965         object to before the relocation.
86966         * elf/rtld.c (dl_main): Update _dl_show_scope call.
86967         * sysdeps/generic/ldsodefs.h: Update declaration.
86968
86969         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
86970         string for the scope number.
86971
86972 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
86973
86974         * nscd/servicescache.c (cache_addserv): Make sure written is always
86975         initialized.
86976
86977 2011-08-14  Roland McGrath  <roland@hack.frob.com>
86978
86979         * sysdeps/i386/i486/bits/atomic.h
86980         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
86981         statement expression, so as to suppress "set but not used" warning.
86982         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
86983
86984         * string/strncat.c (STRNCAT): Use prototype definition.
86985
86986         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
86987         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
86988         -Iprograms here.
86989         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
86990         (localedef-modules): Add localedef.
86991         (locale-modules): Add locale.
86992
86993         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
86994         * elf/rtld.c (dl_main): Invert order of assignment in last change,
86995         to avoid a warning.
86996
86997 2011-08-14  David S. Miller  <davem@davemloft.net>
86998
86999         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
87000         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
87001
87002 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
87003
87004         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
87005         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
87006         * elf/rtld.c (dl_main): Set l_name of vDSO.
87007         Call _dl_show_scope when DL_DEBUG_SCOPES.
87008         (process_dl_debug): Recognize scopes flag and also set it for all.
87009         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
87010         Declare _dl_show_scope.
87011
87012         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
87013         (do_dlopen): Pass caller_dlopen to dl_open.
87014         (__libc_dlopen_mode): Initialize caller_dlopen.
87015
87016         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
87017         of libc.  Make tolower call locale-independent.  Optimize a bit by
87018         using isdigit instead of isalnum.
87019         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
87020
87021 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
87022
87023         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
87024         was a dependency or dynamically loaded.
87025
87026 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
87027
87028         * intl/l10nflist.c: Allow architecture-specific pop function.
87029         * sysdeps/x86_64/l10nflist.c: New file.
87030
87031         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
87032         classification.
87033
87034 2011-08-10  Andreas Schwab  <schwab@redhat.com>
87035
87036         * include/dirent.h: Add libc_hidden_proto for scandirat and
87037         scandirat64.  Don't declare __scandirat64.
87038         * dirent/scandirat.c: Add libc_hidden_def.
87039         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
87040         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
87041
87042 2011-08-10  David S. Miller  <davem@davemloft.net>
87043
87044         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
87045         enum.
87046         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
87047         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
87048         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
87049
87050 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
87051
87052         * Versions.def [libc]: Add GLIBC_2.15.
87053         * dirent/Makefile (routines): Add scandirat and scandirat64.
87054         * dirent/Versions [libc]: Export scandirat and scandirat64 for
87055         GLIBC_2.15.
87056         * dirent/dirent.h: Declare scandirat and scandirat64.
87057         * dirent/scandirat.c: New file.
87058         * dirent/scandirat64.c: New file.
87059         * sysdeps/wordsize-64/scandirat.c: New file.
87060         * sysdeps/wordsize-64/scandirat64.c: New file.
87061         * dirent/opendir.c: Define opendirat.
87062         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
87063         using scandirat.
87064         * dirent/scandir64.c: Adjust for scandir.c change.
87065         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
87066         __scandirat64, and __scandir_cancel_handler.
87067         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
87068         additional parameter and use openat instead of open (outside of ld.so).
87069         Add new __opendir as wrapper around __opendirat.
87070         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
87071         here without requiring old scandirat implementation.
87072
87073 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
87074
87075         * dirent/scandir.c (cancel_handler): Renamed to
87076         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
87077         defined.  Adjust users.
87078         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
87079         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
87080
87081 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
87082
87083         * string/test-string.h (IMPL): Use __STRING to expand name and then
87084         stringify it.
87085
87086         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
87087         of cleanups.
87088
87089 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
87090
87091         * string/Makefile: Update.
87092         (strop-tests): Append strncat.
87093         * string/test-wcscmp.c: New file.
87094         New comprehensive test for wcscmp.
87095         * string/test-strcmp.c: Update.
87096         (WIDE): New define.
87097
87098 2011-07-22  Andreas Schwab  <schwab@redhat.com>
87099
87100         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
87101         line.
87102
87103 2011-07-26  Andreas Schwab  <schwab@redhat.com>
87104
87105         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
87106         encoding to ACE if AI_IDN.
87107
87108 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
87109
87110         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
87111         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
87112
87113 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
87114
87115         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
87116         Fix overflow bug in strncat.
87117         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
87118
87119         * string/test-strncat.c: Update.
87120         Add new tests for checking overflow bugs.
87121
87122 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
87123
87124         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
87125         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
87126         * sysdeps/i386/i686/multiarch/strcat.S: New file.
87127         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
87128         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
87129         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
87130         * sysdeps/i386/i686/multiarch/strncat.S: New file.
87131         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
87132         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
87133
87134         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
87135         (USE_AS_STRCAT): Define.
87136         Add strcat and strncat support.
87137         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
87138
87139 2011-07-25  Andreas Schwab  <schwab@redhat.com>
87140
87141         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
87142         __n bigger than INT_MAX+1.
87143         (__strncmp_g): Likewise.
87144
87145 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
87146
87147         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
87148         * libio/stido.h: Likewise.
87149
87150         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
87151         (AF_NFC): Define.
87152         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
87153         (AF_NFC): Define.
87154
87155         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
87156         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
87157         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
87158         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
87159         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
87160
87161         [BZ #13021]
87162         * scripts/test-installation.pl: Don't expect libnss_test1 to be
87163         installed.
87164
87165         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
87166         typo.
87167         (_dl_x86_64_save_sse): Likewise.
87168
87169 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
87170
87171         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
87172         OSXSAVE.
87173         (_dl_x86_64_save_sse): Likewise.
87174
87175         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
87176
87177         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
87178
87179 2011-07-21  Andreas Schwab  <schwab@redhat.com>
87180
87181         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
87182         change.
87183         (_dl_x86_64_save_sse): Use correct AVX check.
87184
87185 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
87186
87187         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
87188         bug in strncpy/strncat.
87189         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
87190
87191 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
87192
87193         * string/tester.c (test_strcat): Add tests for different alignments
87194         of source and destination.
87195         (test_strncat): Likewise.
87196
87197 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
87198
87199         [BZ #12852]
87200         * posix/glob.c (glob): Check passed in values before using them in
87201         expressions to avoid some overflows.
87202         (glob_in_dir): Likewise.
87203
87204         [BZ #13007]
87205         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
87206         check for AVX enablement so that we don't crash with old kernels and
87207         new hardware.
87208         * elf/tst-audit4.c: Add same checks here.
87209         * elf/tst-audit6.c: Likewise.
87210
87211         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
87212
87213 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
87214
87215         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
87216
87217 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
87218
87219         * po/cs.po: Update from translation team.
87220         * po/bg.po: Likewise.
87221
87222 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
87223
87224         * misc/sys/cdefs.h: Add support for const attribute.
87225         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
87226         to gnu_dev_{major,minor,makedev} functions.
87227
87228 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
87229
87230         * intl/dcigettext.c (get_output_charset): Add missing bracket.
87231
87232 2011-07-20  Andreas Schwab  <schwab@redhat.com>
87233
87234         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
87235         strlen results.
87236
87237 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
87238
87239         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
87240         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
87241         register in order to avoid conflicts with the soft frame pointer
87242         being held in r11 when necessary.
87243         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
87244         (INTERNAL_VSYSCALL_NCS): Likewise.
87245
87246 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
87247
87248         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
87249         * elf/dl-fini.c (_dl_fini): Adjust caller.
87250         * elf/dl-close.c (_dl_close_worker): Likewise.
87251         * sysdeps/generic/ldsodefs.h: Adjust declaration.
87252
87253 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
87254
87255         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
87256         "aux_cache->nlibs < 0".
87257
87258         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
87259         in the reload-count case.
87260
87261 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
87262
87263         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
87264         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
87265         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
87266         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
87267         * sysdeps/x86_64/multiarch/strcat.S: New file.
87268         * sysdeps/x86_64/multiarch/strncat.S: New file.
87269         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
87270         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
87271         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
87272         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
87273         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
87274         (USE_AS_STRCAT): Define.
87275         Add strcat and strncat support.
87276         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
87277         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
87278         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
87279         * string/strncat.c: Update.
87280         (USE_AS_STRNCAT): Define.
87281         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
87282         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
87283         and i7.
87284         * sysdeps/x86_64/multiarch/init-arch.h
87285         (bit_Prefer_PMINUB_for_stringop): New.
87286         (index_Prefer_PMINUB_for_stringop): Likewise.
87287         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
87288         bit_Prefer_PMINUB_for_stringop.
87289
87290 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
87291
87292         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
87293         buffer64.
87294         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
87295         of casting of buffer.
87296         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
87297         buffer32 and buffer64.
87298         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
87299         writes instead of casting of buffer.
87300         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
87301         buffer32.
87302         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
87303         casting of buffer.
87304
87305 2011-07-19  Andreas Schwab  <schwab@redhat.com>
87306
87307         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
87308
87309 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
87310
87311         * nscd/nscd.c (termination_handler): Don't do anything for a database
87312         if it has not yet been initialized.
87313
87314 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
87315
87316         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
87317
87318 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
87319
87320         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
87321
87322 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
87323
87324         * po/nl.po: Update from translation team.
87325         * po/sv.po: Likewise.
87326
87327 2011-07-16  Roland McGrath  <roland@hack.frob.com>
87328
87329         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
87330         now disallowed by GCC.
87331
87332         * configure.in (use-default-link): Default to yes if a test -shared
87333         link meets our qualifications.
87334         * configure: Regenerated.
87335
87336         * config.make.in (output-format): New variable.
87337         * configure.in: Check for ld --print-output-format support.
87338         * configure: Regenerated.
87339         * Makerules ($(common-objpfx)format.lds)
87340         [$(output-format) != unknown]: Just use $(output-format),
87341         instead of the linker-script munging.
87342
87343 2011-07-14  Roland McGrath  <roland@hack.frob.com>
87344
87345         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
87346         of $(common-objpfx)shlib.lds.
87347         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
87348
87349         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
87350         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
87351
87352         * configure.in (-z relro check): Adjust test code to add a large
87353         writable data section after it.
87354         * configure: Regenerated.
87355
87356 2011-07-11  Roland McGrath  <roland@hack.frob.com>
87357
87358         * configure.in (-z relro check): Fix test code to make the variable
87359         truly const.
87360         * configure: Regenerated.
87361
87362 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
87363
87364         * nscd/nscd.h (struct traced_file): Define.
87365         (struct database_dyn): Remove inotify_descr, reset_res, and filename
87366         elements.  Add traced_files.
87367         (inotify_fd): Declare.
87368         (register_traced_file): Declare.
87369         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
87370         (inotify_fd): Export.
87371         (resolv_conf_descr): Remove.
87372         (nscd_init): Move inotify descriptor creation to main.
87373         Don't register files for notification here.
87374         (register_traced_file): New function.
87375         (invalidate_cache): Don't use reset_res to determine whether to call
87376         res_init, go through the list of registered files.
87377         (main_loop_poll): The inotify descriptors are now stored in the
87378         structures for the traced files.
87379         (main_loop_epoll): Likewise.
87380         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
87381         to __nss_disable_nscd.
87382         * nscd/cache.c (prune_cache): There is no single inotify descriptor
87383         for a database anymore.  Check the records for all the registered
87384         files instead.
87385         * nss/Makefile (libnss_files-routines): Add files-init.
87386         (libnss_db-routines): Add db-init.
87387         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
87388         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
87389         * nss/nss_db/db-init.c: New file.
87390         * nss/nss_files/files-init.c: New file.
87391         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
87392         __nss_lookup_function.
87393         (__nss_lookup_function): Call nss_load_library.
87394         (nss_load_all_libraries): New function.
87395         (__nss_disable_nscd): Take parameter with callback function for files
87396         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
87397         used for the cached services.
87398         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
87399         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
87400         options for features to all the files in nscd.
87401
87402         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
87403
87404 2011-07-10  Roland McGrath  <roland@hack.frob.com>
87405
87406         * csu/elf-init.c (__libc_csu_init): Comment typo.
87407
87408 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
87409
87410         * po/pl.po: Update from translation team.
87411         * po/ja.po: Likewise.
87412         * po/ru.po: Likewise.
87413         * po/ko.po: Likewise.
87414         * po/fr.po: Likewise.
87415
87416 2011-07-09  Roland McGrath  <roland@hack.frob.com>
87417
87418         * configure.in (.ctors/.dtors header and trailer check):
87419         Use an empirical test on a built program.
87420         * configure: Regenerated.
87421
87422         * configure.in (-z relro check): Use an empirical test on a built DSO.
87423         Detect, but do not require, on ia64.
87424         * configure: Regenerated.
87425
87426         * configure.in (READELF): Find it with AC_CHECK_TOOL.
87427         Update tests that use readelf to use $READELF instead.
87428         * configure: Regenerated.
87429
87430 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
87431
87432         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
87433         if the result is not used.
87434
87435 2011-07-05  Andreas Jaeger  <aj@suse.de>
87436
87437         [BZ #9696]
87438         * stdlib/tst-strtod.c: Add testcase.
87439
87440 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
87441
87442         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
87443         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
87444         The latter has a higher limit.  Take additional parameter to pass to
87445         the new function.
87446         (__pathconf): Pass file to __statfs_link_max.
87447         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
87448         __statfs_link_max.
87449         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
87450         __statfs_link_max.
87451
87452         [BZ #12868]
87453         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
87454         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
87455         Handle Lustre.
87456         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
87457         (__statfs_filesize_max): Likewise.
87458         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
87459
87460 2011-07-05  Andreas Jaeger  <aj@suse.de>
87461
87462         * resolv/res_comp.c (dn_skipname): Remove unused variable.
87463
87464 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
87465
87466         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
87467         `status' variable.
87468         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
87469         Likewise.
87470
87471 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
87472
87473         * Makefile (strop-tests): Add strncat.
87474         * string/test-strncat.c: New file.
87475
87476 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
87477
87478         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
87479
87480 2011-06-21  Andreas Jaeger  <aj@suse.de>
87481
87482         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
87483         Copy rule from iconvdata/Makefile.
87484
87485 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
87486
87487         [BZ #12922]
87488         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
87489         but no long options are defined, just return 'W'.
87490
87491 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
87492
87493         [BZ #9696]
87494         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
87495
87496 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
87497
87498         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
87499         netgroups to read.
87500         (innetgr): Likewise.
87501
87502 2011-07-05  Roland McGrath  <roland@hack.frob.com>
87503
87504         * config.make.in (install_root): Default to $(DESTDIR).
87505
87506 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
87507
87508         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
87509
87510 2011-07-02  Roland McGrath  <roland@hack.frob.com>
87511
87512         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
87513
87514         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
87515         containing directory rather than embedding absolute directory names.
87516
87517         * scripts/check-local-headers.sh: Rewritten using awk.
87518         Match by word, not by line.  Print error messages for matches.
87519         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
87520
87521         * Makerules [shlib-lds-flags empty]:
87522         ($(common-objpfx)libc_pic.opts): New target.
87523         ($(common-objpfx)libc_pic.os.clean): New target.
87524         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
87525
87526         * config.make.in (OBJCOPY): New variable.
87527         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
87528         * configure: Regenerated.
87529
87530         * config.make.in (use-default-link): New variable.
87531         * configure.in (use_default_link): Grok --with-default-link to set it.
87532         * configure: Regenerated.
87533         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
87534         (shlib-lds, shlib-lds-flags): Define to empty.
87535
87536         * Makerules (shlib-lds): New variable.
87537         (shlib-lds-flags): New variable.
87538         (build-shlib, build-moduile, build-module-asneeded): Use it.
87539         ($(common-objpfx)libc.so): Use $(shlib-lds).
87540         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
87541         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
87542
87543         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
87544         DT_FLAGS/DT_FLAGS_1 with zero flags.
87545
87546         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
87547         linker script munging.
87548
87549 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
87550
87551         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
87552         as 128-bit value.
87553         * crypt/sha512.c (sha512_process_block): Perform total addition using
87554         128-bit if possible.
87555         (__sha512_finish_ctx): Likewise.
87556         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
87557         as 64-bit value.
87558         * crypt/sha256.c (SWAP64): Define.
87559         (sha256_process_block): Perform total addition using 64-bit if
87560         possible.
87561         (__sha256_finish_ctx): Likewise.
87562
87563 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
87564
87565         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
87566         * nscd/initgrcache.c (addinitgroupsX): Likewise.
87567         * nscd/hstcache.c (cache_addhst): Likewise.
87568         * nscd/grpcache.c (cache_addgr): Likewise.
87569         * nscd/aicache.c (addhstaiX): Likewise.
87570         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
87571
87572 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
87573
87574         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
87575         * nscd/initgrcache.c (addinitgroupsX): Likewise.
87576         * nscd/hstcache.c (cache_addhst): Likewise.
87577         * nscd/grpcache.c (cache_addgr): Likewise.
87578         * nscd/aicache.c (addhstaiX): Likewise.
87579
87580 2011-07-01  Andreas Schwab  <schwab@redhat.com>
87581
87582         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
87583         domain only when needed.
87584
87585 2011-06-30  Andreas Schwab  <schwab@redhat.com>
87586
87587         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
87588         is always restored.
87589
87590 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
87591
87592         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
87593         are re-adding the entry.
87594         * nscd/servicescache.c (cache_addserv): Likewise.
87595
87596 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
87597
87598         * sysdeps/generic/dl-irel.h: fix protection against multiple
87599         inclusions.
87600         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
87601
87602 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
87603
87604         [BZ #12935]
87605         * malloc/memusage.sh: Fix quoting in message.
87606         * debug/xtrace.sh: Likewise.
87607
87608         * configure.in: Remove support for --experimental-malloc option, make
87609         it the default.
87610         * config.make.in: Likewise.
87611         * malloc/Makefile: Likewise.
87612
87613 2011-06-27  Andreas Schwab  <schwab@redhat.com>
87614
87615         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
87616         two-byte characters.
87617
87618 2011-06-27  Roland McGrath  <roland@hack.frob.com>
87619
87620         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
87621         AC_CACHE_CHECK invocation.
87622         * configure: Regenerated.
87623
87624         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
87625
87626 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
87627
87628         [BZ #12350]
87629         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
87630         bit from old_res_options.
87631
87632         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
87633
87634         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
87635         value type for setfct.
87636
87637 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
87638
87639         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
87640         __gettimeofday instead of gettimeofday.
87641
87642 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
87643
87644         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
87645
87646 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
87647
87648         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
87649
87650         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
87651         info.
87652
87653 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
87654
87655         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
87656         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
87657         strcpy-sse2-unaligned strncpy-sse2-unaligned
87658         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
87659         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
87660         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
87661         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
87662         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
87663         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
87664         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
87665         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
87666         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
87667         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
87668         (STRCPY): Support SSE2 and SSSE3 versions.
87669
87670 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
87671
87672         [BZ #12874]
87673         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
87674         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
87675         kernels which artificially limit size of requests.
87676
87677 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
87678
87679         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
87680         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
87681         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
87682         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
87683         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
87684         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
87685         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
87686         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
87687         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
87688         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
87689         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
87690         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
87691         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
87692         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
87693         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
87694         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
87695         Enable unaligned load optimization for Intel Core i3, i5 and i7
87696         processors.
87697         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
87698         Define.
87699         (index_Fast_Unaligned_Load): Define.
87700         (HAS_FAST_UNALIGNED_LOAD): Define.
87701
87702 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
87703
87704         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
87705
87706 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
87707
87708         [BZ #12907]
87709         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
87710         until it is clear that the information is realy needed.
87711         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
87712
87713 2011-06-22  Andreas Schwab  <schwab@redhat.com>
87714
87715         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
87716
87717 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
87718
87719         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
87720         /sys/devices/system/cpu/online if it is usable.
87721
87722         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
87723         reading the information from the /proc filesystem to once a second.
87724
87725 2011-06-21  Andreas Jaeger  <aj@suse.de>
87726
87727         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
87728         NULL after inclusion of kernel headers.
87729
87730 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
87731
87732         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
87733         calls to internal_setent.
87734
87735         [BZ #12885]
87736         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
87737         addresses using gethostbyname4_r ignore IPv4 addresses.
87738
87739         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
87740         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
87741
87742         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
87743
87744 2011-06-20  David S. Miller  <davem@davemloft.net>
87745
87746         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
87747         inclusions.
87748         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
87749
87750         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
87751         (elf_irel): Use it.
87752         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
87753         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
87754         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
87755         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
87756         * sysdeps/x86_64/dl-irel.h: Likewise.
87757
87758         * elf/dl-runtime.c: Use elf_ifunc_invoke.
87759         * elf/dl-sym.c: Likewise.
87760
87761 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
87762
87763         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
87764         need to dereference resplen2.
87765
87766 2011-06-14  Andreas Schwab  <schwab@redhat.com>
87767
87768         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
87769
87770 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
87771
87772         * Makeconfig: Define vardbdir and inst_vardbdir.
87773         * nss/Makefile: Add rules to install db-Makefile.
87774
87775         * nss/nss_db/db-XXX.c: Cleanup.
87776
87777         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
87778         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
87779         GLIBC_PRIVATE.
87780         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
87781         * nss/makedb.c: Implement -g option to specify that value strings
87782         are generated and should not be added to table iterated over for
87783         get*ent calls.
87784         * nss/nss_db/db-initgroups.c: New file.
87785
87786         * nss/getent.c: Add support for initgroups lookups through getgrouplist
87787         interface.
87788
87789         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
87790         (internal_getgrouplist): Adjust to name change.
87791         Update use_initgroups_entry if this is not the first call.
87792         * nss/databases.def: Add initgroups entry.
87793
87794         * nss/makedb.c (compute_tables): Check result of multiple hash table
87795         sizes to minimize maximum chain length.
87796
87797 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
87798
87799         * Versions.def: Add entry for libnss_db.
87800         * shlib-versions: Likewise.
87801         * nss/Makefile: Add rules to build libnss_db.
87802         * nss/Versions: Add libnss_db information.  Organize libnss_files
87803         entries better.
87804         * nss/db-Makefile: Add gshadow support.  Change rules for the new
87805         makedb progra.  Some minor improvements to generate smaller files.
87806         * nss/nss_db/nss_db.h: Move NSS database header data structures to
87807         here from...
87808         * nss/makedb.c: ...here.
87809         Improve database format to be smaller and require less memory at
87810         runtime.
87811         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
87812         db anymore.
87813         * nss/nss_db/db-netgrp.c: Likewise.
87814         * nss/nss_db/db-open.c: Likewise.
87815         * nss/nss_files/flies-XXX.x: Adjust comments.
87816         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
87817         * nss/nss_files/files-grp.c: Likewise.
87818         * nss/nss_files/files-hosts.c: Likewise.
87819         * nss/nss_files/files-network.c: Likewise.
87820         * nss/nss_files/files-proto.c: Likewise.
87821         * nss/nss_files/files-pwd.c: Likewise.
87822         * nss/nss_files/files-rpc.c: Likewise.
87823         * nss/nss_files/files-service.c: Likewise.
87824         * nss/nss_files/files-sgrp.c: Likewise.
87825         * nss/nss_files/files-spwd.c: Likewise.
87826         * nss/nss_db/db-alias.c: Removed.
87827         * nss/nss_db/dummy-db.h: Removed.
87828
87829 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
87830
87831         * nss/makedb.c: Rewritten to not use database library.
87832         * nss/Makefile: Update to build new makedb program.
87833
87834 2011-06-14  Andreas Jaeger  <aj@suse.de>
87835
87836         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
87837         memset declaration.
87838
87839 2011-06-10  Andreas Schwab  <schwab@redhat.com>
87840
87841         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
87842         tmpbuf.
87843
87844 2011-06-10  Roland McGrath  <roland@hack.frob.com>
87845
87846         * Makerules (shlib.lds): Fail if the linker script comes out empty.
87847         * elf/Makefile ($(objpfx)ld.so): Likewise.
87848
87849         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
87850         Don't list ld.so twice in dependencies.
87851
87852         * posix/bug-regex31.c: Include <stdlib.h>.
87853
87854         * nscd/hstcache.c (cache_addhst): Remove unused variable.
87855
87856         * nis/nss_compat/compat-spwd.c
87857         (getspent_next_nss_netgr): Remove unused variable.
87858         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
87859
87860         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
87861         nonmembers" output to use the right array.
87862
87863         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
87864
87865         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
87866
87867         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
87868         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
87869         * catgets/gencat.c (read_input_file): Likewise.
87870         * locale/programs/locarchive.c (enlarge_archive): Likewise.
87871
87872         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
87873         variable definition inside #if's controlling its use.
87874
87875         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
87876
87877         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
87878
87879         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
87880
87881         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
87882         unreachable code.
87883
87884         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
87885
87886         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
87887         * configure: Regenerated.
87888
87889         * Makerules: Revert last change.
87890         * elf/Makefile: Likewise.
87891
87892 2011-06-09  Roland McGrath  <roland@hack.frob.com>
87893
87894         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
87895         * elf/Makefile ($(objpfx)librtld.os): Likewise.
87896         (reloc-link): Likewise.
87897
87898 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
87899
87900         * elf/Makefile: Add rules to build pldd.
87901         * elf/pldd.c: New file.
87902         * elf/pldd-xx.c: New file.
87903
87904 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
87905
87906         * version.h: Update for 2.15 development version.
87907
87908 2011-06-07  David S. Miller  <davem@davemloft.net>
87909
87910         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
87911         ifuncs.
87912         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
87913         elf_machine_lazy_rel): Likewise.
87914         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
87915         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
87916         elf_machine_lazy_rel): Likewise.
87917         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
87918         dl_hwcap via passed in argument.
87919         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
87920         Likewise.
87921
87922 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
87923
87924         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
87925
87926 2011-06-06  Roland McGrath  <roland@hack.frob.com>
87927
87928         [BZ #12849]
87929         * manual/fdl-1.1.texi: New file, verbatim from:
87930         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
87931         * manual/lgpl-2.1.texi: New file, verbatim from:
87932         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
87933         * manual/Makefile (licenses): New variable, list those new file names.
87934         (texis): Use it.
87935         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
87936
87937         * manual/fdl.texi: File removed.
87938         * manual/lesser.texi: File removed.
87939         * manual/libc.texinfo (Copying, Documentation License):
87940         Use new @include file names, put @appendix directive before @include.
87941
87942 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
87943
87944         [BZ #12841]
87945         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
87946         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
87947         (mq_open): Add __NTH.
87948
87949 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
87950
87951         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
87952         Assume Intel Core i3/i5/i7 processor if AVX is available.
87953
87954 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
87955
87956         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
87957         typo.
87958
87959 2011-05-31  Andreas Schwab  <schwab@redhat.com>
87960
87961         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
87962         memory.  Use alloca_account.  Fix memory leak when retrying.
87963
87964 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
87965
87966         * version.h (RELEASE): Bump for 2.14 release.
87967         * include/features.h (__GLIBC_MINOR__): Bump to 14.
87968
87969         * config.make.in (RANLIB): Remove entry.
87970
87971 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
87972
87973         * po/Makefile (po-sed-cmd): Add ksh to extensions.
87974         (libc.pot): Work around missing support for .ksh extension in xgettext.
87975
87976         [BZ #12684]
87977         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
87978         if both request failed.
87979         (send_dg): In case of server errors clear resplen or *resplen2.
87980
87981         [BZ #12454]
87982         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
87983         when there are multiple maps.
87984         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
87985         (_dl_fini): Remove test here.
87986
87987         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
87988
87989 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
87990
87991         [BZ #12350]
87992         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
87993         bit from old_res_options.
87994         (gaih_inet): Likewise.
87995
87996         [BZ #11099]
87997         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
87998         as signed.
87999
88000         * resolv/res_init.c (res_setoptions): Make the code more compact.
88001
88002         [BZ #11558]
88003         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
88004         set RES_USEVC.
88005
88006         [BZ #11634]
88007         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
88008
88009         * malloc/malloc.h: Mark malloc hook variables as deprecated.
88010
88011         [BZ #11781]
88012         * malloc/malloc.h: Declare malloc hook variables as volatile.
88013
88014         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
88015         in last patch.
88016
88017         [BZ #11799]
88018         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
88019         raise in the comment.
88020         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
88021         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
88022         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
88023
88024 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
88025
88026         [BZ #12811]
88027         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
88028         grow the buffers more if it already has to be sufficient.
88029         (build_wcs_upper_buffer): Likewise.
88030         * posix/regexec.c (check_matching): Likewise.
88031         (clean_state_log_if_needed): Likewise.
88032         (extend_buffers): Don't enlarge buffers beyond size of the input
88033         buffer.
88034         Patches mostly by Emil Wojak <emil@wojak.eu>.
88035         * posix/bug-regex32.c: New file.
88036         * posix/Makefile (tests): Add bug-regex32.
88037
88038         * locale/findlocale.c (_nl_find_locale): Return right away if
88039         _nl_explode_name failed.
88040         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
88041
88042         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
88043
88044         * debug/xtrace.sh: Unify messages.
88045         * malloc/memusage.sh: Likewise.
88046
88047         [BZ #12813]
88048         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
88049         time symbol from vDSO.  Substitute with vsyscall if not available.
88050         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
88051         __vdso_time.
88052
88053         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
88054         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
88055         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
88056         Add sendmmsg and internal_sendmmsg.
88057         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
88058         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
88059         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
88060
88061         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
88062         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
88063         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
88064
88065 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
88066
88067         [BZ #12813]
88068         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
88069         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
88070         available.
88071         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
88072         __vdso_getcpu.
88073
88074         [BZ #12814]
88075         * iconvdata/Makefile (tests): Add bug-iconv9.
88076         * iconvdata/bug-iconv9.c: New file.
88077
88078 2011-05-27  Andreas Schwab  <schwab@redhat.com>
88079
88080         [BZ #12814]
88081         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
88082
88083 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
88084
88085         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
88086         (struct user_regs_struct): Change intcs field back to cs.
88087
88088 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
88089
88090         * po/ja.po: Update from translation team.
88091
88092 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
88093
88094         [BZ #12795]
88095         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
88096         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
88097
88098 2011-05-20  Andreas Schwab  <schwab@redhat.com>
88099
88100         * stdlib/longlong.h: Update from GCC.
88101
88102 2011-05-23  Andreas Schwab  <schwab@redhat.com>
88103
88104         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
88105         parameter name.
88106         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
88107         Add parameter name.
88108         (__sysconf): Pass it down.
88109
88110 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
88111
88112         [BZ #12671]
88113         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
88114         some situations.
88115         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
88116         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
88117         add in in __libc_use_alloca calls.  Adjust callers.
88118         (glob): Use malloc in some situations.
88119
88120         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
88121         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
88122         pltexit.
88123
88124 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
88125
88126         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
88127         and CLOCK_BOOTTIME_ALARM.
88128
88129         [BZ #12782]
88130         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
88131         is returned.
88132
88133         * string/_strerror.c (__strerror_r): Print negative errors as signed
88134         numbers.
88135
88136         [BZ #12777]
88137         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
88138         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
88139         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
88140
88141         * configure.in: Fix typo in redirection and correct removal of test
88142         files in two cases.
88143
88144         [BZ #12788]
88145         * locale/setlocale.c (new_composite_name): Fix test to check for
88146         identical name of all categories.
88147
88148         [BZ #12792]
88149         * libio/filedoalloc.c (local_isatty): New function.
88150         (_IO_file_doallocate): Use local_isatty.
88151         * stdio-common/perror.c (perror): In case a new stream is used
88152         forward the stream error.
88153         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
88154         error flag.
88155
88156 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
88157
88158         [BZ #11884]
88159         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
88160         alloca.
88161         * include/alloca.h (extend_alloca_account): Define.
88162
88163         [BZ #11857]
88164         * posix/regex.h: Fix comments with documentation of user-accessible
88165         fields after compilation and describe correct free'ing of pattern
88166         after re_compile_pattern.
88167         Patch by Reuben Thomas <rrt@sc3d.org>.
88168
88169 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
88170
88171         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
88172         and -mno-altivec to prevent the compiler from using Altivec and/or
88173         VSX instructions when the corresponding registers are not available.
88174
88175 2011-05-19  Andreas Schwab  <schwab@redhat.com>
88176
88177         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
88178
88179 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
88180
88181         * libio/freopen.c (freopen): Use __dup2, not dup2.
88182         * libio/freopen64.c (freopen64): Likewise.
88183
88184 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
88185
88186         [BZ #12775]
88187         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
88188         * math/Makefile (tests): Add test-powl.
88189         (CFLAGS-test-powl.c): Define.
88190         * math/test-powl.c: New file.
88191
88192 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
88193
88194         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
88195
88196 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
88197
88198         [BZ #11837]
88199         * iconvdata/gb18030.c: Update to GB18020-2005.
88200
88201 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
88202
88203         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
88204         RE_SYNTAX_POSIX_AWK): Update to match recent development.
88205         Patch by Aharon Robbins <arnold@skeeve.com>.
88206
88207         [BZ #11892]
88208         * stdlib/putenv.c (putenv): Don't always create copy of the variable
88209         on the stack.
88210
88211         [BZ #11895]
88212         * misc/pselect.c (__pselect): Handle timeout value errors hidden
88213         through underflows.
88214
88215         [BZ #12766]
88216         * misc/error.c (error_at_line): Ensure file_name and old_file_name
88217         point to strings before performing equality test for error_one_per_line
88218         mode.
88219
88220         [BZ #11697]
88221         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
88222
88223         [BZ #11820]
88224         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
88225         (struct user_fpregs_struct): Avoid __uint*_t types.
88226
88227         [BZ #6420]
88228         * malloc/mtrace.c (tr_where): Add additional parameter to point to
88229         symbol info.  Use it instead of calling _dl_addr locally.
88230         (lock_and_info): New function.
88231         (tr_freehook): Call lock_and_info and pass symbol info as additional
88232         parameter to tr_where.
88233         (tr_mallochook): Likewise.
88234         (tr_reallochook): Likewise.
88235         (tr_memalignhook): Likewise.
88236
88237         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
88238         used and couldn't be at all thread-safe.
88239
88240 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
88241
88242         * libio/freopen.c (freopen): Don't close old file descriptor
88243         before the new one is opened.  Instead dup the new file descriptor
88244         to the old one after the new stream is created.
88245         * libio/freopen64.c (freopen64): Likewise.
88246         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
88247         * libio/fileops.c (_IO_new_file_close_it): Handle new
88248         _IO_FLAGS2_NOCLOSE flag.
88249         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
88250         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
88251         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
88252         _IO_FLAGS2_NOCLOSE flag.
88253         * include/unistd.h: Add hidden_proto for dup3.
88254         Define __have_dup3.
88255         * io/dup3.c: Define hidden symbol.
88256         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
88257
88258         [BZ #7101]
88259         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
88260         when an incomplete long option is used.
88261         * posix/tst-getopt_long1.c: New file.
88262         * posix/Makefile (tests): Add tst-getopt_long1.
88263
88264         [BZ #10138]
88265         * scripts/config.guess: Update from autoconf-2.68.
88266         * scripts/config.sub: Likewise.
88267
88268         [BZ #10157]
88269         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
88270         tests into ...
88271         (has_cpuclock): ...this.  New function.
88272         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
88273         macro here based on has_cpuclock code.
88274
88275         [BZ #10149]
88276         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
88277         First byte (not low byte) is now always NUL.
88278         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
88279
88280         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
88281         Use non-cancelable interfaces.
88282
88283         [BZ #9809]
88284         * locale/iso-639.def: Add entry for Sorani.
88285
88286         [BZ #11901]
88287         * include/stdlib.h: Move include protection to the right place.
88288         Define abort_msg_s.  Declare __abort_msg with it.
88289         * stdlib/abort.c (__abort_msg): Adjust type.
88290         * assert/assert.c (__assert_fail_base): New function.  Majority
88291         of code from __assert_fail.  Allocate memory for __abort_msg with
88292         mmap.
88293         (__assert_fail): Now call __assert_fail_base.
88294         * assert/assert-perr.c: Remove bulk of implementation.  Use
88295         __assert_fail_base.
88296         * include/assert.hL Declare __assert_fail_base.
88297         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
88298         mmap.
88299         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
88300
88301 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
88302
88303         [BZ #11952]
88304         [BZ #12453]
88305         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
88306         until all modules are registered in the DTV.
88307         * elf/Makefile: Add rules to build and run tst-tls19.
88308         * elf/tst-tls19.c: New file.
88309         * elf/tst-tls19mod1.c: New file.
88310         * elf/tst-tls19mod2.c: New file.
88311         * elf/tst-tls19mod3.c: New file.
88312         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
88313
88314         [BZ #12083]
88315         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
88316         correctly.
88317
88318         [BZ #12601]
88319         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
88320         two-byte sequence errors.
88321         * iconvdata/Makefile (tests): Add bug-iconv8.
88322         * iconvdata/bug-iconv8.c: New file.
88323
88324         [BZ #12626]
88325         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
88326         buf2 definition.
88327
88328         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
88329
88330         [BZ #12432]
88331         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
88332         (dummy_getcfa): New function.
88333         (init): Get _Unwind_GetCFA address, use dummy if not found.
88334         (backtrace_helper): In recursion check, also check whether CFA changes.
88335         (__backtrace): Completely initialize arg.
88336
88337         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
88338         storing incomplete byte sequence in state object.  Avoid testing for
88339         guaranteed too small input if we know there is enough data available.
88340
88341 2011-05-11  Andreas Schwab  <schwab@redhat.com>
88342
88343         * Makeconfig (+link-pie): Indent.
88344         * Rules (binaries-pie): Define if $(have-fpie) and
88345         $(build-shared).
88346         (binaries-shared): Also filter out $(binaries-pie).
88347         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
88348         * nscd/Makefile (others-pie): Add nscd.
88349         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
88350         ($(objpfx)nscd): Remove command override.
88351         * login/Makefile (others-pie): Add pt_chown.
88352         ($(objpfx)pt_chown): Remove command override.
88353         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
88354         remove command overrides.
88355
88356 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
88357
88358         * libio/tst_putwc.c: Fix error messages.
88359
88360         [BZ #12724]
88361         * libio/fileops.c (_IO_new_file_close_it): Always flush when
88362         currently writing and seek to current position when not.
88363         * libio/Makefile (tests): Add bug-fclose1.
88364         * libio/bug-fclose1.c: New file.
88365
88366 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
88367
88368         [BZ #12511]
88369         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
88370         don't set DF_1_NODELETE here.
88371         (do_lookup_x): When entering new entry test for copy relocation
88372         and if necessary set DF_1_NODELETE flag.
88373         * elf/tst-unique4.cc: New file.
88374         * elf/tst-unique4.h: New file.
88375         * elf/tst-unique4lib.cc: New file.
88376         * elf/Makefile: Add rules to build and run tst-unique4.
88377         Patch by Piotr Bury <pbury@goahead.com>.
88378
88379 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
88380
88381         [BZ #12052]
88382         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
88383
88384         [BZ #12625]
88385         * misc/mntent_r.c (addmntent): Flush the stream after the output
88386
88387         [BZ #12393]
88388         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
88389         (is_trusted_path_normalize): Skip initial colon.  Append slash
88390         to empty buffer.  Duplicate is_trusted_path code but allow
88391         constructed patch to be prefix.
88392         (is_dst): Allow $ORIGIN followed by /.
88393         (_dl_dst_substitute): Correct clearing of check_for_trusted.
88394         Correct testing of result of is_trusted_path_normalize
88395         (decompose_rpath): Fix warning.
88396
88397 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
88398
88399         [BZ #11257]
88400         * grp/initgroups.c (internal_getgrouplist): When we found the service
88401         list through the initgroups entry in nsswitch.conf do not always
88402         continue on a successful lookup.  Don't always use the
88403         __nss_group_database value if it is set.
88404         * nss/nsswitch.conf (initgroups): Change action for successful db
88405         lookup to continue for compatibility.
88406
88407 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
88408
88409         [BZ #11532]
88410         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
88411         and CP774 modules.
88412         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
88413         and CP774 modules.
88414         * iconvdata/tst-tables.sh: Likewise.
88415         * iconvdata/cp770.c: New file.
88416         * iconvdata/cp771.c: New file.
88417         * iconvdata/cp772.c: New file.
88418         * iconvdata/cp773.c: New file.
88419         * iconvdata/cp774.c: New file.
88420         * iconvdata/testdata/CP770: New file.
88421         * iconvdata/testdata/CP770..UTF8: New file.
88422         * iconvdata/testdata/CP771: New file.
88423         * iconvdata/testdata/CP771..UTF8: New file.
88424         * iconvdata/testdata/CP772: New file.
88425         * iconvdata/testdata/CP772..UTF8: New file.
88426         * iconvdata/testdata/CP773: New file.
88427         * iconvdata/testdata/CP773..UTF8: New file.
88428         * iconvdata/testdata/CP774: New file.
88429         * iconvdata/testdata/CP774..UTF8: New file.
88430
88431         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
88432         END CHARMAP line.
88433         * iconvdata/gen-8bit-gap.sh: Likewise.
88434         * iconvdata/gen-8bit.sh: Likewise.
88435
88436         * locale/iso-639.def: Add ary entry.
88437
88438         [BZ #11258]
88439         * locale/C-translit.h.in: Add U20A1 transliteration.
88440
88441         [BZ #12178]
88442         * locale/iso-639.def: Add wae entry.
88443         Patch by Kevin Bortis <bortis@translate-wae.ch>.
88444
88445         [BZ #12545]
88446         * locale/programs/localedef.c (construct_output_path): Use ssize_t
88447         for n.
88448
88449         [BZ #12711]
88450         * locale/C-translit.h.in: Add entry for U20B9.
88451         Patch by pravin.d.s@gmail.com.
88452
88453 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
88454
88455         [BZ #12713]
88456         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
88457         ENAMETOOLONG use generic getcwd.
88458         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
88459         in rtld.  Use *stat64.
88460         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
88461         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
88462         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
88463         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
88464         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
88465         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
88466         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
88467         __fstatat64 macros.
88468         * include/dirent.h: Add libc_hidden_proto for rewinddir.
88469         * dirent/rewinddir.c: Add libc_hidden_def.
88470         * sysdeps/mach/hurd/rewinddir.c: Likewise.
88471         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
88472
88473         * include/dirent.h (__alloc_dir): Add flags parameter.
88474         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
88475         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
88476         __alloc_dir.
88477         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
88478         from fdopendir if O_CLOEXEC is already set.
88479
88480 2011-03-15  Alan Modra  <amodra@gmail.com>
88481
88482         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
88483         l_tls_firstbyte_offset non-zero.  Save padding offset in
88484         l_tls_firstbyte_offset for later use.
88485         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
88486         freeing static tls block.
88487
88488 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
88489
88490         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
88491         where #ifdef was intended.  The intent is to prevent ARG_MAX from
88492         being defined by the kernel headers.
88493
88494 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
88495
88496         [BZ #12734]
88497         * resolv/resolv.h: Define RES_NOTLDQUERY.
88498         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
88499         no-tld-query and set RES_NOTLDQUERY.
88500         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
88501         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
88502         modern BIND to search name as TLD unless forbidden.
88503
88504 2011-05-07  Petr Baudis  <pasky@suse.cz>
88505             Ulrich Drepper  <drepper@gmail.com>
88506
88507         [BZ #12393]
88508         * elf/dl-load.c (fillin_rpath): Move trusted path check...
88509         (is_trusted_path): ...to here.
88510         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
88511         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
88512         using is_trusted_path_normalize() in setuid scripts.
88513
88514 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
88515
88516         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
88517         __BEGIN/__END_DECLS.
88518
88519 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
88520
88521         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
88522         NSS_STATUS_NOTFOUND if no record was found.
88523
88524 2011-05-05  Andreas Schwab  <schwab@redhat.com>
88525
88526         * sunrpc/Makefile (headers): Add rpc/netdb.h.
88527         (headers-not-in-tirpc): Remove rpc/netdb.h
88528         * resolv/netdb.h: Revert last change.
88529
88530 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
88531
88532         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
88533         circular dependency between libgcc.a and libc.a.
88534
88535 2011-05-05  Andreas Schwab  <schwab@redhat.com>
88536
88537         * resolv/netdb.h: Don't include <rpc/netdb.h>.
88538         * nis/Makefile: Don't install rpcsvc/*.
88539         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
88540         instead of <rpc/types.h>.
88541         (MAXHOSTNAMELEN): Define.
88542
88543 2011-05-03  Andreas Schwab  <schwab@redhat.com>
88544
88545         * elf/ldconfig.c (add_dir): Don't crash on empty path.
88546
88547 2011-04-28  Maciej Babinski  <mbabinski@google.com>
88548
88549         [BZ #12714]
88550         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
88551         gethostbyname4_r when IPv6 results are possible.
88552
88553 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
88554
88555         [BZ #12723]
88556         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
88557         _PC_PIPE_BUF handling.
88558
88559 2011-04-30  Bruno Haible  <bruno@clisp.org>
88560
88561         [BZ #12717]
88562         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
88563         * resolv/netdb.h (getnameinfo): Change type of flags parameter
88564         to 'int'.
88565         * inet/getnameinfo.c (getnameinfo): Likewise.
88566
88567 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
88568
88569         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
88570         to groups setting in database lookup.
88571         * nss/nsswitch.conf: Add initgroups entry.
88572
88573 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
88574
88575         [BZ #12685]
88576         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
88577         mode string.
88578         Patch by Eric Blake <eblake@redhat.com>.
88579
88580 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
88581
88582         * sunrpc/Makefile (need-export-routines): Add svc_run.
88583         (routines): Remove svc_run.
88584         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
88585         * sunrpc/clnt_perr.c (clnt_perrno): Export.
88586         * sunrpc/svc_run.c (svc_run): Likewise.
88587         * sunrpc/svc_udp.c (svcudp_create): Likewise.
88588
88589 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
88590
88591         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
88592         problem in reallocation in last patch.
88593
88594 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
88595
88596         * sunrpc/Makefile: Move inclusion of Rules.
88597
88598 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
88599
88600         * nss/nss_files/files-initgroups.c: New file.
88601         * nss/Makefile (libnss_files-routines): Add files-initgroups.
88602         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
88603         _nss_files_initgroups_dyn.
88604
88605 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
88606
88607         * elf/elf.h (R_ARM_IRELATIVE): Define.
88608
88609 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
88610
88611         * po/ru.po: Update from translation team.
88612
88613 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
88614
88615         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
88616         dependencies.
88617
88618 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
88619
88620         [BZ #12653]
88621         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
88622         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
88623         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
88624         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
88625         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
88626
88627 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
88628
88629         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
88630         differing bytes.
88631         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
88632         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
88633         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
88634
88635 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
88636
88637         [BZ #12420]
88638         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
88639         storing it.
88640         * stdlib/bug-getcontext.c: New file.
88641         * stdlib/Makefile: Add rules to build and run bug-getcontext.
88642
88643 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
88644
88645         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
88646         instructions into .machine "z9-109".
88647         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
88648         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
88649
88650 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
88651
88652         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
88653         between environment variables and auxiliary vector.
88654
88655 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
88656
88657         * Makefile: Add rules to build linkobj/libc.so.
88658         * include/libc-symbols.h: Define libc_hidden_nolink.
88659         * include/rpc/auth.h: Mark functions which are to be hidden.
88660         * include/rpc/auth_des.h: Likewise.
88661         * include/rpc/auth_unix.h: Likewise.
88662         * include/rpc/clnt.h: Likewise.
88663         * include/rpc/des_crypt.h: Likewise.
88664         * include/rpc/key_prot.h: Likewise.
88665         * include/rpc/pmap_clnt.h: Likewise.
88666         * include/rpc/pmap_prot.h: Likewise.
88667         * include/rpc/pmap_rmt.h: Likewise.
88668         * include/rpc/rpc_msg.h: Likewise.
88669         * include/rpc/svc.h: Likewise.
88670         * include/rpc/svc_auth.h: Likewise.
88671         * include/rpc/xdr.h: Likewise.
88672         * nis/Makefile: Link all DSOs against linkobj/libc.so.
88673         * nss/Makefile: Likewise.
88674         * sunrpc/Makefile: Don't install headers.  Build library with normal
88675         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
88676         * sunrpc/auth_des.c: Hide exported symbols by default, export some
88677         for the compat linking library.  Remove use of INTDEF/INTUSE.
88678         * sunrpc/auth_none.c: Likewise.
88679         * sunrpc/auth_unix.c: Likewise.
88680         * sunrpc/authdes_prot.c: Likewise.
88681         * sunrpc/authuxprot.c: Likewise.
88682         * sunrpc/clnt_gen.c: Likewise.
88683         * sunrpc/clnt_perr.c: Likewise.
88684         * sunrpc/clnt_raw.c: Likewise.
88685         * sunrpc/clnt_simp.c: Likewise.
88686         * sunrpc/clnt_tcp.c: Likewise.
88687         * sunrpc/clnt_udp.c: Likewise.
88688         * sunrpc/clnt_unix.c: Likewise.
88689         * sunrpc/des_crypt.c: Likewise.
88690         * sunrpc/des_soft.c: Likewise.
88691         * sunrpc/get_myaddr.c: Likewise.
88692         * sunrpc/key_call.c: Likewise.
88693         * sunrpc/key_prot.c: Likewise.
88694         * sunrpc/netname.c: Likewise.
88695         * sunrpc/pm_getmaps.c: Likewise.
88696         * sunrpc/pm_getport.c: Likewise.
88697         * sunrpc/pmap_clnt.c: Likewise.
88698         * sunrpc/pmap_prot.c: Likewise.
88699         * sunrpc/pmap_prot2.c: Likewise.
88700         * sunrpc/pmap_rmt.c: Likewise.
88701         * sunrpc/publickey.c: Likewise.
88702         * sunrpc/rpc_cmsg.c: Likewise.
88703         * sunrpc/rpc_common.c: Likewise.
88704         * sunrpc/rpc_dtable.c: Likewise.
88705         * sunrpc/rpc_prot.c: Likewise.
88706         * sunrpc/rpc_thread.c: Likewise.
88707         * sunrpc/rtime.c: Likewise.
88708         * sunrpc/svc.c: Likewise.
88709         * sunrpc/svc_auth.c: Likewise.
88710         * sunrpc/svc_authux.c: Likewise.
88711         * sunrpc/svc_raw.c: Likewise.
88712         * sunrpc/svc_run.c: Likewise.
88713         * sunrpc/svc_simple.c: Likewise.
88714         * sunrpc/svc_tcp.c: Likewise.
88715         * sunrpc/svc_udp.c: Likewise.
88716         * sunrpc/svc_unix.c: Likewise.
88717         * sunrpc/svcauth_des.c: Likewise.
88718         * sunrpc/xcrypt.c: Likewise.
88719         * sunrpc/xdr.c: Likewise.
88720         * sunrpc/xdr_array.c: Likewise.
88721         * sunrpc/xdr_float.c: Likewise.
88722         * sunrpc/xdr_intXX_t.c: Likewise.
88723         * sunrpc/xdr_mem.c: Likewise.
88724         * sunrpc/xdr_rec.c: Likewise.
88725         * sunrpc/xdr_ref.c: Likewise.
88726         * sunrpc/xdr_sizeof.c: Likewise.
88727         * sunrpc/xdr_stdio.c: Likewise.
88728
88729 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
88730
88731         [BZ #12650]
88732         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
88733         * sysdeps/ia64/dl-tls.h: Likewise.
88734         * sysdeps/powerpc/dl-tls.h: Likewise.
88735         * sysdeps/s390/dl-tls.h: Likewise.
88736         * sysdeps/sh/dl-tls.h: Likewise.
88737         * sysdeps/sparc/dl-tls.h: Likewise.
88738         * sysdeps/x86_64/dl-tls.h: Likewise.
88739         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
88740
88741 2011-03-14  Andreas Schwab  <schwab@redhat.com>
88742
88743         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
88744         rpath element also skip the following colon.
88745         (expand_dynamic_string_token): Add is_path parameter and pass
88746         down to DL_DST_REQUIRED and _dl_dst_substitute.
88747         (decompose_rpath): Call expand_dynamic_string_token with
88748         non-zero is_path.  Ignore empty rpaths.
88749         (_dl_map_object_from_fd): Call expand_dynamic_string_token
88750         with zero is_path.
88751
88752 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
88753
88754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
88755         Make cancelable.
88756
88757 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
88758
88759         [BZ #12655]
88760         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
88761         Patch by Filipe David Manana <fdmanana@apache.org>.
88762
88763 2011-04-07  Andreas Schwab  <schwab@redhat.com>
88764
88765         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
88766         Maintain aligned stack.
88767         (CHECK_RSP): Remove unused macro.
88768
88769 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
88770
88771         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
88772         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
88773
88774 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
88775
88776         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
88777
88778         * include/features.h: Mention __USE_XOPEN2K8 in comment.
88779
88780 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
88781
88782         [BZ #12518]
88783         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
88784         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
88785         * sysdeps/x86_64/memmove.c: New file.
88786         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
88787         (memcpy): Renamed to ...
88788         (__new_memcpy): This.
88789         (memcpy): Provide GLIBC_2_14 memcpy.
88790         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
88791         (memcpy): Provide GLIBC_2_2_5 memcpy.
88792
88793 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
88794
88795         [BZ #12631]
88796         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
88797
88798 2011-03-30  Andreas Schwab  <schwab@redhat.com>
88799
88800         * misc/syncfs.c: New file.
88801         * misc/Makefile (routines): Add syncfs.
88802         * posix/unistd.h: Declare syncfs.
88803         * sysdeps/unix/syscalls.list: Add syncfs.
88804
88805 2011-04-01  Andreas Schwab  <schwab@redhat.com>
88806
88807         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
88808         open_by_handle_at.
88809         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
88810         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
88811         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
88812         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
88813         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
88814         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
88815         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
88816
88817 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
88818
88819         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
88820         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
88821         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
88822         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
88823         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
88824         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
88825         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
88826
88827         * io/Makefile: Compile fallocate.c, fallocate64.c, and
88828         sync_file_range.c with -fexceptions.
88829         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
88830         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
88831         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
88832         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
88833         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
88834         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
88835         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
88836         sync_file_range as cancellation point
88837         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
88838         now a wrapper around __call_sync_file_range with cancellation handling.
88839         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
88840         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
88841         function name to __call_sync_file_range.
88842         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
88843         Add call_sync_file_range.
88844
88845 2011-04-01  Andreas Schwab  <schwab@redhat.com>
88846
88847         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
88848         bits/timex.h.
88849
88850 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
88851
88852         * iconv/iconv.h: Fix typo in comment.
88853         * io/fcntl.h: Likewise.
88854         * libio/stdio.h: Likewise.
88855         * posix/spawn.h: Likewise.
88856         * posix/unistd.h: Likewise.
88857         * stdlib/stdlib.h: Likewise.
88858         * time/time.h: Likewise.
88859         * wcsmbs/wchar.h: Likewise.
88860
88861         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
88862         open_by_handle): Add.
88863         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
88864         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
88865         Augment a few comments.
88866         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
88867         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
88868         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
88869         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
88870         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
88871         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
88872         open_by_handle.
88873
88874         * io/fcntl.h (AT_EMPTY_PATH): Define.
88875
88876 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
88877
88878         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
88879         * sysdeps/unix/sysv/linux/bits/time.h: New file.
88880         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
88881         to...
88882         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
88883         * Versions.def: Add GLIBC_2.14.
88884         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
88885         Export.
88886
88887 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
88888
88889         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
88890         round counter.
88891         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
88892
88893 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
88894
88895         [BZ #12597]
88896         * string/test-strncmp.c (do_page_test): New function.
88897         (check2): Likewise.
88898         (test_main): Call check2.
88899         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
88900
88901 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
88902
88903         [BZ #12587]
88904         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
88905         Handle cache information in CPU leaf 4.
88906         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
88907
88908 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
88909
88910         [BZ #12583]
88911         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
88912         character representation.
88913         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
88914
88915 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
88916
88917         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
88918         END(__isnan) to END(__isnanf) to match function entry point/label
88919         EALIGN(__isnanf,...).
88920
88921 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
88922
88923         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
88924
88925 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
88926
88927         [BZ #12510]
88928         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
88929         copy from the symbol referenced in the relocation to initialize the
88930         used variable.
88931         Patch by Piotr Bury <pbury@goahead.com>.
88932         * elf/Makefile: Add rules to build and tst-unique3.
88933         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
88934         * elf/tst-unique3.cc: New file.
88935         * elf/tst-unique3.h: New file.
88936         * elf/tst-unique3lib.cc: New file.
88937         * elf/tst-unique3lib2.cc: New file.
88938
88939         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
88940
88941 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
88942
88943         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
88944         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
88945         to _start.
88946
88947 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
88948
88949         * elf/dl-load.c (_dl_map_object): If we are looking for the first
88950         to-be-loaded object along a path to loader is ld.so.
88951
88952 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
88953             Ulrich Drepper  <drepper@gmail.com>
88954
88955         * sysdeps/x86_64/memset.S: After aligning destination, code
88956         branches to different locations depending on the value of
88957         misalignment, when multiarch is enabled. Fix this.
88958
88959 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
88960
88961         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
88962         Set _x86_64_preferred_memory_instruction for AMD processsors.
88963         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
88964         Set bit_Prefer_SSE_for_memop for AMD processors.
88965
88966 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
88967
88968         * libio/fmemopen.c (fmemopen): Optimize a bit.
88969
88970 2011-03-03  Andreas Schwab  <schwab@redhat.com>
88971
88972         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
88973
88974 2011-03-03  Roland McGrath  <roland@redhat.com>
88975
88976         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
88977
88978 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
88979
88980         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
88981         __bzero_ultra1 instead of __memset_ultra1.
88982
88983 2011-02-23  Andreas Schwab  <schwab@redhat.com>
88984             Ulrich Drepper  <drepper@gmail.com>
88985
88986         [BZ #12509]
88987         * include/link.h (struct link_map): Add l_orig_initfini.
88988         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
88989         returning unsuccessfully.
88990         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
88991         close of a file loaded at startup, restore the original l_initfini
88992         list.
88993         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
88994         list, store the pointer.
88995         * elf/Makefile ($(objpfx)noload-mem): New rule.
88996         (noload-ENV): Define.
88997         (tests): Add $(objpfx)noload-mem.
88998         * elf/noload.c: Include <memcheck.h>.
88999         (main): Call mtrace.  Close all opened handles.
89000
89001 2011-02-17  Andreas Schwab  <schwab@redhat.com>
89002
89003         [BZ #12454]
89004         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
89005         dependencies are missing.
89006
89007 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
89008
89009         Fix __if_freereq crash: Unlike the generic version which uses free,
89010         Hurd needs munmap.
89011         * sysdeps/mach/hurd/ifreq.h: New file.
89012
89013 2011-01-27  Petr Baudis  <pasky@suse.cz>
89014             Ulrich Drepper  <drepper@gmail.com>
89015
89016         [BZ 12445]#
89017         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
89018         to extend_alloca().
89019         * stdio-common/bug23.c: New file.
89020         * stdio-common/Makefile (tests): Add bug23.
89021
89022 2010-09-28  Andreas Schwab  <schwab@redhat.com>
89023             Ulrich Drepper  <drepper@gmail.com>
89024
89025         [BZ #12489]
89026         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
89027         before performing relro protection.  At old place add assertion
89028         to make sure nothing changed.
89029
89030 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
89031             Glauber de Oliveira Costa  <glommer@gmail.com>
89032
89033         * elf/elf.h: Add new ARM TLS relocs.
89034
89035 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
89036
89037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
89038         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
89039         cast from r3.
89040         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
89041         'tests' variable.
89042         * sysdeps/wordsize-64/tst-writev.c: New file.
89043
89044 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
89045
89046         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
89047         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
89048         insns in _dl_start to prevent a TOC reference before relocs are
89049         resolved.
89050
89051 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
89052
89053         [BZ #12469]
89054         * Makeconfig: Remove RANLIB definition.
89055         * Makerules: Don't use RANLIB.
89056         * aclocal.m4: Remove ranlib test.
89057         * configure.in: No need to check for ranlib.
89058         * elf/rtld-Rules: Don't use RANLIB.
89059
89060 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
89061
89062         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
89063         protection macro.
89064         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
89065         inclusion protection macro.
89066
89067         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
89068         SIGRTMIN and SIGRTMAX and print information in that case only when
89069         SIGRTMIN is defined.
89070
89071 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
89072
89073         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
89074         arginfo fn returning -1.
89075
89076         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
89077         and thousands string is zero terminated.
89078
89079 2011-02-03  Andreas Schwab  <schwab@redhat.com>
89080
89081         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
89082         sysdeps/unix/sysv/linux/bits/socket.h.
89083
89084 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
89085
89086         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
89087         (__CPU_COUNT): Remove old macros.
89088         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
89089         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
89090         (__CPU_ALLOC, __CPU_FREE): Add macros.
89091         (__sched_cpualloc, __sched_cpufree): Add declarations.
89092
89093 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
89094
89095         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
89096         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
89097         * nscd/aicache.c (addhstaiX): Return timeout of added value.
89098         (readdhstai): Return value of addhstaiX call.
89099         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
89100         (addgrbyX): Return value returned by cache_addgr.
89101         (readdgrbyname): Return value returned by addgrbyX.
89102         (readdgrbygid): Likewise.
89103         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
89104         (addpwbyX): Return value returned by cache_addpw.
89105         (readdpwbyname): Return value returned by addhstbyX.
89106         (readdpwbyuid): Likewise.
89107         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
89108         (addservbyX): Return value returned by cache_addserv.
89109         (readdservbyname): Return value returned by addservbyX:
89110         (readdservbyport): Likewise.
89111         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
89112         (addhstbyX): Return value returned by cache_addhst.
89113         (readdhstbyname): Return value returned by addhstbyX.
89114         (readdhstbyaddr): Likewise.
89115         (readdhstbynamev6): Likewise.
89116         (readdhstbyaddrv6): Likewise.
89117         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
89118         (readdinitgroups): Return value returned by addinitgroupsX.
89119         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
89120         (prune_cache): Keep track of timeout value of re-added entries.
89121         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
89122         * nscd/nscd.h: Adjust prototypes of readd* functions.
89123
89124 2011-02-04  Roland McGrath  <roland@redhat.com>
89125
89126         * nis/nis_server.c (nis_servstate): Use the right name for 0.
89127         (nis_stats): Likewise.
89128         * nis/nis_modify.c (nis_modify): Likewise.
89129         * nis/nis_remove.c (nis_remove): Likewise.
89130         * nis/nis_add.c (nis_add): Likewise.
89131
89132         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
89133
89134         * posix/fnmatch_loop.c: Add some consts.
89135
89136         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
89137
89138 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
89139
89140         [BZ #12460]
89141         * config.make.in (config-cflags-novzeroupper): Define.
89142         * configure.in: Substitute libc_cv_cc_novzeroupper.
89143         * elf/Makefile (AVX-CFLAGS): Define.
89144         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
89145         (CFLAGS-tst-auditmod4a.c): Likewise.
89146         (CFLAGS-tst-auditmod4b.c): Likewise.
89147         (CFLAGS-tst-auditmod6b.c): Likewise.
89148         (CFLAGS-tst-auditmod6c.c): Likewise.
89149         (CFLAGS-tst-auditmod7b.c): Likewise.
89150         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
89151
89152 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
89153
89154         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
89155         function to the callback.
89156         Patch partly by Jiri Olsa <jolsa@redhat.com>.
89157
89158 2011-02-02  Andreas Schwab  <schwab@redhat.com>
89159
89160         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
89161         of errno.
89162
89163 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
89164
89165         [BZ #11724]
89166         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
89167         of constructors.
89168         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
89169         of destructors.
89170         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
89171
89172         [BZ #11724]
89173         * elf/Makefile: Add rules to build and run new test.
89174         * elf/tst-initorder.c: New file.
89175         * elf/tst-initorder.exp: New file.
89176         * elf/tst-initordera1.c: New file.
89177         * elf/tst-initordera2.c: New file.
89178         * elf/tst-initordera3.c: New file.
89179         * elf/tst-initordera4.c: New file.
89180         * elf/tst-initorderb1.c: New file.
89181         * elf/tst-initorderb2.c: New file.
89182         * elf/tst-order-a1.c: New file.
89183         * elf/tst-order-a2.c: New file.
89184         * elf/tst-order-a3.c: New file.
89185         * elf/tst-order-a4.c: New file.
89186         * elf/tst-order-b1.c: New file.
89187         * elf/tst-order-b2.c: New file.
89188         * elf/tst-order-main.c: New file.
89189         New test case by George Gensure <werkt0@gmail.com>.
89190
89191 2010-10-01  Andreas Schwab  <schwab@redhat.com>
89192
89193         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
89194         decoding ACE if AI_CANONIDN.
89195
89196 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
89197
89198         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
89199
89200 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
89201
89202         * version.h (RELEASE): Bump for 2.13 release.
89203         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
89204
89205         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
89206
89207         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
89208         MADV_NOHUGEPAGE.
89209         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
89210         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
89211         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
89212         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
89213         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
89214         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
89215
89216         * posix/getconf.c: Update copyright year.
89217         * catgets/gencat.c: Likewise.
89218         * csu/version.c: Likewise.
89219         * debug/catchsegv.sh: Likewise.
89220         * debug/xtrace.sh: Likewise.
89221         * elf/ldconfig.c: Likewise.
89222         * elf/ldd.bash.in: Likewise.
89223         * elf/sprof.c (print_version): Likewise.
89224         * iconv/iconv_prog.c: Likewise.
89225         * iconv/iconvconfig.c: Likewise.
89226         * locale/programs/locale.c: Likewise.
89227         * locale/programs/localedef.c: Likewise.
89228         * malloc/memusage.sh: Likewise.
89229         * malloc/mtrace.pl: Likewise.
89230         * nscd/nscd.c (print_version): Likewise.
89231         * nss/getent.c: Likewise.
89232
89233         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
89234         PF_CAIF, and PF_ALG.
89235         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
89236
89237 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
89238
89239         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
89240         (modules-names): Use them.
89241         (ifunc-test-modules, ifunc-pie-tests): Define.
89242         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
89243         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
89244         (test-extras): Likewise.
89245         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
89246         $(compile-command.c).
89247         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
89248         (all-built-dso): Define.
89249         (check-textrel.out, check-execstack.out): Depend on it.
89250
89251         * configure.in: Don't override --enable-multi-arch.
89252
89253 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
89254
89255         [BZ #6812]
89256         * nscd/hstcache.c (tryagain): Define.
89257         (cache_addhst): Return tryagain not notfound for temporary errors.
89258         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
89259         failed.
89260
89261 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
89262
89263         [BZ #10563]
89264         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
89265         to make the syscall.
89266         * sysdeps/unix/sysv/linux/setgroups.c: New file.
89267
89268         [BZ #12378]
89269         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
89270         and fall back to matching as normal character if the string ends before
89271         the matching ']' is found.  This is what POSIX requires.
89272         * posix/testfnm.c: Adjust test result.
89273         * posix/globtest.sh: Adjust test result.  Add new test.
89274         * posix/tst-fnmatch.input: Likewise.
89275         * posix/tst-fnmatch2.c: Add new test.
89276
89277 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
89278
89279         * elf/Makefile (check-execstack): Revert last change.  Depend on
89280         check-execstack.h.
89281         (check-execstack.h): New target.
89282         (generated): Add check-execstack.h.
89283         * elf/check-execstack.c: Include "check-execstack.h".
89284         (main): Revert last change.
89285         (handle_file): Return zero if GNU_STACK is absent and
89286         DEFAULT_STACK_PERMS doesn't include PF_X.
89287
89288 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
89289
89290         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
89291         in child fails because the descriptor is already closed.
89292         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
89293         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
89294         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
89295
89296         [BZ #12397]
89297         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
89298         syscall.
89299
89300         [BZ #10484]
89301         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
89302         temporary buffer used to handle multi lookups locally.
89303         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
89304
89305 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
89306
89307         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
89308         loader is ld.so.
89309
89310 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
89311
89312         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
89313         alignment for SSE2.
89314
89315 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
89316
89317         [BZ #12394]
89318         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
89319         characters.  When rounding increased number of integer digits recompute
89320         number of groups.
89321         * stdio-common/tst-grouping.c: New file.
89322         * stdio-common/Makefile: Add rules to build and run tst-grouping.
89323
89324 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
89325
89326         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
89327         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
89328
89329         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
89330         void.
89331         * bits/select.h: Likewise.
89332
89333 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
89334
89335         * po/ja.po: Update from translation team.
89336
89337 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
89338
89339         [BZ #11155]
89340         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
89341         implementation just like for lxstat, fxstatat, et al.
89342
89343 2010-12-27  Jim Meyering  <meyering@redhat.com>
89344
89345         [BZ #12348]
89346         * posix/regexec.c (build_trtable): Return failure indication upon
89347         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
89348
89349 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
89350
89351         [BZ #12201]
89352         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
89353         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
89354         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
89355         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
89356
89357         [BZ #12207]
89358         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
89359
89360         [BZ #12204]
89361         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
89362         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
89363
89364 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
89365
89366         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
89367         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
89368         script has SORT_BY_INIT_PRIORITY.
89369         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
89370         NO_CTORS_DTORS_SECTIONS is defined.
89371         * elf/soinit.c: Likewise.
89372         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
89373         NO_CTORS_DTORS_SECTIONS is defined.
89374         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
89375         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
89376         * sysdeps/sh/init-first.c: Likewise.
89377         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
89378
89379 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
89380
89381         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
89382         always use the slow path.
89383
89384 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
89385
89386         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
89387         similar rule which adds the sysdep directories to the header search in
89388         order to pick up the correct platform stackinfo.h.
89389         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
89390         perform test if it is, otherwise return successfully without testing.
89391         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
89392         DEFAULT_STACK_PERMS define in stackinfo.h.
89393         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
89394         defined in stackinfo.h.
89395         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
89396         DEFAULT_STACK_PERMS defined in stackinfo.h.
89397         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
89398         * sysdeps/ia64/stackinfo.h: Likewise.
89399         * sysdeps/s390/stackinfo.h: Likewise.
89400         * sysdeps/sh/stackinfo.h: Likewise.
89401         * sysdeps/sparc/stackinfo.h: Likewise.
89402         * sysdeps/x86_64/stackinfo.h: Likewise.
89403         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
89404         PF_X for powerpc64.  Retain PF_X for powerpc32.
89405
89406 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
89407
89408         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
89409         accurately.
89410         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
89411         GETDENTS_64BIT_ALIGNED.
89412
89413 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
89414
89415         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
89416
89417 2010-12-10  Andreas Schwab  <schwab@redhat.com>
89418
89419         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
89420         _GNU_SOURCE.
89421
89422         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
89423         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
89424         Remove __restrict.
89425         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
89426         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
89427
89428 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
89429
89430         [BZ #11655]
89431         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
89432         are initialized.
89433
89434 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
89435
89436         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
89437
89438 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
89439
89440         * po/it.po: Update from translation team.
89441
89442 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
89443
89444         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
89445         unused codes.
89446
89447 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
89448
89449         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
89450
89451 2010-11-24  Andreas Schwab  <schwab@redhat.com>
89452
89453         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
89454         specially.
89455         (gaih_getanswer_slice): Likewise.
89456
89457 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
89458
89459         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
89460
89461 2010-05-31  Petr Baudis  <pasky@suse.cz>
89462
89463         [BZ #11149]
89464         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
89465         silently even in the chroot mode.
89466
89467 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
89468
89469         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
89470         last patch a bit.  Pretty printing
89471
89472 2010-05-31  Petr Baudis <pasky@suse.cz>
89473
89474         [BZ #10085]
89475         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
89476         initialization of skip_initgroups_dyn.
89477
89478 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
89479
89480         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
89481         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
89482
89483 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
89484
89485         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
89486
89487 2010-11-11  Andreas Schwab  <schwab@redhat.com>
89488
89489         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
89490         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
89491         (tst-fnmatch-ENV): Set MALLOC_TRACE.
89492         ($(objpfx)tst-fnmatch-mem): New rule.
89493         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
89494         * posix/tst-fnmatch.c (main): Call mtrace.
89495
89496 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
89497
89498         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
89499         Support Intel processor model 6 and model 0x2c.
89500
89501 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
89502
89503         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
89504           signed comparison.
89505
89506 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
89507
89508         [BZ #12205]
89509         * string/test-strncasecmp.c (check_result): New function.
89510         (do_one_test): Use it.
89511         (check1): New function.
89512         (test_main): Use it.
89513         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
89514         Support strcasecmp and strncasecmp.
89515
89516 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
89517
89518         [BZ #12194]
89519         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
89520         * sysdeps/x86_64/bits/byteswap.h: Likewise.
89521
89522 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
89523
89524         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
89525         IFUNC support.
89526         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
89527         memset-x86-64.
89528         * sysdeps/x86_64/multiarch/bzero.S: New file.
89529         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
89530         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
89531         * sysdeps/x86_64/multiarch/memset.S: New file.
89532         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
89533         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
89534         Set bit_Prefer_SSE_for_memop for Intel processors.
89535         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
89536         Define.
89537         (index_Prefer_SSE_for_memop): Define.
89538         (HAS_PREFER_SSE_FOR_MEMOP): Define.
89539
89540 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
89541
89542         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
89543         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
89544
89545 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
89546
89547         [BZ #12191]
89548         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
89549         (__x86_64_raw_data_cache_size_half): Likewise.
89550         (__x86_64_raw_shared_cache_size): Likewise.
89551         (__x86_64_raw_shared_cache_size_half): Likewise.
89552
89553         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
89554         (__x86_64_raw_data_cache_size_half): Likewise.
89555         (__x86_64_raw_shared_cache_size): Likewise.
89556         (__x86_64_raw_shared_cache_size_half): Likewise.
89557         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
89558         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
89559         and __x86_64_raw_shared_cache_size_half.  Round
89560         __x86_64_data_cache_size_half, __x86_64_data_cache_size
89561         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
89562         to multiple of 256 bytes.
89563
89564 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
89565
89566         [BZ #12167]
89567         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
89568         of inacessible symlinks.  Verify result of symlink before returning it.
89569         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
89570         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
89571
89572 2010-10-28  Erich Ritz  <erichritz@gmail.com>
89573
89574         * math/math.h (isinf): Fix typo in comment.
89575
89576 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
89577
89578         * po/da.po: Update from translation team.
89579
89580 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
89581
89582         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
89583         is added to the list.
89584
89585 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
89586             Ulrich Drepper  <drepper@gmail.com>
89587
89588         * elf/dl-object.c (_dl_new_object): Don't append the new object to
89589         the global list here.  Move code to...
89590         (_dl_add_to_namespace_list): ...here.  New function.
89591         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
89592         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
89593         * elf/dl-load.c (lose): Don't remove the element from the list.
89594         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
89595         (_dl_map_object): Likewise.
89596
89597 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
89598
89599         [BZ #12159]
89600         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
89601         into all bytes of SSE register.
89602         Patch by Richard Li <richardpku@gmail.com>.
89603
89604 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
89605
89606         [BZ #12140]
89607         * malloc/malloc.c (_int_free): Fill correct number of bytes when
89608         perturbing.
89609
89610 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
89611
89612         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
89613         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
89614         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
89615         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
89616         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
89617         submachine.
89618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
89619
89620 2010-10-22  Andreas Schwab  <schwab@redhat.com>
89621
89622         * include/dlfcn.h (__RTLD_SECURE): Define.
89623         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
89624         mode & __RTLD_SECURE instead.
89625         (open_path): Rename preloaded parameter to secure.
89626         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
89627         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
89628         * elf/dl-deps.c (openaux): Likewise.
89629         * elf/rtld.c (struct map_args): Remove is_preloaded.
89630         (map_doit): Don't use it.
89631         (dl_main): Likewise.
89632         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
89633         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
89634
89635 2010-09-09  Andreas Schwab  <schwab@redhat.com>
89636
89637         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
89638         (sysd-rules-targets): Remove duplicates.
89639         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
89640         rtld-%.$o dependency.
89641
89642 2010-10-18  Andreas Schwab  <schwab@redhat.com>
89643
89644         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
89645         _dl_map_object do it.
89646
89647 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
89648
89649         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
89650         fast fma builtins, define the macros in the C99 standard.
89651         (FP_FAST_FMAF): Likewise.
89652         (FP_FAST_FMAL): Likewise.
89653         * sysdeps/x86_64/bits/mathdef.h: Likewise.
89654
89655         * bits/mathdef.h: Update copyright year.
89656         * sysdeps/powerpc/bits/mathdef.h: Likewise.
89657
89658 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
89659
89660         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
89661         builtins, define the macros in the C99 standard.
89662         (FP_FAST_FMAF): Likewise.
89663         (FP_FAST_FMAL): Likewise.
89664         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
89665         multiply/add.
89666         (FP_FAST_FMAF): Likewise.
89667
89668 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
89669
89670         [BZ #3268]
89671         * math/libm-test.inc (fma_test): Some new testcases.
89672         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
89673         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
89674         y and infinite z.  Do multiplication by C already in long double.
89675         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
89676         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
89677         y and infinite z.  Do bitwise or of inexact bit into u.d.
89678         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
89679         * sysdeps/i386/fpu/s_fmaf.S: Removed.
89680         * sysdeps/i386/fpu/s_fma.S: Removed.
89681         * sysdeps/i386/fpu/s_fmal.S: Removed.
89682
89683 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
89684
89685         [BZ #3268]
89686         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
89687         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
89688         computation is not scheduled after fetestexcept.  Fix value
89689         of minimum denormal long double.
89690
89691 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
89692
89693         [BZ #3268]
89694         * math/libm-test.inc (fma_test): Add some more tests.
89695         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
89696         correctly.
89697
89698 2010-10-15  Andreas Schwab  <schwab@redhat.com>
89699
89700         * scripts/data/localplt-s390-linux-gnu.data: New file.
89701         * scripts/data/localplt-s390x-linux-gnu.data: New file.
89702
89703 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
89704
89705         [BZ #3268]
89706         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
89707         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
89708         instead of dbl-64.
89709         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
89710         inlines.
89711         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
89712         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
89713         if one of x and y is very large and the other is subnormal.
89714         * sysdeps/s390/fpu/s_fmaf.c: New file.
89715         * sysdeps/s390/fpu/s_fma.c: New file.
89716         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
89717         * sysdeps/powerpc/fpu/s_fma.S: New file.
89718         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
89719         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
89720         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
89721
89722 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
89723
89724         [BZ #3268]
89725         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
89726         fma tests.
89727         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
89728         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
89729         * sysdeps/i386/i686/multiarch/s_fma.c: Include
89730         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
89731         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
89732         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
89733         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
89734
89735 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
89736
89737         [BZ #12078]
89738         * posix/regcomp.c (parse_branch): One more memory leak plugged.
89739         * posix/bug-regex31.input: Add test case.
89740
89741 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
89742
89743         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
89744         * posix/bug-regex31.input: New file.
89745
89746         [BZ #12078]
89747         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
89748         (parse_sub_exp): Fix last change, use postorder.
89749
89750         * posix/bug-regex31.c: New file.
89751         * posix/Makefile: Add rules to build and run bug-regex31.
89752
89753         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
89754
89755         [BZ #12078]
89756         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
89757
89758         [BZ #12108]
89759         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
89760         to have entries in sys_siglist.
89761
89762         [BZ #12093]
89763         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
89764         be NULL.
89765
89766 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
89767
89768         [BZ #3268]
89769         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
89770         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
89771         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
89772         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
89773         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
89774         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
89775         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
89776         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
89777         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
89778         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
89779         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
89780         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
89781         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
89782         * math/ftestexcept.c (fetestexcept): Likewise.
89783         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
89784         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
89785         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
89786         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
89787         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
89788         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
89789         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
89790
89791 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
89792
89793         [BZ #12107]
89794         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
89795         newline.
89796
89797 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
89798
89799         * string/bug-strstr1.c: New file.
89800         * string/Makefile: Add rules to build and run bug-strstr1.
89801
89802 2010-10-05  Eric Blake  <eblake@redhat.com>
89803
89804         [BZ #12092]
89805         * string/str-two-way.h (two_way_long_needle): Always clear memory
89806         when skipping input due to the shift table.
89807
89808 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
89809
89810         [BZ #12005]
89811         * malloc/mcheck.c: Handle large requests.
89812
89813         [BZ #12077]
89814         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
89815         for strncmp and strncasecmp.
89816         * string/stratcliff.c: Add tests for strcmp and strncmp.
89817         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
89818
89819 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
89820
89821         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
89822         __set_fpscr.
89823
89824 2010-09-30  Andreas Jaeger  <aj@suse.de>
89825
89826         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
89827         (CGROUP_SUPER_MAGIC): Define.
89828         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
89829         Handle btrfs and cgroup file systems.
89830         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
89831         Likewise.
89832
89833 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
89834
89835         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
89836         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
89837
89838 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
89839
89840         [BZ #12067]
89841         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
89842         trying to locate the ELF header.
89843
89844 2010-09-27  Andreas Schwab  <schwab@redhat.com>
89845
89846         [BZ #11611]
89847         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
89848         Mask out sign-bit copies when constructing f_fsid.
89849
89850 2010-09-24  Petr Baudis <pasky@suse.cz>
89851
89852         * debug/stack_chk_fail_local.c: Add missing licence exception.
89853         * debug/warning-nop.c: Likewise.
89854
89855 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
89856
89857         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
89858         implementing getdents64 using getdents syscall, set d_type if
89859         __ASSUME_GETDENTS32_D_TYPE.
89860
89861 2010-09-16  Andreas Schwab  <schwab@redhat.com>
89862
89863         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
89864         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
89865
89866 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
89867
89868         [BZ #12037]
89869         * posix/unistd.h: Undo change of feature selection for ftruncate from
89870         2010-01-11.
89871
89872 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
89873
89874         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
89875         detection.
89876
89877 2010-09-20  Andreas Schwab  <schwab@redhat.com>
89878
89879         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
89880         fanotify_mark.
89881         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
89882
89883 2010-09-14  Andreas Schwab  <schwab@redhat.com>
89884
89885         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
89886         variables after CHECK_SP call.
89887         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
89888
89889 2010-09-13  Andreas Schwab  <schwab@redhat.com>
89890             Ulrich Drepper  <drepper@redhat.com>
89891
89892         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
89893         re-relocationg ld.so.
89894         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
89895         _dl_init_paths call.
89896         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
89897         here anymore.
89898
89899 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
89900
89901         * resolv/res_init.c (__res_vinit): Count the default server we added.
89902
89903 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
89904             Ulrich Drepper  <drepper@redhat.com>
89905
89906         [BZ #11968]
89907         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
89908         (____longjmp_chk): Use %ebx for saving value across system call.
89909         Add unwind info.
89910
89911 2010-09-06  Andreas Schwab  <schwab@redhat.com>
89912
89913         * manual/Makefile: Don't mix pattern rules with normal rules.
89914
89915 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
89916
89917         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
89918         operation.
89919         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
89920         * libio/iofopncook.c (_IO_cookie_init): Likewise.
89921         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
89922         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
89923         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
89924         Likewise.
89925
89926 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
89927
89928         [BZ #11979]
89929         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
89930         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
89931
89932 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
89933
89934         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
89935         * sysdeps/x86_64/addmul_1.S: Likewise.
89936         * sysdeps/x86_64/lshift.S: Likewise.
89937         * sysdeps/x86_64/mul_1.S: Likewise.
89938         * sysdeps/x86_64/rshift.S: Likewise.
89939         * sysdeps/x86_64/sub_n.S: Likewise.
89940         * sysdeps/x86_64/submul_1.S: Likewise.
89941
89942 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
89943
89944         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
89945         Define __sched_param instead of SCHED_* and sched_param when
89946         <bits/sched.h> is included with __need_schedparam defined.
89947         * bits/sched.h [__need_schedparam]
89948         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
89949         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
89950         (__defined_schedparam): Define to 1.
89951         (__sched_param): New structure, identical to sched_param.
89952         (__need_schedparam): Undefine.
89953
89954 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
89955
89956         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
89957         (epoll_create1): Declare.
89958
89959         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
89960
89961 2010-08-31  Andreas Schwab  <schwab@redhat.com>
89962
89963         [BZ #7066]
89964         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
89965         shifting retval into place.
89966
89967 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
89968
89969         * nis/rpcsvc/nis.h: Update copyright notice.
89970         * nis/rpcsvc/nis.x: Likewise.
89971         * nis/rpcsvc/nis_callback.h: Likewise.
89972         * nis/rpcsvc/nis_callback.x: Likewise.
89973         * nis/rpcsvc/nis_object.x: Likewise.
89974         * nis/rpcsvc/nis_tags.h: Likewise.
89975         * nis/rpcsvc/yp.h: Likewise.
89976         * nis/rpcsvc/yp.x: Likewise.
89977         * nis/rpcsvc/ypupd.h: Likewise.
89978         * nis/yp_xdr.c: Likewise.
89979         * nis/ypupdate_xdr.c: Likewise.
89980
89981         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
89982         mainly the body of pmap_getport.  Add parameters to specify timeouts.
89983         (pmap_getport): Use __libc_rpc_getport.
89984         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
89985         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
89986         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
89987
89988 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
89989
89990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
89991         fanotify_mark.
89992
89993 2010-08-27  Roland McGrath  <roland@redhat.com>
89994
89995         * sysdeps/i386/i686/multiarch/Makefile
89996         (CFLAGS-varshift.c): New variable.
89997
89998 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
89999
90000         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
90001         * sysdeps/i386/i686/multiarch/varshift.c: New file.
90002
90003         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
90004
90005         * sysdeps/x86_64/strlen.S: Minimal code improvement.
90006
90007 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
90008
90009         * sysdeps/x86_64/strlen.S: Unroll the loop.
90010         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
90011         strlen-sse2 strlen-sse2-bsf.
90012         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
90013         __strlen_no_bsf if bit_Slow_BSF is set.
90014         (__strlen_sse42): Removed.
90015         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
90016         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
90017
90018 2010-08-25  Roland McGrath  <roland@redhat.com>
90019
90020         * sysdeps/x86_64/multiarch/varshift.S: File removed.
90021         * sysdeps/x86_64/multiarch/varshift.c: New file.
90022         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
90023         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
90024         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
90025         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
90026
90027 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
90028
90029         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
90030         strlen-sse2 strlen-sse2-bsf.
90031         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
90032         __strlen_sse2_bsf if bit_Slow_BSF is unset.
90033         (__strlen_sse2): Removed.
90034         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
90035         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
90036         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
90037         bit_Slow_BSF for Atom.
90038         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
90039         (index_Slow_BSF): Define.
90040         (HAS_SLOW_BSF): Define.
90041
90042 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
90043
90044         [BZ #10851]
90045         * resolv/res_init.c (__res_vinit): When no server address at all
90046         is given default to loopback.
90047
90048 2010-08-24  Roland McGrath  <roland@redhat.com>
90049
90050         * configure.in: Remove config-name.h generation.
90051         * configure: Regenerated.
90052         * config-name.in: File removed.
90053         * scripts/config-uname.sh: New file.
90054         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
90055         ($(objdir)config-name.h): New target.
90056
90057         * sunrpc/rpc_parse.h: Avoid nested comment.
90058
90059 2010-08-24  Richard Henderson  <rth@redhat.com>
90060             Ulrich Drepper  <drepper@redhat.com>
90061             H.J. Lu  <hongjiu.lu@intel.com>
90062
90063         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
90064         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
90065         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
90066         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
90067         _mm_alignr_epi8 with _mm_loadu_si128.
90068         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
90069         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
90070         (__m128i_shift_right): Removed.
90071         * sysdeps/i386/i686/multiarch/varshift.h: New file.
90072         * sysdeps/i386/i686/multiarch/varshift.S: New file.
90073         * sysdeps/x86_64/multiarch/varshift.h: New file.
90074         * sysdeps/x86_64/multiarch/varshift.S: New file.
90075
90076 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
90077
90078         * configure.in: Move assembler checks to before sysdep dir checking.
90079
90080 2010-08-20  Petr Baudis  <pasky@suse.cz>
90081
90082         * LICENSES: Sync the sunrpc license.
90083
90084 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
90085
90086         * sunrpc/auth_des.c: Update copyright notice once again.
90087         * sunrpc/auth_none.c: Likewise.
90088         * sunrpc/auth_unix.c: Likewise.
90089         * sunrpc/authdes_prot.c: Likewise.
90090         * sunrpc/authuxprot.c: Likewise.
90091         * sunrpc/bindrsvprt.c: Likewise.
90092         * sunrpc/clnt_gen.c: Likewise.
90093         * sunrpc/clnt_perr.c: Likewise.
90094         * sunrpc/clnt_raw.c: Likewise.
90095         * sunrpc/clnt_simp.c: Likewise.
90096         * sunrpc/clnt_tcp.c: Likewise.
90097         * sunrpc/clnt_udp.c: Likewise.
90098         * sunrpc/clnt_unix.c: Likewise.
90099         * sunrpc/des_crypt.c: Likewise.
90100         * sunrpc/des_soft.c: Likewise.
90101         * sunrpc/get_myaddr.c: Likewise.
90102         * sunrpc/getrpcport.c: Likewise.
90103         * sunrpc/key_call.c: Likewise.
90104         * sunrpc/key_prot.c: Likewise.
90105         * sunrpc/openchild.c: Likewise.
90106         * sunrpc/pm_getmaps.c: Likewise.
90107         * sunrpc/pm_getport.c: Likewise.
90108         * sunrpc/pmap_clnt.c: Likewise.
90109         * sunrpc/pmap_prot.c: Likewise.
90110         * sunrpc/pmap_prot2.c: Likewise.
90111         * sunrpc/pmap_rmt.c: Likewise.
90112         * sunrpc/rpc/auth.h: Likewise.
90113         * sunrpc/rpc/auth_unix.h: Likewise.
90114         * sunrpc/rpc/clnt.h: Likewise.
90115         * sunrpc/rpc/des_crypt.h: Likewise.
90116         * sunrpc/rpc/key_prot.h: Likewise.
90117         * sunrpc/rpc/netdb.h: Likewise.
90118         * sunrpc/rpc/pmap_clnt.h: Likewise.
90119         * sunrpc/rpc/pmap_prot.h: Likewise.
90120         * sunrpc/rpc/pmap_rmt.h: Likewise.
90121         * sunrpc/rpc/rpc.h: Likewise.
90122         * sunrpc/rpc/rpc_des.h: Likewise.
90123         * sunrpc/rpc/rpc_msg.h: Likewise.
90124         * sunrpc/rpc/svc.h: Likewise.
90125         * sunrpc/rpc/svc_auth.h: Likewise.
90126         * sunrpc/rpc/types.h: Likewise.
90127         * sunrpc/rpc/xdr.h: Likewise.
90128         * sunrpc/rpc_clntout.c: Likewise.
90129         * sunrpc/rpc_cmsg.c: Likewise.
90130         * sunrpc/rpc_common.c: Likewise.
90131         * sunrpc/rpc_cout.c: Likewise.
90132         * sunrpc/rpc_dtable.c: Likewise.
90133         * sunrpc/rpc_hout.c: Likewise.
90134         * sunrpc/rpc_main.c: Likewise.
90135         * sunrpc/rpc_parse.c: Likewise.
90136         * sunrpc/rpc_parse.h: Likewise.
90137         * sunrpc/rpc_prot.c: Likewise.
90138         * sunrpc/rpc_sample.c: Likewise.
90139         * sunrpc/rpc_scan.c: Likewise.
90140         * sunrpc/rpc_scan.h: Likewise.
90141         * sunrpc/rpc_svcout.c: Likewise.
90142         * sunrpc/rpc_tblout.c: Likewise.
90143         * sunrpc/rpc_util.c: Likewise.
90144         * sunrpc/rpc_util.h: Likewise.
90145         * sunrpc/rpcinfo.c: Likewise.
90146         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
90147         * sunrpc/rpcsvc/key_prot.x: Likewise.
90148         * sunrpc/rpcsvc/klm_prot.x: Likewise.
90149         * sunrpc/rpcsvc/mount.x: Likewise.
90150         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
90151         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
90152         * sunrpc/rpcsvc/rex.x: Likewise.
90153         * sunrpc/rpcsvc/rstat.x: Likewise.
90154         * sunrpc/rpcsvc/rusers.x: Likewise.
90155         * sunrpc/rpcsvc/sm_inter.x: Likewise.
90156         * sunrpc/rpcsvc/spray.x: Likewise.
90157         * sunrpc/rpcsvc/yppasswd.x: Likewise.
90158         * sunrpc/rtime.c: Likewise.
90159         * sunrpc/svc.c: Likewise.
90160         * sunrpc/svc_auth.c: Likewise.
90161         * sunrpc/svc_authux.c: Likewise.
90162         * sunrpc/svc_raw.c: Likewise.
90163         * sunrpc/svc_run.c: Likewise.
90164         * sunrpc/svc_simple.c: Likewise.
90165         * sunrpc/svc_tcp.c: Likewise.
90166         * sunrpc/svc_udp.c: Likewise.
90167         * sunrpc/svc_unix.c: Likewise.
90168         * sunrpc/svcauth_des.c: Likewise.
90169         * sunrpc/xcrypt.c: Likewise.
90170         * sunrpc/xdr.c: Likewise.
90171         * sunrpc/xdr_array.c: Likewise.
90172         * sunrpc/xdr_float.c: Likewise.
90173         * sunrpc/xdr_mem.c: Likewise.
90174         * sunrpc/xdr_rec.c: Likewise.
90175         * sunrpc/xdr_ref.c: Likewise.
90176         * sunrpc/xdr_sizeof.c: Likewise.
90177         * sunrpc/xdr_stdio.c: Likewise.
90178
90179         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
90180         handling.
90181
90182 2010-08-19  Andreas Schwab  <schwab@redhat.com>
90183
90184         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
90185
90186 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
90187
90188         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
90189         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
90190         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
90191         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
90192         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
90193         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
90194         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
90195         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
90196         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
90197         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
90198         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
90199         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
90200         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
90201         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
90202
90203 2010-07-26  Anton Blanchard  <anton@samba.org>
90204
90205         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
90206         * malloc/arena.c (heap_trim): Likewise.
90207
90208 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
90209
90210         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
90211         here.  Not...
90212         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
90213         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
90214
90215 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
90216
90217         * sysdeps/i386/elf/Makefile: New file.
90218
90219 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
90220
90221         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
90222         from fanotify_init.
90223         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
90224         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
90225
90226 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
90227
90228         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
90229         of strncasecmp_l.
90230         * sysdeps/multiarch/strcmp.S: Likewise.
90231
90232 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
90233
90234         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
90235         strncase_l-nonascii.
90236         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
90237         Add strncase_l-ssse3.
90238         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
90239         * sysdeps/x86_64/strcmp.S: Likewise.
90240         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
90241         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
90242         * sysdeps/x86_64/strncase.S: New file.
90243         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
90244         * sysdeps/x86_64/strncase_l.S: New file.
90245         * string/Makefile (strop-tests): Add strncasecmp.
90246         * string/test-strncasecmp.c: New file.
90247
90248         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
90249         warning.
90250
90251         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
90252         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
90253
90254 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
90255
90256         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
90257
90258 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
90259
90260         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
90261         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
90262         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
90263
90264 2010-05-01  Alan Modra  <amodra@gmail.com>
90265
90266         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
90267         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
90268         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
90269         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
90270         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
90271         tidying.  Don't tail-call __sigjmp_save for static lib.
90272         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
90273         save location.
90274         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
90275         (CALL_MCOUNT): Add eh info, and nop after bl.
90276         (TAIL_CALL_SYSCALL_ERROR): New macro.
90277         (PSEUDO_RET): Use it.
90278         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
90279         Correct save location of integer regs and cr.
90280         (_dl_profile_resolve): Correct cr save location.  Delete nops
90281         after bl when SHARED.  Reduce cfi size a little by better
90282         placement of cfi directives.
90283         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
90284         make a stack frame.  Instead use parm save area as a temp.
90285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
90286         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
90287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
90288         Don't make a stack frame for parent, use parm save area.
90289         Increase child stack frame to 112 bytes.  Don't save unused reg,
90290         and adjust reg usage.  Set up cfi on error recovery and
90291         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
90292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
90293         (__makecontext): Add dummy nop after jump to exit.
90294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
90295         Use correct parm save area and cr save, reduce stack frame.
90296         Correct cfi for possible PSEUDO_RET frame setup.
90297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
90298         Branch to local label emitted by PSEUDO_RET rather than
90299         __syscall_error.
90300
90301 2010-08-12  Andreas Schwab  <schwab@redhat.com>
90302
90303         [BZ #11904]
90304         * locale/programs/locale.c (print_assignment): New function.
90305         (show_locale_vars): Use it.
90306
90307 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
90308
90309         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
90310         field.
90311         (struct statfs64): Likewise.
90312         (_STATFS_F_FLAGS): Define.
90313         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
90314         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
90315         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
90316         (ST_VALID): Define locally.
90317         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
90318         __statvfs_getflags, use the provided value.
90319         * sysdeps/unix/sysv/linux/kernel-features.h: Define
90320         __ASSUME_STATFS_F_FLAGS.
90321
90322         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
90323
90324         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
90325         Add sys/fanotify.h.
90326         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
90327         fanotify_mask for GLIBC_2.13.
90328         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
90329         fanotify_init and fanotify_mark.
90330         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
90331         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
90332
90333         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
90334         Add prlimit.
90335         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
90336         prlimit64 for GLIBC_2.13.
90337         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
90338         prlimit64.
90339         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
90340         syscall.
90341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
90342         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
90343         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
90344         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
90345         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
90346         add prlimit alias.
90347         * sysdeps/unix/sysv/linux/prlimit.c: New file.
90348
90349         [BZ #11903]
90350         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
90351         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
90352
90353         * nss/Makefile: Add rules to build and run tst-nss-test1.
90354         * shlib-versions: Add entry for libnss_test1.
90355         * nss/nss_test1.c: New file.
90356         * nss/tst-nss-test1.c: New file.
90357
90358         * nss/nsswitch.c (__nss_database_custom): Define new variable.
90359         (__nss_configure_lookup): Set appropriate entry in
90360         __nss_configure_lookup to true.
90361         * nss/nsswitch.h: Define enum with indeces of databases in
90362         databases and __nss_database_custom arrays.  Declare
90363         __nss_database_custom.
90364         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
90365         to avoid using nscd when custom rules are installed.
90366         * nss/getXXbyYY_r.c: Likewise.
90367         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
90368
90369         * nss/nss_files/files-parse.c: Whitespace fixes.
90370
90371 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
90372
90373         [BZ #11883]
90374         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
90375         * posix/fnmatch_loop.c: Likewise.
90376
90377 2010-07-17  Andi Kleen  <ak@linux.intel.com>
90378
90379         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
90380         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
90381         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
90382         * Versions.def [GLIBC_2.13]: Add.
90383
90384 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
90385
90386         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
90387         Also fail if tpwd after pwuid call is NULL.
90388
90389 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
90390
90391         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
90392         when converting to ms.
90393
90394 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
90395
90396         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
90397         EOPNOTSUPP errors with ENOTTY.
90398         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
90399         EOPNOTSUPP errors with ENOTTY.
90400
90401 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
90402
90403         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
90404         Add strcasecmp_l-ssse3.
90405         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
90406         strcasecmp.
90407         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
90408         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
90409         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
90410
90411 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
90412
90413         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
90414
90415         * string/Makefile (strop-tests): Add strcasecmp.
90416         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
90417         strcasecmp_l-nonascii.
90418         (gen-as-const-headers): Add locale-defines.sym.
90419         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
90420         * sysdeps/x86_64/strcasecmp.S: New file.
90421         * sysdeps/x86_64/strcasecmp_l.S: New file.
90422         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
90423         * sysdeps/x86_64/locale-defines.sym: New file.
90424         * string/test-strcasecmp.c: New file.
90425
90426         * string/test-strcasestr.c: Test both ends of the range of characters.
90427         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
90428
90429 2010-07-29  Roland McGrath  <roland@redhat.com>
90430
90431         [BZ #11856]
90432         * manual/locale.texi (Yes-or-No Questions): Fix example code.
90433
90434 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
90435
90436         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
90437         for ld.so.
90438
90439 2010-07-27  Andreas Schwab  <schwab@redhat.com>
90440
90441         * manual/memory.texi (Malloc Tunable Parameters): Document
90442         M_PERTURB.
90443
90444 2010-07-26  Roland McGrath  <roland@redhat.com>
90445
90446         [BZ #11840]
90447         * configure.in (-fgnu89-inline check): Set and substitute
90448         gnu89_inline, not libc_cv_gnu89_inline.
90449         * configure: Regenerated.
90450         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
90451
90452 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
90453
90454         * string/test-strnlen.c: New file.
90455         * string/Makefile (strop-tests): Add strnlen.
90456         * string/tester.c (test_strnlen): Add a few more test cases.
90457         * string/tst-strlen.c: Better error reporting.
90458
90459         * sysdeps/x86_64/strnlen.S: New file.
90460
90461 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
90462
90463         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
90464         lower-latency instructions.
90465
90466 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
90467
90468         * string/test-strcasestr.c: New file.
90469         * string/test-strstr.c: New file.
90470         * string/Makefile (strop-tests): Add strstr and strcasestr.
90471         * string/str-two-way.h: Don't undefine MAX.
90472         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
90473
90474 2010-07-21  Andreas Schwab  <schwab@redhat.com>
90475
90476         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
90477         strcasestr-nonascii.
90478         (CFLAGS-strcasestr-nonascii.c): Define.
90479         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
90480         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
90481         Remove unused attribute.
90482
90483 2010-07-20  Roland McGrath  <roland@redhat.com>
90484
90485         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
90486         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
90487         ld.so.cache was broken.  With it, there is no way to disable dsocaps
90488         like LD_HWCAP_MASK can disable hwcaps.
90489
90490 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
90491
90492         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
90493
90494 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
90495
90496         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
90497         call in strcasestr.
90498         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
90499         __strcasestr_sse42_nonascii.
90500         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
90501         strcasestr-nonascii.c.
90502         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
90503
90504 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
90505
90506         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
90507         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
90508         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
90509         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
90510
90511 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
90512
90513         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
90514         fcntl.
90515
90516 2010-07-06  Andreas Schwab  <schwab@redhat.com>
90517
90518         [BZ #11577]
90519         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
90520         dl_signal_cerror.
90521
90522 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
90523
90524         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
90525         _PC_PIPE_BUF using F_GETPIPE_SZ.
90526
90527 2010-07-05  Roland McGrath  <roland@redhat.com>
90528
90529         * manual/arith.texi (Rounding Functions): Fix rint description
90530         implicit in round description.
90531
90532 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
90533
90534         * elf/Makefile: Fix linking for a few tests to make recent linker
90535         happy.
90536
90537 2010-06-30  Andreas Schwab  <schwab@redhat.com>
90538
90539         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
90540         $(common-objpfx)libc_nonshared.a.
90541
90542 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
90543
90544         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
90545         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
90546         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
90547         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
90548         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
90549         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
90550         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
90551         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
90552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
90553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
90554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
90555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
90556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
90557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
90558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
90559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
90560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
90561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
90562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
90563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
90564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
90565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
90566         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
90567         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
90568         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
90569         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
90570         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
90571         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
90572         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
90573         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
90574         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
90575         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
90576         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
90577         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
90578         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
90579         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
90580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
90581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
90582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
90583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
90584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
90585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
90586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
90587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
90588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
90589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
90590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
90591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
90592
90593 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
90594
90595         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
90596         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
90597         * string/memmove.c (memmove): Renamed to ...
90598         (MEMMOVE): ...this.  Default to memmove.
90599         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
90600         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
90601         (END_CHK): Define.
90602         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
90603         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
90604         mempcpy-ssse3-back memmove-ssse3-back.
90605         * sysdeps/x86_64/multiarch/bcopy.S: New file .
90606         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
90607         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
90608         * sysdeps/x86_64/multiarch/memcpy.S: New file.
90609         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
90610         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
90611         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
90612         * sysdeps/x86_64/multiarch/memmove.c: New file.
90613         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
90614         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
90615         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
90616         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
90617         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
90618         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
90619         Define.
90620         (index_Fast_Copy_Backward): Define.
90621         (HAS_ARCH_FEATURE): Define.
90622         (HAS_FAST_REP_STRING): Define.
90623         (HAS_FAST_COPY_BACKWARD): Define.
90624
90625 2010-06-21  Andreas Schwab  <schwab@redhat.com>
90626
90627         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
90628         Restore proper fallback handling.
90629
90630 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
90631
90632         [BZ #11701]
90633         * posix/group_member.c (__group_member): Correct checking loop.
90634
90635         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
90636         OOM in getpwuid_r correctly.  Return error number when the caller
90637         should return, otherwise -1.
90638         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
90639         call returning > 0 value.
90640         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
90641
90642 2010-06-07  Andreas Schwab  <schwab@redhat.com>
90643
90644         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
90645         libc_nonshared.a from targets in modules-names.
90646
90647 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
90648
90649         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
90650         requires it.
90651
90652 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
90653
90654         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
90655         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
90656         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
90657         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
90658
90659 2010-06-02  Andreas Schwab  <schwab@redhat.com>
90660
90661         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
90662
90663 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
90664
90665         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
90666         and F_GETPIPE_SZ.
90667         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
90668         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
90669         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
90670         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
90671         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
90672         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
90673
90674 2010-06-14  Roland McGrath  <roland@redhat.com>
90675
90676         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
90677
90678 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
90679
90680         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
90681         __REDIRECT followed by __THROW.
90682         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
90683         * posix/getopt.h (getopt): Likewise.
90684
90685 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
90686
90687         * hurd/lookup-at.c (__file_name_lookup_at): Accept
90688         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
90689         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
90690         in AT_FLAGS.
90691         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
90692         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
90693
90694 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
90695
90696         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
90697
90698 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
90699
90700         [BZ #11640]
90701         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
90702         Properly check family and model.
90703
90704 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
90705
90706         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
90707
90708 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
90709
90710         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
90711
90712 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
90713
90714         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
90715         symbol reference.
90716
90717 2010-05-19  Andreas Schwab  <schwab@redhat.com>
90718
90719         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
90720         symbol reference.
90721
90722 2010-05-21  Andreas Schwab  <schwab@redhat.com>
90723
90724         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
90725         and internal_recvmmsg.
90726         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
90727         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
90728         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
90729         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
90730
90731         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
90732         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
90733         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
90734
90735 2010-05-20  Andreas Schwab  <schwab@redhat.com>
90736
90737         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
90738
90739 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
90740
90741         POWER7 optimizations.
90742         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
90743         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
90744
90745 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
90746
90747         * version.h: Update for 2.13 development version.
90748
90749 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
90750
90751         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
90752         exceptions.  Return 0.
90753
90754 2010-05-07  Roland McGrath  <roland@redhat.com>
90755
90756         * elf/ldconfig.c (main): Add a const.
90757
90758 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
90759
90760         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
90761         (args_options): Add no-idn option.
90762         (ahosts_keys_int): Add idn_flags to ai_flags.
90763         (parse_option): Handle 'i' option to clear idn_flags.
90764
90765         * malloc/malloc.c (_int_free): Possible race in the most recently
90766         added check.  Only act on the data if no current modification
90767         happened.
90768
90769 See ChangeLog.17 for earlier changes.